Letux: bootscr: fixed boot scripts for OMAP5EVM and Pyra
authorH. Nikolaus Schaller <hns@goldelico.com>
Wed, 23 Dec 2015 12:43:38 +0000 (13:43 +0100)
committernotaz <notasas@gmail.com>
Sun, 14 Aug 2016 13:07:57 +0000 (16:07 +0300)
Signed-off-by: H. Nikolaus Schaller <hns@goldelico.com>
Letux/boot-scr/boot-omap5-uevm.txt
Letux/boot-scr/boot-pyra+evm.txt
Letux/boot-scr/boot-pyra+lc15.txt

index 8364aa3..b134554 100644 (file)
@@ -1,7 +1,7 @@
 echo boot.scr for OMAP5432 EVM
 setenv fdtfile omap5-uevm.dtb
 setenv mmc 0           # mmc number as seen by u-boot where it looks for kernel
-setenv kernelmmc 0     # mmc number as seen by 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
index 79cd044..8cd1b85 100644 (file)
@@ -1,7 +1,7 @@
 echo boot.scr for Pyra+EVM
-setenv fdtfile arch/arm/boot/dts/omap5-pyra.dtb
+setenv fdtfile omap5-pyra.dtb
 setenv mmcdev 0                # mmc number as seen by u-boot where it looks for kernel
-setenv kernelmmc 0     # mmc number as seen by 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
index 596f1ff..1b13a92 100644 (file)
@@ -10,16 +10,20 @@ setenv PARTITIONTYPE FAT
 setenv mmcargs 'setenv bootargs elevator=noop console=ttyO2,115200n8 root=/dev/mmcblk${kernelmmc}p2 rw rootwait earlyprintk fixrtc'
 
 # load device tree and kernel binary
+echo ${fdtfile} to 0x825f0000
 fatload mmc ${mmcdev}:${PARTITION} 0x825f0000 ${fdtfile}
+echo uImage to 0x80300000
 fatload mmc ${mmcdev}:${PARTITION} 0x80300000 uImage
 
 run mmcargs
 
 # allow to overwrite boot args (incl. kernelmmc)
+echo bootargs.scr to 0x81300000
 if fatload mmc ${mmcdev}:${PARTITION} 0x81300000 bootargs.scr
 then
        source 0x81300000
 fi
+fatload mmc ${mmcdev}:${PARTITION} 0x80300000 uImage
 
 setenv fdt_high 0x84000000
 bootm 0x80300000 - 0x825f0000