iMX28 FlexCAN issue

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX28 FlexCAN issue

1,460 Views
santhoshkarthik
Contributor III

Hi,

  FlexCAN driver is not working when we build it along with kernel but it works when we build as a module. What would be the problem?

I could not find "bitrate" in /sys/devices/platform/FlexCAN.0/ when i build along with kernel but I could see "bitrate" when i build the driver as a module. Please help me on this.

Labels (1)
Tags (2)
0 Kudos
4 Replies

1,100 Views
igorpadykov
NXP Employee
NXP Employee

Hi Karthikeyan

one can try patches from

linux-2.6.35.3-imx28/flexCAN-fixes.patch at master · embeddedarm/linux-2.6.35.3-imx28 · GitHub 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,100 Views
santhoshkarthik
Contributor III

Hi,

   CAN 0 node is not appeared(in ifconfig -a) when we built along with kernel and I could not do following commands

$echo 125000 > /sys/devices/platform/FlexCAN.0/bitrate

$ip link set can0 up

I appiled following patch as well still it didnot work

linux-2.6.35.3-imx28/flexCAN-fixes.patch at master · embeddedarm/linux-2.6.35.3-imx28 · GitHub

But if we build FlexCAN as a module, It works

Please help me to resolve this issue.

Thanks,

Karthik

0 Kudos

1,100 Views
igorpadykov
NXP Employee
NXP Employee

Hi Karthikeyan

also one can check customer patches on

https://community.nxp.com/message/311702#311702 

in general older kernels are supported using

NXP Professional Services|NXP 

Best regards
igor

0 Kudos

1,100 Views
santhoshkarthik
Contributor III

Hi igorpadykov,

   I put the patch in /opt/freescale/pkgs and I added following line in config/platform/imx/kernel-2.6.35.spec.in spec file

Patch1          : kernel-2.6.35-flexcan.patch

%patch -p1

while doing prep(./ltib -m prep -p kernel), it works but when I am building using ./ltib, It was showing following things,

The text leading up to this was:
--------------------------
|diff --exclude CVS --exclude .git -uNr linux-2.6.35.3/arch/arm/mach-mx28/clock.c linux-2.6.35.3.modified/arch/arm/mach-mx28/clock.c
|--- linux-2.6.35.3/arch/arm/mach-mx28/clock.c  2012-01-20 15:25:42.988416724 +0000
|+++ linux-2.6.35.3.modified/arch/arm/mach-mx28/clock.c 2012-01-18 20:01:10.635370568 +0000
--------------------------
File to patch: /opt/freescale/pkgs/kernel-2.6.35-flexcan.patch
1 out of 1 hunk FAILED -- saving rejects to file /opt/freescale/pkgs/kernel-2.6.35-flexcan.patch.rej

Please help me on this

Thanks

Karhik

0 Kudos