m68k: fix open issues with qemu coldfire
PATCH 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.
--- board/qemu/m68k-mcf5208/linux-4.5.config | 7 + .../patches/linux/0001-fix-do_sigreturn.patch | 100 ++ configs/qemu_m68k_mcf5208_defconfig | 8 +- .../busybox/busybox-minimal-with-network.config | 1057 ++++++++++++++++++++ 4 files changed, 1168 insertions(+), 4 deletions(-) create mode 100644 board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch create mode 100644 package/busybox/busybox-minimal-with-network.config
board/qemu/m68k-mcf5208/linux-4.5.config +7 -0
@@ -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 +4 -4
@@ -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 -BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal.config" -# mdev does not work correctly -BR2_ROOTFS_DEVICE_CREATION_STATIC=y +# use minimal busybox with hush and networking tools +BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal-with-network.config"
package/busybox/busybox-minimal-with-network.config new file +1057 -0
1,057 lines not on this page · raw message
Signature · 1 line
2.1.4
PATCH 1/1 m68k: fix open issues with qemu coldfire
Hello,
Quoted 7 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.
Signed-off-by Waldemar Brodkorb <[email protected]>
Quoted 8 lines
--- board/qemu/m68k-mcf5208/linux-4.5.config | 7 + .../patches/linux/0001-fix-do_sigreturn.patch | 100 ++ configs/qemu_m68k_mcf5208_defconfig | 8 +- .../busybox/busybox-minimal-with-network.config | 1057 ++++++++++++++++++++ 4 files changed, 1168 insertions(+), 4 deletions(-) create mode 100644 board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch create mode 100644 package/busybox/busybox-minimal-with-network.config
Thanks for the patch! However, I am not super happy with the busybox-minimal-with-network.config. I don't want to see an increasing number of Busybox default configurations.
If you have a STM32 platform handy, could you test if your busybox-minimal-with-network.config works fine for it? If it does, then please simply update busybox-minimal.config with whatever is needed for basic networking to work.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 m68k: fix open issues with qemu coldfire
Hi Thomas,
Thomas Petazzoni wrote,
Quoted 23 lines
Hello,
Quoted 7 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.
Signed-off-by Waldemar Brodkorb <[email protected]>Quoted 8 lines
--- board/qemu/m68k-mcf5208/linux-4.5.config | 7 + .../patches/linux/0001-fix-do_sigreturn.patch | 100 ++ configs/qemu_m68k_mcf5208_defconfig | 8 +- .../busybox/busybox-minimal-with-network.config | 1057 ++++++++++++++++++++ 4 files changed, 1168 insertions(+), 4 deletions(-) create mode 100644 board/qemu/m68k-mcf5208/patches/linux/0001-fix-do_sigreturn.patch create mode 100644 package/busybox/busybox-minimal-with-network.configThanks for the patch! However, I am not super happy with the busybox-minimal-with-network.config. I don't want to see an increasing number of Busybox default configurations.
Quoted 6 lines
If you have a STM32 platform handy, could you test if your busybox-minimal-with-network.config works fine for it? If it does, then please simply update busybox-minimal.config with whatever is needed for basic networking to work.
Thanks!
Okay, verified on my STM32F429discovery, resulting image is not too big. Will resend the patch.
best regards
Waldemar