--- Log opened Sat Mar 30 00:00:52 2013 | ||
-!- Netsplit *.net <-> *.split quits: serp_ | 02:56 | |
-!- Netsplit over, joins: serp_ | 03:00 | |
andresjk | hi | 03:08 |
---|---|---|
andresjk | anyone awake? | 03:08 |
stekern | I am now, but barely | 04:48 |
andresjk | its like 6am. Respect! | 04:55 |
andresjk | I needed a Makefile for kernel modules but I got it | 04:55 |
andresjk | I got a simple example of kernel loading with printk that I found in internet | 04:56 |
andresjk | but I dont get why this>>> http://tldp.org/LDP/lkmpg/2.6/html/x121.html example doesnt compile | 04:57 |
andresjk | I guess is due to kernel version. but the one of the OR is 3.1.xx so it should | 04:57 |
andresjk | maybe is another thing. but with _init and _exit works fine in the fpga | 04:58 |
stekern | I usually wake up 5am, but today I could have slept longer, our little girl thought otherwise though | 05:17 |
stekern | what does it complain about? | 05:18 |
andresjk | nice | 05:27 |
andresjk | this is what I get : http://pastebin.com/4DgbLn0y | 05:27 |
andresjk | but other module that I compile if loaded and I cannot unloaded | 05:27 |
andresjk | I get rmmod: chdir(/lib/modules) No such file or directory | 05:28 |
andresjk | and If I try to insert another module, like insmod mod.ko I get: "insmod : cant insert 'mod.ko': File exists" | 05:30 |
stekern | in the first, it's complaining about not finding gcc | 05:31 |
andresjk | I dont understand why it says "File exists". Isn't it obvious... | 05:31 |
stekern | do you have that in your PATH? | 05:31 |
andresjk | yes I do | 05:31 |
andresjk | I can compile user apps fine | 05:32 |
stekern | huh... | 05:32 |
andresjk | oh, maybe its due to the prototype functions | 05:33 |
andresjk | but in the example they dont use those | 05:33 |
andresjk | in my other module (which does compile) there are the module_init and module_exit prototypes | 05:34 |
andresjk | yes, its because of the underscores | 05:43 |
andresjk | stekern, why do you think rmmod is not responding? | 05:49 |
stekern | I assume you have checked that there is a /lib/modules directory | 05:53 |
stekern | is this on the board or in or1ksim? | 05:53 |
stekern | and I'm still baffled about your first error, but you seem to be able to compile other stuff | 05:54 |
andresjk | Its in the board. The module called hello-1 appears in /lib/modules as hello_1 | 05:55 |
andresjk | yes, my first error was weird but Im pretty sure its what I told you | 05:56 |
andresjk | interesting, I cannot rm -rf hello_1 | 05:57 |
stekern | what happens if you try or1ksim? | 06:00 |
andresjk | can I connect or1ksim to internet? | 06:05 |
stekern | yes | 06:12 |
stekern | if you enable tun/tap | 06:12 |
stekern | it's described in the or1ksim documentation | 06:12 |
andresjk | actually I dont get your point. Would it be the same? | 06:27 |
andresjk | I flash my fpga and its the same :( | 06:28 |
andresjk | btw, stekern , there is a thing I dont get about wishbone. My master peripheral works perfect when it is wired to the memory controller but if I wired to the arbiter1 it fails. I mean the system hangs completely | 06:29 |
andresjk | I did the same to the Ethernet controller. I wired it to the master slot of the arbiter and it stop working. I thought that the data arbiter was connected to the memory controller and I was going to be the same but its know | 06:30 |
andresjk | its not* | 06:31 |
stekern | what would be the same? | 06:39 |
andresjk | to connect the master to a master slot of an arbiter or directly to the MC | 06:41 |
andresjk | The same the simulator and the OR1200 | 06:42 |
andresjk | isnt the simulator based on the or1k rtl or arch | 06:43 |
stekern | the arbiter is a bit dumb, it just grants access to the master with highest priority. what happens if you connect it to a port with lower priority? | 06:45 |
stekern | no, it wouldn't be the same. they are different implementations of the or1k architecture and not based on each others, but only the architecture spec. or1ksim is however meant to be the golden reference, so if some would be based on the other, or1200 would be based on or1ksim. | 06:47 |
stekern | but my point with trying in or1ksim would be to exclude any rtl bugs | 06:47 |
stekern | because, of course you are right, in your case they should function exactly the same. that's what I'd like to find out, if they really do ;) | 06:54 |
andresjk | yeah, It makes sense. I will recompile the kernel to do it faster | 06:55 |
andresjk | about the arbiters, actually I have to chain them because they have 2 master slots, so actually the highest priority arbiter has only 1 useful slot and the other one is used to chain with the second priority | 07:01 |
andresjk | in the second priority arbiter in the slot0 I have the debugger and in the slot 1 my peripheral, only for the test because it doesnt work there it has to be in the mc just like the eth | 07:02 |
stekern | what board are you using? | 07:06 |
stekern | (sorry, I know you've mentioned this, but can't remember right now) | 07:07 |
andresjk | the ML501 | 07:07 |
andresjk | its fine :) | 07:07 |
andresjk | btw, thanks for helping, I really appreciated it :) | 07:08 |
andresjk | ohh the same module I could insert in the board cannot be inserted | 07:15 |
andresjk | # insmod hello2.koi | 07:15 |
andresjk | nsmod hello2.ko | 07:15 |
andresjk | hello2: version magic '3.4.0-00006-g065bba6-dirty ' should be '3.4.0-rc6-11570-gcc5234d-dirty ' | 07:15 |
andresjk | insmod: can't insert 'hello2.ko': invalid module format | 07:15 |
andresjk | stekern, so the problem is the version, right? | 07:17 |
stekern | didn't you compile it together with your kernel? | 07:18 |
andresjk | yes | 07:21 |
andresjk | what do you mean? | 07:21 |
andresjk | I compile it with the makefile and then I copy the .ko into /usr | 07:22 |
stekern | i mean, why is the version different? | 07:29 |
andresjk | could it be because I compiled the module separately ? There should be a why to fake the version of the module o a way to make the kernel ignored it | 07:33 |
andresjk | I don't think that slightly difference in the version can make that | 07:34 |
mor1kx | [mor1kx] skristiansson pushed 1 new commit to master: https://github.com/openrisc/mor1kx/commit/0cb2ef89dcb17b58ad5f1a32eb62206d293d2a92 | 08:55 |
mor1kx | mor1kx/master 0cb2ef8 Stefan Kristiansson: icache, dcache: harmonise icache and dcache... | 08:55 |
andresjk | stekern, when I do uname -r in the board I get : 3.4.0-00006-g065bba6-dirty | 09:01 |
andresjk | and if the I do a modinfo of a compiled module I get: 3.4.0-00006-g065bba6-dirty as vermagic | 09:01 |
stekern | aren't you using the same kernel sources for the one you're running in or1ksim? | 09:02 |
andresjk | Im sorry stekern , the early test in the or1ksim I did it with a backup copy. I thought I was the same but I was a older checkout. Now I try the same version as the board | 09:15 |
andresjk | and the modules loads | 09:16 |
andresjk | but again I cannot remove it | 09:16 |
andresjk | same error as the board | 09:16 |
andresjk | rmmod: chdir(/lib/modules): No such file or directory | 09:16 |
stekern | ok, so now we determined that it's a software problem at least | 09:20 |
andresjk | yes | 09:22 |
stekern | oh great, updating from kubuntu 12.04 to 12.10 broke *everything* | 10:25 |
andresjk | how come? | 13:24 |
andresjk | when updating & upgrading from ubuntu 10 to 12.10 my nvidia driver broke several times =) | 13:25 |
stekern | andresjk: yeah, the (proprietary) ati drivers were one of the things that broke completely. I went back to the open source drivers, could be very well be so that they fulfill my needs completely | 16:23 |
stekern | the other thing was this: https://bugs.launchpad.net/ubuntu/+source/xemacs21/+bug/1069209 | 16:23 |
andresjk | did you solve it or still broke? | 16:50 |
stekern | yeah, I got everything sorted out | 17:12 |
stekern | well, except that I now got a white background in emacs in console mode for some reason... | 17:16 |
andresjk | isn't it configurable in the .emacs file? | 17:36 |
stekern | yeah, it just a matter of fixing it, no big deal | 17:39 |
andresjk | stekern, are you there? | 23:53 |
--- Log closed Sun Mar 31 00:00:54 2013 |
Generated by irclog2html.py 2.15.2 by Marius Gedminas - find it at mg.pov.lt!