CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
Modified mmc boot script for cubox to looks like the one in efikamx
authorJose V Beneyto <sepen@crux.nu>
Wed, 6 Jun 2012 17:28:42 +0000 (17:28 +0000)
committerJose V Beneyto <sepen@crux.nu>
Wed, 6 Jun 2012 17:28:42 +0000 (17:28 +0000)
devices/cubox/boot-mmcblk.script

index 6e25cbf42af9b62bafac8e6dbbaf0bbd0e2e1478..81190b428e935eb4011fcb150c2fbdb9537eb13c 100644 (file)
@@ -1,6 +1,7 @@
-echo ======== Setting bootargs ========
-setenv bootargs 'console=ttyS0,115200n8 vmalloc=384M root=/dev/mmcblk0p1 rootwait ro video=dovefb:lcd0:1920x1080-32@60-edid clcd.lcd0_enable=1 clcd.lcd1_enable=0'
-echo ======== Loading kernel ========
-ext2load mmc 0:1 0x00200000 /boot/uImage
-echo ======== Booting kernel ========
-bootm
+setenv kernel uImage;
+setenv kerneladdr 0x16000000;
+setenv bootargs console=ttyS0,115200 root=/dev/mmcblk0p1 rootwait ro;
+${loadcmd} ${kerneladdr} ${kernel}
+if imi ${kerneladdr}; then
+  bootm ${kerneladdr}
+fi;