In this howto I’m going to explain how to install debian wheezy on a sheevaplug SD (i want to maintain my old squeeze on NAND flash). We need at least Marvell U-boot 3.4.19.
We assume that our server is 192.168.1.2 and sheeva ip is 192.168.1.7.
Setup TFTP server and download these file on tftp root directory (usually /var/lib/tftpboot):
cd /var/lib/tftpboot
wget ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uImage
wget ftp://ftp.debian.org/debian/dists/wheezy/main/installer-armel/current/images/kirkwood/netboot/marvell/sheevaplug/uInitrd
Connect the sheeva through USB to our pc and connect to it with putty or minicom or similar. Power it on and press enter to stop the boot process, and copy these commands:
setenv serverip 192.168.1.2
setenv ipaddr 192.168.1.7
setenv netmask 255.255.255.0
tftpboot 0x00800000 uImage
tftpboot 0x01100000 uInitrd
setenv bootargs console=ttyS0,115200n8 base-installer/initramfs-tools/driver-policy=most priority=low
bootm 0x00800000 0x01100000
If you don’t want an “expert” setup process remove “priority=low”.
Now install your debian in a normal way, keep in mind to load mmc module.
When you need to partition your MMC/SD device my suggestion is to createat least one different partition for /boot (100MB is enough) with ext2 format. Create this as the FIRST partition. If you don’t do this you could have trouble on booting your new system.
Remember to execute “Make the system bootable” voice menĂ¹.
When your sheeva reboot stop again the boot process and execute these:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc ‘mmcinit; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd’
setenv bootcmd ‘setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000’
run bootcmd
Now it should start with your debian wheezy fresh install!
If all went ok reboot again, stop the boot process and we set-up sheevaplug to boot default from MMC/SD:
setenv bootargs_console console=ttyS0,115200
setenv bootcmd_mmc ‘mmcinit; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd’
setenv bootcmd ‘setenv bootargs $(bootargs_console); run bootcmd_mmc; bootm 0x00800000 0x01100000’
saveenv
Finish!
Execute “run bootcmd” again, and your sheeva is ready to go!
Hi, i have /boot particion first. (Creating ext2 file system for /boot in partition #1 of MMC/SD card #1 (mmcblk0))
Can yo explain bootmd_mmc sintax? for example mmc 0:1 what means?
hello,
from http://www.cyrius.com/debian/kirkwood/sheevaplug/install/
Note for GuruPlug and DreamPlug users: MMC/SD cards show up as USB devices. Therefore, if you’re using a MMC/SD card, make sure to follow the instructions for USB devices and not for MMC/SD. Furthermore, you’ll have to use a different device ID: 0:1 is the internal microSD, 1:1 the external SD card and 2:1 an external USB device, like a USB stick.