Search found 9 matches

by austinsteamboat
Thu 10. Aug 2017, 21:05
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

Hi Stéphane,
I installed the beta version and can confirm it works perfectly for both transmit and receive on my PPC.
I'd say with that driver we can close this topic.
Thanks!
-Austin
by austinsteamboat
Sat 5. Aug 2017, 00:45
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

Here are my bug fixed files which SHOULD be generic:

driver/src/pcanfd_ucan.c:

/*****************************************************************************
* Copyright (C) 2014 PEAK System-Technik GmbH
*
* linux@peak-system.com
* www.peak-system.com
*
* This program is free software; you ...
by austinsteamboat
Fri 4. Aug 2017, 23:44
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

So I've tracked the issue down, wrote a temporary patch, and got it working. It did turn out to be an endian issue.

I found that the driver formats those receive and transmit packets I'd been observing in pcanfd_ucan.h:


Lines 205 to 217
struct __packed ucan_rx_msg {
__le16 size;
__le16 type ...
by austinsteamboat
Fri 4. Aug 2017, 20:40
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

As an update I've tracked down the issue just a bit more. By varying my flags and data size on my x86 ubuntu server with the debug module enabled, I found:


pcan: Dumping message sent to device (28 bytes):
pcan: 18 00 00 10 00 00 00 00 00 00 00 00 10 00 32 00
pcan: EF BE AD 0B 01 00 00 00 00 00 ...
by austinsteamboat
Fri 4. Aug 2017, 18:03
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

Hey Michael,

I'll follow up with you via the support e-mail address. In the meantime I'm going to keep try to track this down on my end. I have two follow up questions:

1. Does the netdev driver support CAN FD? From briefly looking into it, it seems like it just uses SocketCAN which sounds like it ...
by austinsteamboat
Fri 4. Aug 2017, 00:45
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

As an update, I've got the debug flag loaded on both the P2020 embedded PowerPC device and a 64-bit x86 server running Ubuntu 16.10. I've run identical transmit code on both and I've found the following:

1. The error I mentioned earlier shows up on both:


ucan_encode_msgs_buffer(): err -61 while ...
by austinsteamboat
Thu 3. Aug 2017, 20:59
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

The dmesg output was being overwhelmed by bit timing correction reports so I pulled the messages log, here's the full report with the timing spam removed:


Jul 22 11:50:27 cpuslicen kernel: usb 1-1: USB disconnect, device number 2
Jul 22 11:50:28 cpuslicen kernel: usb 1-1: new high-speed USB ...
by austinsteamboat
Thu 3. Aug 2017, 20:31
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

Re: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

Hi Michael,

Thanks for the help, I've re-installed with debug mode enabled. I'll post the results I got from dmsg and the cat call. The executive summary is that it seems like I am seeing an error reported by the kernel when I try to send 1 message (1 Mb Nominal rate, 2 Mb Data rate, 16 bytes: 00 ...
by austinsteamboat
Wed 2. Aug 2017, 18:05
Forum: Linux
Topic: PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC
Replies: 13
Views: 14434

PCAN-USB FD Linux Driver Issues on Yocto Linux PowerPC

Hello,
So I'm having some trouble getting the Peak Linux Driver working correctly on an embedded yocto-based linux image running on a PowerPC architecture. So to begin here are some details on my setup:

1. I'm using the PCAN-USB FD adapter.

2. I'm using a P2020RDB as my processor. It is a PowerPC ...