Hi all,

for memory I have been trying to makes socketCan working on my Ixxat board
for some time. It is stacked on a PC104 cpu module with a linux debian
squeeze. After having a fully hardware configuration (a proper node + can
analyser) I tried Ixxat drivers and succeed after soldering a jumper on the
board and setting some BIOS values. After this I quickly tested a socketCan
version from svn and it seems to works (at least interrupts were triggered).

Cleaning time arrived and I complety reinstall the linux with only the
required kernel configuration. The choosed kernel is a 2.6.35.7.
My first question is : may I use kernel official sources of socketCan ? or
do I need to checkout something ?

I activated theses options :

> [*] Networking Support -->
> --- [*] CAN bus subsystem support -->
> ----------[*] Raw Can Protocol (raw access with CAN-ID filtering)
> ----------[*] Broadcast Manager CAN Protocol (with content filtering)
> ----------     CAN Device Drivers --->
> ----------------- [*] Virtual Local CAN Interface (vcan)
> ----------------- [*] Platform CAN drivers with Netlonk support
> ----------------- [*] CAN bit-timing calculation
> ----------------- [*] Philips/NXP SJA1000 devices -->
> -------------------------[M] ISA Bus based legacy SJA1000 driver
>
All remark is welcome (espacially if I need to choose "M" instead of "*")

I setup my can0 interface in the rc.local script :

> modprobe sja1000_isa irq=3 mem=0XD0000
> ip link set can0 type can bitrate 250000 restart-ms 1000
> ifconfig can0 up
>

which ends up in theses lines in dmesg :

> [    3.675535] sja1000_isa sja1000_isa.0: sja1000_isa device registered
> (reg_base=0xc00d0000, irq=3)
> [    3.675715] Legacy sja1000_isa driver for max. 8 devices registered
> [    3.686358] sja1000_isa sja1000_isa.0: setting BTR0=0x01 BTR1=0x1c
>

here is some relevant informations :

> r...@alpha:/opt/can# cat /proc/iomem  | grep isa
> 000d0000-000d001f : sja1000_isa
> r...@alpha:/opt/can# cat /proc/interrupts | grep can
>   3:          0   IO-APIC-edge      can0
>


BUT "cansend can0 621#" causes an error after 10 tries (and no interrupts
are triggered). I still have some checks to do on my own.

Does all my stuff seems to be correct ?
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to