linux: vmlinux target is valid for powerpc too
PATCH 1/6 linux: vmlinux target is valid for powerpc too
The vmlinux kernel target is valid for powerpc kernels too. In fact this broke the qemu sample config.
--- linux/Config.in | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
linux/Config.in +1 -1
@@ -146,7 +146,7 @@ config BR2_LINUX_KERNEL_VMLINUX_BIN config BR2_LINUX_KERNEL_VMLINUX bool "vmlinux" - depends on BR2_mips || BR2_mipsel + depends on BR2_mips || BR2_mipsel || BR2_powerpc config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM bool "custom target"
Signature · 1 line
1.7.3.4
PATCH 2/6 qemu_arm_versatile: use kernel 3.1 and add readme
---
.../{linux-2.6.38.config => linux-3.1.config} | 0
board/qemu/arm-versatile/readme.txt | 6 ++++++
configs/qemu_arm_versatile_defconfig | 4 ++--
3 files changed, 8 insertions(+), 2 deletions(-)
rename board/qemu/arm-versatile/{linux-2.6.38.config => linux-3.1.config} (100%)
create mode 100644 board/qemu/arm-versatile/readme.txtboard/qemu/arm-versatile/linux-3.1.config renamed from board/qemu/arm-versatile/linux-2.6.38.config +0 -0
board/qemu/arm-versatile/readme.txt new file +6 -0
@@ -0,0 +1,6 @@ +Run the emulation with: + + qemu-system-arm -M versatilepb -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=scsi -append "root=/dev/sda console=ttyAMA0,115200" -serial stdio + +The login prompt will appear in the terminal that started Qemu. The +graphical window is the framebuffer.
configs/qemu_arm_versatile_defconfig +2 -2
@@ -13,7 +13,7 @@ BR2_TARGET_ROOTFS_EXT2=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.38.8" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-2.6.38.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/arm-versatile/linux-3.1.config" BR2_LINUX_KERNEL_ZIMAGE=y
Signature · 1 line
1.7.3.4
PATCH 2/6 qemu_arm_versatile: use kernel 3.1 and add readme
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 3/6 qemu_mipsel_malta: update to kernel 3.1
In reply to Gustavo Zacarias---
.../{linux-2.6.38.config => linux-3.1.config} | 0
configs/qemu_mipsel_malta_defconfig | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
rename board/qemu/mipsel-malta/{linux-2.6.38.config => linux-3.1.config} (100%)board/qemu/mipsel-malta/linux-3.1.config renamed from board/qemu/mipsel-malta/linux-2.6.38.config +0 -0
configs/qemu_mipsel_malta_defconfig +2 -2
@@ -9,9 +9,9 @@ BR2_TARGET_ROOTFS_EXT2=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.38.8" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mipsel-malta/linux-2.6.38.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/mipsel-malta/linux-3.1.config" BR2_LINUX_KERNEL_VMLINUX=y # Serial port config
Signature · 1 line
1.7.3.4
PATCH 3/6 qemu_mipsel_malta: update to kernel 3.1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/6 qemu_x86: update to kernel 3.1 and add readme
In reply to Gustavo Zacarias---
.../x86/{linux-3.0.config => linux-3.1.config} | 0
board/qemu/x86/readme.txt | 5 +++++
configs/qemu_x86_defconfig | 5 +++--
3 files changed, 8 insertions(+), 2 deletions(-)
rename board/qemu/x86/{linux-3.0.config => linux-3.1.config} (100%)
create mode 100644 board/qemu/x86/readme.txtboard/qemu/x86/linux-3.1.config renamed from board/qemu/x86/linux-3.0.config +0 -0
board/qemu/x86/readme.txt new file +5 -0
@@ -0,0 +1,5 @@ +Run the emulation with: + + qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=ide -append root=/dev/sda + +The login prompt will appear in the graphical window.
configs/qemu_x86_defconfig +3 -2
@@ -4,6 +4,7 @@ BR2_x86_pentiumpro=y # system BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="tty1" # filesystem BR2_TARGET_ROOTFS_EXT2=y
@@ -12,6 +13,6 @@ BR2_TARGET_ROOTFS_EXT2=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.0.4" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86/linux-3.0.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/x86/linux-3.1.config"
Signature · 1 line
1.7.3.4
PATCH 4/6 qemu_x86: update to kernel 3.1 and add readme
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]> Gustavo> ---
Gustavo> .../x86/{linux-3.0.config => linux-3.1.config} | 0
Gustavo> board/qemu/x86/readme.txt | 5 +++++
Gustavo> configs/qemu_x86_defconfig | 5 +++--
Gustavo> 3 files changed, 8 insertions(+), 2 deletions(-)
Gustavo> rename board/qemu/x86/{linux-3.0.config => linux-3.1.config} (100%)
Gustavo> create mode 100644 board/qemu/x86/readme.txt Gustavo> diff --git a/board/qemu/x86/linux-3.0.config b/board/qemu/x86/linux-3.1.config
Gustavo> similarity index 100%
Gustavo> rename from board/qemu/x86/linux-3.0.config
Gustavo> rename to board/qemu/x86/linux-3.1.config
Gustavo> diff --git a/board/qemu/x86/readme.txt b/board/qemu/x86/readme.txt
Gustavo> new file mode 100644
Gustavo> index 0000000..c06d24f
Gustavo> --- /dev/null
Gustavo> +++ b/board/qemu/x86/readme.txt
Gustavo> @@ -0,0 +1,5 @@
Gustavo> +Run the emulation with:
Gustavo> +
Gustavo> + qemu-system-x86_64 -M pc -kernel output/images/bzImage -drive file=output/images/rootfs.ext2,if=ide -append root=/dev/sda
Why not qemu-system-i386? I would prefer to have console=ttyS0,115200 on the cmdline as well.
Gustavo> +
Gustavo> +The login prompt will appear in the graphical window.
And then change this line.
Gustavo> diff --git a/configs/qemu_x86_defconfig b/configs/qemu_x86_defconfig Gustavo> index d60b38d..8efe9ae 100644
Gustavo> --- a/configs/qemu_x86_defconfig
Gustavo> +++ b/configs/qemu_x86_defconfig
Gustavo> @@ -4,6 +4,7 @@ BR2_x86_pentiumpro=y
Gustavo> # system
Gustavo> BR2_TARGET_GENERIC_GETTY=y
Gustavo> +BR2_TARGET_GENERIC_GETTY_PORT="tty1"
Please keep it on ttyS0.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/6 qemu_x86: update to kernel 3.1 and add readme
Quoted 3 lines · Peter Korsgaard
Why not qemu-system-i386? I would prefer to have console=ttyS0,115200 on
the cmdline as well.
qemu-system-i386 is deprecated.
When it's present, and that doesn't hold true for every distro, it's just a symlink to qemu-system-x86_64.
Quoted 2 lines
And then change this line.
Please keep it on ttyS0.
Any particular reason for this on x86?
It would make things simpler to test graphics apps (X11) keeping it PC-like IMHO.
Regards.
PATCH 4/6 qemu_x86: update to kernel 3.1 and add readme
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Hi,
Gustavo> qemu-system-i386 is deprecated.
Gustavo> When it's present, and that doesn't hold true for every distro, it's Gustavo> just a symlink to qemu-system-x86_64.
Ok
Quoted 2 lines
Quoted 2 lines
And then change this line.
Please keep it on ttyS0.
Gustavo> Any particular reason for this on x86?
Gustavo> It would make things simpler to test graphics apps (X11) keeping it Gustavo> PC-like IMHO.
Just to keep it closer to the other configs (E.G. the versatile config). What's the problem with running X11 from a getty on ttyS0?
Signature · 1 line
Bye, Peter Korsgaard
PATCH 4/6 qemu_x86: update to kernel 3.1 and add readme
Quoted 7 lines · Peter Korsgaard
Gustavo> Any particular reason for this on x86? Gustavo> It would make things simpler to test graphics apps (X11)
keeping it
Gustavo> PC-like IMHO.Just to keep it closer to the other configs (E.G. the versatile config). What's the problem with running X11 from a getty on ttyS0?
On x86-land we've got two scenarios:
1) The usual PC-like hardware with VGA and for which modern implementations mostly lack serial ports (even if they have them they lack the connector/level converters thus not having them in practical terms).
2) The really-embedded x86 boards which completely lack video out and use serial as a console (soekris, pcengines and others).
If we intend for the qemu sample configs to work on real hardware we should choose one of the above scenarios.
I think we sholdn't limit ourselves to keep the configs as close as possible between themselves, rather as close as the hardware and use scenario.
I'm not against serial console for x86, just that many people would probably expect the resulting image to work on a standard non-serial bearing PC. After all qemu emulates a PC rather than a embedded-ish x86 with GPIO and other embedded features.
Regards.
PATCH 5/6 qemu_sh4_r2d: update to kernel 3.1 and update readme
In reply to Gustavo Zacarias---
...-missing-consts-to-sys_execve-declaration.patch | 17 -----------------
.../linux-sh-fix-kconfig-warning.patch | 13 -------------
.../{linux-2.6.36.config => linux-3.1.config} | 0
board/qemu/sh4-r2d/readme.txt | 18 +++---------------
configs/qemu_sh4_r2d_defconfig | 9 ++++++---
5 files changed, 9 insertions(+), 48 deletions(-)
delete mode 100644 board/qemu/sh4-r2d/kernel-patches/linux-06-17-SH-Add-missing-consts-to-sys_execve-declaration.patch
delete mode 100644 board/qemu/sh4-r2d/kernel-patches/linux-sh-fix-kconfig-warning.patch
rename board/qemu/sh4-r2d/{linux-2.6.36.config => linux-3.1.config} (100%)board/qemu/sh4-r2d/kernel-patches/linux-06-17-SH-Add-missing-consts-to-sys_execve-declaration.patch deleted +0 -17
@@ -1,17 +0,0 @@ -diff --git a/arch/sh/include/asm/syscalls_32.h b/arch/sh/include/asm/syscalls_32.h -index be201fd..454538a 100644 ---- a/arch/sh/include/asm/syscalls_32.h -+++ b/arch/sh/include/asm/syscalls_32.h -@@ -19,8 +19,10 @@ asmlinkage int sys_clone(unsigned long clone_flags, unsigned long newsp, - asmlinkage int sys_vfork(unsigned long r4, unsigned long r5, - unsigned long r6, unsigned long r7, - struct pt_regs __regs); --asmlinkage int sys_execve(const char __user *ufilename, char __user * __user *uargv, -- char __user * __user *uenvp, unsigned long r7, -+asmlinkage int sys_execve(const char __user *ufilename, -+ const char __user *const __user *uargv, -+ const char __user *const __user *uenvp, -+ unsigned long r7, - struct pt_regs __regs); - asmlinkage int sys_sigsuspend(old_sigset_t mask, unsigned long r5, - unsigned long r6, unsigned long r7,
board/qemu/sh4-r2d/kernel-patches/linux-sh-fix-kconfig-warning.patch deleted +0 -13
@@ -1,13 +0,0 @@ -diff --git a/arch/sh/Kconfig b/arch/sh/Kconfig -index 33990fa..06645b6 100644 ---- a/arch/sh/Kconfig -+++ b/arch/sh/Kconfig -@@ -45,7 +45,7 @@ config SUPERH32 - select HAVE_ARCH_KGDB - select HAVE_HW_BREAKPOINT - select HAVE_MIXED_BREAKPOINTS_REGS -- select PERF_EVENTS if HAVE_HW_BREAKPOINT -+ select PERF_EVENTS - select ARCH_HIBERNATION_POSSIBLE if MMU - - config SUPERH64
board/qemu/sh4-r2d/linux-3.1.config renamed from board/qemu/sh4-r2d/linux-2.6.36.config +0 -0
board/qemu/sh4-r2d/readme.txt +3 -15
@@ -1,17 +1,5 @@ -This little documentation explains how to build a kernel and a rootfs -for qemu with sh4 architecture. +Run the emulation with: -1) Select qemu sh4 configuration and compile it : + qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide -append "root=/dev/sda noiotrap" -make sh4_defconfig -make all - -2) Run qemu-system-sh4 with the kernel and rootfs previously generated - -It's recommended to use a git release for qemu (the current stable -version has framebuffer display issues). If you want to avoid building -all target, you can use this option on qemu configure : ---target-list=sh4-softmmu - -The command is : -qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide,format=raw -append root=/dev/sda console=ttySC1,115200 noiotrap +The login prompt will appear in the graphical window.
configs/qemu_sh4_r2d_defconfig +6 -3
@@ -2,6 +2,10 @@ BR2_sh=y BR2_sh4=y +# system +BR2_TARGET_GENERIC_GETTY=y +BR2_TARGET_GENERIC_GETTY_PORT="tty1" + # filesystem BR2_TARGET_ROOTFS_EXT2=y # BR2_TARGET_ROOTFS_TAR is not set
@@ -14,8 +18,7 @@ BR2_EXTRA_GCC_CONFIG_OPTIONS="--with-multilib-list=m4,m4-nofpu" # Linux kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.36" -BR2_LINUX_KERNEL_PATCH="board/qemu/sh4-r2d/kernel-patches/" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sh4-r2d/linux-2.6.36.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/sh4-r2d/linux-3.1.config" BR2_LINUX_KERNEL_ZIMAGE=y
Signature · 1 line
1.7.3.4
PATCH 5/6 qemu_sh4_r2d: update to kernel 3.1 and update readme
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> +++ b/configs/qemu_sh4_r2d_defconfig
Gustavo> @@ -2,6 +2,10 @@
Gustavo> BR2_sh=y
Gustavo> BR2_sh4=y
Gustavo> +# system
Gustavo> +BR2_TARGET_GENERIC_GETTY=y
Gustavo> +BR2_TARGET_GENERIC_GETTY_PORT="tty1"
No serial port emulated? From the defconfig I see:
CONFIG_SERIAL_8250=yCONFIG_SERIAL_SH_SCI=yCONFIG_SERIAL_SH_SCI_NR_UARTS=1
I prefer to run the getty on the serial port for the qemu defconfigs, because it's closer to what is typically done on hw (and makes it easier to reuse rootfs on real hw).
Signature · 1 line
Bye, Peter Korsgaard
PATCH 5/6 qemu_sh4_r2d: update to kernel 3.1 and update readme
Quoted 10 lines · Peter Korsgaard
No serial port emulated? From the defconfig I see:
CONFIG_SERIAL_8250=yCONFIG_SERIAL_SH_SCI=yCONFIG_SERIAL_SH_SCI_NR_UARTS=1I prefer to run the getty on the serial port for the qemu defconfigs, because it's closer to what is typically done on hw (and makes it easier
to reuse rootfs on real hw).
Me too for real embedded targets unlike qemu-system-x86. Unfortunately either qemu 0.14 doesn't emulate the UART and/or the real target doesn't have one.
Regards.
PATCH 5/6 qemu_sh4_r2d: update to kernel 3.1 and update readme
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
I prefer to run the getty on the serial port for the qemu defconfigs, because it's closer to what is typically done on hw (and makes it easier
to reuse rootfs on real hw).
Gustavo> Me too for real embedded targets unlike qemu-system-x86. Gustavo> Unfortunately either qemu 0.14 doesn't emulate the UART and/or the Gustavo> real target doesn't have one.
Ok, I'll commit it then - Thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 5/6 qemu_sh4_r2d: update to kernel 3.1 and update readme
Quoted 6 lines · Peter Korsgaard
Gustavo> Me too for real embedded targets unlike qemu-system-x86. Gustavo> Unfortunately either qemu 0.14 doesn't emulate the UART
and/or the
Gustavo> real target doesn't have one.Ok, I'll commit it then - Thanks.
Found a fix.
It seems there were kernel changes and qemu behaviour changes too that prevented it from showing up and working.
Patches will follow.
PATCH 6/6 qemu_ppc_g3beige: update to kernel 3.1
In reply to Gustavo Zacarias---
.../{linux-2.6.36.config => linux-3.1.config} | 0
configs/qemu_ppc_g3beige_defconfig | 4 ++--
2 files changed, 2 insertions(+), 2 deletions(-)
rename board/qemu/powerpc-g3beige/{linux-2.6.36.config => linux-3.1.config} (100%)board/qemu/powerpc-g3beige/linux-3.1.config renamed from board/qemu/powerpc-g3beige/linux-2.6.36.config +0 -0
configs/qemu_ppc_g3beige_defconfig +2 -2
@@ -9,9 +9,9 @@ BR2_TARGET_ROOTFS_EXT2=y # Kernel BR2_LINUX_KERNEL=y BR2_LINUX_KERNEL_CUSTOM_VERSION=y -BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="2.6.36" +BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="3.1" BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y -BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/powerpc-g3beige/linux-2.6.36.config" +BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/qemu/powerpc-g3beige/linux-3.1.config" BR2_LINUX_KERNEL_VMLINUX=y # Serial port config
Signature · 1 line
1.7.3.4
PATCH 6/6 qemu_ppc_g3beige: update to kernel 3.1
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/6 linux: vmlinux target is valid for powerpc too
In reply to Gustavo ZacariasQuoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Gustavo" == Gustavo Zacarias <[email protected]> writes:
Gustavo> The vmlinux kernel target is valid for powerpc kernels too. Gustavo> In fact this broke the qemu sample config.
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard