I get the following error when I configure my Mini2440 network settings for DHCP: ifup: don't seem to have all the variables for eth0/inet When I have a static configuration it works fine. Configuration example: auto lo iface lo inet loopback auto eth0 iface eth0 inet dhcp address 192.168.1.10 netmask 255.255.255.0 gateway 192.168.1.1 broadcast 192.168.1.255 What could cause this?
ifup: don't seem to have all the variables for eth0/inet
Run "ifup" with "strace". Maybe it will show you what "ifup" tries to get your interface up and running.
I had a look. Would you mind having a look please? Thank you
execve("/sbin/ifup", ["ifup", "eth0"], [/* 19 vars */]) = 0
brk(0) = 0xb2d000
uname({sys="Linux", node="mini2440", ...}) = 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/lib/tls/v4l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/tls/v4l", 0xbea86368) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/tls", 0xbea86368) = -1 ENOENT (No such file or
directory)
open("/lib/v4l/libc.so.6", O_RDONLY) = -1 ENOENT (No such file or
directory)
stat64("/lib/v4l", 0xbea86368) = -1 ENOENT (No such file or
directory)
open("/lib/libc.so.6", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0(\0\1\0\0\0\230X\1\0004\0\0\0"..., 512)
= 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1209460, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40062000
mmap2(NULL, 1246440, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0)
= 0x4014b000
mprotect(0x4026e000, 32768, PROT_NONE) = 0
mmap2(0x40276000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x123) = 0x40276000
mmap2(0x40279000, 9448, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40279000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40099000
set_tls(0x400994c0, 0x40099b98, 0x4011d048, 0x400994c0, 0x4011d000) = 0
mprotect(0x40276000, 8192, PROT_READ) = 0
mprotect(0x4011c000, 4096, PROT_READ) = 0
getuid32() = 0
brk(0) = 0xb2d000
brk(0xb4e000) = 0xb4e000
open("/etc/network/interfaces", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400cd000
read(3, "auto lo\niface lo inet loopback\n\n"..., 4096) = 150
read(3, "", 4096) = 0
close(3) = 0
munmap(0x400cd000, 4096) = 0
open("/var/run/ifstate", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400a7000
read(3, "lo=lo\n", 4096) = 6
read(3, "", 4096) = 0
close(3) = 0
munmap(0x400a7000, 4096) = 0
write(2, "ifup: don't seem to have all the"..., 57ifup: don't seem to have
all the variables for eth0/inet
) = 57
open("/var/run/ifstate", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=6, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x40060000
read(3, "lo=lo\n", 4096) = 6
read(3, "", 4096) = 0
close(3) = 0
munmap(0x40060000, 4096) = 0
open("/var/run/ifstate", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x400a0000
write(3, "lo=lo\neth0=eth0\n", 16) = 16
close(3) = 0
munmap(0x400a0000, 4096) = 0
exit_group(1) = ?
When I try to up my nic than I get these errors. and lastly it is starting to loop which shows that link goes up and down. Does any body have any idea? Juergen Beisert? davef? sincerely, # ifup eth0 run-parts: /etc/network/if-pre-up.d: No such file or directory eth0: link down udhcpc (v1.13.3) started udhcpc: exec /usr/share/udhcpc/default.script: No such file or directory Sending discover... Sending discover... eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 Sending discover... eth0: link down udhcpc: exec /usr/share/udhcpc/default.script: No such file or directory No lease, failing # eth0: link up, 10Mbps, half-duplex, lpa 0x0000 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1 eth0: link down
Ok, So I had to enable: PTXCONF_DHCP=y and enabled Install /etc/dhclient.conf in ptxdist menuconfig, Network Tools->DHCP Now it does not give that error anymore. Do not have DHCP here at the moment, will test tonight.
Hi bluscape; I changed distro and everything is working well except touchscreen calibration. Do you know any easy solution for calibration of touchscreen? Sincerely,
Hi Juergen, Does this require the MAC in bootloader config or somewhere else? Bootloader ip=none and all network related setting are disabled.


