Hi, I am having trouble booting any OpenWRT image on WRT160NL (CUR01).
I have serial console (a former Nokia 2600 data cable - it has a PL2303HX chip) access and I am trying to check the image works before flashing it (the router is online and I don't have an equivalent backup machine) so I have been trying ramdisk images.
I tried http://downloads.openwrt.org/backfire/1 … e-gzip.bin and it panics.
I also tried a similar image built via ImageBuilder from the trunk from yesterday and had a little more success.
The kernel boots, but serial console is unusable after the moment the kernel tries to setup the serial console itself.
Hit any key to stop autoboot: 0
ar7100> setenv serverip 10.0.0.1; setenv ipaddr 10.0.0.2
ar7100> setenv bootargs 'board=WRT160NL'
ar7100> tftpboot 0x81000000 ram.bin
check link duplex:Full/speed:100
dup 1 speed 100
Using eth0 device
TFTP from server 10.0.0.1; our IP address is 10.0.0.2
Filename 'ram.bin'.
Load address: 0x81000000
Loading: send option "timeout 5"
Got OACK: timeout 5
#################################################################
#################################################################
#################################################################
#################################################################
##################
done
Bytes transferred = 1421508 (15b0c4 hex)
ar7100> bootm
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-3.7.5
Created: 2013-01-31 21:55:21 UTC
Image Type: MIPS Linux Kernel Image (gzip compressed)
Data Size: 1421444 Bytes = 1.4 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
kernel: org len = 1421444, new len = 1441792
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 33554432
Starting kernel ...
[ 0.000000] Linux version 3.7.5 (openwrt@OpenWRTBuild) (gcc version 4.6.4 20121210 (prerelease) (Linaro GCC 4.6-2012.12) ) #1 Wed Jan 30 083
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019374 (MIPS 24Kc)
[ 0.000000] SoC: Atheros AR9130 rev 2
[ 0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:5.000MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] User-defined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x00000000-0x01ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x00000000-0x01ffffff]
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
[ 0.000000] Kernel command line: board=WRT160NL fsoffset=0x160000 mem=32M rootfstype=squashfs,jffs2 noinitrd
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] __ex_table already sorted, skipping sort
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 28788k/32768k available (2231k kernel code, 3980k reserved, 586k data, 252k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[ 0.080000] pid_max: default: 32768 minimum: 301
[ 0.080000] Mount-cache hash table entries: 512
[ 0.090000] NET: Registered protocol family 16
[ 0.100000] MIPS: machine is Linksys WRT160NL
[ 0.610000] bio: create slab <bio-0> at 0
[ 0.620000] Switching to clocksource MIPS
[ 0.630000] NET: Registered protocol family 2
[ 0.630000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.630000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.640000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.640000] TCP: reno registered
[ 0.650000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.650000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.660000] NET: Registered protocol family 1
[ 0.680000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.690000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.700000] msgmni has been set to 56
[ 0.700000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
[ 0.710000] io scheduler noop registered
[ 0.710000] io scheduler deadline registered (default)
[ 0.720000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
0.750000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
I know the kernel works because I suspected the console is not set correctly, and I tried to see if it responds with lower speed settings, which it did (of course, with garbage). I don't think the cable length is at fault, since it works fine in all of the other cases.
I would really appreaciate some help on this. As I said before, I don't want to risk flashing directly, I want to make sure the system boots properly with OpenWRT, before doing that, hence the usage of the ram image.
Thanks.
(Last edited by eddyp on 1 Feb 2013, 01:07)