I followed these instructions to install OpenWRT on my sx762 Danube. The link to the primary bootloader was dead, so I took the one from here: http://downloads.openwrt.org/attitude_a … 166_flash/.
The failsafe webinterface came up, and I flashed OpenWRT from trunk. However, it didn't boot.
After connecting serial, I saw a warning that the u-boot environment had the wrong CRC, using default. This is the default:
DANUBE => printenv
bootcmd=run flash_flash
bootdelay=2
baudrate=115200
loads_echo=
ethaddr=00:01:02:03:04:05
ipaddr=192.168.0.119
ram_addr=0x80500000
kernel_addr=0xb0020000
mtdparts=mtdparts=ifx-nor:256k(uboot)ro,64k(uboot_env)ro,64k(kernel),-(rootfs)
flashargs=setenv bootargs rootfstype=squashfs,jffs2
nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}
addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off
addmisc=setenv bootargs ${bootargs} init=/etc/preinit console=ttyS1,115200 ethaddr=${ethaddr} ${mtdparts}
flash_flash=run flashargs addip addmisc;bootm ${kernel_addr}
flash_nfs=run nfsargs addip addmisc;bootm ${kernel_addr}
net_flash=run load_kernel flashargs addip addmisc;bootm ${ram_addr}
net_nfs=run load_kernel nfsargs addip addmisc;bootm ${ram_addr}
load_kernel=tftp ${ram_addr} ${tftppath}openwrt-ifxmips-uImage
update_uboot=tftp 0x80500000 ${tftppath}u-boot.bin;era 0xb0000000 +${filesize};cp.b 0x80500000 0xb0000000 ${filesize}
update_openwrt=tftp ${ram_addr} ${tftppath}openwrt-ifxmips-squashfs.image;era ${kernel_addr} +${filesize};cp.b ${ram_addr} ${kernel_addr} ${filesize}
ethact=lq_cpe_eth
stdin=serial
stdout=serial
stderr=serial
ver=U-Boot 2010.03-svn34185 (Nov 16 2012 - 07:35:05)
Environment size: 1267/65532 bytes
When booting, I get this:
## Booting kernel from Legacy Image at b0020000 ...
Image Name: MIPS OpenWrt Linux-3.10.17
Created: 2013-10-26 15:50:50 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1220482 Bytes = 1.2 MB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 3.10.17 (Mijzelf@ubuntu) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r38539) ) #2 Sat Oct 26 15:50:02 UTC 2013
<snip>
[ 0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
<snip>
[ 0.380000] 3 ofpart partitions found on MTD device ltq_nor
[ 0.384000] Creating 3 MTD partitions on "ltq_nor":
[ 0.388000] 0x000000000000-0x000000030000 : "uboot"
[ 0.396000] 0x000000030000-0x000000040000 : "uboot_env"
[ 0.404000] 0x000000040000-0x000000800000 : "firmware"
<snip>
[ 0.516000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[ 0.524000] Please append a correct "root=" boot option; here are the available partitions:
[ 0.532000] 1f00 192 mtdblock0 (driver?)
[ 0.536000] 1f01 64 mtdblock1 (driver?)
[ 0.540000] 1f02 7936 mtdblock2 (driver?)
[ 0.544000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Seeing this it seems to me the command line is not passed to the kernel (console has a different value), and also the command line as constructed by uboot doesn't seem to contain a 'root=' line.
I tried to change
flashargs=setenv bootargs root=/dev/mtdblock2 rootfstype=squashfs,jffs2
but that didn't help. It had no impact on the commandline as seen by the kernel.
How to proceed?
(Last edited by Mijzelf on 1 Nov 2013, 14:04)