aboutsummaryrefslogtreecommitdiffstats
path: root/package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-12-17 09:29:42 +0000
committerJohn Crispin <blogic@openwrt.org>2015-12-17 09:29:42 +0000
commitfd674a8fcb662c9df436c6f949e09e96b01af16e (patch)
treeebeab5b7257c112b0f6cddb3887beee82f2e3607 /package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch
parent3cd6efc5016d5d1d8cbdcfd64af83e310fcbc1dd (diff)
downloadmaster-187ad058-fd674a8fcb662c9df436c6f949e09e96b01af16e.tar.gz
master-187ad058-fd674a8fcb662c9df436c6f949e09e96b01af16e.tar.bz2
master-187ad058-fd674a8fcb662c9df436c6f949e09e96b01af16e.zip
uboot-omap: update to 2015.10
- tested on Beagleboard C4 - remove upstream patches - disable THUMB mode on OMAP3 this increases binary size (remove CONFIG_SYS_THUMB_BUILD) - reduce SPL size by disabling EXT feature (remove CONFIG_SPL_EXT_SUPPORT) this fixes 2015.07 and 2015.10-rc3 Beagleboard C4 booting which were broken by upstream commit with id: bd2c4522c26d535515aebca52d27c004a7e0c05c Arm THUMB mode is broken because of an yet unknown errata see: http://lists.denx.de/pipermail/u-boot/2015-August/225793.html - backport upstream fix that was introduced in 2015.10-rc5 and was not fixed in 2015.10 final Signed-off-by: Dirk Neukirchen <dirkneukirchen@web.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47924 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch')
-rw-r--r--package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch b/package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch
new file mode 100644
index 0000000000..b8e65b5005
--- /dev/null
+++ b/package/boot/uboot-omap/patches/001-backport_upstream_image_c_fix_non_android_booting.patch
@@ -0,0 +1,33 @@
+From c139b5ff0999ec3d44a02ebdb623a92e5782e53e Mon Sep 17 00:00:00 2001
+From: Tom Rini <trini@konsulko.com>
+Date: Tue, 27 Oct 2015 19:04:40 -0400
+Subject: [PATCH] image.c: Fix non-Android booting with ramdisk and/or device
+ tree
+
+In 1fec3c5 I added a check that if we had an Android image we default to
+trying the kernel address for a ramdisk. However when we don't have an
+Android image buf is NULL and we oops here. Ensure that we have 'buf'
+to check first.
+
+Reported-by: elipe Balbi <balbi@ti.com>
+Signed-off-by: Tom Rini <trini@konsulko.com>
+---
+ common/image.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/common/image.c b/common/image.c
+index e607109..85c4f39 100644
+--- a/common/image.c
++++ b/common/image.c
+@@ -913,7 +913,7 @@ int boot_get_ramdisk(int argc, char * const argv[], bootm_headers_t *images,
+ * Look for an Android boot image.
+ */
+ buf = map_sysmem(images->os.start, 0);
+- if (genimg_get_format(buf) == IMAGE_FORMAT_ANDROID)
++ if (buf && genimg_get_format(buf) == IMAGE_FORMAT_ANDROID)
+ select = argv[0];
+ #endif
+
+--
+1.7.10.4
+