Fail to load m33.bin in u-boot

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

Fail to load m33.bin in u-boot

444件の閲覧回数
WolsYang
Contributor IV

Hi @gaurav_sharma :

I try to do this example, but fail.
https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Using-UART-as-wakeup-source-to-wake-Cort...

u-boot=> fatls mmc 0:1 /mcore-demos/
./
../
130428 imx93-11x11-evk_m33_TCM_low_power_wakeword.bin
19080 imx93-11x11-evk_m33_TCM_power_mode_switch.bin
47472 imx93-11x11-evk_m33_TCM_sai_low_power_audio.bin
18708 imx93-11x11-evk_m33_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin
17228 imx93-11x11-evk_m33_TCM_rpmsg_lite_str_echo_rtos.bin

5 file(s), 2 dir(s)

u-boot=> setenv fdtfile imx93-11x11-evk-rpmsg.dtb
u-boot=> setenv bootargs ${jh_clk} ${mcore_clk} console=${console} root=${mmcroot}
u-boot=> fatload mmc 0:1 0x80000000 /mcore-demos/imx93-11x11-evk_m33_TCM_power_mode_switch.bin
19080 bytes read in 19 ms (980.5 KiB/s)
u-boot=> cp.b 0x80000000 0x201e0000 19080



u-boot=> boot
Working FDT set to 83000000
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:1...
65298 bytes read in 3 ms (20.8 MiB/s)
MMC: no card present
Unable to open OP-TEE session (err=-5)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
MMC: no card present
starting USB...
Bus usb@4c100000: SNK.Default on CC1
SNK.Default on CC1
SNK.Default on CC1
Port not available.
Bus usb@4c200000: tcpc_setup_ufp_mode: Polling ALERT register, TCPC_ALERT_CC_STATUS bit failed, ret = -62
Port not available.
USB is stopped. Please issue 'usb start' first.
Running BSP bootcmd ...
switch to partitions #0, OK
mmc0(part 0) is current device
Failed to load 'boot.scr'
34978304 bytes read in 133 ms (250.8 MiB/s)
Booting from mmc ...
65298 bytes read in 13 ms (4.8 MiB/s)
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Working FDT set to 83000000
Using Device Tree in place at 0000000083000000, end 0000000083012f11
Working FDT set to 83000000
adv7535_mipi2hdmi hdmi@3d: Can't find cec device id=0x3c
fail to probe panel device hdmi@3d
fail to get display timings
probe video device failed, ret -19

Starting kernel ...

But I can't start

echo start > /sys/devices/platform/imx93-cm33/remoteproc/remoteproc0/state
-sh: /sys/devices/platform/imx93-cm33/remoteproc/remoteproc0/state: No such file or directory

root@imx93-11x11-lpddr4x-evk:~# echo start > /sys/class/remoteproc/remoteproc0/state
-sh: echo: write error: No such file or directory
root@imx93-11x11-lpddr4x-evk:~# ls /sys/class/remoteproc/remoteproc0/state
/sys/class/remoteproc/remoteproc0/state

But if I do in Linux it work

root@imx93-11x11-lpddr4x-evk:~# echo /lib/firmware/imx93-11x11-evk_m33_TCM_power_mode_switch.elf > /sys/class/remoteproc/remoteproc0/firmware
root@imx93-11x11-lpddr4x-evk:~# echo start > /sys/class/remoteproc/remoteproc0/state
root@imx93-11x11-lpddr4x-evk:~#

 

0 件の賞賛
返信
3 返答(返信)

429件の閲覧回数
gaurav_sharma
NXP Employee
NXP Employee

Hi @WolsYang , which imx93 linux BSP are you using?

Do you not see any nodes inside this directory :-

/sys/devices/platform

please paste the output of "ls /sys/devices/platform/"
 

0 件の賞賛
返信

428件の閲覧回数
gaurav_sharma
NXP Employee
NXP Employee

And if you want to boot cm33 binary at Uboot, you have to additionally do the following after copying the image to TCM[i.e the step in which you execute "cp.b"]: -

bootaux 0x1ffe0000 0

0 件の賞賛
返信

422件の閲覧回数
WolsYang
Contributor IV

I am working on 6.12

Boot m33 in u-boot by this cmd is work

bootaux 0x1ffe0000 0

But boot in Linux is still fail(Well it should be, we didn't change any thing)

root@imx93-11x11-lpddr4x-evk:~# ls /sys/devices/platform
'Fixed MDIO bus.0'   firmware:optee   power          regulator-adc-vref    regulator-dvdd          regulator-usdhc3    remoteproc-cm33   serial8250      uevent
 acpi-einj           i2c-rpbus-1      psci           regulator-audio-pwr   regulator-hmisc-vddio   regulator-vdd-12v   rpmsg_audio       snd-soc-dummy   usbphynop1
 bt-sco-codec        imx93-lpm        psci-cpuidle   regulator-avdd        regulator-m2-pwr        regulator-vddo      rpmsg_micfil      soc@0           usbphynop2
 display-subsystem   pmu              reg-dummy      regulator-can2-stby   regulator-usdhc2        regulatory.0        secure-enclave    timer           usdhc3_pwrseq
root@imx93-11x11-lpddr4x-evk:~# cat /etc/os-release 
ID=fsl-imx-xwayland
NAME="NXP i.MX Release Distro"
VERSION="6.12-styhead (styhead)"
VERSION_ID=6.12-styhead
VERSION_CODENAME="styhead"
PRETTY_NAME="NXP i.MX Release Distro 6.12-styhead (styhead)"
CPE_NAME="cpe:/o:openembedded:fsl-imx-xwayland:6.12-styhead"
root@imx93-11x11-lpddr4x-evk:~# 
root@imx93-11x11-lpddr4x-evk:~# 
root@imx93-11x11-lpddr4x-evk:~# echo start > /sys/class/remoteproc/remoteproc0/state                                                                                                             
-sh: echo: write error: No such file or directory
root@imx93-11x11-lpddr4x-evk:~# ls /sys/class/remoteproc/remoteproc0/state 
/sys/class/remoteproc/remoteproc0/state
root@imx93-11x11-lpddr4x-evk:~# 

 

 

0 件の賞賛
返信