OpenWrt Forum Archive

Topic: help , uci: I/O error

The content of this topic has been archived on 16 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I user  RDC chip, (same wl-153)

SVN 14683.

kernel 2.6.29.1

make menucofig:  gcc 4.1.2  binutils 2.19    uclibc 0.9.30

is ok.

i boot kernel + rootFS.
user ramdisk.

but boot info is display "uci: I/O error

but i yestday is ok.

i rm trunk , du sv co XXX
is way to displaye uci: I/O error.

i'm sure kernel is ok.  i dont' know what's happend....

thanks .

strace uci show
execve("/sbin/uci", ["uci", "show"], [/* 7 vars */]) = 0
mmap2(NULL, 20, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7fa0000
stat("/etc/ld.so.cache", 0xbf8a5390)    = -1 ENOENT (No such file or directory)
open("/lib/libuci.so.0.7", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0755, st_size=29310, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9f000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240\23\0\0004\0\0\0\0"..., 4096) = 4096
mmap2(NULL, 32768, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f97000
mmap2(0xb7f97000, 28192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7f97000
mmap2(0xb7f9e000, 638, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7) = 0xb7f9e000
close(3)                                = 0
munmap(0xb7f9f000, 4096)                = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=31718, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9f000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0T\24\0\0004\0\0\0\0"..., 4096) = 4096
mmap2(NULL, 36864, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8e000
mmap2(0xb7f8e000, 31336, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7f8e000
mmap2(0xb7f96000, 3046, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x7) = 0xb7f96000
close(3)                                = 0
munmap(0xb7f9f000, 4096)                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=279741, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f9f000
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \252\0\0004\0\0\0\0"..., 4096) = 4096
mmap2(NULL, 307200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f43000
mmap2(0xb7f43000, 275368, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xb7f43000
mmap2(0xb7f87000, 5309, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0x43) = 0xb7f87000
mmap2(0xb7f89000, 16988, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f89000
close(3)                                = 0
munmap(0xb7f9f000, 4096)                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=279741, ...}) = 0
close(3)                                = 0
open("/lib/libgcc_s.so.1", O_RDONLY)    = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=31718, ...}) = 0
close(3)                                = 0
open("/lib/libc.so.0", O_RDONLY)        = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=279741, ...}) = 0
close(3)                                = 0
stat("/lib/ld-uClibc.so.0", {st_mode=S_IFREG|0755, st_size=16390, ...}) = 0
mprotect(0xb7f87000, 4096, PROT_READ)   = 0
mprotect(0xb7fa6000, 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
brk(0)                                  = 0x83a2000
brk(0x83a3000)                          = 0x83a3000
open("/etc/config", O_RDONLY|O_NONBLOCK|O_DIRECTORY) = 3
fstat(3, {st_mode=S_IFDIR|0755, st_size=1024, ...}) = 0
fcntl(3, F_SETFD, FD_CLOEXEC)           = 0
getdents64(3, /* 11 entries */, 1024)   = 328
stat("/etc/config/luci_ethers", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
stat("/etc/config/luci", {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
stat("/etc/config/luci_hosts", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
stat("/etc/config/network", {st_mode=S_IFREG|0644, st_size=291, ...}) = 0
stat("/etc/config/ucitrack", {st_mode=S_IFREG|0644, st_size=732, ...}) = 0
stat("/etc/config/system", {st_mode=S_IFREG|0644, st_size=60, ...}) = 0
stat("/etc/config/fstab", {st_mode=S_IFREG|0644, st_size=177, ...}) = 0
stat("/etc/config/wireless", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat("/etc/config/httpd", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
getdents64(3, /* 0 entries */, 1024)    = 0
close(3)                                = 0
stat("/etc/config/httpd", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
stat("/etc/config/wireless", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
stat("/etc/config/fstab", {st_mode=S_IFREG|0644, st_size=177, ...}) = 0
stat("/etc/config/system", {st_mode=S_IFREG|0644, st_size=60, ...}) = 0
stat("/etc/config/ucitrack", {st_mode=S_IFREG|0644, st_size=732, ...}) = 0
stat("/etc/config/network", {st_mode=S_IFREG|0644, st_size=291, ...}) = 0
stat("/etc/config/luci_hosts", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
stat("/etc/config/luci", {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
stat("/etc/config/luci_ethers", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
stat("/etc/config/fstab", {st_mode=S_IFREG|0644, st_size=177, ...}) = 0
open("/etc/config/fstab", O_RDONLY)     = 3
flock(3, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/httpd", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
open("/etc/config/httpd", O_RDONLY)     = 4
flock(4, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/luci", {st_mode=S_IFREG|0644, st_size=664, ...}) = 0
open("/etc/config/luci", O_RDONLY)      = 5
flock(5, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/luci_ethers", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
open("/etc/config/luci_ethers", O_RDONLY) = 6
flock(6, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/luci_hosts", {st_mode=S_IFREG|0644, st_size=1, ...}) = 0
open("/etc/config/luci_hosts", O_RDONLY) = 7
flock(7, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/network", {st_mode=S_IFREG|0644, st_size=291, ...}) = 0
open("/etc/config/network", O_RDONLY)   = 8
flock(8, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/system", {st_mode=S_IFREG|0644, st_size=60, ...}) = 0
open("/etc/config/system", O_RDONLY)    = 9
flock(9, LOCK_SH)                       = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/ucitrack", {st_mode=S_IFREG|0644, st_size=732, ...}) = 0
open("/etc/config/ucitrack", O_RDONLY)  = 10
flock(10, LOCK_SH)                      = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
stat("/etc/config/wireless", {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
open("/etc/config/wireless", O_RDONLY)  = 11
flock(11, LOCK_SH)                      = -1 ENOSYS (Function not implemented)
write(2, "uci"..., 3uci)                   = 3
write(2, ": "..., 2: )                    = 2
write(2, "I/O error"..., 9I/O error)             = 9
write(2, "\n"..., 1
)                    = 1
_exit(0)                                = ?

The discussion might have continued from here.