All times are UTC - 6 hours




Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Spoke to soon
PostPosted: Mon Mar 10, 2008 8:47 am 
Offline
Site Admin


Fri Sep 24, 2004 1:39 am

1589

Alamo Heights, TX
vedran wrote:
Kernel module compiles and loads ok, but it appears it can't find any interfaces.

-- snip --
# cat /proc/pcan

*------------ PEAK-Systems CAN interfaces (www.peak-system.com) -------------
*-------------------------- Release_20080220_n ----------------------------
*---------------- [mod] [isa] [pci] [dng] [par] [usb] [pcc] -----------------
*--------------------- 0 interfaces @ major 253 found -----------------------
*n -type- ndev --base-- irq --btr- --read-- --write- --irqs-- -errors- status


-- end snip --

How can I be sure that the forth snippet did it job?


It won't have done the whole job; the CAN controller is not set up at all, plus like I said; the stock Peak controller driver doesn't have support for the MPC52xx CAN bus.

There is a patch for Peak 3.17 in the Lite5200B BSP (look on the MPC5200B Documentation and Tools page, it's a 440MB download). For ease of use, I put them on Power Developer;

http://www.powerdeveloper.org/downloads ... iver.patch
http://www.powerdeveloper.org/downloads ... 5200.patch

These will use the snippet to find the device. However you need to enable the controller and set the Alternatives bits, too! This is all in the manual, and is easy to do as a Forth script in addition to the snippet.
Matt Sealey, Genesi USA Inc.
Product Development Analyst


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group