m68k: disable BR2_BINFMT_FLAT_SEP_DATA for coldfire
PATCH v2 1/1 m68k: disable BR2_BINFMT_FLAT_SEP_DATA for coldfire
BR2_BINFMT_FLAT_SEP_DATA can be used to create XIP userland and works fine for m68k. Unfortunately a lot of basic packages as pcre are not compileable because of a CPU or hardware limitation. The reason for failing are very big functions used in the libraries or application code.
Typical errors are:
Fatal error: Tried to convert PC relative branch to absolute jump or
error: value -yyyyy out of range
Add kernel patch from 4ec5542679264bc06a0356ef92f06ad7a0abe06d to make BR2_BINFMT_FLAT_ONE compiled firmware work fine.
Fixes:
http://autobuild.buildroot.net/results/20b/20b1586757450d6aad8583ad7a787a7ca11acef1/
http://autobuild.buildroot.net/results/d31/d311955ada1ffcd7f69e82965c8fe33eabe488cd/
---
v1 -> v2:
- add missing kernel patch from -next commit, requested by Thomas Petazzoni
- add more verbose commit message, requested by Thomas Petazzoni
--- arch/Config.in | 3 +- .../patches/linux/m68knommu-fix-signal.patch | 45 ++++++++++++++++++++++ configs/qemu_m68k_mcf5208_defconfig | 2 + 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 board/qemu/m68k-mcf5208/patches/linux/m68knommu-fix-signal.patch
arch/Config.in +1 -2
@@ -331,13 +331,12 @@ choice config BR2_BINFMT_FLAT_ONE bool "One memory region" - depends on !BR2_m68k help All segments are linked into one memory region. config BR2_BINFMT_FLAT_SEP_DATA bool "Separate data and code region" - depends on BR2_m68k || BR2_bfin + depends on BR2_bfin help Allow for the data and text segments to be separated and placed in different regions of memory.
board/qemu/m68k-mcf5208/patches/linux/m68knommu-fix-signal.patch new file +45 -0
45 lines not on this page · raw message
configs/qemu_m68k_mcf5208_defconfig +2 -0
@@ -9,6 +9,8 @@ BR2_SYSTEM_DHCP="eth0" BR2_TARGET_ROOTFS_INITRAMFS=y # BR2_TARGET_ROOTFS_TAR is not set +BR2_GLOBAL_PATCH_DIR="board/qemu/m68k-mcf5208/patches" + # Linux headers same as kernel, a 4.7 series BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7=y
Signature · 1 line
2.1.4
PATCH v2 1/1 m68k: disable BR2_BINFMT_FLAT_SEP_DATA for coldfire
Hello,
Quoted 24 lines · Waldemar Brodkorb
BR2_BINFMT_FLAT_SEP_DATAcan be used to create XIP userland and works fine for m68k. Unfortunately a lot of basic packages as pcre are not compileable because of a CPU or hardware limitation. The reason for failing are very big functions used in the libraries or application code.Typical errors are:
Fatal error: Tried to convert PC relative branch to absolute jump or
error: value -yyyyy out of rangeAdd kernel patch from
4ec5542679264bc06a0356ef92f06ad7a0abe06dto makeBR2_BINFMT_FLAT_ONEcompiled firmware work fine.Fixes:
http://autobuild.buildroot.net/results/20b/20b1586757450d6aad8583ad7a787a7ca11acef1/
http://autobuild.buildroot.net/results/d31/d311955ada1ffcd7f69e82965c8fe33eabe488cd/Signed-off-by Waldemar Brodkorb <[email protected]>---
v1 -> v2:
- add missing kernel patch from -next commit, requested by Thomas Petazzoni
- add more verbose commit message, requested by Thomas Petazzoni
Quoted 6 lines
--- arch/Config.in | 3 +- .../patches/linux/m68knommu-fix-signal.patch | 45 ++++++++++++++++++++++ configs/qemu_m68k_mcf5208_defconfig | 2 + 3 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 board/qemu/m68k-mcf5208/patches/linux/m68knommu-fix-signal.patch
I've applied to master, but in a different form. I've first cherry-picked from the next branch your patch that enables the FLAT_ONE format, and then applied this patch with just the part that disables FLAT_SEP_DATA on m68k. I've also added a comment in the Config.in file itself about why FLAT_SEP_DATA is not available on m68k.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com