Skip to contentSkip to conversation

m68k: fix open issues with qemu coldfire

PATCH New Waldemar Brodkorb 2 participants 2 messages May 10, 2016 – May 11, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 m68k: fix open issues with qemu coldfire

Enable kernel drivers for networking and add a simple busybox config with basic network tools.

Add kernel patch from Linux git to fix hush segfaults while using signal handler.

---
v1 -> v2:
* use generic busybox-minimal.config with networking tools enabled as requested by Thomas Petazzoni
* verified to still work with STM32F429 discovery board

---
 board/qemu/m68k-mcf5208/linux-4.5.config           |   7 ++
 .../patches/linux/0001-fix-do_sigreturn.patch      | 100 +++++++++++++++++++++
 configs/qemu_m68k_mcf5208_defconfig                |   6 +-
 package/busybox/busybox-minimal.config             |  82 ++++++++---------
 4 files changed, 151 insertions(+), 44 deletions(-)
 create mode 100644 board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch
board/qemu/m68k-mcf5208/linux-4.5.config +7 -0
index bf30bf4..09a89d7 100644
@@ -19,3 +19,10 @@ CONFIG_SERIAL_MCF_BAUDRATE=115200
 CONFIG_SERIAL_MCF_CONSOLE=y
 CONFIG_BOOTPARAM=y
 CONFIG_BOOTPARAM_STRING="console=ttyS0,115200"
+CONFIG_NET=y
+CONFIG_PACKET=y
+CONFIG_UNIX=y
+CONFIG_INET=y
+CONFIG_NETDEVICES=y
+CONFIG_NET_VENDOR_FREESCALE=y
+CONFIG_FEC=y
board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch new file +100 -0

100 lines not on this page · raw message

configs/qemu_m68k_mcf5208_defconfig +3 -3
index 53ee1ff..31db912 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.5 series
 BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_5=y
 
@@ -24,7 +26,5 @@ BR2_LINUX_KERNEL_VMLINUX=y
 BR2_TARGET_GENERIC_GETTY=y
 BR2_TARGET_GENERIC_GETTY_PORT="ttyS0"
 
-# use minimal busybox with hush
+# use minimal busybox with hush and networking tools
 BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal.config"
-# mdev does not work correctly
-BR2_ROOTFS_DEVICE_CREATION_STATIC=y
package/busybox/busybox-minimal.config +41 -41

154 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw

PATCH v2 1/1 m68k: fix open issues with qemu coldfire

Hello,

Quoted 12 lines · Waldemar Brodkorb

Enable kernel drivers for networking and add a simple busybox config with basic network tools.

Add kernel patch from Linux git to fix hush segfaults while using signal handler.

---
v1 -> v2:
* use generic busybox-minimal.config with networking tools enabled as requested by Thomas Petazzoni
* verified to still work with STM32F429 discovery board

Quoted 7 lines
---
 board/qemu/m68k-mcf5208/linux-4.5.config           |   7 ++
 .../patches/linux/0001-fix-do_sigreturn.patch      | 100 +++++++++++++++++++++
 configs/qemu_m68k_mcf5208_defconfig                |   6 +-
 package/busybox/busybox-minimal.config             |  82 ++++++++---------
 4 files changed, 151 insertions(+), 44 deletions(-)
 create mode 100644 board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com