i.mx7 ULP - unable to run rpmsg examples

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx7 ULP - unable to run rpmsg examples

1,182 Views
klaas
Contributor III

Hi all,

I'm trying to run the rpmsg_lite_str_echo_rtos_imxcm4 on my imx7ulp-evk without success. On Linux side I did build the image with Yocto according to IMXLXYOCTOUG.pdf (imx-4.9.88-2.0.0_ga.xml, rocko, core-image-base)

I manually started imx_rpmsg_tty modules with modprobe.

When the debugging and starting the application on CM4 (in RAM) I get the following output on Linux side:

 

AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X000868, len:00000004, Write, Sync
AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X01C7E4, len:00000256, Write, Async
AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X000868, len:00000004, Write, Sync
AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X000868, len:00000004, Write, Sync
AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X01C7E4, len:00000256, Write, Async
AR6000: SDIO bus operation failed! MMC stack returned : -110
__HIFReadWrite, addr:0X000868, len:00000004, Write, Sync
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
cpu cpu0: failed to scale vddarm up: -110
cpufreq: __target_index: Failed to change cpu frequency: -110
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
 AR6000: SDIO bus operation failed! MMC stack returned : -110
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
cpu cpu0: failed to scale vddarm up: -110
cpufreq: __target_index: Failed to change cpu frequency: -110
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
cpu cpu0: failed to scale vddarm up: -110
cpufreq: __target_index: Failed to change cpu frequency: -110
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
regulator_rpmsg virtio0.rpmsg-regulator-channel.-1.1: rpmsg_send timeout!
cpu cpu0: failed to scale vddarm up: -110
cpufreq: __target_index: Failed to change cpu frequency: -110

 

There was also a warning in dmesg after booting:

 

AR6000: Set async interrupt delay clock as 2.
AR6000: configuration opcode 3 is not used for Linux SDIO stack
NUM_DEV=1 FWMODE=0x2 FWSUBMODE=0x0 FWBR_BUF 0
ol_download_firmware: Using 0x1234 for the remainder of init
ol_download_firmware: chip_id:0x5020001 board_id:0x0
ar6k_wlan mmc1:0001:1: Falling back to user helper
__ol_transfer_bin_file: Failed to get bdwlan30.b00:-11
__ol_transfer_bin_file: Trying to load default bdwlan30.bin
Board extended Data download address: 0x0
__ol_transfer_bin_file: Loading setup file qsetup30.bin
ar6k_wlan mmc1:0001:1: Falling back to user helper
__ol_transfer_bin_file: Failed to get qsetup30.bin:-11
random: crng init done
HIF Interrupt processing is SYNC ONLY
AR6000: configuration opcode 7 is only used for RTOS systems, not Linux systems
AR6000: configuration opcode 5 is not used for Linux SDIO stack
ol_if_dfs_attach: called; ptr=b11e5d68, radar_info=b07df9d4
+HWT
-HWT
MAILBOX SWAP Service is enabled!
Reduced Tx Complete service is enabled!
is_full_reorder_offloaded? 0
HTC Service:0x0300 ep:1 TX flow control disabled
TXRX: page_divider 0x6, offset_filter 0x3f num elem 4800, ol desc num page 75, ol desc per page 64
__wmi_control_rx: WMI UNIFIED SERVICE READY event
__wmi_control_rx:  WMI UNIFIED READY event
__wmi_control_rx : event handler is not registered: event id 0x1d019
ar6k_wlan mmc1:0001:1: Falling back to user helper
target uses HTT version 3.47; host uses 3.28
*** Warning: host/target HTT versions are different, though compatible!
Host SW:4.5.21.011, FW:0.0.0.97, HW:QCA93x7_REV1_1
ol_pktlog_init: pktlogmod_init successfull
ath_hif_sdio: HIF (Atheros/multi-bss)
wlan: driver loaded in 2340000

 

Also I'm wondering why CM4 is not rebooting the CA7, which should be done with call of 'APP_SRTM_BootCA7();'

Any idea what I'm doing wrong here?

Thanks

Klaas

0 Kudos
3 Replies

1,034 Views
klaas
Contributor III

Hi Igor, 

I was running the CM4 application in RAM. When I execute it from flash it works fine.

Thanks
Klaas

0 Kudos

1,168 Views
igorpadykov
NXP Employee
NXP Employee

Hi Klaas

 

one can try to recheck testing procedure, it is described in attached readme (from SDK_ MX7ULP EVK

available on  https://mcuxpresso.nxp.com/en/welcome) ,  sect.2.8.5 Running i.MX RPMsg Test Programs

"3. Run the RPMsg test program"  i.MX Linux Reference Manual​

description "RPMsg TTY Example"  on  https://developer.toradex.com/knowledge-base/freertos-on-the-cortex-m4-of-a-colibri-imx7#tab-linux

Use latest linux with imx7ulp-evk.dts

https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts/imx7ulp-evk.dts?h=lf-5.1...

https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

 

Best regards
igor

0 Kudos

1,143 Views
klaas
Contributor III

Hi Igor,

thanks for the answer. I will try with the latest BSP and post the results, when I find time to build it.

Thanks
Klaas

Tags (1)
0 Kudos