2009-12-08 04:21:51     SocketCan - silent modprobe

Document created by Aaronwu Employee on Aug 20, 2013
Version 1Show Document
  • View in full screen mode

2009-12-08 04:21:51     SocketCan - silent modprobe

Jack Hanna (TOGO)

Message: 83234   

 

Hi

 

I am trying to use the SocketCan driver on a CMBF537E board working from trunk. Using the information on :

 

  docs.blackfin.uclinux.org/doku.php?id=linux-kernel:drivers:can_module

 

When using modprobe I get no output or can0 device.

 

Dmesg do have these entries:

 

CAN device driver interface

can: controller area network core (rev 20090105 abi 8)

can: raw protocol (rev 20090105)

can: broadcast manager protocol (rev 20090105 t)

 

Thanks for any help.

 

jason

QuoteReplyEditDelete

 

 

2009-12-08 04:26:26     Re: SocketCan - silent modprobe

Mike Frysinger (UNITED STATES)

Message: 83235   

 

you probably need to update your board resources

QuoteReplyEditDelete

 

 

2009-12-08 06:36:58     Re: SocketCan - silent modprobe

Jack Hanna (TOGO)

Message: 83240   

 

That did the trick. For reference, I found the code(the CAN resources) in stamp.c and added it to cm_bf537e.c (blackfin-sources/uclinux-dist/linux-2.6.x/arch/blackfin/mach-bf537/boards/)

 

Some of these board resources are processor resources, as I see it, albeit board circuits are nedded for operation. Still, it would be would be easier with one code file and one for defines to activate them for the different boards.(?)

 

Thanks Mike

QuoteReplyEditDelete

 

 

2009-12-08 12:11:00     Re: SocketCan - silent modprobe

Robin Getz (UNITED STATES)

Message: 83249   

 

Jack:

 

>Some of these board resources are processor resources,

 

Becuase of the pin multiplexing that can go on, even SoC/processor resources are really board specific.

 

On the BF537 - PJ4 can be either: CAN Receive (CANRX ) or Timer0 Alternate Input Capture (TACI0) or SPORT0 Receive Data Secondary (DR0SEC). Since only you (who controls the PCB) knows what is connected on the outside - I don't think we can pre-define anything.

 

(Or at least if I understand your suggestion there isn't much we can do - if I am misunderstanding - let me know).

 

-Robin

Attachments

    Outcomes