Letux: added more bootscript variants
authorH. Nikolaus Schaller <hns@goldelico.com>
Tue, 15 Dec 2015 06:57:43 +0000 (07:57 +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-letux-cortex15.txt
Letux/boot-scr/boot-omap5-uevm.txt
Letux/boot-scr/boot-pyra+evm.txt [new file with mode: 0644]
Letux/boot-scr/boot-pyra+lc15-4.9.txt [new file with mode: 0644]
Letux/boot-scr/boot-pyra+lc15.txt [moved from Letux/boot-scr/boot-pyra.txt with 100% similarity]

index 6b93d7a..6393506 100644 (file)
@@ -1,4 +1,4 @@
-setenv fdtfile omap5-letux-cortex15+pyra.dtb
+setenv fdtfile omap5-letux-cortex15.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 defaultdisplay   lcd
index c51508d..962d720 100644 (file)
@@ -1,4 +1,4 @@
-setenv devicetree omap5-pyra
+setenv devicetree omap5-uevm
 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
diff --git a/Letux/boot-scr/boot-pyra+evm.txt b/Letux/boot-scr/boot-pyra+evm.txt
new file mode 100644 (file)
index 0000000..4e757cd
--- /dev/null
@@ -0,0 +1,24 @@
+setenv fdtfile arch/arm/boot/dts/omap5-pyra
+setenv mmcdev 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 ${mmcdev}:${PARTITION} 0x825f0000 ${fdtfile}
+fatload mmc ${mmcdev}:${PARTITION} 0x80300000 uImage
+
+run mmcargs
+
+# allow to overwrite boot args (incl. kernelmmc)
+if fatload mmc ${mmcdev}:${PARTITION} 0x81300000 bootargs.scr
+then
+       source 0x81300000
+fi
+
+setenv fdt_high 0x84000000
+bootm 0x80300000 - 0x825f0000
diff --git a/Letux/boot-scr/boot-pyra+lc15-4.9.txt b/Letux/boot-scr/boot-pyra+lc15-4.9.txt
new file mode 100644 (file)
index 0000000..0e1275b
--- /dev/null
@@ -0,0 +1,24 @@
+setenv fdtfile omap5-letux-cortex15-v4.9+pyra
+setenv mmcdev 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 ${mmcdev}:${PARTITION} 0x825f0000 ${fdtfile}
+fatload mmc ${mmcdev}:${PARTITION} 0x80300000 uImage
+
+run mmcargs
+
+# allow to overwrite boot args (incl. kernelmmc)
+if fatload mmc ${mmcdev}:${PARTITION} 0x81300000 bootargs.scr
+then
+       source 0x81300000
+fi
+
+setenv fdt_high 0x84000000
+bootm 0x80300000 - 0x825f0000