On Monday 25 June 2007 17:24, Michael Sprauve wrote:
> Hi,
> Here is the output from the strace, as you can see, my
> output doesn't get as far as your sample output.
...
> close(3)                                = 0
> munmap(0x40006000, 996)                 = 0
> stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755,
> st_size=21096, ...}) = 0
> mprotect(0x40018000, 4096, PROT_READ)   = 0
> mprotect(0x4003d000, 4096, PROT_READ)   = 0
> mprotect(0x40091000, 4096, PROT_READ)   = 0
> mprotect(0x4000c000, 4096, PROT_READ)   = 0
> ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) 
> = 0
> ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) 
> = 0
> getuid32()                              = 0
> brk(0)                                  = 0x8e000
> brk(0x8f000)                            = 0x8f000
> open("/proc/net/dev", O_RDONLY|O_LARGEFILE) = 3
> ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbefff918) = -1 ENOTTY 
> (Inappropriate ioctl for device)
> brk(0x90000)                            = 0x90000
> read(3, "Inter-|   Receive               "..., 4096) = 446
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> SYS_281(0x2, 0x2, 0, 0, 0)              = -1 ENOSYS
> (Function not implemented)

My strace:

...
open("/proc/net/dev", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xf7f25000
read(3, "Inter-|   Receive               "..., 1024) = 446
read(3, "", 1024)                       = 0
close(3)                                = 0
munmap(0xf7f25000, 4096)                = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
....

Either you have IPv4 support compiled as a module and not modprobed
(or not compiled at all?), or your cross-compiler uses wrong syscall#.

syscall# 281 seems to be right for ARM:

# pwd
/usr/src/kernel/linux-2.6.22-rc4.src/include

# grep -r NR_socket . | grep 281
./asm-arm/unistd.h:#define __NR_socket                  (__NR_SYSCALL_BASE+281)

--
vda
_______________________________________________
busybox mailing list
[email protected]
http://busybox.net/cgi-bin/mailman/listinfo/busybox

Reply via email to