From: Blaisorblade <bla...@ya...> - 2006-08-12 18:41:08
|
On Friday 11 August 2006 20:18, Mathew Brown wrote: > Hi, > I'm a UML newbie and am currently trying to configure consoles / > serial lines as illustrated here: > http://user-mode-linux.sourceforge.net/input.html It seems that no > matter how I configure a console, nothing seems to be working. For > example, I tried each of the following: > > uml_mconsole vZFvJC config con2=tty:/dev/tty12 (it returned OK) Then you'd do ctrl-alt-f12 and press Enter there. > uml_mconsole vZFvJC config con1=pts:/dev/pts/7 (it returned OK) Has any program inside UML opened /dev/tty2 (first case) or /dev/tty1 (2nd case)? Another problem (more likely) is the slave/master problem. Search this mailing list for master/slave ttys - when two processes must talk via ttys, you attach one to the master and the other to the slave (for instance, /dev/ptypN and /dev/ttypN). > However, trying to attack screen to either /dev/tty12 or /dev/pts/7 > gives me the following error: Hmm, I frankly doubt you can attach to /dev/pts/7. Usually you attach to "pts" and see in the kernel logs which pts has been choosed. In that case, the kernel opens /dev/ptmx and you open /dev/pts/N following what the kernel says, and it should work easily. > /var/run/screen/S-root/3825.pts-1.Kano: No such file or directory This error is a strange one, you should check your screen syntax (it is probably trying to resume a detached screen session if you see the above). > Looking at the dmesg output in the UML instance, I only find the > following: Ignore those messages, they're harmless. > line_ioctl: tty0: ioctl TIOCLINUX called > line_ioctl: tty0: ioctl TIOCLINUX called > line_ioctl: tty0: ioctl TIOCLINUX called > line_ioctl: tty0: ioctl TIOCLINUX called > line_ioctl: tty0: ioctl TIOCLINUX called > I find no mention of the consoles or serial lines. Also, the above was > shown by dmesg before even running the uml_mconsole commands, which > means that although uml_mconsole returned with an 'OK', it seems the UML > instance isn't aware of anything. Any ideas? Thanks for your help. > PS. I'm using the kernel downloaded from: > http://user-mode-linux.sourceforge.net/new/linux-2.6.16.bz2 and the root > filesystem from: > http://uml.nagafix.co.uk/FedoraCore5/FedoraCore5-x86-root_fs.bz2 I'm > also running every as root. > -- > Mathew Brown > mat...@fa... -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com |