In case you need iomem, I can see sja1000_isa at the rigth place

r...@alpha:/proc# cat iomem
00000000-0000ffff : reserved
00010000-0009fbff : System RAM
0009fc00-0009ffff : reserved
000a0000-000bffff : Video RAM area
000c0000-000c7fff : Video ROM
000d0000-000d001f : sja1000_isa
000d0200-000d021f : sja1000_isa
000e0000-000fffff : reserved
  000f0000-000fffff : System ROM
00100000-7fd9ffff : System RAM
  01000000-01264788 : Kernel code
  01264789-013a6c1f : Kernel data
  0141c000-014c85d3 : Kernel bss
7fda0000-7fdadfff : ACPI Tables
7fdae000-7fddffff : ACPI Non-volatile Storage
7fde0000-7fdfffff : reserved
7fe00000-7fffffff : RAM buffer
80000000-80000fff : Intel Flush Page
d0000000-dfffffff : 0000:00:02.0
e0000000-efffffff : PCI MMCONFIG 0 [00-ff]
  e0000000-efffffff : pnp 00:0e
fe980000-fe9fffff : 0000:00:02.1
fea00000-feafffff : 0000:00:02.0
feb00000-feb7ffff : 0000:00:02.0
febc0000-febdffff : 0000:00:19.0
  febc0000-febdffff : e1000e
febfe000-febfefff : 0000:00:19.0
  febfe000-febfefff : e1000e
febff800-febffbff : 0000:00:1d.7
  febff800-febffbff : ehci_hcd
febffc00-febffcff : 0000:00:1f.3
fec00000-fec00fff : IOAPIC 0
fed14000-fed19fff : pnp 00:01
fed1c000-fed1ffff : pnp 00:07
fed20000-fed3ffff : pnp 00:07
fed40000-fed8ffff : pnp 00:07
fed90000-fed93fff : pnp 00:01
fee00000-fee00fff : Local APIC
  fee00000-fee00fff : reserved
    fee00000-fee00fff : pnp 00:0a
ffb00000-ffffffff : reserved
  ffc00000-ffefffff : pnp 00:09


2010/11/14 Willy Lambert <[email protected]>

> r...@alpha:/opt/ard# cat /proc/interrupts
>>             CPU0       CPU1
>>    0:     153590     153124   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:       2433       2423   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:      59852      60280   PCI-MSI-edge      eth0
>>  NMI:          0          0   Non-maskable interrupts
>>  LOC:      92974      58404   Local timer interrupts
>>  SPU:          0          0   Spurious interrupts
>>  PMI:          0          0   Performance monitoring interrupts
>>  PND:          0          0   Performance pending work
>>  RES:        185        273   Rescheduling interrupts
>>  CAL:         11         39   Function call interrupts
>>  TLB:        131        108   TLB shootdowns
>>  TRM:          0          0   Thermal event interrupts
>>  THR:          0          0   Threshold APIC interrupts
>>  MCE:          0          0   Machine check exceptions
>>  MCP:         72         72   Machine check polls
>>  ERR:          1
>>  MIS:          0
>> r...@alpha:/opt/ard#
>>
>
>
> Everything sounds normal to me. I am quite sure of the interrupts as I am
> willing to use the default configuration (I have jumpers to choose this and
> I am sure I did not change them) and it's written IRQ5<=> CAN1 and
> IRQ7<=>CAN2
> Can1 is at Basisadresse=0hD000 and CAN2 is at Basisadresse+Offset=0h0200h,
> it it exactly what I configured.
>
> Here is my dmesg when I load and configure modules :
>
>> 20537.719019] can: controller area network core (rev 20090105 abi 8)
>> [20537.719114] NET: Registered protocol family 29
>> [20537.725995] can: raw protocol (rev 20090105)
>> [20537.734246] can: broadcast manager protocol (rev 20090105 t)
>> [20537.740686] sja1000 CAN netdevice driver
>> [20537.746588] sja1000_isa sja1000_isa.0: sja1000_isa device registered
>> (reg_base=0xc00d0000, irq=5)
>> [20537.749266] sja1000_isa sja1000_isa.1: sja1000_isa device registered
>> (reg_base=0xc00d0200, irq=7)
>> [20537.755180] Legacy sja1000_isa driver for max. 8 devices registered
>> [20537.759795] sja1000_isa sja1000_isa.0: setting BTR0=0x00 BTR1=0x1c
>> [20537.763583] sja1000_isa sja1000_isa.1: setting BTR0=0x00 BTR1=0x1c
>> r...@alpha:/opt/ard#
>>
>
>
>
> 2010/11/14 Wolfgang Grandegger <[email protected]>
>
>> On 11/14/2010 08:14 PM, Willy Lambert wrote:
>>
>> > At the moment I have :
>> >
>> > r...@alpha:/opt/ard# ip -d -s link show can0
>> >> 17: can0: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state
>> UNKNOWN
>> >> qlen 10
>> >>     link/can
>> >>     can state ERROR-ACTIVE restart-ms 10000
>> >>     bitrate 500000 sample-point 0.875
>> >>     tq 125 prop-seg 6 phase-seg1 7 phase-seg2 2 sjw 1
>> >>     sja1000: tseg1 1..16 tseg2 1..8 sjw 1..4 brp 1..64 brp-inc 1
>> >>     clock 8000000
>> >>     re-started bus-errors arbit-lost error-warn error-pass bus-off
>> >>     0          0          0          0          0          0
>> >>     RX: bytes  packets  errors  dropped overrun mcast
>> >>     0          0        0       0       0       0
>> >>     TX: bytes  packets  errors  dropped carrier collsns
>> >>     0          0        0       0       0       0
>> >>
>> >
>> >
>> >
>> > candump does not show anything !
>>
>> What does "cat /proc/interrupts" show? Are you sure you are using the
>> correct interrupt numbers?
>>
>> Wolfgang.
>>
>
>
_______________________________________________
Socketcan-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/socketcan-users

Reply via email to