OpenWrt Forum Archive

Topic: Linksys E2100L is here, has anybody tried it out.

The content of this topic has been archived between 19 Apr 2018 and 4 May 2018. Unfortunately there are posts – most likely complete pages – missing.

URL: svn://svn.openwrt.org/openwrt/branches/backfire
Revision: 27601

I have tried:
Change "NL16" to "NL1X" in these two files:
target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c
tools/firmware-utils/src/addpattern.c

no problems flashing over web interface or serial console:
## Booting WRT160NL ...
Code pattern OK: NL1X  Expect: NL1X
...

all ok till I get a kernel panic:

VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             256 mtdblock0 (driver?)
1f01             896 mtdblock1 (driver?)
1f02            6912 mtdblock2 (driver?)
1f03              64 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05            7808 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

any ideas???

Hmm. If you could, please submit your entire bootlog from serial inside of \[code\] brackets.

Give me a bit to get home and I will post my current working .bin later this evening.

v.90 wrote:

Hmm. If you could, please submit your entire bootlog from serial inside of \[code\] brackets.

Give me a bit to get home and I will post my current working .bin later this evening.

thanks for your help.
full boot log:

U-Boot 1.1.7 (Jan  8 2010 - 14:26:25)                                                                                                                            
                                                                             
DRAM:  ar7100_ddr_initial_config(237) enter!                                 
ar7100_ddr_initial_config(269) exit!    
                                        
                                        
U-Boot 1.1.7 (Jan  8 2010 - 14:26:25)   
                                        
AP81 (ar7100) U-boot                    
sri
64 MB
WRT160NL u-boot version: 1.0.0
Top of RAM usable for U-Boot at: 84000000
Reserving 279k for U-Boot at: 83fb8000
Reserving 192k for malloc() at: 83f88000
Reserving 44 Bytes for Board Info at: 83f87fd4
Reserving 36 Bytes for Global Data at: 83f87fb0
Reserving 128k for boot params() at: 83f67fb0
Stack Pointer at: 83f67f98
Now running in RAM - U-Boot at: 83fb8000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
ag7100 get ethaddr for device eth0
Fetching MAC Address from 0x83feb2b0

 --------***** Get the RTL8306SD Manufactory ID=386c *****-------
 Reg6: speed=0 nway=1 duplex=1
 Reg5: speed=0 nway=0 duplex=0
 Reg1: a1=7fd9 a2=3210 a3=16d4 a4=3210 a5=0
 Reg1: a1=7fd9 a2=3210 a3=16d4 a4=3210
 Reg1: a1=7fd9 a2=3210 a3=16d4 a4=3210
 Reg1: a1=7fd9 a2=3210 a3=16d4 a4=3210
 Reg1: a1=7fd9 a2=3210 a3=16d4 a4=3210
eth0: c0:c1:c0:a1:fb:3a
eth0 up
eth0
### main_loop entered: bootdelay=1

Hit any key to stop autoboot:  0 
## Booting WRT160NL ...
Code pattern OK: NL1X  Expect: NL1X
Application code length 0x00370000
CRC OK
## Booting image at bf04003c ...
   Image Name:   MIPS OpenWrt Linux-2.6.32.27
   Created:      2011-07-12  20:50:50 UTC
   Image Type:   MIPS Linux Kernel Image (gzip compressed)
   Data Size:    1197625 Bytes =  1.1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
kernel: org len = 1197625, new len = 1245184
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 67108864

Starting kernel ...

Linux version 2.6.32.27 (dromero@obs.niclabs.cl) (gcc version 4.3.3 (GCC) ) #3 Tue Jul 12 16:50:41 CLT 2011
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
 memory: 04000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00004000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00004000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=WRT160NL
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 61800k/65536k available (2043k kernel code, 3660k reserved, 406k data, 148k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is Linksys WRT160NL
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
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.
yaffs Jul  1 2011 17:45:06 Installing. 
msgmni has been set to 120
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: mx25l6405d (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000120000 : "kernel"
0x000000120000-0x0000007e0000 : "filesytem"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007f0000-0x000000800000 : "ART"
0x000000040000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
eth1: Atheros AG71xx at 0xba000000, irq 5
Atheros AR71xx hardware watchdog driver version 0.1.0
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: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             256 mtdblock0 (driver?)
1f01             896 mtdblock1 (driver?)
1f02            6912 mtdblock2 (driver?)
1f03              64 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05            7808 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Try this one:
http://www.filehosting.org/file/details … -05-30.zip

Please read the README inside that zip and take note of the ERRATA at the bottom. For other folks who stumble upon this zip, do not flash without a working serial console handy!

Something is wrong with the way mtd is partitioning out your flash, it's different from my build anyway.

My last install looked like this:

Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: found mx25l6405d, expected m25p80
m25p80 spi0.0: mx25l6405d (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
6 wrt160nl partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000170000 : "kernel"
0x000000170000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=360000, len=480000 
0x000000360000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007f0000-0x000000800000 : "art"
0x000000040000-0x0000007e0000 : "firmware"

(Last edited by v.90 on 14 Jul 2011, 15:20)

thanks v.90!

but something is broken at filehosting. The link in the email your receive after sending a request doesn't work, tried 3 times with no luck...

I managed to download it just now using Chrome (and I even have AdBlock enabled). Does your browser have no-script installed or something?

I'm not thrilled with filehosting.org, I use it because that is how Cisco/Linksys posts E2100L GPL source and I am too lazy to find anything else that is as easy, free, and legit. I am open to suggestions, but first try a different browser?

dromero wrote:

thanks v.90!

but something is broken at filehosting. The link in the email your receive after sending a request doesn't work, tried 3 times with no luck...

something is wrong with the "download" button. After copying the link from that button in my browser url got the file...

building from rev 26962 works!!!

Well wait a second. I did at one point manage to checkout and build r27114 from trunk and it booted just fine. Let me check my sources...

Ok, I checked and I had the r27049 source of /trunk/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c , so that's not it unless your flash chip is different from mine or anyone elses.

Try building r27114?

v.90 wrote:

Ok, I checked and I had the r27049 source of /trunk/target/linux/ar71xx/files/drivers/mtd/wrt160nl_part.c , so that's not it unless your flash chip is different from mine or anyone elses.

Try building r27114?

27114 works too!

URL: svn://svn.openwrt.org/openwrt/branches/backfire
Repository Root: svn://svn.openwrt.org/openwrt
Repository UUID: 3c298f89-4303-0410-b956-a3cf2f4a3e73
Revision: 27114

but banner claims to be 27031

BusyBox v1.15.3 (2011-07-14 15:52:27 CLT) 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
Backfire (10.03.1-RC5, r27031) --------------------------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
---------------------------------------------------
root@OpenWrt:/#

Ah ok. I was staring at the mdb for trunk. If I had to guess I would say your wrt160nl_part.c in r27114 backfire looks like the original in the patch from r27049. In any case they should both work, and I'm sure you are relieved to have it back online.

v.90 wrote:

Ah ok. I was staring at the mdb for trunk. If I had to guess I would say your wrt160nl_part.c in r27114 backfire looks like the original in the patch from r27049. In any case they should both work, and I'm sure you are relieved to have it back online.

actually, this is my first time running owrt in E2100L. Thanks for your help. I'll be happy to help you if you need to test something.

You are very welcome, I'm glad I could help!

btw, same error on official RC5 (r27608)

VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00             256 mtdblock0 (driver?)
1f01             896 mtdblock1 (driver?)
1f02            6912 mtdblock2 (driver?)
1f03              64 mtdblock3 (driver?)
1f04              64 mtdblock4 (driver?)
1f05            7808 mtdblock5 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

Hi, does anybody have a e2100l firmware for download ? i have tried the ones have been posted but none of the posted links works.

Lovely, it would appear that filehosting.org is down. I hate using dodgy sites but this was the one Cisco used to post the source for their official firmware. Back to the drawing board I guess.

Does anyone else have a suggestion as to another site to use (that doesn't contain flash malware or porn popups?)

I haven't use any of the following websites, but they are supposed to work:

* free for open source projects

my votes to

code.google.com
sourceforge.net

I use these two...

jbb wrote:

mohnkhan, could you please share your build? Is it working properly? I bricked my router and now I'm bringing it back to life, but I can't trust my build again.

Thanks!

sorry I just saw this..
will try to share my source code ASAP...

I am currently not near that box and its not online either.. ..

will also try to share my builds.

Heh... welp let's try this one. Here is the file I shared previously:

http://www.mediafire.com/?4ozj55ucydgi8g1

The MD5 hash is 79151db0c1a9e75f0583766293a521ff

Please have a working serial console handy before doing anything with these files.

I will contact Cisco for another GPL request and see what they are using for file hosting.

(Last edited by v.90 on 13 Sep 2011, 18:04)

Hi, i use your build and the router comes alive ! thanks !

Does the serial console for this router have a special setting ? i use 115200,8,n,1 and a custom made cable that used to work with a wrt160nl, but show nothing on a e2100l, i connect to the wan port using a custom telephone jack... well i will have to wait until tomorrow when i'll get another wrt160nl to see if the cable i made have become damaged.

Try a lower speed, like 9600/8n1 and see if it works. IIRC I had some issues with having the speed set that high.

Though I've never used the external surface pins myself, I would much rather use that method!

(Last edited by v.90 on 14 Sep 2011, 15:23)

isn't the speed fixed at 115200 ? y use a nokia dku-5 cable with pl2303 chipset.