Anybody have an mpc5200b mscan linux driver under 2.6.24, ARCH=powerpc or equiv?

Mike Timmons mike_timmons at trimble.com
Thu Jun 19 02:16:29 EST 2008


Thanks again Wolfgang. I've successfully built and insmod' the
following: 

vcan.ko 
can-dev.ko 
mscan-mpc5200.ko

(I'll figure out the dependencies for modules.dep and use modprobe in
the future, but for now I think I've loaded what I need).

It looks like I should be good-to-go, but I'm having a socket address
issue with the cansniffer app. I have posted a question to the
socket-CAN mailing list.

Your advice below did get me successfully building the modules for my
2.6.24 kernel, so that part of the issue is closed.


-Mike

-----Original Message-----
From: Wolfgang Grandegger [mailto:wg at grandegger.com] 
Sent: Wednesday, June 18, 2008 9:19 AM
To: Mike Timmons
Cc: linuxppc-embedded at ozlabs.org
Subject: Re: Anybody have an mpc5200b mscan linux driver under 2.6.24,
ARCH=powerpc or equiv?

Mike Timmons wrote:
> Thanks for the quick response. I'm currently using 2.6.24 ARCH=powerpc
> on the Lite5200b. I just searched for an obvious patch but it is
unclear
> to me what patch(es) I should take at this point.
> 
> Can you direct me to the patch(es) I need? Again, thank you.

As a first try you can build Socket-CAN out of tree by just downloading 
the SVN trunk repository as described here:

http://developer.berlios.de/svn/?group_id=6475

Then go to trunk/kernel/2.6 and type:

   $ make ARCH=powerpc KERNELDIR=<path-to-kernel> \
     CONFIG_CAN_MSCAN=m CONFIG_CAN_MPC52XX=m

You need the following modules on your target:

   drivers/net/can/*.ko
   drivers/net/can/mscan/*.ko

There is a script to create kernel patches, but I don't known if it 
works right now (there have been some issues recently). Please ask on 
the Socket-CAN mailing list.

Wolfgang.

> 
> -Mike 
> 
> -----Original Message-----
> From: Wolfgang Grandegger [mailto:wg at grandegger.com] 
> Sent: Wednesday, June 18, 2008 8:45 AM
> To: Mike Timmons
> Cc: linuxppc-embedded at ozlabs.org
> Subject: Re: Anybody have an mpc5200b mscan linux driver under 2.6.24,
> ARCH=powerpc or equiv?
> 
> Mike Timmons wrote:
>> I'm trying to wrestle the peak CAN driver for the old,
non-device-tree
>> ppc into submission but I'm making a mess of it so far.
>>
>> I think I'll get it going at some point, but if anybody has or knows
> of
>> an mscan driver for the mpc5200 can you alert me?
> 
> http://svn.berlios.de/svnroot/repos/socketcan/trunk/README
> 
> The Socket-CAN core is part of the official kernel since 2.6.25.
> 
> Wolfgang.
> 
>> Thanks,
>> Mike
>>
>> -----Original Message-----
>> From: linuxppc-embedded-bounces+mike_timmons=trimble.com at ozlabs.org
>>
[mailto:linuxppc-embedded-bounces+mike_timmons=trimble.com at ozlabs.org]
>> On Behalf Of Scott Wood
>> Sent: Tuesday, June 17, 2008 4:30 PM
>> To: Mike Winter
>> Cc: linuxppc-embedded at ozlabs.org
>> Subject: Re: PCI DMA Problems With 82xx?
>>
>> Mike Winter wrote:
>>> We are developing with an 8248-based platform, and we have a vendor 
>>> telling us that the PCI hardware is unreliable on this CPU family,
in
> 
>>> particular the DMA functionality.  A quick search of this list
> doesn't
>>> turn up any horror stories, although the processor does have some
PCI
> 
>>> errata listed.  Does anybody have any practical experience using PCI
>> on 
>>> the 8248 or similar that they can share with me?   Thanks.
>> Make sure that you park the bus on PCI, and elevate PCI's arbitration

>> priority.  See fixup_pci() in arch/powerpc/boot/cuboot-pq2.c.
>>
>> I haven't had a problem with PCI DMA when that is done, though I
> haven't
>> done significant stress testing.
>>
>> -Scott
>> _______________________________________________
>> Linuxppc-embedded mailing list
>> Linuxppc-embedded at ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>> _______________________________________________
>> Linuxppc-embedded mailing list
>> Linuxppc-embedded at ozlabs.org
>> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>>
>>
> 
> 



More information about the Linuxppc-embedded mailing list