[uClibc]arm development system results

Andre armcc at lycos.com
Sun Feb 23 02:18:28 UTC 2003


First of all, thanks to all responsible for the uclibc development system images - great idea !!

I had to make the following changes to get running on a StrongARM SA1110 based Intrinsyc CerfCube:

1) Add /dev entry for the StrongARM serial ports:

mknod ttySA0 c 204 5
mknod ttySA1 c 204 6
mknod ttySA2 c 204 7

2) Modify /etc/inittab to start getty on the correct serial port, at the same baud rate as the CerfCube bootloader:

ttySA0::respawn:/bin/getty -L ttySA0 38400 vt100

3) Add ttySA0 to /etc/securetty to allow root logins.

4) Create /home/default (allows default non-root user to login without warnings about missing home directory).

At this point I can login OK, but there are a couple of problems I wasn't able to fix:

5) 'ls' seems to be broken:

[root at uclibc root]# ls
reading directory .: Invalid argument

Run with strace, it gives the following:

[root at uclibc root]# strace ls
execve("/bin/ls", ["ls"], [/* 18 vars */]) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 0, 0) = 0x
40005000
mprotect(0x40000000, 18236, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
readlink("/lib/ld-uClibc.so.0", "ld-uClibc-0.9.18.so", 1024) = 19
open("/lib/libc.so.0", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1a\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0 \347\0\000"..., 4096) = 4
096
old_mmap(NULL, 307200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x4000d000
old_mmap(0x4000d000, 255500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) =
 0x4000d000
old_mmap(0x40053000, 7744, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x3e0
00) = 0x40053000
old_mmap(0x40055000, 10564, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON
YMOUS, -1, 0) = 0x40055000
close(3)                                = 0
mprotect(0x4000d000, 255500, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mprotect(0x4000d000, 255500, PROT_READ|PROT_EXEC) = 0
mprotect(0x40000000, 18236, PROT_READ|PROT_EXEC) = 0
ioctl(0, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
brk(0x27584)                            = 0x27584
brk(0x28000)                            = 0x28000
brk(0x29000)                            = 0x29000
ioctl(1, SNDCTL_TMR_TIMEBASE, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, 0x5413, {ws_row=0, ws_col=0, ws_xpixel=0, ws_ypixel=0}) = 0
brk(0x2a000)                            = 0x2a000
brk(0x2d000)                            = 0x2d000
brk(0x2e000)                            = 0x2e000
brk(0x2f000)                            = 0x2f000
stat(".", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
open(".", O_RDONLY)                     = 3
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
brk(0x30000)                            = 0x30000
pivot_root(umovestr: Input/output error
0x3, "")                   = -1 EINVAL (Invalid argument)
close(3)                                = 0
write(2, "reading directory ", 18reading directory )      = 18
write(2, ".", 1.)                        = 1
write(2, ": ", 2: )                       = 2
write(2, "Invalid argument", 16Invalid argument)        = 16
write(2, "\n", 1
)                       = 1
_exit(1)                                = ?
[root at uclibc root]#

6) Bash filename completion doesn't seem to work ??






_____________________________________________________________
Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year.
http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus



More information about the uClibc mailing list