summaryrefslogtreecommitdiff
path: root/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-14 16:11:22 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-08-14 16:16:39 +0200
commit67c574bbda146dbaf74221f9c520973d633bab62 (patch)
tree4f1747297f7a26a7e62b0964fcc01afe20b0bd34 /libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
parent17abe9678b3b6e0610fe40e67484d225bcddc706 (diff)
downloadabslibre-67c574bbda146dbaf74221f9c520973d633bab62.tar.gz
abslibre-67c574bbda146dbaf74221f9c520973d633bab62.tar.bz2
abslibre-67c574bbda146dbaf74221f9c520973d633bab62.zip
libre: Merge uboot4extlinux{am335x,omap3}, uboot-omap4_panda: into uboot4extlinux-ti-soc
uboot4extlinux-am335x and uboot4extlinux-omap3 were almost identical, the only difference was the extlinux.conf file. So they were migrated together in a single package for all TI SOCs. I think having a single package saves maintenance time: We only have one package to update for all the supported boards. One downside is that it can increase the compilation time, but in overal it probably saves a lot of time. Another downside is that we cannot test the package separately for each boards and have to test all the boards for each new update. However since we are very close to upstream u-boot, there is very few probability of having breakages that we don't know about. Factorizing the package can also increase confidence that it will work on the boards we don't have, by testing on the boards we have. For instance I've only been able to test this package on the following boards as I don't have any of the other boards: - Beagleboard XM - Beaglebone Green The support for the Pandaborad from uboot-omap4_panda was added along the way to furthurer unify u-boot packages. In addition the version was updated and some whitespace fixes were done. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Diffstat (limited to 'libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch')
-rw-r--r--libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch44
1 files changed, 44 insertions, 0 deletions
diff --git a/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch b/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
new file mode 100644
index 000000000..d746bde6e
--- /dev/null
+++ b/libre/uboot4extlinux-ti-soc/0001-omap34xx-SPL-enable-MMC-raw-boot-with-u-boot.img.patch
@@ -0,0 +1,44 @@
+From a49275a3cc03970939585610ebcf3b3d7e547037 Mon Sep 17 00:00:00 2001
+From: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+Date: Sat, 9 Nov 2019 18:53:40 +0100
+Subject: [PATCH] omap34xx: SPL: enable MMC raw boot with u-boot.img
+
+The following commit enabled raw SPL booting:
+ 22d90d560a omap3: Use raw SPL by default for mmc1
+but it was reverted by the following commit:
+ 821c89d38c Revert "omap3: Use raw SPL by default for mmc1"
+because SPL is unable to distinguish between RAW images and
+garbage.
+
+However if CONFIG_SPL_RAW_IMAGE_SUPPORT is disabled, SPL does
+identify if there is a valid image with spl_parse_image_header.
+
+With this change, and CONFIG_SPL_RAW_IMAGE_SUPPORT disabled,
+raw MMC boot will be tried first, and if it fails, it FS will
+be tried.
+
+The two scenarios have been tested on a BeagleBoard XM Revision C1.
+
+Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
+---
+ arch/arm/mach-omap2/boot-common.c | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/arch/arm/mach-omap2/boot-common.c b/arch/arm/mach-omap2/boot-common.c
+index 734fa9d9e6..a48244e1c5 100644
+--- a/arch/arm/mach-omap2/boot-common.c
++++ b/arch/arm/mach-omap2/boot-common.c
+@@ -132,8 +132,10 @@ void save_omap_boot_params(void)
+ (boot_device <= MMC_BOOT_DEVICES_END)) {
+ switch (boot_device) {
+ case BOOT_DEVICE_MMC1:
++#ifdef CONFIG_SPL_RAW_IMAGE_SUPPORT
+ boot_mode = MMCSD_MODE_FS;
+ break;
++#endif
+ case BOOT_DEVICE_MMC2:
+ boot_mode = MMCSD_MODE_RAW;
+ break;
+--
+2.24.0
+