summaryrefslogtreecommitdiffstats
path: root/board/qemu/or1k/patches/linux/0001-ld-or1k.patch
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-01-25 07:36:46 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-01-25 23:20:26 +0100
commitc1395b347fb2e4a7551d220881e1a075d1e6e7bd (patch)
tree4da4cbfb61608ee3091308d0c2cee48809d39cdf /board/qemu/or1k/patches/linux/0001-ld-or1k.patch
parenta818e29e76d9a083877094ed7bb3e9cfd31f3a46 (diff)
downloadbuildroot-c1395b347fb2e4a7551d220881e1a075d1e6e7bd.tar.gz
buildroot-c1395b347fb2e4a7551d220881e1a075d1e6e7bd.zip
or1k: add defconfig for Qemu system emulation
You can bootup a OpenRISC system, networking is not working. [Peter: drop unneeded _GETTY_PORT="ttyS0" setting] Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Tested-by: Romain Naour <romain.naour@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'board/qemu/or1k/patches/linux/0001-ld-or1k.patch')
-rw-r--r--board/qemu/or1k/patches/linux/0001-ld-or1k.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/board/qemu/or1k/patches/linux/0001-ld-or1k.patch b/board/qemu/or1k/patches/linux/0001-ld-or1k.patch
new file mode 100644
index 0000000000..aba2463c5f
--- /dev/null
+++ b/board/qemu/or1k/patches/linux/0001-ld-or1k.patch
@@ -0,0 +1,16 @@
+OpenRISC arch name was in the beginning or32
+
+Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
+
+diff -Nur linux-4.4.5.orig/arch/openrisc/kernel/vmlinux.lds.S linux-4.4.5/arch/openrisc/kernel/vmlinux.lds.S
+--- linux-4.4.5.orig/arch/openrisc/kernel/vmlinux.lds.S 2016-03-10 00:35:58.000000000 +0100
++++ linux-4.4.5/arch/openrisc/kernel/vmlinux.lds.S 2016-03-16 09:21:07.933535532 +0100
+@@ -30,7 +30,7 @@
+ #include <asm/cache.h>
+ #include <asm-generic/vmlinux.lds.h>
+
+-OUTPUT_FORMAT("elf32-or32", "elf32-or32", "elf32-or32")
++OUTPUT_FORMAT("elf32-or1k", "elf32-or1k", "elf32-or1k")
+ jiffies = jiffies_64 + 4;
+
+ SECTIONS
OpenPOWER on IntegriCloud