So I change my script,the sja1000_isa line  is now :

try 1 :                 insmod
/lib/modules/2.6.32.11-target-alpha-v2/kernel/drivers/net/can/sja1000/sja1000_isa.ko
irq=5,7 mem=0xD0000,0xD0200  ocr=0x5e,0x5e
try 2 :                 insmod
/lib/modules/2.6.32.11-target-alpha-v2/kernel/drivers/net/can/sja1000/sja1000_isa.ko
irq=5,7 mem=0xD0000,0xD0200  ocr=0x5e,0x5e cdr=0,0

Nothing is plugged into my card (no wire and no resistors). I did :
candump any,0:0,#FFFFFFFF (in a first terminal)
cansend can0 5A1#11.22 (in a second one)
cat /proc/interrupts


And nothing seems to have changed

r...@alpha:/opt/ard# cat /proc/interrupts
            CPU0       CPU1
   0:       6321       5859   IO-APIC-edge      timer
   1:          0          2   IO-APIC-edge      i8042
   5:          0          0   IO-APIC-edge      can0
   7:          0          0   IO-APIC-edge      can1
   8:          1          0   IO-APIC-edge      rtc0
   9:          0          0   IO-APIC-fasteoi   acpi
  12:          2          2   IO-APIC-edge      i8042
  14:          0          0   IO-APIC-edge      ata_piix
  15:       1304       1307   IO-APIC-edge      ata_piix
  19:          0          0   IO-APIC-fasteoi   uhci_hcd:usb3
  23:          0          0   IO-APIC-fasteoi   ehci_hcd:usb1, uhci_hcd:usb2
  24:      19309      19719   PCI-MSI-edge      eth0
 NMI:          0          0   Non-maskable interrupts
 LOC:       3731       4536   Local timer interrupts
 SPU:          0          0   Spurious interrupts
 PMI:          0          0   Performance monitoring interrupts
 PND:          0          0   Performance pending work
 RES:        194        164   Rescheduling interrupts
 CAL:          5         27   Function call interrupts
 TLB:        135        108   TLB shootdowns
 TRM:          0          0   Thermal event interrupts
 THR:          0          0   Threshold APIC interrupts
 MCE:          0          0   Machine check exceptions
 MCP:          5          5   Machine check polls
 ERR:          1
 MIS:          0
r...@alpha:/opt/ard#



I don't know what kind of report you'll need (dmesg ? interrupts ? iomem ?
stats ? ifconfig ? ...)



2010/11/15 Wolfgang Grandegger <[email protected]>

> On 11/15/2010 08:10 PM, Wolfgang Grandegger wrote:
> > Hello,
> >
> > On 11/15/2010 06:59 PM, Willy Lambert wrote:
> >> Here is my dmesg :
> >>
> >> r...@alpha:/opt# dmesg
> >> [    0.000000] Initializing cgroup subsys cpuset
> >> [    0.000000] Initializing cgroup subsys cpu
> >> [    0.000000] Linux version 2.6.32.11-target-alpha-v2 (r...@ard-host-4
> )
> >> (gcc version 4.4.5 20100728 (prerelease) (Debian 4.4.4-8) ) #3 SMP Tue
> Nov 9
> >> 19:07:02 CET 2010
> > ...
> >
> > I do not see anything obvious. But maybe the default "cdr" and "ocr"
> > values are not OK for that card. Could you please add the module
> parameters:
> >
> >   ocr=0xdc cdr=0
> >
> > when loading the SJA1000 ISA driver.
>
> Do you have a manual or data sheet for that card? I just read somewhere
> that it tells to use 0x5e as ocr value. Therefore, please try first:
>
>    ocr=0x5e,0x5e
>
> and then
>
>    ocr=0x5e,0x5e cdr=0,0
>
> Wolfgang.
>
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to