[ELDK] tty Probs with booting core-minimal-mtdutils rootfs
wd at denx.de
Thu Aug 9 11:48:59 CEST 2012
Dear Axel Beierlein,
In message <50225A60.2060700 at freenet.de> you wrote:
> getty: ioctl() TIOCSPGRP call failed: Inappropriate ioctl for device
> ELDK 5.2.1 generic-powerpc console
> generic-powerpc login:
> Where this comes from?
It comes from the fact that we use the generic "/dev/console" for the
> After login it prints:
> -sh: cannot set terminal process group (-1): Inappropriate ioctl for device
> -sh: no job control in this shell
> I also can't kill a process with Strg-C in the Terminal.
This is the consequence of not being able to set up a process group,
see error message above...
> Adding a ttyPSC0 device to dev/ and changing tty in the getty call at
There should be no need to add anything to /dev; the ttyPSC? nodes
should be auto-created by udev. If they are not on your system, then
you have a problem.
> inittab doesn't fix this Prob.
Yes, it does, at least for me. With this change:
-S:2345:respawn:/sbin/getty 115200 console
+S:2345:respawn:/sbin/getty 115200 ttyPSC0
I can login without errors, and job control is working fine:
ELDK 5.2.1 generic-powerpc ttyPSC0
generic-powerpc login: root
root at generic-powerpc:~# sleep 30
+ Stopped sleep 30
root at generic-powerpc:~# bg
 sleep 30
root at generic-powerpc:~# fg
root at generic-powerpc:~#
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Space is big. You just won't believe how vastly, hugely, mind-
bogglingly big it is. I mean, you may think it's a long way down the
road to the drug store, but that's just peanuts to space.
-- The Hitchhiker's Guide to the Galaxy
More information about the eldk