For those who stumble across this blog post, here's the process (but note that this WILL wipe the root filesystem off of /dev/mtd2, so you will no longer be able to boot the OS shipped on the plug). Make the kernel and initrd images and such available via tftp and configure the uboot environment as detailed in INSTALL_KIRKWOOD.TXT and then do something like this:
>> tftp 0x6400000 uImage-kirkwood
>> nand erase 0x100000 0x400000
>> nand write.e 0x6400000 0x100000 0x400000
>> tftp 0x6400000 uinitrd-kirkwood
>> nand erase 0x500000 0x1fb00000
>> nand write.e 0x6400000 0x500000 0x800000
Now, verify that it did what you think it did: :-)
>> nand start
>> nand read.e 0x00800000 0x100000 0x400000
>> nand read.e 0x01100000 0x500000 0x800000
>> iminfo 0x00800000
>> iminfo 0x01100000
Both of those 'iminfo' lines should end with "Verifying Checksum ... OK"
Now you'll want a uboot environment something like this:
>> printenv
bootdelay=3
baudrate=115200
ethact=egiga0
eth1addr=02:50:43:eb:75:43
ethaddr=00:50:43:01:5D:EA
arcNumber=2659
mainlineLinux=yes
filesize=759688
fileaddr=6400000
ipaddr=192.168.13.50
serverip=192.168.13.11
stdin=serial
stdout=serial
stderr=serial
bootargs_root=root=/dev/sdb2 waitforroot=10 rootfs=ext4
bootargs_console=console=ttyS0,115200
bootcmd_slack=bootm 0x00800000 0x01100000
bootcmd_usb=usb start;
bootcmd=setenv bootargs $(bootargs_console) $(bootargs_root); \
run bootcmd_usb; run bootcmd_nand; run bootcmd_slack;
bootcmd_nand=nand start; nand read.e 0x00800000 0x100000 0x400000; \
nand read.e 0x01100000 0x500000 0x800000
Environment size: 629/131068 bytes
Hello I stumbled on your blog while searching for some information on the GuruPlug.
ReplyDeleteI am currently using a U-Boot that was obtained at this URL http://oinkzwurgl.org/dl.php?file=guruplug-u-boot-flipflip-20100512.tar.gz .
This u-boot.kwb allows me to use ext2load and boot my two images out of the /boot directory on my usb stick.
I believe you can also boot off a mmc device with this U-Boot.
That's interesting, because I swear I tried that uboot version. I might try it again now, but I'm a bit hesitant since the hackbox formerly known as a GuruPlug is now in service as my firewall/router/dhcp/dns/ntp server... Maybe this is just an excuse to buy another GuruPlug ;-)
ReplyDelete