iMX28 FlexCAN issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

iMX28 FlexCAN issue

1,584件の閲覧回数
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.

ラベル(1)
タグ(2)
0 件の賞賛
4 返答(返信)

1,224件の閲覧回数
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 件の賞賛

1,224件の閲覧回数
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 件の賞賛

1,224件の閲覧回数
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 件の賞賛

1,224件の閲覧回数
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 件の賞賛