From: Wil C. <wc...@na...> - 2001-07-04 18:56:11
|
I'm getting a lock-up when I try to configure eth0 in a UML client. Both host and client are using kernel 2.4.5 and UML patch 0.42 from 26 May. (BTW, is there any place in the source I can't find this version number? I cursorily scanned a few files, but didn't find anything. Perhaps --version should report this?) The systems in question are running a now somewhat out of date distro that I've been developing; the host itself it still fairly Slackware 7 based whereas the client is LNXS 0.2.0-based. GCC on host is 2.92.2; binutils is 2.10. It's possible, of course, that my net-tools is too old; however, it's the same version (1.54; ifconfig 1.39) as my Immunix 6.2-based system which is working with 2.4 just fine. The host has ethertap configured according to web site; /dev/tap? exists, etc. Host tap0 is 192.168.1.32; UML client eth0 should be 192.168.1.33. Host: # ifconfig tap0 tap0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00 =20 inet addr:192.168.1.32 Bcast:192.168.1.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1484 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:30 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0=20 Interrupt:5=20 # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Ifa= ce 192.168.1.33 192.168.1.32 255.255.255.255 UGH 40 0 0 tap0 192.168.1.0 0.0.0.0 255.255.255.0 U 40 0 0 eth0 127.0.0.0 0.0.0.0 255.0.0.0 U 40 0 0 lo 0.0.0.0 192.168.1.10 0.0.0.0 UG 40 0 0 eth0 I start the UML client up as: linux eth0=3Dethertap,tap0,,192.168.1.33 ubd0=3Droot_fs mem=3D32M I ran a strace while trying to bring up eth0, and here's the output: execve("/sbin/ifconfig", ["ifconfig", "eth0", "192.168.1.33", "up"], [/* 9 vars */]) =3D 0 brk(0) =3D 0x8050c50 mmap() =3D 0x40018000 open("/etc/ld.so.preload", O_RDONLY) =3D -1 ENOENT (No such file or directory) open("/etc/ld.so.cache", O_RDONLY) =3D 3 fstat(3, {...}) =3D 0 mmap() =3D 0x40019000 close(3) =3D 0 open("/lib/libc.so.6", O_RDONLY) =3D 3 fstat(3, {...}) =3D 0 read(3, 0xbf7fe7bc, 4096) =3D 4096 mmap() =3D 0x4001b000 mprotect(0x40128000, 27772, PROT_NONE) =3D 0 mmap() =3D 0x40128000 mmap() =3D 0x4012c000 close(3) =3D 0 mprotect(0x4001b000, 1101824, PROT_READ|PROT_WRITE) =3D 0 mprotect(0x4001b000, 1101824, PROT_READ|PROT_EXEC) =3D 0 munmap(0x40019000, 4555) =3D 0 personality(PER_LINUX) =3D 0 getpid() =3D 78 uname({...}) =3D 0 access("/proc/net", R_OK) =3D 0 access("/proc/net/unix", R_OK) =3D 0 socket(PF_UNSPEC, 0 /* SOCK_??? */, 0) =3D 3 socket(PF_UNSPEC, 0 /* SOCK_??? */, 0) =3D 4 access("/proc/net/ax25", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/nr", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/ipx", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/appletalk", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/ax25", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/nr", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/ipx", R_OK) =3D -1 ENOENT (No such file or directory) access("/proc/net/appletalk", R_OK) =3D -1 ENOENT (No such file or directory) ioctl(4, SIOCSIFADDR, 0xbf7ffd4c) =3D 0 ioctl(4, SIOCGIFFLAGS, 0xbf7ffccc) =3D 0 ioctl(4, SIOCSIFFLAGS There are also cryptic errors reported in dmesg which may or may not be unrelated: do_io - write returned -1 : errno =3D 9 Attached also is my kernel config file, in case I might have missed something. Wil --=20 W. Reilly Cooley wc...@na... Naked Ape Consulting http://nakedape.cc LNXS: Get 0.2.0-devel at http://sourceforge.net/projects/lnxs/ irc.openprojects.net #lnxs When I hear a man applauded by the mob I always feel a pang of pity for him. All he has to do to be hissed is to live long enough. -- H.L. Mencken, "Minority Report" |