CAN Communication test on the IMX8M PLUS EVK

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

CAN Communication test on the IMX8M PLUS EVK

2,011件の閲覧回数
rohit_alate
Contributor II

Hello Community,

H/W Used ::
Hardware Specification ::
Board :: Imx8mplus-evk
OS :: Android [ 11.0.0_2.2.0 { Linux 5.10.35 Kernel } ]

 

i am trying to do/test the CAN Communication on board , i am completely new to the Android OS and board, it will be really helpful if you give any documents that i can refer to do the CAN Communication on the Board, or any sample application example which uses the CAN Communication.

Thanks in Advance,

Regards,
Rohit 

ラベル(2)
0 件の賞賛
返信
8 返答(返信)

1,982件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport
0 件の賞賛
返信

1,974件の閲覧回数
rohit_alate
Contributor II

Hello @jimmychan ,
Thanks a lot for the response,
i went through the link shared as the link is saying 

rohit_alate_0-1667969198212.png

canutils will come pre-installed with android release but when i try to run this command using the adb shell i am getting the response like 

Command :: 
verolt@VeroltPuneLt158:~$ adb -s 2011a8006ce230e0 shell ip link set can0 up type can bitrate 125000

response ::
request send failed: Permission denied

Actually i am new on the Embedded Android so please let me know how i can proceed in this.

Thanks in advance,

Regards,
Rohit

タグ(2)
0 件の賞賛
返信

1,967件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

You may download the documentation for the Android BSP.

There is Android user's guide. You may check the setting androidboot.selinux=permissive in the u-boot bootargs.

 

Also, you could try the command in the debug console. For the console setup, you could refer to the Chapter 3 in i.MX Linux User’s Guide​

0 件の賞賛
返信

1,957件の閲覧回数
rohit_alate
Contributor II

Hello @jimmychan ,

Thank you so much for the quick response,

I am able to setup the console and run command,

rohit_alate_0-1667984968981.png

but getting the error like attached picture,

and to set the androidboot.selinux=permissive how i can go into the Uboot terminal ?


Regards,
Rohit

0 件の賞賛
返信

1,950件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

When the board is start up, there is 3 seconds count down before the kernel boot. You could press any key on debug console to stop the booting to enter the u-boot. Then you could setup the bootargs.

 

0 件の賞賛
返信

1,942件の閲覧回数
dhirajtarole
Contributor III

Hi @jimmychan ,

As i am working along with @rohit_alate , i have given setenv bootargs androidboot.selinux=permissive command in uboot terminal and save the environment as well.

after that when i executed boot command than board will go in infinite loop with some errors.

please find attached environment for ref,

i booted the image from the eMMC mode.

dhirajtarole_1-1668064139685.png

 

Thanks and regards,

Dhiraj

 

0 件の賞賛
返信

1,908件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

Please read the Chapter 6.2.1 in Android user's guide about the bootargs settings.

There is an example in page 39 about setting with boota.

 

0 件の賞賛
返信

1,899件の閲覧回数
dhirajtarole
Contributor III

Hi @jimmychan ,

I have tried this one but the board get stucked in boot  loop. this is what i have treid :-

before modification :-

uboot - setenv bootargs androidboot.selinux=permissive

uboot - saveenv

uboot - setenv bootcmd "bootmcu && boota "

uboot -saveenv

also please check the below image showing cannot find can0

dhirajtarole_0-1668155042468.png

 

OS Using :Android11.0.0_2.2.0

Thanks,

Dhiraj

 

0 件の賞賛
返信