2011/8/14 Willy Lambert <[email protected]> > > > 2011/8/14 Willy Lambert <[email protected]> > >> Hi all, >> >> I was using sja1000_isa module on a PC 104 CPU+CAN stack under a normal >> linux. For some reasons I would like to use xenomai instead of linux, so I >> tried to switch from sja1000_isa to xeno_can_isa to have the equivalent rtdm >> driver. >> >> The command line I used before was : >> modprobe sja1000_isa irq=10,10 mem=0xD0000,0xD0200 ocr=0x5e,0x5e cdr=0,0 >> So I was accessing it via iomem. >> >> I had a quick look at xeno_can_isa, but it only support ioport access. I >> think my board doesn't support this ( >> http://www.ixxat.com/pc_i_04_104_en.html for details), but I must admit >> this mem vs port access are not very clear to me. >> >> Does this mean that I have no chance to find a rt driver for my isa board >> ? >> If so, Is it conceivable to extend the current driver ? (knowing that I am >> really not at ease with this low level developement) >> Do I a trick to use port instead of mem for my hardware ? >> >> >> > From "Wolfgang Grandegger" <[email protected]> in private (my fault, I > contacted him in private first) : > > > I'm still puzzled what you intend to do. If you want to use > RT-Socket-CAN for your hardware (using mem= with Linux), then you should > use the driver xeno_can_mem with the same parameters: > > insmod xeno_can_mem.ko irq=10,10 mem=0xD0000,0xD0200 ocr=0x5e,0x5e > > The xeno_can_isa.ko is only for I/O port accesses. > > Yes, that's it ! I'll try this. It's just that I could not find my way in > the middle of all xeno drivers and choosed isa because it's an ISA bus. > > It works now, I receive some messages from my hardware : root@beta:/proc/rtcan# rtcanrecv #0: (2) <0x085> [8] 00 30 01 c0 00 00 00 00 #1: (2) <0x085> [8] 00 30 01 fe 00 00 00 00 #2: (2) <0x085> [8] 00 30 01 ff 00 00 00 00 #3: (2) <0x085> [8] 00 30 01 ff 00 00 00 00 #4: (2) <0x733> [1] 00 #5: (2) <0x732> [1] 00 #6: (2) <0x705> [1] 00 #7: (2) <0x085> [8] 00 30 01 00 00 00 00 00
I still have some questions : _ is it a way that my rtcan0 and rtcan1 interfaces shows up in "ifconfig" (it used to do it with sja1000_isa) _ is normal that /proc/interrupts doesn't shows my interrupt ? (it used to do it with sja1000_isa)
_______________________________________________ Xenomai-help mailing list [email protected] https://mail.gna.org/listinfo/xenomai-help
