From: H. Nikolaus Schaller Date: Fri, 11 Dec 2015 13:37:45 +0000 (+0100) Subject: add boot script for letux cortex 15 board + pyra mainboard X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b427270bf5f41d05557f4a82f0eb8d1f545cf172;p=pandora-u-boot.git add boot script for letux cortex 15 board + pyra mainboard Signed-off-by: H. Nikolaus Schaller --- diff --git a/Letux/boot-scr/boot-letux-cortex15.txt b/Letux/boot-scr/boot-letux-cortex15.txt index f6f071fd121..b0b2b6905eb 100644 --- a/Letux/boot-scr/boot-letux-cortex15.txt +++ b/Letux/boot-scr/boot-letux-cortex15.txt @@ -1,6 +1,6 @@ setenv devicetree omap5-letux-cortex15+pyra setenv mmc 0 # mmc number as seen by u-boot where it looks for kernel -setenv kernelmmc 1 # mmc number as seen by kernel +setenv kernelmmc 0 # mmc number as seen by kernel setenv defaultdisplay lcd setenv PARTITION 1 # partition where kernel is found (simulates the partition selection mechanism of the GTA04) setenv PARTITIONTYPE FAT diff --git a/Letux/boot-scr/boot-pyra.txt b/Letux/boot-scr/boot-pyra.txt new file mode 100644 index 00000000000..f6f071fd121 --- /dev/null +++ b/Letux/boot-scr/boot-pyra.txt @@ -0,0 +1,24 @@ +setenv devicetree omap5-letux-cortex15+pyra +setenv mmc 0 # mmc number as seen by u-boot where it looks for kernel +setenv kernelmmc 1 # mmc number as seen by kernel +setenv defaultdisplay lcd +setenv PARTITION 1 # partition where kernel is found (simulates the partition selection mechanism of the GTA04) +setenv PARTITIONTYPE FAT + +# set default +setenv mmcargs 'setenv bootargs elevator=noop console=ttyO2,115200n8 root=/dev/mmcblk${kernelmmc}p2 rw rootwait earlyprintk fixrtc' + +# load device tree and kernel binary +fatload mmc ${mmc}:${PARTITION} 0x825f0000 ${devicetree}.dtb +fatload mmc ${mmc}:${PARTITION} 0x80300000 uImage + +run mmcargs + +# allow to overwrite boot args (incl. kernelmmc) +if fatload mmc ${mmc}:${PARTITION} 0x81300000 bootargs.scr +then + source 0x81300000 +fi + +setenv fdt_high 0x84000000 +bootm 0x80300000 - 0x825f0000