Running CM7 and Jailhouse

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

Running CM7 and Jailhouse

394 Views
Majidbahmani
Contributor II

Hi,

I am using “nxp-real-time-edge-sw” Linux on IMX8MP. I want to develop a project in Jailhouse with Harpoon platform. When I enable jailhouse with a simple “hello_world!” harpoon project, it works correctly. However, when I load a code on CM7 in U-Boot, then in Linux I can enable the jailhouse, but the Harpoon code doesn’t work and only CM7 works correctly. I found that the Harpoon code stuck in “BOARD_InitDebugConsole”. To avoid confliction, I changed the console UART of CM7 to UART3 and disable UART3 in device tree, but it didn’t have any effect. On the other hand, when I disable console and only toggle a pin in CM7, harpoon code works correctly. Does anyone have any suggestions to solve this issue?  

What I have done:

  • Load the CM7 code.

fatload mmc 1:1 0x40400000 test_uart3.bin;

cp.b 0x40400000 0x7e0000 4e88;

bootaux 0x7e0000 0;

  • Set the device tree.

setenv jh_boot_db imx8mp-evk-rpmsg-cm7-jailhouse.dtb;saveenv

  • Run jailhouse boot command.

run jh_mmcboot

  • Run jailhouse in Linux.

harpoon_set_configuration.sh freertos test_gpio_test

systemctl start harpoon

I have attached the codes and the device trees.

Thank you.

0 Kudos
Reply
2 Replies

343 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hello,

You should modified the assigned memory to uboot since CM7 don't create a point to upload harpoon.

Regards

0 Kudos
Reply

339 Views
Majidbahmani
Contributor II

Thank you for you response.

Could you please explain more. I don't know which of the assigned memory should be modified!

 

0 Kudos
Reply