OpenWrt Forum Archive

Topic: New Broadcom BCM63xx codebase with GPL'd Ethernet and USB support

The content of this topic has been archived between 8 Feb 2018 and 7 May 2018. Unfortunately there are posts – most likely complete pages – missing.

I can change flash if it need.

Has anybody tried to update software in dlink DSL-2650U/BRU/D via web-interface?

hello ,

got an avarage network performance (slow response etc.)
attached my configuration files & ifconfig, i'm using ports 1,2,3 as local
& port 4 gets an ip from my cable modem.
i noticed that there are errors on the switch inteeface

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2009.06.26 15:41:28 =~=~=~=~=~=~=~=~=~=~=~=


root@_odd:~# cat /etc/config/network

config switch eth1
    option vlan0 "0 1 2 5*"
    option vlan1 "3 5"
       
config 'interface' 'loopback'
    option 'ifname' 'lo'
    option 'proto' 'static'
    option 'ipaddr' '127.0.0.1'
    option 'netmask' '255.0.0.0'

config 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth1.0'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'nat' '1'
    option 'dns' '192.168.1.1'
    option 'gateway' '192.168.1.1'
    option 'ipaddr' '192.168.1.1'

config 'interface' 'dsl'
    option 'ifname' 'eth0'
    option 'proto' 'static'

config 'interface' 'wan'
    option 'ifname' 'eth1.1'
    option 'proto' 'dhcp'
    option 'mtu' '1492'




root@_odd:~# ifconfig

br-lan    Link encap:Ethernet  HWaddr 00:1E:8C:9A:55:12 
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91860 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14568770 (13.8 MiB)  TX bytes:106323328 (101.3 MiB)

eth0      Link encap:Ethernet  HWaddr 00:1E:8C:9A:55:11 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:16

eth1      Link encap:Ethernet  HWaddr 00:1E:8C:9A:55:12 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:261624 errors:315 dropped:0 overruns:0 frame:315
          TX packets:213529 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:138517244 (132.0 MiB)  TX bytes:122835836 (117.1 MiB)
          Interrupt:15

eth1.0    Link encap:Ethernet  HWaddr 00:1E:8C:9A:55:12 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:91860 errors:0 dropped:0 overruns:0 frame:0
          TX packets:119926 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:14936210 (14.2 MiB)  TX bytes:106803032 (101.8 MiB)

eth1.1    Link encap:Ethernet  HWaddr 00:1E:8C:9A:55:12 
          inet addr:87.69.100.150  Bcast:255.255.255.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1492  Metric:1
          RX packets:169764 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93603 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:119918298 (114.3 MiB)  TX bytes:16032804 (15.2 MiB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:17 errors:0 dropped:0 overruns:0 frame:0
          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6029 (5.8 KiB)  TX bytes:6029 (5.8 KiB)

root@_odd:~#


any ideas ??
avico

(Last edited by avico on 26 Jun 2009, 20:37)

GPL source code ftp://ftp.dlink.ru/pub/ADSL/GPL_source_code/

Add

http://tsd.dlink.com.tw/downloads2008li … amp;OS=GPL

(Last edited by Vitaliy86 on 27 Jun 2009, 13:23)

I have upgraded my AGPF

http://oldwiki.openwrt.org/OpenWrtDocs( … 2Plus.html

From r15577 to r16617

I always compile the images with the same setting.
In the r16617 the usb 2.0 does not work anymore.

bcm63xx_ehci bcm63xx_ehci.0: BCM63XX integrated EHCI controller
bcm63xx_ehci bcm63xx_ehci.0: new USB bus registered, assigned bus number 2
bcm63xx_ehci bcm63xx_ehci.0: irq 18, io mem 0xfffe1300
usb 1-1: USB disconnect, address 2
bcm63xx_ehci bcm63xx_ehci.0: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 2-1: new full speed USB device using bcm63xx_ehci and address 2
usb 2-1: device descriptor read/64, error -71
root@OpenWrt:/# usb 2-1: device descriptor read/64, error -71
usb 2-1: new full speed USB device using bcm63xx_ehci and address 3
usb 2-1: device descriptor read/64, error -71
usb 2-1: device descriptor read/64, error -71
usb 2-1: new full speed USB device using bcm63xx_ehci and address 4
usb 2-1: device not accepting address 4, error -71
usb 2-1: new full speed USB device using bcm63xx_ehci and address 5
usb 2-1: device not accepting address 5, error -71
hub 2-0:1.0: unable to enumerate USB device on port 1

The ohci work good using usb 1.1

bcm63xx_ohci bcm63xx_ohci.0: BCM63XX integrated OHCI controller
bcm63xx_ohci bcm63xx_ohci.0: new USB bus registered, assigned bus number 1
bcm63xx_ohci bcm63xx_ohci.0: irq 13, io mem 0xfffe1400
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using bcm63xx_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
scsi 0:0:0:0: Direct-Access              USB BAR          1.13 P
Q: 0 ANSI: 0 CCS
sd 0:0:0:0: [sda] 253952 512-byte hardware sectors (130 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 253952 512-byte hardware sectors (130 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk

Is it possibile to fix it like r15577?

(Last edited by ramponis on 30 Jun 2009, 16:12)

It's note just DSL-2650U, but also other D-Link models that have different software versions for a similar device. I tried with DSL-2640B, without success, as I posted on http://forum.openwrt.org/viewtopic.php?id=20856.
I thought that this thread is too long and general for that problem.

saraj wrote:

It's note just DSL-2650U, but also other D-Link models that have different software versions for a similar device. I tried with DSL-2640B, without success, as I posted on http://forum.openwrt.org/viewtopic.php?id=20856.
I thought that this thread is too long and general for that problem.

Part of this thread is about your problem,
1.- you must obtain name of your hardware board, from telnet to your router:
          cat /proc/cpuinfo | grep type
   and you must obtain type name of your board.
2.- make a patch to include name of your board like this: http://forum.openwrt.org/viewtopic.php?pid=76185#p76185

(Last edited by t3l3m4k0 on 30 Jun 2009, 20:00)

Just a note to future readers of this thread.
British Telecom have kindly sent me the GPL source code for their BT Voyager Routers based on a 2.6.8.1 kernel.
The previous source I had was based on the 2.4 kernel.

I can build the firmware and flash it and so far it seems to be working correctly.

Roger

@t3l3m4k0
Thank you, It's:
> cat /proc/cpuinfo
system type             : D-4P-W
processor               : 0
cpu model               : BCM6348 V0.7

This this seems complicated to me. You say I should make a patch to include name of your board. The board is the same like in US version of DSL-2640B, which is probably the model that is already included in the code. It's about "Firmware model" that I couldn't find in code to patch it to "EU_DSL-2640B". Can you or someone else patch the code please?
If not, I would have to go through the whole procedure in order to understand it. Would I have to compile it myself or this trunk is compiled from time to time?

saraj wrote:

@t3l3m4k0
Thank you, It's:
> cat /proc/cpuinfo
system type             : D-4P-W
processor               : 0
cpu model               : BCM6348 V0.7

This this seems complicated to me. You say I should make a patch to include name of your board. The board is the same like in US version of DSL-2640B, which is probably the model that is already included in the code. It's about "Firmware model" that I couldn't find in code to patch it to "EU_DSL-2640B". Can you or someone else patch the code please?
If not, I would have to go through the whole procedure in order to understand it. Would I have to compile it myself or this trunk is compiled from time to time?

hello saraj.
i have asus am604g with similar board ID

[root@Cohens]:[~]% cat /proc/cpuinfo
system type             : bcm63xx/D-4P-W (0x6348/0x00A2)
processor               : 0
cpu model               : Broadcom BCM6348 V0.7
BogoMIPS                : 255.48
wait instruction        : yes
microsecond timers      : yes
tlb_entries             : 32
extra interrupt vector  : yes
hardware watchpoint     : no
ASEs implemented        :
shadow register sets    : 1
core                    : 0
VCED exceptions         : not available
VCEI exceptions         : not available

[root@Cohens]:[~]%

i've edited the files :
   1)   target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c

          static struct board_info __initdata board_96348 = {
                   .name                           = "D-4P-W",
                   .expected_cpu_id                = 0x6348,

                   .has_enet0                      = 1,
                   .has_enet1                      = 1,
                   .has_pci                        = 1,

                   .enet0 = {
                        .has_phy                = 1,
                        .use_internal_phy       = 1,
                    },
                   .enet1 = {
                        .force_speed_100        = 1,
                        .force_duplex_full      = 1,
                    },

                    .has_ohci0 = 1,
          };
    & at the end of same file check for :
          #ifdef CONFIG_BCM63XX_CPU_6348
              &board_96348,
          #endif


   2)   target/linux/brcm63xx/image/Makefile
      added
          $(call Image/Build/CFE,$(1),96348,6348,bc221,,bc221,-y 5)



be aware that part (2) is depend on you routers CFE. this line is ok for ASUS am604g,
but you will need to check.

regards
avico

BCM63XX BCM6345 system hang in synchronize_rcu()
SVN revision 16733.
I can give the additional information. Write that is necessary. And as it to receive.

Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Starting program at 0x80010000
Linux version 2.6.27.26 (Administrator@server00) (gcc version 4.1.2) #6 Sun Jul 5 13:01:10 2009
Detected Broadcom 0x6345 CPU revision a0
CPU frequency is 140000000 Hz
8MB of RAM installed
registering 16 GPIOs
board_bcm963xx: CFE version: 1.2.3-4.5
console [early0] enabled
CPU revision is: 00028000 (Broadcom BCM6345)
board_bcm963xx: board name: R
Determined physical RAM map:
 memory: 00800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00000800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00000800
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 2032
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 32 (order: 5, 128 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 5608k/8192k available (1842k kernel code, 2584k reserved, 331k data, 124k init, 0k highmem)
Calibrating delay loop... 92.41 BogoMIPS (lpj=184832)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16

SVN revision 16733.
1. System hang?
2. CPU revision is: 00029010 (Broadcom BCM3302)
maybe add cosmetic fix?

CFE version 1.0.37-6.8 for BCM96338 (32bit,SP,BE)
Build Date: Sat Nov 17 12:16:45 HKT 2007 (root@lijian)
Copyright (C) 2000-2005 Broadcom Corporation.

Boot Address 0xbfc00000

Initializing Arena.
Initializing Devices.
Parallel flash device: name AM29LV160B, id 0x2249, size 2048KB
totalBlks=35
totalSize=2048K
NvramData is in the first sector!
fInfo.flash_nvram_start_blk = 0
fInfo.flash_nvram_blk_offset = 0x580
fInfo.flash_nvram_number_blk = 1
fInfo.flash_nvram_length = 1024
psi startAddr = bfdfa000
fInfo.flash_persistent_start_blk = 34
fInfo.flash_persistent_blk_offset = 0xa000
fInfo.flash_persistent_number_blk = 1
fInfo.flash_persistent_length = 24576
100 MB Full-Duplex (auto-neg)
CPU type 0x29010: 240MHz
Total memory: 8388608 bytes (8MB)

Total memory used by CFE:  0x80401000 - 0x805287B0 (1210288)
Initialized Data:          0x8041E310 - 0x8041FEB0 (7072)
BSS Area:                  0x8041FEB0 - 0x804267B0 (26880)
Local Heap:                0x804267B0 - 0x805267B0 (1048576)
Stack Area:                0x805267B0 - 0x805287B0 (8192)
Text (code) segment:       0x80401000 - 0x8041E304 (119556)
Boot area (physical):      0x00529000 - 0x00569000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                  : 192.168.1.1
Host IP address                   : 192.168.1.10
Gateway IP address                :
Run from flash/host (f/h)         : f
Default host run file name        : vmlinux
Default host flash file name      : bcm963xx_fs_kernel
Boot delay (0-9 seconds)          : 1
Board Id Name                     : 96338L-2M-8M
Psi size in KB                    : 24
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:1e:e3:a7:3d:c6
Ethernet PHY Type                 : Internal
Memory size in MB                 : 8
CMT Thread Number                 : 0

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 110
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.27.26 (Administrator@server00) (gcc version 4.1.2) #71 Thu Jul 9 22:16:59 2009
Detected Broadcom 0x6338 CPU revision a2
CPU frequency is 240000000 Hz
8MB of RAM installed
registering 8 GPIOs
board_bcm963xx: CFE version: 1.0.37-6.8
console [early0] enabled
CPU revision is: 00029010 (Broadcom BCM3302)
board_bcm963xx: board name: 96338L-2M-8M
Determined physical RAM map:
 memory: 00800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00000800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00000800
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 2032
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 32 (order: 5, 128 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 5608k/8192k available (1842k kernel code, 2584k reserved, 330k data, 124k init, 0k highmem)
Calibrating delay loop... 239.10 BogoMIPS (lpj=478208)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
audit: initializing netlink socket (disabled)
type=2000 audit(0.320:1): initialized
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ?? 2001-2006 Red Hat, Inc.
msgmni has been set to 16
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
bcm963xx: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6, board type 96338L-2M-8M, and tagid bc221.
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length bff00
bcm963xx_flash: Partition 2 is rootfs offset d0000 and length 120000
bcm963xx_flash: Partition 3 is nvram offset 1f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 1e0000
Creating 5 MTD partitions on "bcm963xx":
0x00000000-0x00010000 : "CFE"
0x00010100-0x000d0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000d0000-0x001f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=1D0000, len=20000
0x001d0000-0x001f0000 : "rootfs_data"
0x001f0000-0x00200000 : "nvram"
0x00010000-0x001f0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 124k freed
Please be patient, while OpenWrt loads ...

I tried to load OpenWrt on Pirelli Alice Business Gate 2 Plus, and obtained the following output on serial console:

CFE version 1.0.37-3.1 P8 for BCM96338 (32bit,SP,BE)                            
Build Date: dom mar 26 11:03:56 CEST 2006 (root@RanmaLinux)                     
Copyright (C) 2000-2005 Broadcom Corporation.                                   
                                                                                
Boot Address 0xbf800000                                                         
                                                                                
Initializing Arena.                                                             
Initializing Devices.                                                           
cfi_flash_get_device_id                                                         
Parallel flash device: name AM29LV640MT, id 0x2201, size 8192KB                 
CPU type 0x29010: 240MHz                                                        
Total memory: 16777216 bytes (16MB)                                             
                                                                                
Total memory used by CFE:  0x80401000 - 0x805281B0 (1208752)                    
Initialized Data:          0x8041DED0 - 0x8041F930 (6752)                       
BSS Area:                  0x8041F930 - 0x804261B0 (26752)                      
Local Heap:                0x804261B0 - 0x805261B0 (1048576)                    
Stack Area:                0x805261B0 - 0x805281B0 (8192)                       
Text (code) segment:       0x80401000 - 0x8041DED0 (118480)                     
Boot area (physical):      0x00529000 - 0x00569000                              
Relocation Factor:         I:00000000 - D:00000000                              
                                                                                
Board IP address                  : 192.168.1.1:ffffff00                        
Host IP address                   : 192.168.1.100                               
Gateway IP address                :                                             
Run from flash/host (f/h)         : f                                           
Default host run file name        : vmlinux                                     
Default host flash file name      : bcm963xx_fs_kernel                          
Boot delay (0-9 seconds)          : 1                                           
Boot image (0=latest, 1=previous) : 0                                           
Board Id Name                     : AG2-Plus                                    
Psi size in KB                    : 24                                          
Number of MAC Addresses (1-32)    : 11                                          
Base MAC Address                  : 00:1d:8b:2d:a2:46                           
Ethernet PHY Type                 : External Switch Using Reverse MII           
Memory size in MB                 : 16                                          
                                                                                
*** Press any key to stop auto run (1 seconds) ***                              
Auto run second count down: 0                                                   
Booting from latest image (0xbfc00000) ...                                      
Code Address: 0x80010000, Entry Address: 0x80010000                             
8192 size flash memory detected                                                 
starting image at [BFC00100] image length 2cff04                                
                                                                                
CRC from tag 7ec7ba85 - CRC image calculated 7ec7ba85                           
Decompression OK!                                                               
Entry at 0x80010000                                                             
Closing network.                                                                
Starting program at 0x80010000                                                  
Linux version 2.6.27.26 (mattia@jiraiya) (gcc version 4.1.2) #1 Sun Jul 12 14:29
Detected Broadcom 0x6338 CPU revision a2                                        
CPU frequency is 240000000 Hz                                                   
16MB of RAM installed                                                           
registering 8 GPIOs                                                             
board_bcm963xx: CFE version: 1.0.37-3.1                                         
board_bcm963xx: unknown bcm963xx board: AG2-Plus                                
console [early0] enabled                                                        
CPU revision is: 00029010 (Broadcom BCM3302)                                    
Kernel panic - not syncing: unable to detect bcm963xx board

Support for Pirelli Alice Gate VoIP 2 Plus Wi-Fi was added by florian:
https://dev.openwrt.org/ticket/4366

I heard of imagetags and code versions... and that Pirelli modified the broadcom code so it has different imagetags.
What should I do to add support for this board? Where do I find the imagetag to make a patch and build a working image?

L-ZiX wrote:

Hi all,

I have TP-LINK 8840 too.
How we can flash to it ?

Watha wrote:

Hi all,

The problem with those boards is they only have2 MB flash and 8 MB which is really too small for OpenWRT

AraKs wrote:

I tried to load OpenWrt on Pirelli Alice Business Gate 2 Plus, and obtained the following output on serial console:

Kernel panic - not syncing: unable to detect bcm963xx board

I heard of imagetags and code versions... and that Pirelli modified the broadcom code so it has different imagetags.
What should I do to add support for this board? Where do I find the imagetag to make a patch and build a working image?

The problem here is actually not the imagetag but the board recognition. RogerH might be able to help you with that, he's done it for the BT Voyager.

ruff wrote:

I wonder if bcm6348 platforms such as Livebox have fully functional CardBus/PCMCIA support? I.e. can I plug let say CardBus SD card reader and put there 16Gb SDHC Card? Or at least some PCMCIA CFI card roll

Just for the reference - it doesn't. Inserting 8g cfi kingston card does not produce any event in kernel, despite built-in ssb, broadcom_pcmcia and ide-cs drivers.

I have compiled the last revision 16927 for my AGPF (6358 based)

florian did a fix, 3 days ago, for the usb 2.0 on the rev. 16882
I have flashed my device and try it, but usb still not working.
So i hve reverted the line 36 of trunk/target/linux/brcm63xx/patches-2.6.27/008-usb_ehci_support.patch
From:

@@ -764,6 +764,11 @@ ehci_port_speed(struct ehci_hcd *ehci, u 

To:

@@ -761,6 +761,11 @@ ehci_port_speed(struct ehci_hcd *ehci, u 

Then recompile and now it works!

I have also found a working configuration to use a switch port as a WAN port:

# Copyright (C) 2008 OpenWrt.org

config switch eth1
    option vlan0 "1 2 3 5*"
    option vlan1 "0 5"

config interface loopback
    option ifname   lo
    option proto    static
    option ipaddr   127.0.0.1
    option netmask  255.0.0.0

config interface lan
    option type     bridge
    option ifname   eth1.0
    option proto    static
    option ipaddr   192.168.1.1
    option netmask  255.255.255.0
    option nat      1
    option mtu      1492

config interface wan
    option ifname   eth1.1
    option proto    dhcp
    option mtu      1492

config interface dsl
    option ifname    eth0
    option proto    dhcp

With this configuration it works good like a wireless gateway.
I have also tested it with samba3 and vsftp with a 2.5 hd connected on the usb port.
It writes/reads about 4.5Mbytes/s wink

(Last edited by ramponis on 20 Jul 2009, 14:52)

BCM6345 boot fine!
with two patch
1.

Index: target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c
===================================================================
--- target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c    (revision 16958)
+++ target/linux/brcm63xx/files/arch/mips/bcm63xx/boards/board_bcm963xx.c    (working copy)
@@ -827,7 +827,7 @@
 
     /* read base address of boot chip select (0) */
     if (BCMCPU_IS_6345())
-        val = 0x1fc0000;
+        val = 0x1fc00000;
     else {
         val = bcm_mpi_readl(MPI_CSBASE_REG(0));
         val &= MPI_CSBASE_BASE_MASK;

2.

--- a/arch/mips/kernel/cpu-probe.c
+++ b/arch/mips/kernel/cpu-probe.c
@@ -154,7 +154,7 @@
     case CPU_PR4450:
     case CPU_BCM3302:
     case CPU_BCM6338:
-    case CPU_BCM6345:
+/*    case CPU_BCM6345: */
     case CPU_BCM6348:
     case CPU_BCM6358:
         cpu_wait = r4k_wait;

3. Boot Log

CFE version 1.0.37-5.4.05 for BCM96345 (32bit,SP,BE)
Copyright (C) 2000,2001,2002,2003 Broadcom Corporation.

................SDRAM check pass!
Initializing Arena.
Initializing Devices.
CPU type 0x28000: 140MHz

Total memory used by CFE:  0x80401000 - 0x80521720 (1181472)
Initialized Data:          0x8041C060 - 0x8041DB20 (6848)
BSS Area:                  0x8041DB20 - 0x8041F720 (7168)
Local Heap:                0x8041F720 - 0x8051F720 (1048576)
Stack Area:                0x8051F720 - 0x80521720 (8192)
Text (code) segment:       0x80401000 - 0x8041C05C (110684)
Boot area (physical):      0x00522000 - 0x00562000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                : 192.168.1.1:ffffff00
Host IP address                 : 192.168.1.10
Gateway IP address              :
Run from flash/host (f/h)       : h
Default host run file name      : vmlinux
Default host flash file name    : bcm96345_fs_kernel
Boot delay (0-9 seconds)        : 1
Board Id Name                   : R
Psi size in KB                  : 16
Number of MAC Addresses (1-32)  : 11
Base MAC Address                : 00:0e:a6:cc:f0:96
Ethernet PHY Type               : Internal
Memory size in MB               : 8
Dying Gasp Enable (0:Disable 1:Enable): 0

*** Press any key to stop auto run (1 seconds) ***
Auto run second count down: 110
0x80010000/2404474 0x8025b07a/151878 Entry at 0x80014330
Closing network.
Starting program at 0x80014330
Linux version 2.6.27.26 (Administrator@server00) (gcc version 4.1.2) #19 Thu Jul 23 05:10:17 2009
Detected Broadcom 0x6345 CPU revision a0
CPU frequency is 140000000 Hz
8MB of RAM installed
registering 16 GPIOs
board_bcm963xx: CFE version: 1.2.3-4.5
console [early0] enabled
CPU revision is: 00028000 (Broadcom BCM6345)
board_bcm963xx: board name: R
Determined physical RAM map:
 memory: 00800000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00000800
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00000800
On node 0 totalpages: 2048
free_area_init_node: node 0, pgdat 8023a800, node_mem_map 80282000
  Normal zone: 2032 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 2032
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 loglevel=8
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, VIPT, no aliases, linesize 16 bytes
PID hash table entries: 32 (order: 5, 128 bytes)
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 5548k/8192k available (1887k kernel code, 2644k reserved, 334k data, 128k init, 0k highmem)
Calibrating delay loop... 92.41 BogoMIPS (lpj=184832)
Mount-cache hash table entries: 512
net_namespace: 592 bytes
NET: Registered protocol family 16
Switched to high resolution mode on CPU 0
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP reno registered
NET: Registered protocol family 1
detected lzma initramfs
initramfs: LZMA lc=1,lp=2,pb=2,origSize=512
audit: initializing netlink socket (disabled)
type=2000 audit(0.728:1): initialized
squashfs: version 3.0 (2006/03/15) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  ?? 2001-2006 Red Hat, Inc.
msgmni has been set to 16
io scheduler noop registered
io scheduler deadline registered (default)
gpiodev: gpio device registered with major 254
gpiodev: gpio platform device registered with access mask FFFFFFFF
bcm63xx_uart.0: ttyS0 at MMIO 0xfffe0300 (irq = 10) is a bcm63xx_uart
console handover: boot [early0] -> real [ttyS0]
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
bcm963xx: Found an alias at 0x200000 for the chip at 0x0
 Amd/Fujitsu Extended Query Table at 0x0040
bcm963xx: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
bcm963xx_flash: Read Signature value of CFE1CFE1
bcm963xx_flash: CFE bootloader detected
bcm963xx_flash: CFE boot tag found with version 6, board type R, and tagid bc221.
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length bff00
bcm963xx_flash: Partition 2 is rootfs offset d0000 and length 120000
bcm963xx_flash: Partition 3 is nvram offset 1f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 1e0000
Creating 5 MTD partitions on "bcm963xx":
0x00000000-0x00010000 : "CFE"
0x00010100-0x000d0000 : "kernel"
mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
0x000d0000-0x001f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=1D0000, len=20000
0x001d0000-0x001f0000 : "rootfs_data"
0x001f0000-0x00200000 : "nvram"
0x00010000-0x001f0000 : "linux"
bcm63xx_wdt started, timer margin: 30 sec
Registered led device: <NULL>
leds-gpio: probe of leds-gpio.0 failed with error -16
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly.
Freeing unused kernel memory: 128k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press CTRL-C for failsafe
jffs2 not ready yet; using ramdisk
mini_fo: using base directory: /
mini_fo: using storage directory: /tmp/root
- init -

Please press Enter to activate this console.


BusyBox v1.13.4 (2009-07-13 08:43:50    ) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 KAMIKAZE (bleeding edge, r16831) -------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------
root@(none):/#

I've some problems with Pirelli Alice Business Gate 2 Plus.

The first time I boot OpenWrt, the CFE CRC check is ok. Then, while booting, OpenWrt creates the jffs2 partition printing a lot of filesystem errors and erasing the flash blocks where the jffs2 partition will be stored. The board runs fine until reboot, when the CFE check the CRC stored in the image header and finds that is different from the one he calculates, stopping the boot process. Am I missing something?

I posted the logs here:
https://forum.openwrt.org/viewtopic.php?id=21087

Why is this thread classified as "News" ? I dont see any difference compared to other threads in "General Discussion (Kamikaze)"

(Last edited by xerces8 on 23 Jul 2009, 10:41)

I think it started as a news, then evolved in a technical thread...

(Last edited by AraKs on 23 Jul 2009, 10:50)

Hello anyone say how to set the dualImage parameter?

Sorry, posts 476 to 475 are missing from our archive.