--- Log opened Sun Aug 17 00:00:10 2014 | ||
poke53281 | So, back from hiking. | 03:03 |
---|---|---|
poke53281 | stekern: Can you give me a linux which works in or1ksim with a musl-busybox ramfs? This way I can be sure, that my emulator is the problem. | 03:04 |
poke53281 | I have improved the lwa and swa instructions. But it seems, that this doesn't matter. l.swa seems to never fail in my case. | 05:14 |
stekern | poke53281: http://oompa.chokladfabriken.org/openrisc/vmlinux | 05:53 |
stekern | you'll need to change the or1ksim config to 1GB of mem though | 05:54 |
poke53281 | Ok | 06:37 |
poke53281 | Of course, your version works in or1ksim | 06:44 |
poke53281 | Mine however, http://jor1k.com/vmlinux http://jor1k.com/or1ksim.cfg | 06:45 |
poke53281 | doesn't execute "ifup -a", but for example "ifup -av" works (with verbose messages) | 06:46 |
poke53281 | http://pastie.org/9480006 | 06:50 |
poke53281 | http://pastie.org/9480008#2 | 06:50 |
poke53281 | The root option and the virtio devices are ignored. The ram is reduced to 32MB. | 06:52 |
poke53281 | So, doesn't seem to be an emulator problem. More a kernel problem then. I will try to compile your linux version tomorrow. Would also good if you could provide me with this vmlinux version that doesn't need 1GB :) Firefox is very picky | 06:55 |
poke53281 | I would try your image in jor1k. | 07:05 |
stekern | I'm out of the house currently, I can build you a version in the evening (EEST) | 07:56 |
stekern | does jor1k support shadowed gpr? | 07:56 |
stekern | read and write via spr | 07:57 |
blueCmd | http://riscv.org/ - god, that website is nice | 10:27 |
blueCmd | it has what I wanted openrisc.org to have, *sigh* :P | 10:28 |
blueCmd | http://riscv.org/download.html#tab_tools | 10:30 |
poke53281 | Yes, that looks a little bit more unique than a wiki. | 17:36 |
poke53281 | But who wants to maintain such a website? | 17:40 |
poke53281 | stekern: No, I don't support shadowed gpr. But I get an error message for each unknown access to spr. | 17:49 |
poke53281 | it makes sense for smp systems of course. | 17:49 |
stekern | yeah, I was mostly wondering if I should turn that of for you if I build you a new kernel | 17:51 |
stekern | s/of/off | 17:53 |
stekern | poke53281: http://oompa.chokladfabriken.org/openrisc/vmlinux | 17:58 |
poke53281 | It works in or1ksim but in jor1k I get. "Error in GetSPR: address 128 unknown" Will implement it now | 18:13 |
stekern | oh... right | 18:15 |
stekern | that's the coreid spr | 18:15 |
stekern | I have a local hack that makes the second core just sping if I try to boot a non-smp kernel on the dual-core setup | 18:16 |
poke53281 | what should it return? | 18:16 |
stekern | well, the cpu core id ;) | 18:16 |
stekern | starting from 0 | 18:16 |
stekern | s/sping/spin | 18:17 |
poke53281 | Ok, then I am right. | 18:17 |
stekern | I have fixed my hardware so I can boot only one of the cpus and leave the other in reset, so theoretically I could remove that local diff now... | 18:18 |
poke53281 | Ok, the kernel boots. But some reason I doesn't recognize my terminal input. | 18:18 |
poke53281 | But for some reason it doesn't recognize my terminal input. | 18:19 |
poke53281 | I had this problem yesterday too, but ignored it. | 18:19 |
poke53281 | Good, your version works in jor1k too. | 18:25 |
poke53281 | Intressting, I raise two interrupts, one which is known to the kernel and one which is unknown. In this case he seems to ignore both interrupts. | 18:27 |
poke53281 | Both at the same time. | 18:27 |
poke53281 | Ok, but this is not the main problem. The problem is narrowed down to my compiler and the kernel I use. | 18:28 |
stekern | I'll give you my config | 18:36 |
stekern | http://oompa.chokladfabriken.org/openrisc/.config | 18:37 |
stekern | and this is the dts: http://oompa.chokladfabriken.org/openrisc/net_smp.dts | 18:39 |
poke53281 | thanks, will try it. | 18:52 |
poke53281 | stekern: You should definitely use the feature register more often. A kernel config which asks for lwa and swa and shadow-registers and so on is not optimal. | 19:44 |
poke53281 | It works!!! | 20:06 |
poke53281 | Finally, the kernel was the problem | 20:06 |
poke53281 | blueCmd: I don't know how and why, but the kernel https://github.com/bluecmd/or1k-linux is broken | 20:07 |
poke53281 | the mexiko branch at least | 20:13 |
poke53281 | The error could produce all kinds of problems. I think it has to do with fork+interrupts+syscalls+scheduling. | 20:27 |
poke53281 | I would suggest to do a diff with http://git.openrisc.net/cgit.cgi/stefan/linux/log/?h=smp | 20:35 |
blueCmd | poke53281: use the smp branch in my repo instead | 20:55 |
blueCmd | poke53281: mexiko and smp are based on stefans | 20:55 |
blueCmd | poke53281: https://github.com/bluecmd/or1k-linux/commits/smp only has 3 local commits from where I synced against stekern's repo | 20:56 |
poke53281 | stefans repo http://git.openrisc.net/cgit.cgi/stefan/linux/log/?h=smp works | 21:01 |
poke53281 | at least your mexiko repo doesn't work for some reason. | 21:01 |
poke53281 | I can try the smp branch from your repo | 21:02 |
--- Log closed Mon Aug 18 00:00:12 2014 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!