s-macke / jor1k

Online OR1K Emulator running Linux
http://jor1k.com
BSD 2-Clause "Simplified" License
1.73k stars 196 forks source link

error on ipad #36

Closed Th3G33k closed 9 years ago

Th3G33k commented 9 years ago

Hello, It works fine on pc but when i try to run jor1k on safari ipad mini retina, i have an error : "kernel panic - not syncing: Attempted to kill init! exitcode=0x00000007"

s-macke commented 9 years ago

Hmm, I cannot reproduce the error. It runs fine on my iPad. There might be a problem for very slow internet connections, that the filesystem is not loaded before the kernel has started. Does it reappear, when you refresh the page?

Th3G33k commented 9 years ago

http://image.noelshack.com/fichiers/2014/48/1417313751-png.png i have a good internet connection, 32Mbps download speed.

s-macke commented 9 years ago

Hmm, I made several changes today. Maybe something mixed in. Did you delete the browser cache?

Th3G33k commented 9 years ago

I have already tried it and it's still not working. The error comes after "freeing unused kernel memory".

s-macke commented 9 years ago

Can you try http://jor1k.com/jor1k/ The console log is put on screen in this version. Maybe it will show an error.

Th3G33k commented 9 years ago

http://beetxt.com/HY4/

s-macke commented 9 years ago

Thanks, this helps a lot.

I see two things.

  1. The second "processed xxxx inodes" message is missing after the message "Load filesystem information from ../jor1k-sysroot/fs.xml"
  2. The error points to a problem with the filesystem: "9pnet_virtio virtio0: requests:id 0 is not a head!"

You can try one thing.

  1. Load "http://jor1k.com/jor1k-sysroot/fs.xml" and just look for garbage output.
  2. Try again http://jor1k.com/jor1k/ . I have included extra debug information
Th3G33k commented 9 years ago

I deleted the message, the message "processed xxxx inodes" is not missing. There's no extra debug information and it's still not running. It's an error with 9pnet_virtio virtio0.

s-macke commented 9 years ago

Ok, I will investigate.

Th3G33k commented 9 years ago

Here's some debug messages from p9.js : beetxt.com/BD1 You cannot reproduce the error, it will be difficult for you to fix it. I will try to find the bug and fix it myself.

s-macke commented 9 years ago

Thanks, so it stops while reading the contents of bin/busybox.

Actually I have problems with the filesystem since the beginning. Not severe. For example if you run rm -rf /etc/ssl/certs.it gives you sometimes protocol errors. I don't know why.

But currently I have an idea. There could be a problem with the fact, that my filesystem works without latency. It works with infinite speed. Usually, that shouldn't matter. But on the other hand virtio/9p is only used by QEMU. So there might be some bugs in the Linux kernel part, which weren't observed so far. I know, for sure, that the OpenRISC part is not responsible for it, because someone tested the same code with an x86 emulator. So only my implementation or the Linux kernel part can be responsible. I will try to artificially reduce the speed of virtio/9p. That's no problem. But not now, Tomorrow.

Th3G33k commented 9 years ago

I have a strange xor behavior on my ipad. Now it runs great. http://image.noelshack.com/fichiers/2014/49/1417572289-png.png

s-macke commented 9 years ago

Ughh, that part should never be executed if the fastcpu is used. But it does, even in my code. You might have found something big.

s-macke commented 9 years ago

ReadMemory16 is executed by the virtio device. You should put a bracket around addr&2 Otherwise the operator ? acts only on 2.