[Buildroot] [git commit] qemu_sh4_r2d: update to fix serial console support

Peter Korsgaard jacmet at sunsite.dk
Wed Oct 26 09:11:53 UTC 2011

commit: http://git.buildroot.net/buildroot/commit/?id=40fcbc359e84dc92662324168ad97f83dbf031ed
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

sh4-r2d has a serial port, however it's the second SH UART that's
emulated by Qemu so we need to adjust the kernel configuration for it to
see the relevant UART and adjust the qemu command line for it too.

Signed-off-by: Gustavo Zacarias <gustavo at zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet at sunsite.dk>
 board/qemu/sh4-r2d/linux-3.1.config |    1 -
 board/qemu/sh4-r2d/readme.txt       |    6 ++++--
 configs/qemu_sh4_r2d_defconfig      |    2 +-
 3 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/board/qemu/sh4-r2d/linux-3.1.config b/board/qemu/sh4-r2d/linux-3.1.config
index 638e4e0..287f36a 100644
--- a/board/qemu/sh4-r2d/linux-3.1.config
+++ b/board/qemu/sh4-r2d/linux-3.1.config
@@ -48,7 +48,6 @@ CONFIG_INPUT_FF_MEMLESS=m
diff --git a/board/qemu/sh4-r2d/readme.txt b/board/qemu/sh4-r2d/readme.txt
index 76eafac..875e3d0 100644
--- a/board/qemu/sh4-r2d/readme.txt
+++ b/board/qemu/sh4-r2d/readme.txt
@@ -1,5 +1,7 @@
 Run the emulation with:
-  qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide -append "root=/dev/sda noiotrap"
+  qemu-system-sh4 -M r2d -kernel output/images/zImage -drive file=output/images/rootfs.ext2,if=ide -append "root=/dev/sda console=ttySC1,115200 noiotrap" -serial null -serial stdio
+The login prompt will appear in the terminal that started Qemu.
+The graphical window is the framebuffer.
-The login prompt will appear in the graphical window.
diff --git a/configs/qemu_sh4_r2d_defconfig b/configs/qemu_sh4_r2d_defconfig
index 32835de..8f92a93 100644
--- a/configs/qemu_sh4_r2d_defconfig
+++ b/configs/qemu_sh4_r2d_defconfig
@@ -4,7 +4,7 @@ BR2_sh4=y
 # system
 # filesystem

More information about the buildroot mailing list