I just refreshed my plug with the SheevaPlug Installer v1.0 and the new Marvell u-boot 3.4.19. I'd like to pass along a couple of comments on Martin Michlmayr's manual instructions for installing Debian on a SheevaPlug.
I recently upgraded to the latest version of u-boot from the openplug.org web site and I stopped seeing any console messages. I used the new SheevaPlug Installer v1.0 to bring it back to the default settings and setup. I reloaded Debian following Martin's instructions. Before I completed the steps in the section titled "Boot the system", I typed printenv and noticed that some things had changed:
1) The following set up instructions are not needed since the SheevaPlug Installer v1.0 installs a mainline kernel:
setenv mainlineLinux yes
setenv arcNumber 2097
saveenv
reset
The settings are set to these values in the new u-boot.
2) To get the console to work with the new list of environment settings, the next sets of commands for either a USB drive or an SD card need to have "console" in the third line changed to "bootargs_console".
As an example, the SD card listing would now be:
setenv bootargs_root 'root=/dev/mmcblk0p1'
setenv bootcmd_mmc 'mmcinit; ext2load mmc 0 0x0800000 /boot/uInitrd; ext2load mmc 0 0x400000 /boot/uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x400000 0x0800000'
saveenv
Using these setting works well unless the SheevaPlug is being booted up by applying the power. When this happens I get the following error:
Hit any key to stop autoboot: 0
Error! cmd : 8, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
Error! cmd : 1, err : 0201
No MMC card found
** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00400000 ...
Bad Magic Number
Marvell>>
If I type reset at the Marvell>> prompt, the SheevaPlug will boot normally. So far the only solution I have found to fix this problem is to add a second mmcinit; to the second setenv line above. I use the following commands to make this work:
setenv bootargs_root 'root=/dev/mmcblk0p1'
setenv bootcmd_mmc 'mmcinit; mmcinit; ext2load mmc 0 0x0800000 /boot/uInitrd; ext2load mmc 0 0x400000 /boot/uImage'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x400000 0x0800000'
saveenv
One final note, the Appendix for Upgrading u-boot for SD support isn't needed if the SheevaPlug Installer v1.0 is used. It installs the latest version that includes SD support. I typically work from a Mac and the SheevaPlug Installer doesn't work, so Martin's instructions are still useful for upgrading u-boot.