root@imx8mp-lpddr4-evk:~# cd /run/meida/[ 275.658219] usb 2-1: USB disconnect, device number 3
[ 275.838584] FAT-fs (sda1): unable to read boot sector to mark fs as dirty
[ 277.294801] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 278.262494] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 278.262711] usb usb1-port1: attempt power cycle
[ 279.306791] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 280.274494] usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
[ 280.274729] usb usb1-port1: unable to enumerate USB device
root@imx8mp-lpddr4-evk:/sys/bus/pci/drivers# ls -l /sys/bus/pci/drivers/ehci-pci
total 0
--w------- 1 root root 4096 Feb 29 18:48 bind
--w------- 1 root root 4096 Feb 29 18:48 new_id
--w------- 1 root root 4096 Feb 29 18:48 remove_id
--w------- 1 root root 4096 Feb 29 18:40 uevent
--w------- 1 root root 4096 Feb 29 18:48 unbind
Which board are you using? NXP reference board?
i am using NXP i.MX 8M PLUS LPDDR 4-EVK BOARD
OK, got it, could you tell me which version BSP are you using and give the details steps in your side, I will try the same steps in our board and then see if problmem can be reproduced. Great thanks
Step1:-downloaded BSP for i.MX8M Plus EVk board https://www.nxp.com/webapp/sps/download/license.jsp?colCode=REAL-TIME_EDGE_V3.1_IMX8MP-LPDDR4-EVK&ap...
zephyr download:-https://docs.zephyrproject.org/latest/boards/nxp/imx8mp_evk/doc/index.html
configure M7 native :-imx8mp-cm7 in remoteproc0
root@imx8mp-lpddr4-evk:~# cat /sys/class/remoteproc/remoteproc0/name
imx8mp-cm7
i am trying to run zephyr in M7 core of i.MX 8M Plus evk board.After cross compiling the zephyr file and created .elf and .bin file.
step 2:-taking these file to board ---> /lib/firmware section.
step 3:-running following these two commands:-
# echo zephyr.elf > /sys/class/remoteproc/remoteproc0/firmware
# echo start > /sys/class/remoteproc/remoteproc0/state
step4:- following error is coming in the board and execution stucked:-
root@imx8mp-lpddr4-evk:~# ls
firmware nservo_example open62541_example state work zephyr zephyr.elf
root@imx8mp-lpddr4-evk:~# echo zephyr.elf > /sys/class/remoteproc/remoteproc0/firmware
root@imx8mp-lpddr4-evk:~# echo start > /sys/class/remoteproc/remoteproc0/state
[ 90.686307] remoteproc remoteproc0: powering up imx8mp-cm7
Thanks for your detailed steps, @SAURAVMISHRA95
could you please let me know which zephyr demo you are using? I'd like to reproduce this on my side.
Please kindly note that Zephyr must explicitly enabled and configure USB support in the device tree and Kconfig.
You can check the kernel log to see whether USB is initialized correctly?
I noticed below error message,
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?
this could be a hardware issue, please double check it on your side, try to replace the USB cable?
Regards
Daniel
usb usb1-port1: Cannot enable. Maybe the USB cable is bad?