On 11/10/2010 02:44 PM, Willy Lambert wrote:
> Hi all,
> 
> the short story is that "insmod sja1000_isa.ko irq=5,7 mem=0xd000,0xd200"
> failed in dmesg with :
> [ 3260.818929] sja1000_isa: probe of sja1000_isa.0 failed with error -16
> [ 3260.819455] sja1000_isa: probe of sja1000_isa.1 failed with error -16
> [ 3260.820225] Legacy sja1000_isa driver for max. 8 devices registered
> 
> The long one is :
> 
> I just receive my brand new Ixxat Can PC104 Interface, I tried to put
> everything in order tonigth on my Linux 2.6.32.11 Debian system. but I'm
> stuck with kernel modules loading. Be sure that I rake the web in order to
> find any piece of information, but I did not find anything like
> "installation instructions". I tried to compile the latex documentation
> (even in my Windows) but it's quite in German :) Please redirect me to any
> existing documentation if it exists. (this didn't helped :
> http://www.mjmwired.net/kernel/Documentation/networking/can.txt#635)
> 
> Then here is my config :
> _ http://www.ableway.com.cn/wp-content/uploads/2009/12/pcm-3362.pdf (there
> is a bus cartography)
> _ http://www.ixxat.com/pc_i_04_104_en.html
> 
> 
> What I did :
> _ As I am on a PC104 module,my can interface is on a ISA bus and It is
> connected to the chipset via a pci-isa bridge. I  activated ISA bus
> management in .config file. (I don't know if I have something to do for
> making the bus working).
> _ I add socket can options in .config and sja1000 drivers (on isa bus).
> _ I compiled my kernel on my host PC and copied it to my target. I now have
> sja1000.ko sja1000_isa.ko in lib/.../driver/net/can/sja1000
> 
> I tried to load theses modules :
> _ insmod can.ko
> _ insmod candev.ko
> _ insmod sja1000.ko
> _ insmod sja1000_isa.ko irq=5,7 mem=0xd000,0xd200

> 
> And then I have the error :
> [ 3260.818929] sja1000_isa: probe of sja1000_isa.0 failed with error -16
> [ 3260.819455] sja1000_isa: probe of sja1000_isa.1 failed with error -16
> [ 3260.820225] Legacy sja1000_isa driver for max. 8 devices registered
> 
> Can someone help me finding what's wrong with it ?

The error "-16" means -EBUSY! See:


http://lxr.linux.no/#linux+v2.6.36/drivers/net/can/sja1000/sja1000_isa.c#L139

It seems that the region you request is already occupied. Check in
/proc/iomem who is using that address. Note the device might also be
accessible via ioport.

Wolfgang.
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to