Skip to contentSkip to conversation

m68k: flat one memory region works with small kernel patch

PATCH Superseded Waldemar Brodkorb 2 participants 2 messages Aug 17, 2016

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: flat one memory region works with small kernel patch

Greg Ungerer fixed recently a bug in the Linux kernel, which allows to use one memory region again.

---
 arch/Config.in                                     |  2 +-
 .../patches/linux/m68knommu-fix-signal.patch       | 45 ++++++++++++++++++++++
 configs/qemu_m68k_mcf5208_defconfig                |  2 +
 3 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 board/qemu/m68k-mcf5208/patches/linux/m68knommu-fix-signal.patch
arch/Config.in +1 -1
index b980e05..73d240f 100644
@@ -331,7 +331,7 @@ choice
 
 config BR2_BINFMT_FLAT_ONE
 	bool "One memory region"
-	depends on !BR2_m68k
+	depends on BR2_m68k || BR2_bfin
 	help
 	  All segments are linked into one memory region.
 
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
index f911467..659ae3d 100644
@@ -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
#1 lore raw

PATCH 1/1 m68k: flat one memory region works with small kernel patch

Hi Waldemar,

Quoted 16 lines · Waldemar Brodkorb

Greg Ungerer fixed recently a bug in the Linux kernel, which allows to use one memory region again.

---
 arch/Config.in                                     |  2 +-
 .../patches/linux/m68knommu-fix-signal.patch       | 45 ++++++++++++++++++++++
 configs/qemu_m68k_mcf5208_defconfig                |  2 +
 3 files changed, 48 insertions(+), 1 deletion(-)
 create mode 100644 board/qemu/m68k-mcf5208/patches/linux/m68knommu-fix-signal.patch
arch/Config.in +0 -0
index b980e05..73d240f 100644

arch/Config.in choice · line 334

Quoted 5 lines
arch/Config.in +1 -1
@@ -331,7 +331,7 @@ choice
 
 config BR2_BINFMT_FLAT_ONE
 	bool "One memory region"
-	depends on !BR2_m68k
+	depends on BR2_m68k || BR2_bfin

This change excludes other noMMU arches (e.g. ARM). Is that intended?

baruch

Signature · 3 lines
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -