LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-30-2009, 11:15 PM   #1
Jane.x
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
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!
 
Old 07-01-2009, 04:36 AM   #2
bhaslinux
Member
 
Registered: Oct 2003
Location: UnitedKingdom
Distribution: Debian Lenny
Posts: 351

Rep: Reputation: 47
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 ? )
 
Old 07-02-2009, 06:03 AM   #3
Jane.x
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
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!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to print a message from kernel module to terminal console or tty console yogesh_bansal Linux - Newbie 2 02-27-2009 09:10 AM
Can not login as any user in TTY console suhas! Linux - Newbie 12 07-05-2008 05:14 AM
Console Redirection rjb982 Linux - Software 8 08-02-2006 02:54 PM
TTY echo / redirection / monitor howto rainman4_8 Linux - Newbie 2 06-28-2005 01:46 PM
more then 12 tty /console ... apenguinlinux Debian 4 02-21-2005 09:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 05:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration