576

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

You need the devel packages (the ones that provide the appropriate header files). Maybe this helps: http://wiki.openwrt.org/doc/howto/build … g.packages

577 (edited by bouvrie 2010-04-25 10:22:15)

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

Still no go: my machine seems to have the packages already installed:

root@pc [/home/bouvrie/wrt/openwrt]# yum install gcc
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: serverbeach1.fedoraproject.org
epel                                                     | 3.4 kB     00:00
updates                                                  |  951 B     00:00
centos                                                   | 1.1 kB     00:00
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gcc-4.1.2-44.el5.i386 already installed and latest version
Nothing to do

root@pc [/home/bouvrie/wrt/openwrt]# yum install gcc-c++
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: serverbeach1.fedoraproject.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package gcc-c++-4.1.2-44.el5.i386 already installed and latest version
Nothing to do

root@pc [/home/bouvrie/wrt/openwrt]# yum install ncurses-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: serverbeach1.fedoraproject.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package ncurses-devel-5.5-24.20060715.i386 already installed and latest version
Nothing to do

root@pc [/home/bouvrie/wrt/openwrt]# yum install  zlib-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* epel: serverbeach1.fedoraproject.org
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Package zlib-devel-1.2.3-3.i386 already installed and latest version
Nothing to do

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

i'm using wl-600g, now put on backfire 10.03
could someone help me fixing VLANs config? i realy need a WAN - ethernet.
I made some changes in /etc/config/network and now i can connection only using wireless. lan and wan not working.
here's my config:

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 ipaddr   192.168.1.1
        option netmask  255.255.255.0
        option nat      1

config interface wan
        option ifname   eth1.1
        option proto    dhcp

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

Try with this...

config 'switch' 'eth1'
    option 'enable' '1'
    option 'enable_vlan' '1'
    option 'reset' '1'

config 'switch_vlan' 'vlan0'
    option 'vlan' '0'
    option 'device' 'eth1'
    option 'ports' '1 2 3 5*'

config 'switch_vlan' 'vlan1'
    option 'vlan' '1'
    option 'device' 'eth1'
    option 'ports' '0 5t'

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' '1500'
    option 'macaddr' ''
    option 'ip6addr' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

config 'interface' 'wan'
    option 'ifname' 'eth1.1'
    option 'mtu' '1492'
    option 'proto' 'dhcp'
    option 'macaddr' ''
    option 'ipaddr' ''
    option 'ip6addr' ''
    option 'netmask' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''

config 'interface' 'dsl'
    option 'ifname' 'eth0'
    option 'proto' 'dhcp'
    option 'macaddr' ''
    option 'ipaddr' ''
    option 'ip6addr' ''
    option 'netmask' ''
    option 'gateway' ''
    option 'ip6gw' ''
    option 'dns' ''
DWL-2100AP Ramponis Homepage
http://xoomer.alice.it/ramponis/

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

AraKs wrote:

@bouvrie

Board named 96348GW-A are already supported. Maybe you own a particular revision of that model.

Try to add these lines:

        # USR9108
        $(call Image/Build/CFE,$(1),96348GW-B,6348,bc300,,bc300)

before the end of the function "define Image/Build" in your target/linux/brcm63xx/image/Makefile then:
make clean
make world

Flash the resulting image and let us know. If you succeed, we can patch the file and "officially" support USR9108.

Right, I tried this on another Linux system, and finally got the dependencies sorted. Guess CentOS isn't too good to build this on... smile

When doing the make clean, I was presented with a configuration screen. I changed the target to Brcm63xx. Is there anything else I should configure/change before compiling the firmware?

581 (edited by bouvrie 2010-05-23 14:51:21)

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

Another update, I've hacked the kernel a bit, duplicating the 96348GW-A board into a 96348GW-B board record. The resulting firmware (openwrt-bc300-squashfs-cfe.bin) now flashes & boots:

Total memory used by CFE:  0x80401000 - 0x80524F90 (1195920)
Initialized Data:          0x8041C3B0 - 0x8041E720 (9072)
BSS Area:                  0x8041E720 - 0x80422F90 (18544)
Local Heap:                0x80422F90 - 0x80522F90 (1048576)
Stack Area:                0x80522F90 - 0x80524F90 (8192)
Text (code) segment:       0x80401000 - 0x8041C3A4 (111524)
Boot area (physical):      0x00525000 - 0x00565000
Relocation Factor:         I:00000000 - D:00000000

Board IP address                  : 192.168.1.251
Host IP address                   : 192.168.1.100
Gateway IP address                : 192.168.1.254
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)          : 3
Board Id Name                     : 96348GW-B
Psi size in KB                    : 24
Number of MAC Addresses (1-32)    : 11
Base MAC Address                  : 00:14:c1:0e:76:31
Ethernet PHY Type                 : External Switch Using Reverse MII
Memory size in MB                 : 16
Country code                      : FR

*** Press any key to stop auto run (3 seconds) ***
Auto run second count down: 0
Code Address: 0x80010000, Entry Address: 0x80010000
Decompression OK!
Entry at 0x80010000
Closing network.
Starting program at 0x80010000
Linux version 2.6.32.12 (bouvrie@machine) (gcc version 4.3.3 (GCC) ) #3 Sat May 22 23:22:35 CEST 2010
Detected Broadcom 0x6348 CPU revision a2
CPU frequency is 256 MHz
16MB of RAM installed
registering 37 GPIOs
board_bcm963xx: CFE version: 1.0.37-1.5
bootconsole [early0] enabled
CPU revision is: 00029107 (Broadcom BCM6348)
board_bcm963xx: board name: 96348GW-B
Determined physical RAM map:
 memory: 01000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00001000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00001000
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200
PID hash table entries: 64 (order: -4, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Primary instruction cache 16kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 8kB, 2-way, VIPT, no aliases, linesize 16 bytes
Memory: 13472k/16384k available (2057k kernel code, 2912k reserved, 366k data, 140k init, 0k highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Calibrating delay loop... 254.97 BogoMIPS (lpj=509952)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
registering PCI controller with io_map_base unset
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
PCI: Enabling device 0000:00:01.0 (0000 -> 0002)
ssb: Sonics Silicon Backplane found on PCI device 0000:00:01.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
audit: initializing netlink socket (disabled)
type=2000 audit(0.296:1): initialized
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
msgmni has been set to 26
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 [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
bcm963xx_flash: 0x00400000 at 0x1fc00000
bcm963xx: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
bcm963xx: Swapping erase regions for broken CFI table.
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 and board type 96348GW-B
bcm963xx_flash: Partition 0 is CFE offset 0 and length 10000
bcm963xx_flash: Partition 1 is kernel offset 10100 and length dff00
bcm963xx_flash: Partition 2 is rootfs offset f0000 and length 300000
bcm963xx_flash: Partition 3 is nvram offset 3f0000 and length 10000
bcm963xx_flash: Partition 4 is linux offset 10000 and length 3e0000
bcm963xx_flash: Spare partition is 2d0000 offset and length 120000
Creating 5 MTD partitions on "bcm963xx":
0x000000000000-0x000000010000 : "CFE"
0x000000010100-0x0000000f0000 : "kernel"
mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
0x0000000f0000-0x0000003f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=2D0000, len=120000
0x0000002d0000-0x0000003f0000 : "rootfs_data"
0x0000003f0000-0x000000400000 : "nvram"
0x000000010000-0x0000003f0000 : "linux"
bcm63xx_enet MII bus: probed
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 on device 31:2.
Freeing unused kernel memory: 140k freed
Please be patient, while OpenWrt loads ...
- preinit -
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -

Please press Enter to activate this console. bcm63xx_enet bcm63xx_enet.0: attached PHY at address 1 [Broadcom BCM63XX (1)]
device eth0.0 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.0) entering forwarding state
Generic kernel compatibility enabled based on linux-next next-20100113
cfg80211: Calling CRDA to update world regulatory domain
roboswitch: Probing device eth0: Failed to enable switch
roboswitch: Probing device eth1: found a 5325! It's a 5350.
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
b43-phy0: Broadcom 4318 WLAN found (core revision 9)
Registered led device: b43-phy0::tx
Registered led device: b43-phy0::rx
Registered led device: b43-phy0::radio
Broadcom 43xx driver loaded [ Features: PL, Firmware-ID: FW13 ]
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
nf_conntrack version 0.5.0 (212 buckets, 848 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
IMQ driver loaded successfully.
        Hooking IMQ before NAT on PREROUTING.
        Hooking IMQ after NAT on POSTROUTING.
xt_time: kernel timezone is -0000
ip_set version 4 loaded
arp_tables: (C) 2002 David S. Miller



BusyBox v1.16.1 (2010-05-22 20:03:52 CEST) 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, r21404) ------------------
  * 10 oz Vodka       Shake well with ice and strain
  * 10 oz Triple sec  mixture into 10 shot glasses.
  * 10 oz lime juice  Salute!
 ---------------------------------------------------

root@OpenWrt:/#

However, the next step is getting the network up and running. I checked the network configuration documentation, but DHCP doesn't seem to give the device an IP address and configuring a static IP doesn't seem to reach beyond the local device itself: it can't ping to other network clients nor can it receive pings:

root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:14:C1:0E:76:31
          inet addr:192.168.1.251  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:402 (402.0 B)

eth0      Link encap:Ethernet  HWaddr 00:14:C1:0E:76:31
          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

eth0.0    Link encap:Ethernet  HWaddr 00:14:C1:0E:76:31
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

eth0.1    Link encap:Ethernet  HWaddr 00:14:C1:0E:76:31
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:45 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


root@OpenWrt:/# ping 192.168.1.251
PING 192.168.1.251 (192.168.1.251): 56 data bytes
64 bytes from 192.168.1.251: seq=0 ttl=64 time=1.292 ms
64 bytes from 192.168.1.251: seq=1 ttl=64 time=0.700 ms
^C
--- 192.168.1.251 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.700/0.996/1.292 ms
root@OpenWrt:/# ping 192.168.1.254
PING 192.168.1.254 (192.168.1.254): 56 data bytes
^C
--- 192.168.1.254 ping statistics ---
4 packets transmitted, 0 packets received, 100% packet loss

Here is the configuration:

[/etc/config/network:]
# Copyright (C) 2008 OpenWrt.org

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' 'eth0.0'
     option 'proto' 'static'
     option 'ipaddr' '192.168.1.251'
     option 'netmask' '255.255.255.0'

config interface wan
        option ifname   eth0.1
        option proto    dhcp
        option hostname USRRouter




[/etc/config/dhcp:]
config dnsmasq
        option domainneeded     1
        option boguspriv        1
        option filterwin2k      '0'  #enable for dial on demand
        option localise_queries 1
        option local    '/lan/'
        option domain   'lan'
        option expandhosts      1
        option nonegcache       0
        option authoritative    1
        option readethers       1
        option leasefile        '/tmp/dhcp.leases'
        option resolvfile       '/tmp/resolv.conf.auto'
        #list server            '/mycompany.local/1.2.3.4'
        #option nonwildcard     1
        #list interface         br-lan
        #list notinterface      lo

config dhcp lan
        option interface        lan
        option start    100
        option limit    150
        option leasetime        12h

config dhcp wan
        option interface        wan
        option ignore   1

My network details:
192.168.1.254 = gateway/dns/DHCP server
192.168.1.* = clients
192.168.1.251 (should be) USR

Any suggestions?

582 (edited by martonmiklos 2010-05-25 10:06:39)

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

Hello all,

I have talked about the Netgear DG834GT's USB port before here.

Unfortunetelly the port is still not working. Someone else had been modded an another BCM6348 based router with USB port, and he wrote that, he had to pull up a pin to enable the USB port.

There is pinout to the BCM6348 here:
http://www.f-x.fr/wikini/wakka.php?wiki=Bcm6348PinOut

I have desoldered the CPU, and traced the USB related pins.
These have been arranged like this

                               USB0_PWRFLT        AC13
                               USB0_PWRON         AD13
USB_ACTIVE         AE12        USB0_DP            AE13    USB1_DN            AE14
USB_RDY            AF12        USB0_DN            AF13    USB1_DP            AF14

Only the USB host port's D+, D- and the powerfault is wired out from the pads.
The powerfault seems to be output from the BGA, because I cannot measure any fixed voltage on it without the CPU.

The BGA pads, are not arranged as it shown in the ascii art, because it has a blank place in the center, but it does not matter. I have checked
several pads, and I should said that the pinout is correct. I have tracked a several GPIO pins too .

If anyone have an idea what pins should I trace, or measure let me know!
Thanks,
Miklós

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

Hi Guys

I've built the backfire image for a D-Link DSL2740B and downloaded the file to my PC. I'm trying to get it flashed onto the router without having to JTAG it. Has anybody managed to either flash via the standard web interface, or via the CFE web interface after holding down the reset button while powering on?

I need a way of flashing these devices without having to rip them apart :-)

Cheers, Paul

584 (edited by dDaYb 2010-06-14 21:00:23)

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

Hello guys
I have Netgear dg834gtb (it is the same as Netgear DG834gt but Annex B as I know).
I connected it via serial, but have no luck due to unredable CFE output (here is the thread)
I connected it via jtag, here is -probeonly:

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD 
==============================================

Probing bus ... Done

Instruction Length set to 5

CPU Chip ID: 00000110001101001000000101111111 (0634817F)
*** Found a Broadcom BCM6348 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Done
Halting Processor ... <Processor Entered Debug Mode!> ... Done
Clearing Watchdog ... Done

Probing Flash at (Flash Window: 0x1fc00000) ... 
Done

Flash Vendor ID: 00000000000000000010001011011010 (000022DA)
Flash Device ID: 00000000000000000010001000101010 (0000222A)
*** Found a W19B(L)320SB   2Mx16 BotB  (4MB) Flash Chip ***

    - Flash Chip Window Start .... : 1fc00000
    - Flash Chip Window Length ... : 00400000
    - Selected Area Start ........ : 00000000
    - Selected Area Length ....... : 00000000



 *** REQUESTED OPERATION IS COMPLETE ***

here is my netgear dg834gtb CFE backup
here is original firmware

What is the esiest way to upload openwrt to this box?
What should I change in netgear DG834GT CFE I found few posts erlier to adapt it to my router and how?
or how to edit openwrt image to upload it via original web-interface?
Thank you !

I had flashed CFE found in this forum and it did not work, after it I flashed back my backup CFE everything was fine.. but then I have flashed other CFE and now it doesn't boot and I can't flash anything: jtag just freezes
./tjtag3 -probeonly /wiggler

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD 
==============================================

Probing bus ... Done

Instruction Length set to 5

CPU Chip ID: 00000110001101001000000101111111 (0634817F)
*** Found a Broadcom BCM6348 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Done

or
./tjtag3 -probeonly /wiggler /noemw /nocwd /bypass

==============================================
 EJTAG Debrick Utility v3.0.1 Tornado-MOD 
==============================================

Probing bus ... Done

Instruction Length set to 5

CPU Chip ID: 00000110001101001000000101111111 (0634817F)
*** Found a Broadcom BCM6348 Rev 1 CPU chip ***

    - EJTAG IMPCODE ....... : 00000000100000000000100100000100 (00800904)
    - EJTAG Version ....... : 1 or 2.0
    - EJTAG DMA Support ... : Yes
    - EJTAG Implementation flags: R4k MIPS32

Issuing Processor / Peripheral Reset ... Done
Enabling Memory Writes ... Skipped
Halting Processor ... <Processor did NOT enter Debug Mode!> ... Done
Clearing Watchdog ... Skipped

Probing Flash at (Flash Window: 0x1fc00000) ...

whichever options I use it just freezes... is it dead? )

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

bouvrie, try to configure switch first, like ramponis wrote earlier.
Also, seems like you have DHCP server on LAN iface, not a DHCP client. Though static IP should work.

586 (edited by davygravy 2010-07-05 13:40:59)

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

I've got a CFE a few questions regarding a router that is closely related to the BCM6358 units already support. 

I'm not sure what my next step should  be... and this is where I stand.  Will it need a new CFE, or is it a matter of just finding the correct values for the board and configure it?   

The CFE is not a perfect fit, and it seems like it will either need a new CFE, or to have the current one (provided by florian) configured.   Both JTAG and serial access are working.  While the router has a BCM96359, it is an established fact that the 6358 and 6359 are essentially just full and lite (minus ADSL) versions.

I've JTAGged in the CFE that florian provided here (a 6358 cfe, but the 6359 is just a lite version of the 6358. The both the original bootloader and the kernel config of the original firmware list it as a 6358, anyway, also.}

When powered on I get this via serial console:

CFE version 1.0.37-102.1 for BCM96358 (32bit,SP,BE)                             
Build Date: Thu Jun 12 14:54:55 PDT 2008 (root@dhcp-10-12-160-156)              
Copyright (C) 2000-2008 Broadcom Corporation.                                   
                                                                                
Parallel flash device id 257e is not supported.                                 
                                                                                
*** Board is not initialized properly ***                                       
                                                                                
*** Upgrading NVRAM (version -16711936 to version 5) ***                        
                                                                                
                                                                                
*** Board is not initialized properly ***                                       
                                                                                
Press:  <enter> to use current value                                            
        '-' to go previous parameter                                            
        '.' to clear the current value                                          
        'x' to exit this command                                                
96358VW2         ------- 0                                                      
96358VW          ------- 1                                                      
96358GWVG        ------- 2                                                      
96358IVWG        ------- 3                                                      
96358SV          ------- 4                                                      
96358ADWG        ------- 5                                                      
Board Id (0-5)                    :  ?  5                                       
Number of MAC Addresses (1-32)    :  -16711936  3                               
Base MAC Address                  :  ff:00:ff:00:ff:00  00183ad51245            
PSI Size (1-64) KBytes            :  -16711936  12                              
Main Thread Number [0|1]          :  -16711936  0                               
Auto-negotiation timed-out                                                      
10 MB Half-Duplex (assumed)                                                     
CPU type 0x2A010: 300MHz, Bus: 133MHz, Ref: 64MHz                               
CPU running TP0                                                                 
Total memory: 33554432 bytes (32MB)                                             
Boot Address 0xbe000000                                                         
                                                                                
                                                                                
Use default boot line parameters: e=192.168.1.1:ffffff00 h=192.168.1.100 g= r=f 
*** Upgrading NVRAM (version 16713983 to version 5) ***                         
                                                                                
                                                                                
** Flash image not found. **                                                    
                                                                                
**Exception 32: EPC=00FF01FF, Cause=00FF00FF (VCED     )                        
                RA=01FF02FF, VAddr=00FF00FF                                     
                                                                                
        0  ($00) = 00000000     AT ($01) = 80410890                             
        v0 ($02) = 8052800C     v1 ($03) = 00000001                             
        a0 ($04) = 8052800C     a1 ($05) = 00000001                             
        a2 ($06) = 8040EF6C     a3 ($07) = 08FF00FF                             
        t0 ($08) = 00FF00FF     t1 ($09) = 0A2A2A20                             
        t2 ($10) = 6820696D     t3 ($11) = 6E6F7420                             
        t4 ($12) = 642E202A     t5 ($13) = 00FF00FF                             
        t6 ($14) = 00FF68FF     t7 ($15) = 04FF00FF                             
        s0 ($16) = 08FF20FF     s1 ($17) = 00FF20FF                             
        s2 ($18) = 02FF00FF     s3 ($19) = 00FF00FF                             
        s4 ($20) = 01FF03FF     s5 ($21) = 50FF00FF                             
        s6 ($22) = 00FF20FF     s7 ($23) = 00FF00FF                             
        t8 ($24) = 00FF80FF     t9 ($25) = 00FF00FF                             
        k0 ($26) = 00FF08FF     k1 ($27) = 04FF00FF                             
        gp ($28) = 00FF01FF     sp ($29) = 30FF00FF                             
        fp ($30) = 00FF00FF     ra ($31) = 01FF02FF
link626 wrote:

I just bought a westell 7501 router. Will this work?
specs:
Wireless chip BCM4318EKFBG
Switch BCM5325EKQMG
CPU BCM6359SKFBG
DDR memory EM6AA160TS-5G
Flash UEB219PC and UEB150QA
...

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

Here is a tarball of some recently released CFE's for the broadcom 63xx units.
http://dl.dropbox.com/u/1015928/hackystuff/cfe.zip


I haven't tested any of them yet, but they appear to be updates (slightly larger in size than the ones that florian posted earlier in the broadcom 63xx thread here ).


The four cfe's are taken from the gpl tarball for the ActionTec V1000H.  This is the standard gpl tarball, and it is rather hefty : 123MB.  Get the entire gpl tarball here, if you are interested.   (search for V1000H on the page below)
http://opensource.actiontec.com/

588

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

Hi,
I got a little bit lost about the status of this port. Is WiFi currently working with Backfire? Is there any way to use the binary DSL driver from the original firmware?

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

NiQ:
1. WiFi works, though it depends on platform specific details. But AFAIK on 95% of Broadcom boards it works.
2. No, binary ADSL drivers dont work.

590 (edited by bulanula 2010-11-14 16:58:11)

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

Come on guys, we NEED to get this ADSL working. Here in the UK, ADSL is pretty much the only way to get internet ( besides Virgin Media or BT Infinity ) and I need OpenWRT coupled with a nice ADSL router. Can't we just put the binary blob into the firmware like the neufbox project ( or take it from them ? ) for now and still work on a proper solution in the meantime ?

Thanks for all your efforts so far but let's not let this hope die, please !

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

bulanula wrote:

Come on guys, we NEED to get this ADSL working. Here in the UK, ADSL is pretty much the only way to get internet ( besides Virgin Media or BT Infinity ) and I need OpenWRT coupled with a nice ADSL router.

The ifxmips and ar7 ports have opensourced ADSL drivers. How about using a device supported by them?

balanula wrote:

Can't we just put the binary blob into the firmware like the neufbox project ( or take it from them ? ) for now and still work on a proper solution in the meantime ?

We can't because the binary blob isn't compatible with the kernel version used by Openwrt.

KM

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

So does that mean that we cannot make ADSL work unless we reverse engineer these drivers ? That will never happen in a reasonable amount of time IMHO.

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

bulanula wrote:

So does that mean that we cannot make ADSL work unless we reverse engineer these drivers ?

Yes.

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

OK, so then time to move on guys, I guess.

595 (edited by ciaby 2010-11-21 13:43:16)

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

I tried to compile the latest trunk to reflash my Davolink DV-2020 (same as the DV201AMR) and i couldn't manage to get it past the kernel booting.
The problem seems to be in the mtd maps.
I found this patch from LinuxInside: https://dev.openwrt.org/ticket/4433
But of course it doesn't work on the new kernel... So, i re-made the patch, it now applies to the latest trunk.
I'm pretty sure that there is a better way to make it work (and it probably break other builds), but for now is the only way to make it work on the Davolink router.
The patch is here: http://www.brokenbydesign.org/Davolink2.patch
Please have a look and test it :-)
Thanks a lot to all the people who made this possible!

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

ciaby,what are you using your router for if ADSL does not work ?

I'm just curious how useful the device is without ADSL working.

597

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

bulanula wrote:

ciaby,what are you using your router for if ADSL does not work ?

I'm just curious how useful the device is without ADSL working.

For now, i just want to use it as a AP. Even if the ADSL part doesn't work, it's still useful. 4 Ethernet ports, Wireless, maybe a usb host port ... (if i find the time to solder the connector and the pull up resistor) smile
Anyway, who is still using ADSL? Get a proper fiber tongue

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

Well like pretty much most of the UK. LOL

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

Ciaby,

Thanks for your patch. I have a few DV2020 laying arround, so I will give it a try any time soon.
Regarding USB. I got it working. Still have to properly document the needed changes.

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

Is this Davolink any good RomMon ?