PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi,
your cansend command looks ok. You can try to use "cangen can0" to generate random CAN frames on can0.
Please post the output of cat /proc/pcan again, to see if the write counter increases during your tests.
regards
Michael
your cansend command looks ok. You can try to use "cangen can0" to generate random CAN frames on can0.
Please post the output of cat /proc/pcan again, to see if the write counter increases during your tests.
regards
Michael
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi Michael.
I have tested:
cat /proc/pcan :
Thank you.
Best regards
I have tested:
Code: Select all
cangen can0
cangen can1
Code: Select all
*------------- PEAK-System CAN interfaces (http://www.peak-system.com) -------------
*------------- Release_20190802_n (8.9.0) Sep 25 2019 07:54:00 --------------
*------------------------- [mod] [pci] [pec] [net] --------------------------
*--------------------- 4 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pcifd can0 eb061000 333 0x041c 00000000 00000322 00000000 00000000 0x0000
1 pcifd can1 eb062000 333 0x041c 00000000 0000025c 00000000 00000000 0x0000
2 pcifd can2 eb063000 333 0x001c 00000000 00000000 00000000 00000000 0x0000
3 pcifd can3 eb064000 333 0x001c 00000000 00000000 00000000 00000000 0x0000
Best regards
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi,
looks ok, the write counters increasing.
regards
Michael.
looks ok, the write counters increasing.
regards
Michael.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi
For another test, I have unsoldered fields that i said before.
This consists on testing the same driver on X86 platform with ubuntu-16.04.5-desktop-i386.
In this case, the driver is working. i can see the signals in the osciloscope and connect the ports to comunicate them.
The procedure to test is:
1. rmmod peak_pciefd
2. insmod pcan.ko
3. ip link set can0 type can bitrate 100000 #(I tested this lower speed than 1000000)
4. ip link set can0 up
5. cansend can0 01a#12345678
I have done the same test in IMX6 platform, but i can see the signals when I run cansend.
NOTE: The driver is compiled "make pci_only"
Thank you.
Best regards.
For another test, I have unsoldered fields that i said before.
This consists on testing the same driver on X86 platform with ubuntu-16.04.5-desktop-i386.
In this case, the driver is working. i can see the signals in the osciloscope and connect the ports to comunicate them.
The procedure to test is:
1. rmmod peak_pciefd
2. insmod pcan.ko
3. ip link set can0 type can bitrate 100000 #(I tested this lower speed than 1000000)
4. ip link set can0 up
5. cansend can0 01a#12345678
I have done the same test in IMX6 platform, but i can see the signals when I run cansend.
NOTE: The driver is compiled "make pci_only"
Thank you.
Best regards.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi,
so it is working now on your IMX6?
Michael
so it is working now on your IMX6?
regardsI have done the same test in IMX6 platform, but i can see the signals when I run cansend.
Michael
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi.
No, it is not working on IMX6, only it is working on X86 paltform.
Best regards.
No, it is not working on IMX6, only it is working on X86 paltform.
Best regards.
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi,
in your last post you said it was working, maybe you miss the "not" in your statement (see the quote in my post)
please try to insmod the pcan driver with MSI on:
# insmod pcan.ko fdusemsi=1
Then retry your test please.
regards
Michael
in your last post you said it was working, maybe you miss the "not" in your statement (see the quote in my post)
please try to insmod the pcan driver with MSI on:
# insmod pcan.ko fdusemsi=1
Then retry your test please.
regards
Michael
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi.
Sorry Michael, it was my "not" mistake.
I have tested insmod pcan.ko fdusemsi=1, but it is the same, I can't see the signals.
Thank you.
Best regards
Sorry Michael, it was my "not" mistake.
I have tested insmod pcan.ko fdusemsi=1, but it is the same, I can't see the signals.
Thank you.
Best regards
Last edited by pguillen on Wed 25. Sep 2019, 17:07, edited 1 time in total.
- S.Grosjean
- Software Development
- Posts: 357
- Joined: Wed 4. Jul 2012, 17:02
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hello,
Please, send us again the output of "cat /proc/pcan" (after insmod pcan.ko fdusemsi=1).
Thanks,
Please, send us again the output of "cat /proc/pcan" (after insmod pcan.ko fdusemsi=1).
Thanks,
— Stéphane
Re: PCAN-miniPCIe FD - IMX6 - kernel 4.9.124
Hi Michael
I have tried again the same test with insmod pcan.ko fdusemsi=1. I don't know what was happenig in the first test.
Now it is working !!! I am going to test all ports and combination of them.
Please, could you explain me the parameter and what it was happening ?
This is the output of : cat /proc/pcan
Thank you so much.
Best regards.
Paul
I have tried again the same test with insmod pcan.ko fdusemsi=1. I don't know what was happenig in the first test.
Now it is working !!! I am going to test all ports and combination of them.
Please, could you explain me the parameter and what it was happening ?
This is the output of : cat /proc/pcan
Code: Select all
*------------- PEAK-System CAN interfaces (www.peak-system.com) -------------
*------------- Release_20190802_n (8.9.0) Sep 25 2019 14:54:24 --------------
*------------------------- [mod] [pci] [pec] [net] --------------------------
*--------------------- 4 interfaces @ major 243 found -----------------------
*n -type- -ndev- --base-- irq --btr- --read-- --write- --irqs-- -errors- status
0 pcifd can0 eb041000 305 0x041c 00000002 00000002 0006b102 00105335 0x000c
1 pcifd can1 eb042000 306 0x041c 00000002 00000002 00059f59 000b7040 0x000c
2 pcifd can2 eb043000 307 0x041c 00000002 00000002 00044462 0008f038 0x000c
3 pcifd can3 eb044000 308 0x041c 00000000 00000002 000687b3 0020a680 0x0000
Best regards.
Paul