OpenWrt Forum Archive

Topic: Support for DSL-2640B E1

The content of this topic has been archived on 26 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Will OpenWrt work on this model?
Front Back

CFE version 1.0.37-106.5 for BCM96328 (32bit,SP,BE)

Build Date: Thu Apr 28 14:41:22 CST 2011 (root@micheal-desktop)

Copyright (C) 2000-2009 Broadcom Corporation.



HS Serial flash device: name MX25L64, id 0xc217 size 8192KB

Total Flash size: 8192K with 128 sectors

Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz

Main Thread: TP0

Memory Test Passed

Total Memory: 67108864 bytes (64MB)

Boot Address: 0xb8000000



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  

Board Id (0-5)                    : AW4337AU  

Number of MAC Addresses (1-32)    : 11  

Base MAC Address                  : 

PSI Size (1-128) KBytes            : 128  

Enable Backup PSI [0|1]           : 0  

System Log Size (0-256) KBytes    : 0  

Main Thread Number [0|1]          : 0

Thanks.

This is Broadcom 6328 and support has been recently added to this platform. Can you open the device in order to give more info about the Wireless NIC and the switch? I'm interested in this too, although I have a D-Link DSL-2740B Revision F1 which is Broadcom 6328 too and there are already firmware images for this device.

(Last edited by corrupted on 7 Aug 2012, 16:45)

Hey, the NIC is AR 9285L and the switch is BCM 63281KFBG. Just noticed this line in my serial read-out: "Run from flash/host (f/h)    : f ", this means that with a modified CFE I could load a test image from a server, right?

In case someone else is interested in this:
     -router "works" with an image compiled from latest sources (board type needs to be added to ... /boards/board_bcm963xx.c)
     -switch is not recognized
     -flashing can be done via recovery mode

CFE version 1.0.37-106.5 for BCM96328 (32bit,SP,BE)

Build Date: Thu Apr 28 14:41:22 CST 2011 (root@micheal-desktop)

Copyright (C) 2000-2009 Broadcom Corporation.



HS Serial flash device: name MX25L64, id 0xc217 size 8192KB

Total Flash size: 8192K with 128 sectors

Chip ID: BCM6328B0, MIPS: 320MHz, DDR: 320MHz, Bus: 160MHz

Main Thread: TP0

Memory Test Passed

Total Memory: 67108864 bytes (64MB)

Boot Address: 0xb8000000



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  

Board Id (0-5)                    : AW4337AU  

Number of MAC Addresses (1-32)    : 11  

Base MAC Address                  :

PSI Size (1-128) KBytes            : 128  

Enable Backup PSI [0|1]           : 0  

System Log Size (0-256) KBytes    : 0  

Main Thread Number [0|1]          : 0  



*** Press any key to stop auto run (1 seconds) ***

Auto run second count down: 0

Booting from only image (0xb8010000) ...

Code Address: 0x80010000, Entry Address: 0x80010000

LZMA: Prossible old LZMA format, trying to decompress..

Decompression OK!

Entry at 0x80010000

Closing network.

Disabling Switch ports.

Flushing Receive Buffers...

0 buffers found.

Closing DMA Channels.

Starting program at 0x80010000

[    0.000000] Linux version 3.3.8 (user@buntu) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #3 Sat Aug 11 19:10:45 CEST 2012

[    0.000000] Detected Broadcom 0x6328 CPU revision 10b0

[    0.000000] CPU frequency is 320 MHz

[    0.000000] 64MB of RAM installed

[    0.000000] registering 32 GPIOs

[    0.000000] gpiochip_add: registered GPIOs 0 to 31 on device: bcm63xx-gpio

[    0.000000] board_bcm963xx: Boot address 0xb8000000

[    0.000000] board_bcm963xx: CFE version: 1.0.37-106.5

[    0.000000] bootconsole [early0] enabled

[    0.000000] CPU revision is: 0002a075 (Broadcom BMIPS4350)

[    0.000000] board_bcm963xx: board name: AW4337AU

[    0.000000] Determined physical RAM map:

[    0.000000]  memory: 04000000 @ 00000000 (usable)

[    0.000000] Initrd not found or empty - disabling initrd

[    0.000000] Zone PFN ranges:

[    0.000000]   Normal   0x00000000 -> 0x00004000

[    0.000000] Movable zone start PFN for each node

[    0.000000] Early memory PFN ranges

[    0.000000]     0: 0x00000000 -> 0x00004000

[    0.000000] Reserving 0MB of memory at 0MB for crashkernel

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256

[    0.000000] Kernel command line:  root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200

[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)

[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 16 bytes.

[    0.000000] Primary data cache 32kB, 2-way, VIPT, cache aliases, linesize 16 bytes

[    0.000000] Memory: 61848k/65536k available (2231k kernel code, 3688k reserved, 409k data, 200k init, 0k highmem)

[    0.000000] NR_IRQS:128

[    0.000000] Calibrating delay loop... 318.46 BogoMIPS (lpj=636928)

[    0.036000] pid_max: default: 32768 minimum: 301

[    0.040000] Mount-cache hash table entries: 512

[    0.048000] NET: Registered protocol family 16

[    0.276000] registering PCI controller with io_map_base unset

[    0.288000] bio: create slab <bio-0> at 0

[    0.292000] PCI host bridge to bus 0000:00

[    0.296000] pci_bus 0000:00: root bus resource [mem 0x10f00000-0x11efffff]

[    0.300000] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]

[    0.304000] pci 0000:00:00.0: BAR 8: assigned [mem 0x10f00000-0x10ffffff]

[    0.308000] pci 0000:01:00.0: BAR 0: assigned [mem 0x10f00000-0x10f0ffff 64bit]

[    0.312000] pci 0000:00:00.0: PCI bridge to [bus 01-01]

[    0.316000] pci 0000:00:00.0:   bridge window [mem 0x10f00000-0x10ffffff]

[    0.320000] PCI: Enabling device 0000:00:00.0 (0000 -> 0002)

[    0.324000] Switching to clocksource MIPS

[    0.332000] NET: Registered protocol family 2

[    0.336000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

[    0.344000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)

[    0.352000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

[    0.360000] TCP: Hash tables configured (established 2048 bind 2048)

[    0.368000] TCP reno registered

[    0.368000] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.376000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.384000] NET: Registered protocol family 1

[    0.388000] audit: initializing netlink socket (disabled)

[    0.396000] type=2000 audit(0.396:1): initialized

[    0.400000] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[    0.408000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.

[    0.420000] msgmni has been set to 120

[    0.424000] io scheduler noop registered

[    0.428000] io scheduler deadline registered (default)

[    0.436000] bcm63xx_uart.0: ttyS0 at MMIO 0xb0000100 (irq = 36) is a bcm63xx_uart

[    0.444000] console [ttyS0] enabled, bootconsole disabled

[    0.444000] console [ttyS0] enabled, bootconsole disabled

[    0.460000] m25p80 spi0.0: found mx25l6405d, expected m25p80

[    0.464000] m25p80 spi0.0: mx25l6405d (8192 Kbytes)

[    0.472000] bcm63xxpart: CFE boot tag found with version 6 and board type AW4337AU

[    0.480000] bcm63xxpart: Partition 0 is CFE offset 0 and length 10000

[    0.484000] bcm63xxpart: Partition 1 is kernel offset 10100 and length eff00

[    0.492000] bcm63xxpart: Partition 2 is rootfs offset 100000 and length 6e0000

[    0.500000] bcm63xxpart: Partition 3 is nvram offset 7e0000 and length 20000

[    0.508000] bcm63xxpart: Partition 4 is linux offset 10000 and length 7d0000

[    0.516000] bcm63xxpart: Spare partition is offset 360004 and length 47fffc

[    0.524000] 5 bcm63xxpart partitions found on MTD device spi0.0

[    0.528000] Creating 5 MTD partitions on "spi0.0":

[    0.532000] 0x000000000000-0x000000010000 : "CFE"

[    0.540000] 0x000000010100-0x000000100000 : "kernel"

[    0.548000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only

[    0.560000] 0x000000100000-0x0000007e0000 : "rootfs"

[    0.568000] mtd: partition "rootfs" set to be root filesystem

[    0.576000] split_squashfs: no squashfs found in "spi0.0"

[    0.580000] 0x0000007e0000-0x000000800000 : "nvram"

[    0.588000] 0x000000010000-0x0000007e0000 : "linux"

[    0.604000] bcm63xx-wdt bcm63xx-wdt:  started, timer margin: 30 sec

[    0.612000] TCP cubic registered

[    0.616000] NET: Registered protocol family 17

[    0.620000] 8021q: 802.1Q VLAN Support v1.8

[    1.540000] JFFS2 notice: (1) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.

[    1.556000] VFS: Mounted root (jffs2 filesystem) readonly on device 31:2.

[    1.568000] Freeing unused kernel memory: 200k freed

awk: /proc/cpuinfo: No such file or directory

[    4.256000] roboswitch: Probing device eth0: Failed to enable switch

[    4.264000] roboswitch: Probing device eth1: No such device

[    4.272000] roboswitch: Probing device eth2: No such device

[    4.276000] roboswitch: Probing device eth3: No such device

- preinit -

Press the [f] key and hit [enter] to enter failsafe mode

- regular preinit -

- init -



Please press Enter to activate this console. [   10.496000] Compat-wireless backport release: compat-wireless-2012-07-13

[   10.500000] Backport based on wireless-testing.git master-2012-07-16

[   10.508000] compat.git: wireless-testing.git

[   10.724000] cfg80211: Calling CRDA to update world regulatory domain

[   10.728000] cfg80211: World regulatory domain updated:

[   10.736000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)

[   10.744000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   10.752000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[   10.760000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)

[   10.768000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   10.776000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)

[   10.920000] There is already a switch registered on the device 'eth0'

[   10.928000] roboswitch: Probing device eth1: No such device

[   10.932000] roboswitch: Probing device eth2: No such device

[   10.936000] roboswitch: Probing device eth3: No such device

[   12.068000] Button Hotplug driver version 0.4.1

[   12.176000] PPP generic driver version 2.4.2

[   12.300000] ip_tables: (C) 2000-2006 Netfilter Core Team

[   12.520000] NET: Registered protocol family 24

[   12.596000] nf_conntrack version 0.5.0 (969 buckets, 3876 max)

[   12.976000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled.0/input/input0

I update this thread to report my "experiments".

I firstly flashed (via CFE recovery) the Chaos Calmer firmware image made for model DSL-2740B F1: booted correctly but without wifi (as I expected: DSL-2640B E1 uses Atheros 9285L while DSL-2740 has Atheros AR9287).

Then I built a custom image from LEDE trunk; again I used "brcm63xx-generic-DSL274XB-F1-EU" as target image but I added ath9k package: et voilà, perfectly functioning wifi (N 150mbps)!

I've also tested the switch which is OK.

The only other test I've made is on LEDs configuration.

Is it possible to add a target image specific to this board?

What else I have to (I could) test/verify?

PLEASE HELP ME WITH THE WIKI PAGE OF THIS MODEL! wink

(Last edited by M3m3nt0 on 26 May 2017, 23:26)

M3m3nt0 wrote:

I update this thread to report my "experiments".

(...)I've also tested the switch which is OK.

I also confirm that VLAN support is OK! smile
(I actually use a LAN port as WAN)

Is it possible to add a target image specific to this board?

I renew the question...
Could I do something?

and again..
if you can, please help me with the WIKI! wink

You shouldn't cheat when creating new dataentry pages.

tmo26 wrote:

You shouldn't cheat when creating new dataentry pages.

?
I don't understand...

You shouldn't create dataentries when the device is not supported.
Creating a dataentry as supported and afterwards removing the supported status is what I would call cheating.

https://wiki.openwrt.org/toh/hwdata/d-l … l-2640b_e1


From https://wiki.openwrt.org/meta/create_ne … ntry_page:

Unsupported device

Unsupported devices can not be added to the ToH. Please come back when the device is supported.

To save the hardware specs, you can either post them in the OpenWrt forum, or create a page at https://wikidevi.com/.

tmo26 wrote:

You shouldn't create dataentries when the device is not supported.
Creating a dataentry as supported and afterwards removing the supported status is what I would call cheating.

https://wiki.openwrt.org/toh/hwdata/d-l … l-2640b_e1


From https://wiki.openwrt.org/meta/create_ne … ntry_page:

Unsupported device

Unsupported devices can not be added to the ToH. Please come back when the device is supported.

To save the hardware specs, you can either post them in the OpenWrt forum, or create a page at https://wikidevi.com/.

You're right, but this device works with OpenWrt...what does mean exactly "supported"?

And how could I contribute to make it officially supported? smile

With which firmware image does this device work with OpenWrt?

tmo26 wrote:

With which firmware image does this device work with OpenWrt?

LEDE trunk r4208

https://s22.postimg.org/v2v4jl0zx/Schermata_del_2017-06-09_01-00-48.png

OK, so it does not work with OpenWrt, but with LEDE.
What is the name of the firmware image and where can it be downloaded?

(Last edited by tmo26 on 9 Jun 2017, 07:32)

tmo26 wrote:

OK, so it does not work with OpenWrt, but with LEDE.

As I wrote I've tried OpenWrt Chaos Calmer, then LEDE.
However, it's quite the same ...or not?

What is the name of the firmware image and where can it be downloaded?

I compiled a custom image using the build system and selecting "brcm63xx-generic-DSL274XB-F1-EU" as target.

OK, to summarize:

- DSL-2640B E1 is working with 15.05.1 image of DSL-2740B F1, except wifi
- DSL-2640B E1 is working with custom LEDE snapshot image (based on DSL-2740B F1, with ath9k added), including wifi

Effects on OpenWrt dataentry:
- Supported by OpenWrt 15.05.1
- Unsupported: Wifi
- Firmware OpenWrt Install URL = https://downloads.openwrt.org/chaos_cal … fs-cfe.bin
- Comment: "Works with DSL-2740B F1 image"

Effects on LEDE dataentry:
No dataentry yet, since device is not yet officially supported

To get this device officially supported, create a patch and submit it to the LEDE development mailing list.
Once there is a git commit that adds support for this device, and if there is an official firmware image available, a dataentry can be created. I'm watching the commits closely and create new dataentries if support is added, so nothing that you need to take care of.

Would you please share your custom firmware that worked? Thanks. Is there any news?

The discussion might have continued from here.