OpenWrt Forum Archive

Topic: Bootloader/Image for a DLink DWL-2100AP

The content of this topic has been archived between 26 Mar 2018 and 5 May 2018. Unfortunately there are posts – most likely complete pages – missing.

This device have extremely low RAM. I use lightweight BB image with telnet and hostapd only, without luci and even dropbear.
Remember to shutdown wifi (hostapd) during sysupgrade.

hmm, i run "top" to see what take resources.
big problems with CPU - sometimes luci and dropbear take 99% but sometimes system takes 46%
Seems CPU  is very slow too.
Another problem.
When i first flashed router wifi was switched off and wifi led doesn't shined. I tried enable wifi but router stuck and I hard reseted him. Now led shine constantly. I tried disable, reset to default config and flash - shine...

(Last edited by Vl@d on 9 Oct 2014, 14:38)

Only power led (called "wlan") supported for default openwrt firmware.
CPU is ok, but memory very small and router runs out of it.

in my case:
power led - shine constantly
lan led - show ethernet status
wlan - shines constantly in a few seconds after switching on

Well, you can run "wifi down" and led will light again smile

Yes it's true smile

I get a similar bug at the stock image

kernel(1 114 112) + rootfs(2 490 368) + bootloader(167 464) = 3 771 944
flash is 32Mbit = 4Mbyte


root@OpenWrt:/# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00050000 00010000 "RedBoot"
mtd1: 00110000 00010000 "linux"
mtd2: 00260000 00010000 "rootfs"
mtd3: 00030000 00010000 "rootfs_data"
mtd4: 00001000 00001000 "RedBoot config"
mtd5: 00010000 00010000 "FIS directory"
mtd6: 00020000 00010000 "boardconfig"

dmsg

[    0.000000] Linux version 3.10.49 (bb@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42625) ) #3 Wed Oct 1 14:34:54 CEST 2014
[    0.000000] ar5312-gpio: registered 8 GPIOs
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001800a (MIPS 4Kc)
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x00ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x00ffffff]
[    0.000000] On node 0 totalpages: 4096
[    0.000000] free_area_init_node: node 0, pgdat 80302b80, node_mem_map 8036f000
[    0.000000]   Normal zone: 32 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 4096 pages, LIFO batch:0
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,9600 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 12668k/16384k available (2345k kernel code, 3716k reserved, 547k data, 172k init, 0k highmem)
[    0.000000] NR_IRQS:128
[    0.080000] Calibrating delay loop... 179.60 BogoMIPS (lpj=898048)
[    0.090000] pid_max: default: 32768 minimum: 301
[    0.100000] Mount-cache hash table entries: 512
[    0.120000] NET: Registered protocol family 16
[    0.200000] bio: create slab <bio-0> at 0
[    0.230000] Switching to clocksource MIPS
[    0.260000] NET: Registered protocol family 2
[    0.320000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[    0.400000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.470000] TCP: Hash tables configured (established 512 bind 512)
[    0.550000] TCP: reno registered
[    0.590000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.650000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.730000] NET: Registered protocol family 1
[    0.780000] PCI: CLS 0 bytes, default 16
[    0.780000] Radio config found at offset 0x10000 (0x100)
[    0.870000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.940000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    1.060000] msgmni has been set to 24
[    1.100000] io scheduler noop registered
[    1.150000] io scheduler deadline registered (default)
[    1.210000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[    1.310000] serial8250: ttyS0 at MMIO 0x1c000000 (irq = 37) is a 16550A
[    1.390000] console [ttyS0] enabled, bootconsole disabled
[    1.570000] physmap platform flash device: 00800000 at 1e000000
[    1.640000] physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank. Manufacturer ID 0x000001 Chip ID 0x001a00
[    1.760000] physmap-flash.0: Found an alias at 0x400000 for the chip at 0x0
[    1.760000] Amd/Fujitsu Extended Query Table at 0x0040
[    1.830000]   Amd/Fujitsu Extended Query version 1.3.
[    1.890000] number of CFI chips: 1
[    1.930000] Searching for RedBoot partition table in physmap-flash.0 at offset 0x3d0000
[    2.050000] 6 RedBoot partitions found on MTD device physmap-flash.0
[    2.120000] Creating 6 MTD partitions on "physmap-flash.0":
[    2.190000] 0x000000000000-0x000000050000 : "RedBoot"
[    2.260000] 0x000000050000-0x000000160000 : "linux"
[    2.330000] 0x000000160000-0x0000003c0000 : "rootfs"
[    2.400000] mtd: device 2 (rootfs) set to be root filesystem
[    2.470000] mtd: partition "rootfs_data" created automatically, ofs=0x390000, len=0x30000
[    2.570000] 0x000000390000-0x0000003c0000 : "rootfs_data"
[    2.650000] 0x0000003c0000-0x0000003c1000 : "RedBoot config"
[    2.720000] 0x0000003d0000-0x0000003e0000 : "FIS directory"
[    2.800000] 0x0000003e0000-0x000000400000 : "boardconfig"
[    2.970000] eth0: Atheros AR231x: 00:19:5b:2d:bf:e2, irq 4
[    3.100000] libphy: ar231x_eth_mii: probed
[    3.150000] eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=1:01)
[    3.250000] TCP: cubic registered
[    3.290000] NET: Registered protocol family 17
[    3.340000] Bridge firewalling registered
[    3.390000] 8021q: 802.1Q VLAN Support v1.8
[    3.470000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    3.560000] Freeing unused kernel memory: 172K (80315000 - 80340000)
[    4.240000] eth0: Configuring MAC for full duplex
[   19.820000] NET: Registered protocol family 10
[   19.920000] nf_conntrack version 0.5.0 (200 buckets, 800 max)
[   20.010000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   20.120000] Loading modules backported from Linux version master-2014-05-22-0-gf2032ea
[   20.210000] Backport generated by backports.git backports-20140320-37-g5c33da0
[   20.320000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   20.570000] xt_time: kernel timezone is -0000
[   20.750000] cfg80211: Calling CRDA to update world regulatory domain
[   21.040000] cfg80211: World regulatory domain updated:
[   21.100000] cfg80211:  DFS Master region: unset
[   21.150000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   21.270000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   21.370000] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   21.460000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   21.560000] cfg80211:   (5170000 KHz - 5250000 KHz @ 160000 KHz), (N/A, 2000 mBm), (N/A)
[   21.660000] cfg80211:   (5250000 KHz - 5330000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   21.760000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   21.850000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   21.950000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   22.470000] PPP generic driver version 2.4.2
[   22.530000] NET: Registered protocol family 24
[   22.650000] ath: EEPROM regdomain: 0x0
[   22.650000] ath: EEPROM indicates default country code should be used
[   22.650000] ath: doing EEPROM country->regdmn map search
[   22.650000] ath: country maps to regdmn code: 0x3a
[   22.650000] ath: Country alpha2 being used: US
[   22.650000] ath: Regpair used: 0x3a
[   22.660000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   22.690000] ath5k: phy0: Atheros AR2313 chip found (MAC: 0x58, PHY: 0x44)
[   22.770000] ath5k: phy0: RF2112B 2GHz radio found (0x46)
[   22.840000] cfg80211: Calling CRDA for country: US
[   23.190000] cfg80211: Regulatory domain changed to country: US
[   23.260000] cfg80211:  DFS Master region: FCC
[   23.310000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   23.430000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   23.530000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz), (N/A, 1700 mBm), (N/A)
[   23.620000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz), (N/A, 2300 mBm), (0 s)
[   23.720000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   23.820000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   48.980000] jffs2: Too few erase blocks (3)
[   58.120000] device eth0 entered promiscuous mode
[   58.290000] br-lan: port 1(eth0) entered forwarding state
[   58.350000] br-lan: port 1(eth0) entered forwarding state
[   60.350000] br-lan: port 1(eth0) entered forwarding state
[ 1177.360000] eth0: Configuring MAC for full duplex
[ 1269.570000] eth0: Configuring MAC for full duplex

Seems latest release  works only if recompiling without few packages...

I running custom minimal firmware with telnet and wpad-full only (dropbear and luci in flash, but disabled).
No problems more than week on 20+ devices.

_DS_, do you use  images from ftp or your own? If not from ftp what do you remove?
I checked md5 and and they matched.

I remove almost all except base system, wpad and telnet, because I need only wpa-enterprise ap's, nothing more.

Hi!
I have successfully runned openwrt on DWL-3260AP
because it have very similar hardware to DWL-2100 i share my result there.

ftp://linvinus.ru/openwrt/DWL-3260AP_op … R_14.07.7z

archive contains:
1)redboot image for DWL-3260AP and for DWL-2100AP that support following ROM chips
EN29LV320AB-70TCP , AM29LV320DBTI, AT49BV322A-70TU
2)redboot patches and sources that was used to build images.
3) openwrt image for DWL-3260 (it also may be used for DLW-2100, but because DWL-2100 have less memory you must disable snmpd after install before enable wifi)
4) openwrt config
5) instruction how to install openwrt on DWL-3260


I successfully installed OpenWRT on six DWL-3260 and two DWL-2100.

can some one explain what is contained in boardconfig ("/dev/mtdblock6"),
i know it contain mac addresses of nic and wan (at first 128 bytes)
but at offset of 0x10000 it contains something that looks like wifi firmware "RA.htresoC mouminac"
what is strange for me that if that data is broken redboot will not run at all.

(Last edited by linvinus on 7 Nov 2014, 15:20)

ramponis wrote:

bitbucket, you have done a good work.

I live in Italy and i write a little guide regarding 2100AP

http://xoomer.alice.it/ramponis/Documen … 2100ap.rar  (right click to save)

.............................................

hi ramponis,

please clarify to me, what version of redboot in your site is the rigth one for the S29GL032M chip in DWL2100 A4 ??
( I guess the redboot220_mx.bin and the redboot220_mx.img files, but i'm not 100% sure) ???

Also, please clarify if the redboot(lzma).bin file is good for this chip (S29GL032M).
If yes (is OK for this chip), then the redboot(lzma).bin "replaces"  the redboot220_mx.bin file (and the redboot220_mx.img remains?) ?

Thanks for your time and best regards,
Jannis

ramponis wrote:

You can find the documentation and the right bootloader in the wiki

....

Dear Ramponis,
thanks for the fast answer!

I read the mentioned WiKi link, but I could not find an answer on the specific issues I asked for (primary concerning the corresponding content in your site). Also my question for the use/compatibility of the redboot(lzma).bin file within the S29GL032M chip is not covered there.

Best regards
Jannis

You must read the page with more attention.
It is in the wiki, but i send you the direct link:

http://rghost.ru/58414270

You have to follow the section "Bootloader replacement"

Dear Ramponis,

you wrote:

.....
You have to follow the section "Bootloader replacement"
....

exactly, this is what i just did.  But Take a look on this (from the mentioned section):

Question bbcode Question

Regards

The discussion might have continued from here.