[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Sarge on MPC823e problems



Hello World\n

[please cc me on the replies]

I'm trying to get sarge running on Motorola PowerPC 823 embedded processor.
It's got 8MB of flash and 64MB of ram.

I've successfully prepared nfsroot environment of woody for this machine, I
used modified debootstrap script which downloaded woody base packages and
extracted them to the nfsroot, then I booted the machine with init=/bin/sh and
configured the rest manually, no problem so far with woody.

I've now tried the same with sarge and I'm experiencing some wierd (for me)
problems. 

- I can boot different kernels to the nfsroot (gcc 2.95.4 + glibc 2.2.5 and
  gcc 3.2.3 + glibc 2.3.2 based) using init=/bin/sh.

- I can run programs like ls, dpkg, ... without problems

but

- I can't run awk, I can't do ldd /usr/bin/mawk, the commands either segfault
  or hang, when stracing them they always segfault/hang right after the mmap
  call (see bellow)

------ cut ------
# strace /usr/bin/mawk
execve("/usr/bin/mawk", ["/usr/bin/mawk"], [/* 5 vars */]) = 0
uname({sys="Linux", node="192.168.40.10", ...}) = 0
brk(0)                                  = 0x1002bbcc
access("/etc/ld.so.nohwcap", F_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 ENOENT (No such file or directory)
open("/lib/libm.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\241"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=475956, ...}) = 0
mmap(0xff6c000, 540596, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xff6c000
mprotect(0xffde000, 73652, PROT_NONE)   = 0
mmap(0xffec000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x70000) = 0xffec000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
------ cut ------

I've tried to copy my cross compiled libc 2.3.2 + gcc 3.2.3 to the nfsroot and
chroot into it but I experience the hanging instead of segfault, no network
activity, but cpu can still be pinged, it's alive, here goes the last few lines
from chroot /mychroot /bin/sh

------ cut ------
...
...
uname({sys="Linux", node="192.168.40.10", ...}) = 0
socket(PF_UNIX, SOCK_STREAM, 0)         = 3
connect(3, {sa_family=AF_UNIX, path="/var/run/.nscd_socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
open("/etc/nsswitch.conf", O_RDONLY)    = -1 ENOENT (No such file or directory)
open("/lib/libnss_compat.so.2", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\30"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=59426, ...}) = 0
mmap(0xfde8000, 110660, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xfde8000
mprotect(0xfdf3000, 65604, PROT_NONE)   = 0
mmap(0xfdf8000, 45056, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xfdf8000
mmap(0xfe03000, 68, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfe03000
close(3)                                = 0
open("/lib/libnsl.so.1", O_RDONLY)      = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0B\30"..., 1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=100581, ...}) = 0
mmap(0xfdb2000, 151900, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xfdb2000
mprotect(0xfdc4000, 78172, PROT_NONE)   = 0
mmap(0xfdd2000, 12288, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0x10000) = 0xfdd2000
------ cut ------


Anyone has a clue what has changed between woody and sarge concerning libc and powerpc (I think it's a libc or gcc or kernel issue)

the machine is running rtai patched 2.4.20.

thanx,
martin

Attachment: signature.asc
Description: Digital signature


Reply to: