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! |
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 ? ) |
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. |