* [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4
@ 2011-10-25 12:10 Gustavo Zacarias
2011-10-25 12:10 ` [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support Gustavo Zacarias
2011-10-26 9:11 ` [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Peter Korsgaard
0 siblings, 2 replies; 4+ messages in thread
From: Gustavo Zacarias @ 2011-10-25 12:10 UTC (permalink / raw)
To: buildroot
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
---
fs/skeleton/etc/securetty | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/fs/skeleton/etc/securetty b/fs/skeleton/etc/securetty
index fd0ec8e..4ab956f 100644
--- a/fs/skeleton/etc/securetty
+++ b/fs/skeleton/etc/securetty
@@ -40,3 +40,5 @@ ttyO3
ttyAM0
ttyAM1
ttyAM2
+ttySC0
+ttySC1
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support
2011-10-25 12:10 [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Gustavo Zacarias
@ 2011-10-25 12:10 ` Gustavo Zacarias
2011-10-26 9:12 ` Peter Korsgaard
2011-10-26 9:11 ` [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Peter Korsgaard
1 sibling, 1 reply; 4+ messages in thread
From: Gustavo Zacarias @ 2011-10-25 12:10 UTC (permalink / raw)
To: buildroot
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@zacarias.com.ar>
---
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
CONFIG_VT_HW_CONSOLE_BINDING=y
CONFIG_SERIAL_8250=y
CONFIG_SERIAL_SH_SCI=y
-CONFIG_SERIAL_SH_SCI_NR_UARTS=1
CONFIG_SERIAL_SH_SCI_CONSOLE=y
CONFIG_HW_RANDOM=y
CONFIG_SPI=y
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
BR2_TARGET_GENERIC_GETTY=y
-BR2_TARGET_GENERIC_GETTY_PORT="tty1"
+BR2_TARGET_GENERIC_GETTY_PORT="ttySC1"
# filesystem
BR2_TARGET_ROOTFS_EXT2=y
--
1.7.3.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4
2011-10-25 12:10 [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Gustavo Zacarias
2011-10-25 12:10 ` [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support Gustavo Zacarias
@ 2011-10-26 9:11 ` Peter Korsgaard
1 sibling, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-10-26 9:11 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support
2011-10-25 12:10 ` [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support Gustavo Zacarias
@ 2011-10-26 9:12 ` Peter Korsgaard
0 siblings, 0 replies; 4+ messages in thread
From: Peter Korsgaard @ 2011-10-26 9:12 UTC (permalink / raw)
To: buildroot
>>>>> "Gustavo" == Gustavo Zacarias <gustavo@zacarias.com.ar> writes:
Gustavo> sh4-r2d has a serial port, however it's the second SH UART
Gustavo> that's emulated by Qemu so we need to adjust the kernel
Gustavo> configuration for it to see the relevant UART and adjust the
Gustavo> qemu command line for it too.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-10-26 9:12 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-25 12:10 [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Gustavo Zacarias
2011-10-25 12:10 ` [Buildroot] [PATCH 2/2] qemu_sh4_r2d: update to fix serial console support Gustavo Zacarias
2011-10-26 9:12 ` Peter Korsgaard
2011-10-26 9:11 ` [Buildroot] [PATCH 1/2] securetty: update to add ttySC for sh4 Peter Korsgaard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox