[U-Boot] [PATCH] openrd: disable private arch memset, memcpy and libgcc

Albert ARIBAUD albert.u.boot at aribaud.net
Sun Feb 26 15:29:32 UTC 2017


The switch to private LIBGCC causes 'undefined instruction'
exception in at least the Open-RD Ultimate and Client, and
quite probably the Open-RD Base as well.

While debugging this issue, it appeared the switch to
architecture-optimized memset and memcpy also causes the
same exceptions.

Until a fix to private libgcc and architecture-optimized
memcpy and memset is mainlined, disable their use in all
openrd configurations.

Signed-off-by: Albert ARIBAUD <albert.u.boot at aribaud.net>
---

 configs/openrd_base_defconfig     | 4 ++++
 configs/openrd_client_defconfig   | 4 ++++
 configs/openrd_ultimate_defconfig | 4 ++++
 3 files changed, 12 insertions(+)

diff --git a/configs/openrd_base_defconfig b/configs/openrd_base_defconfig
index 067ddbc5cc..4b8c51a771 100644
--- a/configs/openrd_base_defconfig
+++ b/configs/openrd_base_defconfig
@@ -21,3 +21,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+# Private memcpy, memset and libgcc cause undefined instruction exceptions
+CONFIG_USE_ARCH_MEMSET=n
+CONFIG_USE_ARCH_MEMCPY=n
+CONFIG_USE_PRIVATE_LIBGCC=n
diff --git a/configs/openrd_client_defconfig b/configs/openrd_client_defconfig
index b90ead158f..04f243a57b 100644
--- a/configs/openrd_client_defconfig
+++ b/configs/openrd_client_defconfig
@@ -21,3 +21,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+# Private memcpy, memset and libgcc cause undefined instruction exceptions
+CONFIG_USE_ARCH_MEMSET=n
+CONFIG_USE_ARCH_MEMCPY=n
+CONFIG_USE_PRIVATE_LIBGCC=n
diff --git a/configs/openrd_ultimate_defconfig b/configs/openrd_ultimate_defconfig
index 2bc8ace8d0..c8d4c3176f 100644
--- a/configs/openrd_ultimate_defconfig
+++ b/configs/openrd_ultimate_defconfig
@@ -21,3 +21,7 @@ CONFIG_SYS_NS16550=y
 CONFIG_USB=y
 CONFIG_USB_STORAGE=y
 CONFIG_OF_LIBFDT=y
+# Private memcpy, memset and libgcc cause undefined instruction exceptions
+CONFIG_USE_ARCH_MEMSET=n
+CONFIG_USE_ARCH_MEMCPY=n
+CONFIG_USE_PRIVATE_LIBGCC=n
-- 
2.11.0



More information about the U-Boot mailing list