Skip to contentSkip to conversation

Can't access tty; job control turned off.

Buildroot Rolf Blindheim 2 participants 2 messages Aug 21, 2007

lore
Share & tools
lore
#0 lore raw

Hello.
Not sure if this is the proper place to ask, but I'm getting nowhere with other forums, goggle, etc..
I've created a toolchain from todays buildroot-snapshot, leaving all the default settings just to make sure I'm not screwing up something. The image builds fine. I'm booting with a custom linux-2.6.21.5 kernel, which seems to work as expected too.
The image is supposed to work on an embedded device, running the AMD Geode x86 CPU. The boot is working as intended, with switch_root and tmpfs, etc, but when init is initializing the problem is that I get no login prompt. sysinit can't pull /sbin/getty on /dev/tty1 with the default inittab which comes with buildroot/busybox.
after adding ::sysinit:/bin/ash in /etc/inittab, I get a shell running on /dev/console, but along comes:

/bin/ash: can't access tty; job control turned off

I've read every post I can imagine on the subject, but there is something here I just don't get.
I'd really appreciate any hints, preferable solutions ;) on this.. I'm so stuck with this, and my time is running out soon..
All device nodes are created properly in /dev from /sys.
Please let me know if I've forget to include some information.

Signature · 9 lines
Rolf Blindheim
<[email protected]>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://busybox.net/lists/buildroot/attachments/20070821/044db1db/attachment.pgp 
#1 lore raw
Quoted 9 lines

The image is supposed to work on an embedded device, running the AMD Geode x86 CPU. The boot is working as intended, with switch_root and tmpfs, etc, but when init is initializing the problem is that I get no login prompt. sysinit can't pull /sbin/getty on /dev/tty1 with the default inittab which comes with buildroot/busybox.
after adding ::sysinit:/bin/ash in /etc/inittab, I get a shell running on /dev/console, but along comes:

Quoted 8 lines

/bin/ash: can't access tty; job control turned off

I've read every post I can imagine on the subject, but there is something here I just don't get.
I'd really appreciate any hints, preferable solutions ;) on this.. I'm so stuck with this, and my time is running out soon..
All device nodes are created properly in /dev from /sys.
Please let me know if I've forget to include some information.

Are you sure your device nodes are infact created properly? I've seen some setups where the device nodes look like they are there, but infact, they are files by the same name, not device nodes. Are you using udev, or mdev with busybox?

I've got a geode system (soekris net4801) running the latest svn and all is working fine. I use udev, personally. You do have to edit your /etc/inittab though, as you need to add:
ttyS0::respawn:/sbin/getty -L ttyS0 19200 vt100
To make getty listen on ttyS0, since the standard tty's won't work.

Also, what are your bootargs for the kernel? You should at least have the console specified:
console=ttyS0,19200n8

-Brad