by vonfritz » Mon Aug 13, 2012 7:02 am
$this->bbcode_second_pass_quote('jondb', '.').............
A guide how to load the rootfs from a SATA drive would be nice. I don't think I read about someone who was able to do this. I thought I read you need to implement a SATA driver in U-boot.
well I have 2rootfs on sata (arch and linaro)
i have made initramfs with sata modul (sw_ahci_platform)
I d´ont know if the procedure is "correct", but it works for me.
edit /etc/mkinitcpio.conf and add modul for sata :
MODULES="sw_ahci_platform"
make initramfs :
mkinitcpio -g /boot/initramfs-linux.img
make loadable image for u-boot :
mkimage -A arm -T ramdisk -C none -n "uInitrd" -d /boot/initramfs-linux.img /boot/uInitrd
mount SD-card and copy uInitrd in first vfat partition :
mkdir /tmp/sd1
mount /dev/mmcblk0p1 /tmp/sd1
cp /boot/uInitrd /tmp/sd1
make file boot.cmd for change the default boot parameters :
nano /tmp/sd1/boot.cmd
this is mine (I have arch rootfs on /dev/sda2) :
$this->bbcode_second_pass_code('', '
setenv console 'ttyS0,115200'
setenv root '/dev/sda2'
setenv panicarg 'panic=10'
setenv extra 'rootfstype=ext4 rootwait'
setenv loglevel '8'
setenv setargs 'setenv bootargs console=${console} root=${root} loglevel=${loglevel} ${panicarg} ${extra}'
setenv kernel 'uImage'
setenv boot_mmc 'fatload mmc 0 0x43000000 script.bin; fatload mmc 0 0x48000000 ${kernel}; fatload mmc 0 0x43100000 uInitrd; bootm 0x48000000 0x43100000'
setenv bootcmd 'run setargs boot_mmc'
')
convert boot.cmd in image-type file which u-boot can use and read :
cd /tmp/sd1
mkimage -A arm -O u-boot -T script -C none -n "boot" -d boot.cmd boot.scr
sync and unmount:
cd
sync
umount /tmp/sd1
should work, at least for me
bye