readlink not found/ sh:can't access tty

Rahul Jain rahul at schmizz.net
Thu Jul 31 13:16:29 UTC 2008


Hello all,

I used MontaVista Dev Rocket to build a ramdisk. During the boot
process, I get a couple of errors. As these errors concern binaries
(or rather symlinks to busybox), I thought it wise to ask on this list
for some information about these errors. Below is the summary of the
entire boot process:

# Linux version 2.6.18_pro500-versatile926ejs (rahul at flensburger) (gcc version 4
.2.0 (MontaVista 4.2.0-16.0.24.0801213 2008-06-05)) #86 PREEMPT Thu Jul 31 10:24
:21 CEST 2008
CPU: ARM926EJ-S [41069263] revision 3 (ARMv5TEJ), cr=00053177
Machine: ARM-Versatile PB
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Real-Time Preemption Support (C) 2004-2006 Ingo Molnar
Built 1 zonelists.  Total pages: 32768
Kernel command line: root=/dev/mtdblock0 rw slram=test,0x8000000,+0x8000000 cons
ole=ttyAMA0,38400n8 mem=128M
WARNING: experimental RCU implementation.
PID hash table entries: 1024 (order: 10, 4096 bytes)
Clock event device timer0 configured with caps set: 07
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 129292KB available (1636K code, 607K data, 4K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 5, 196608 bytes)
TCP bind hash table entries: 2048 (order: 4, 90112 bytes)
TCP: Hash tables configured (established 4096 bind 2048)
TCP reno registered
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: AMBA PL011 UART driver
dev:f1: ttyAMA0 at MMIO map 0x101f1000 mem 0xc880c000 (irq = 12) is a AMBA/PL011
dev:f2: ttyAMA1 at MMIO map 0x101f2000 mem 0xc880e000 (irq = 13) is a AMBA/PL011
dev:f3: ttyAMA2 at MMIO map 0x101f3000 mem 0xc8810000 (irq = 14) is a AMBA/PL011
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico at cam.org>
eth0: SMC91C11xFD (rev 1) at c8812000 IRQ 25 [nowait]
eth0: Ethernet addr: 52:54:00:12:34:56
IPv4 over IPv4 tunneling driver
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
NET: Registered protocol family 15
Time: timer3 clocksource has been installed.
eth0: link up
Sending DHCP requests ., OK
IP-Config: Got DHCP answer from 10.0.2.2, my address is 10.0.2.15
IP-Config: Complete:
     device=eth0, addr=10.0.2.15, mask=255.255.255.0, gw=10.0.2.2,
    host=10.0.2.15, domain=, nis-domain=(none),
    bootserver=10.0.2.2, rootserver=10.0.2.2, rootpath=
kjournald starting.  Commit interval 5 seconds
EXT3 FS on mtdblock0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 4K
/etc/rc.d/rcS.d/S03mountvirtfs-early: /etc/rc.d/rcS.d/S03mountvirtfs-early: 151:
 readlink: not found
0
/etc/rc.d/rcS.d/S09mountvirtfs: /etc/rc.d/rcS.d/S09mountvirtfs: 151: readlink: n
ot foundBUG: scheduling with irqs disabled: rcS/0x00000000/202
caller is rt_spin_lock_slowlock+0x10c/0x1a8
[<bf01fd54>] (dump_stack+0x0/0x14) from [<bf184820>] (schedule+0x70/0xfc)
[<bf1847b0>] (schedule+0x0/0xfc) from [<bf185d1c>] (rt_spin_lock_slowlock+0x10c/
0x1a8)
 r4 = 00400040
[<bf185c10>] (rt_spin_lock_slowlock+0x0/0x1a8) from [<bf1860f8>] (__rt_spin_lock
+0x40/0x44)
[<bf1860b8>] (__rt_spin_lock+0x0/0x44) from [<bf1861dc>] (rt_read_lock+0x64/0x68
)
[<bf186178>] (rt_read_lock+0x0/0x68) from [<bf04f23c>] (find_get_page+0x24/0x74)
 r4 = C031273C
[<bf04f218>] (find_get_page+0x0/0x74) from [<bf0522a8>] (filemap_nopage+0xe8/0x4
60)
 r6 = C7E04000  r5 = 00000001  r4 = 0008F0AC
[<bf0521c0>] (filemap_nopage+0x0/0x460) from [<bf05c258>] (__handle_mm_fault+0x3
1c/0x9b0)
[<bf05bf3c>] (__handle_mm_fault+0x0/0x9b0) from [<bf0212fc>] (do_page_fault+0xec
/0x228)
[<bf021210>] (do_page_fault+0x0/0x228) from [<bf0215c8>] (do_DataAbort+0x3c/0xa0
)
[<bf02158c>] (do_DataAbort+0x0/0xa0) from [<bf01ba0c>] (__dabt_svc+0x4c/0x60)
 r8 = 000A2F04  r7 = 00000000  r6 = 00000000  r5 = C7E05F9C
 r4 = FFFFFFFF
Starting mounting local filesystems: mount Cleaning: /tmp /var/lock /var/run don
e.
Setting pseudo-terminal access permissions...done.
Updating /etc/motd...done.
: done.
Starting OpenBSD Secure Shell server: sshd.
Creating /dev/tty
Please press Enter to activate this console.
-sh: can't access tty; job control turned off
#

I can boot using this ramdisk, however not having job control is
rather problematic. For testing purposes, the ramdisk is uploaded at :
http://rapidshare.com/files/133822466/ARM_MV.ext3

So, if anybody can please explain what is going wrong, it would really
help me a lot.

Thanks
Rahul Jain



More information about the busybox mailing list