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
Hello @jimmychan ,
Thanks a lot for the response,
i went through the link shared as the link is saying
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
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
Hello @jimmychan ,
Thank you so much for the quick response,
I am able to setup the console and run command,
but getting the error like attached picture,
and to set the androidboot.selinux=permissive how i can go into the Uboot terminal ?
Regards,
Rohit
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.
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.
Thanks and regards,
Dhiraj
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.
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
OS Using :Android11.0.0_2.2.0
Thanks,
Dhiraj