View previous topic :: View next topic |
Author |
Message |
MustrumR n00b
Joined: 15 Nov 2011 Posts: 71 Location: Right here
|
Posted: Tue Jul 08, 2014 12:23 pm Post subject: Illegal instruction when running anything |
|
|
Hardware: MikroTik rb493g, mips-softfloat-linux-gnu
Kernel: OpenWRT patches, version 3.10.4x/3.14.4/3.15.3.
Programs fail with SIGILL most of the time. If they are read (cat/md5sum) before executing they work OK.
Running with gdb reveals that after waiting 1-2 seconds and disassembling the instruction is OK. It seems that after a page fault the program is resumed before the page is actually read.
This does not happen if the program is in the internal NAND (only if it's in a microSD card/nbd). |
|
Back to top |
|
|
roarinelk Guru
Joined: 04 Mar 2004 Posts: 520
|
Posted: Wed Jul 09, 2014 1:26 pm Post subject: |
|
|
Well, I can't help you there, but that smells a LOT like a caching problem, so
you need to talk to the OpenWRT people about it: their kernel patches have
some problems (current git kernels don't have rb493 support). |
|
Back to top |
|
|
|