Skip to content

Commit

Permalink
HRPN-704 imx93_evk: Use variable instead of hard-coded dtb in jh boot…
Browse files Browse the repository at this point in the history
… command

Currently, `imx93-11x11-evk-root.dtb` is hard-coded in the jailhouse boot
command.

Using a `jh_root_dtb` variable instead allows a simple update of the
same for the user to fetch a custom DTB file for the root cell,
while using the same jailhouse boot command.

Signed-off-by: Stephane Viau <[email protected]>
  • Loading branch information
sviaunxp committed Jan 30, 2023
1 parent dd03653 commit 5e2cfe2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/configs/imx93_evk.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@
#define BOOTENV
#endif

#define JH_ROOT_DTB "imx93-11x11-evk-root.dtb"

#define JAILHOUSE_ENV \
"jh_mmcboot=setenv fdtfile imx93-11x11-evk-root.dtb; " \
"jh_root_dtb=" JH_ROOT_DTB "\0" \
"jh_mmcboot=setenv fdtfile ${jh_root_dtb}; " \
"setenv jh_clk clk_ignore_unused mem=1248MB kvm-arm.mode=nvhe; " \
"if run loadimage; then run mmcboot;" \
"else run jh_netboot; fi; \0" \
"jh_netboot=setenv fdtfile imx93-11x11-evk-root.dtb; " \
"jh_netboot=setenv fdtfile ${jh_root_dtb}; " \
"setenv jh_clk clk_ignore_unused mem=1248MB kvm-arm.mode=nvhe; run netboot; \0 "

#define CONFIG_MFG_ENV_SETTINGS \
Expand Down

0 comments on commit 5e2cfe2

Please sign in to comment.