LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   how to console/shell redirection to another tty device? (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-console-shell-redirection-to-another-tty-device-736842/)

Jane.x 06-30-2009 11:15 PM

how to console/shell redirection to another tty device?
 
Hi, how can I redirect the console/shell to ttyGS device (usb gadget serial function) instead of ttyS0?

Thanks!

bhaslinux 07-01-2009 04:36 AM

Load the usb gadget's driver in initrd.
After this you can give console=/dev/ttyGS in the kernel command line.
The /dev/ttyGS must be present in the dev directory and the driver must be already loaded
(may be initramfs will help ? )

Jane.x 07-02-2009 06:03 AM

Thanks! I could make console work after register_console added in gadget serial driver and polling mode supported.

While the device node is not present when init, I'm using workaround now. How can I start shell after system boot up, other than inittab? As usb cable may not be connected at that time. I tried "getty 115200 /dev/ttyGS", it works. But when I put this command in background like "getty 115200 /dev/ttyGS &", it could login from ttyGS, but no shell prompt afterwards, thouth the typed charactor could be displayed correctly. Anything else need to be configured to make it work at background?

Thanks!


All times are GMT -5. The time now is 11:54 PM.