hello
i have a openwrt installed on WNR3500L, and i have mounted an external usb drive on it.
when trying to read from the disk, i randomly get segmentation fault, and kernel oops.
it does not matter which program access the drive. same behaviuor when reading a file with scp, rsync, dd, cat and even with unfs3 nfs server.
i looked at the openwrt forums, and they said that it is a driver bug which was solved when the change was made from white russian to kamikazee. however i am running kamikaze 8.09.2 (kernel 2.4.35.4)
below is the kernel log.
thanks,
erez.
Unhandled kernel unaligned access in unaligned.c::emulate_load_store_insn, line 481:
$0 : 00000000 1000bc01 00000000 ffffffff 00003fff 00002eb6 00000001 000001e8
$8 : 00000080 00000001 836a3c60 836444c0 ba2e8ba3 83e017bc 83e01794 00000400
$16: 819896fc 00002ea0 810f0988 00002eb6 8286b9e0 00000020 0000001f 00000000
$24: 00000000 8003ae34 80b86000 80b87e18 80b87ed0 80026d68
Hi : 00000000
Lo : 00000025
epc : 80025794 Tainted: P
Status: 1000bc03
Cause : 00000010
PrId : 00019740
Process rsync (pid: 761, stackpage=80b86000)
Stack: 80b86000 c02692e0 00002e81 00000000 00002eb7 00002ea0 8286b9e0
00000015 0002bc56 80026d68 c02dc940 c02dc8f8 00000001 80b86000 810f08b8
8108b898 8286b9e0 819896fc 00002e82 00000000 81989640 800270d8 00000008
800dfb84 2c8b04d2 c95ac4f7 8286ba00 80027744 00000001 00001000 8286ba00
0003f040 00000000 0003f040 2acf4b48 8286ba00 2acf4b48 8286b9e0 00040b80
80027900 ...
Call Trace: [<c02692e0>] [<80026d68>] [<c02dc940>] [<c02dc8f8>] [<800270d8>]
[<800dfb84>] [<80027744>] [<80027900>] [<c024388c>] [<80037be4>] [<80008a60>]
Code: 8c630010 10600009 00000000 <8c620008> 1450fffb 00000000 8c62000c 1453fff8 00001021
Self compiled kamikaze?
This bug can have so many reasons, that there is no definite answer for it, just check the header of emulate_load_store_insn, its about alignment.
Could be the toolchain that built the firmware or even some running processes that mess around in memory etc.
I didn't compile anything. it is with the firmware from this site.
The filesystem on the usbdrive is ext3
Note that the usb drive works perfectly if i connect it to a pc running ubuntu.
the link i found was for usbserial, which is not exactly what i use, but here it is:
https://dev.openwrt.org/ticket/779
i should also note that my root fs is mounted on the usbdrive.
cheers,
erez.
http://oldwiki.openwrt.org/OpenWrtDocs%282f%29KamikazeConfiguration%282f...