IMX93-Falcon mode booting OS invalid Error.

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

IMX93-Falcon mode booting OS invalid Error.

1,095 Views
Deepak_S
Contributor I

I have followed nxp document related  fast boot imx_AN14093 for enable falcon mode in imx93 based  custom board.  I have applied configurations changes  taking a reference fastboot imx_AN14093 document.I have added changes  in include/configs/my_board.h and in that  while running  prepare_fdt command i am facing an error  "ERROR: booting os 'Invalid OS' (0) is not supported".  I have attached a log related u-boot.

u-boot=> run prepare_fdt
Can't set block device
## Loading kernel from FIT Image at 80400000 ...
Bad FIT kernel image format! (err=-22)
ERROR -2: can't get kernel image!
XIP Invalid Image to 0
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR: booting os 'Invalid OS' (0) is not supported
ERROR prep subcommand failed!

Tags (1)
0 Kudos
Reply
4 Replies

1,062 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please share your changes.

Best Regards,
Zhiming

0 Kudos
Reply

1,058 Views
Deepak_S
Contributor I

I have added below mention change and in that i faced error.

u-boot=> setenv prepare_fdt "fatload mmc ${mmcdev}:1 ${loadaddr} boot.itb; run mmcargs_fastboot; spl export fdt ${loadaddr} - ${fdt_addr_r}"
u-boot=> saveenv

0 Kudos
Reply

925 Views
elena_popa
NXP Employee
NXP Employee

Hi @Deepak_S 

I'm not sure I understand the changes you made in the prepare_fdt variable. What does the boot.itb contain?

Original definition:

prepare_fdt=run loadfdt;ext2load mmc ${mmcdev}:2 ${loadaddr} /home/root/.falcon/uImage;run mmcargs_fastboot;spl export fdt ${loadaddr} - ${fdt_addr_r};fatwrite mmc ${mmcdev}:${mmcpart} ${fdt_addr_r} " CONFIG_SPL_FS_LOAD_ARGS_NAME " ${fdtargslen}

The purpose of the prepare_fdt is to fix the kernel device tree in advance, to be used in the subsequent Falcon Mode boots. The actual command that fixes the device tree is "spl export". For this command to work, you need to load the device tree to the ${fdt_addr_r} address and the kernel uImage to the ${loadaddr} address. The fatwrite saves the fixed device tree on the boot device. All the steps are important and cannot be skipped.

Thanks,

Elena

0 Kudos
Reply

1,027 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please make sure that your original image layout can work under boot.itb, from the error log, your image layout is not correct. 


Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2207301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX93-Falcon%20mode%20booting%20OS%20invalid%20Error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2207301%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20followed%20nxp%20document%20related%26nbsp%3B%26nbsp%3Bfast%20boot%20imx_AN14093%20for%20enable%20falcon%20mode%20in%20imx93%20based%26nbsp%3B%20custom%20board.%26nbsp%3B%20I%20have%20applied%20configurations%20changes%26nbsp%3B%20taking%20a%20reference%20fastboot%20imx_AN14093%20document.I%20have%20added%20changes%26nbsp%3B%20in%20include%2Fconfigs%2Fmy_board.h%20and%20in%20that%26nbsp%3B%20while%20running%26nbsp%3B%26nbsp%3Bprepare_fdt%20command%20i%20am%20facing%20an%20error%26nbsp%3B%20%22ERROR%3A%20booting%20os%20'Invalid%20OS'%20(0)%20is%20not%20supported%22.%26nbsp%3B%20I%20have%20attached%20a%20log%20related%20u-boot.%3C%2FP%3E%3CP%3Eu-boot%3D%26gt%3B%20run%20prepare_fdt%3CBR%20%2F%3ECan't%20set%20block%20device%3CBR%20%2F%3E%23%23%20Loading%20kernel%20from%20FIT%20Image%20at%2080400000%20...%3CBR%20%2F%3EBad%20FIT%20kernel%20image%20format!%20(err%3D-22)%3CBR%20%2F%3EERROR%20-2%3A%20can't%20get%20kernel%20image!%3CBR%20%2F%3EXIP%20Invalid%20Image%20to%200%3CBR%20%2F%3EERROR%3A%20booting%20os%20'Invalid%20OS'%20(0)%20is%20not%20supported%3CBR%20%2F%3EERROR%3A%20booting%20os%20'Invalid%20OS'%20(0)%20is%20not%20supported%3CBR%20%2F%3EERROR%3A%20booting%20os%20'Invalid%20OS'%20(0)%20is%20not%20supported%3CBR%20%2F%3EERROR%20prep%20subcommand%20failed!%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2217151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX93-Falcon%20mode%20booting%20OS%20invalid%20Error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2217151%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3EPlease%20make%20sure%20that%20your%20original%20image%20layout%20can%20work%20under%26nbsp%3B%3CSPAN%3Eboot.itb%2C%20from%20the%20error%20log%2C%20your%20image%20layout%20is%20not%20correct.%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2207473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX93-Falcon%20mode%20booting%20OS%20invalid%20Error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2207473%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EI%20have%20added%20below%20mention%20change%20and%20in%20that%20i%20faced%20error.%3C%2FP%3E%3CP%3E%3CSTRONG%3Eu-boot%3D%26gt%3B%3C%2FSTRONG%3E%20setenv%20prepare_fdt%20%22fatload%20mmc%20%24%7Bmmcdev%7D%3A1%20%24%7Bloadaddr%7D%20boot.itb%3B%20run%20mmcargs_fastboot%3B%20spl%20export%20fdt%20%24%7Bloadaddr%7D%20-%20%24%7Bfdt_addr_r%7D%22%3CBR%20%2F%3E%3CSTRONG%3Eu-boot%3D%26gt%3B%3C%2FSTRONG%3E%20saveenv%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2207418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX93-Falcon%20mode%20booting%20OS%20invalid%20Error.%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2207418%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20share%20your%20changes.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E