Error in loading SCFW bin to MiMX8QX6AVLFZAC of custom board via serial download

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

Error in loading SCFW bin to MiMX8QX6AVLFZAC of custom board via serial download

Jump to solution
1,115 Views
kishorem
Contributor II

Hi ,

 

We are facing Error in loading SCFW bin to MiMX8QX6AVLFZAC of custom board via serial download (UUU tool version 1.5.21). also attached error screen shot

Error

HID(W): LIBUSB_ERROR _IO

 

We followed below link and created flash.bin of SCFW 

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootab...

we try to load by using following command and also connected debug UART at the baud rate 115200. 16GB SD card and USB OTG is also connected for serial download, it is detected and verified. 

sudo sudo ./uuu  -b sd iMX8QX/flash.bin

 

Kindly guide how to move forward

 

Thanks

Kishore

 

 

0 Kudos
Reply
1 Solution
1,062 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Sure, for SCFW version 1.15.0 the version for each of the components are:
Uboot v2022.04
https://github.com/nxp-imx/uboot-imx/

ATF V2.6
https://github.com/nxp-imx/imx-atf/

You may clone and build them separately, for SECO you may get it from our webpage by using the following command:

SECO v5.9
wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-5.9.0bin

Also, all this information is available in our i.MX Linux Release Notes, you may download from here:
https://www.nxp.com/docs/en/release-note/IMX_LINUX_RELEASE_NOTES.pdf

Best regards,
Aldo.

View solution in original post

6 Replies
1,064 Views
kishorem
Contributor II

 Thanks for your suggestions and looks like there is mismatch in the SCFW and SECO version we are using.

We are planning to use imx-scfw-porting-kit-1.15.0, could you please help us which version of SECO, ATF and uboot version we need to use and also share the download link for the same?

Thanks,
Kishore

0 Kudos
Reply
1,063 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Sure, for SCFW version 1.15.0 the version for each of the components are:
Uboot v2022.04
https://github.com/nxp-imx/uboot-imx/

ATF V2.6
https://github.com/nxp-imx/imx-atf/

You may clone and build them separately, for SECO you may get it from our webpage by using the following command:

SECO v5.9
wget https://www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-seco-5.9.0bin

Also, all this information is available in our i.MX Linux Release Notes, you may download from here:
https://www.nxp.com/docs/en/release-note/IMX_LINUX_RELEASE_NOTES.pdf

Best regards,
Aldo.

1,002 Views
kishorem
Contributor II

Thank you so much @AldoG .
We were able to build the SCFW with Uboot and got it up and running.


Referred following links which helped us to fix the issue:
Uboot Read:
Boot Binary for MX8M

 

We also integrated the SCFW.bin  and built an yocto image  for Linux version 5.15.71 version and we got the following error and we also attached the complete log file. We have also created a new post here

[ 1.937125] Hardware name: Freescale i.MX8QXP MEK (DT)
[ 1.937129] Call trace:
[ 1.937131] dump_backtrace+0x0/0x19c
[ 1.937145] show_stack+0x18/0x70
[ 1.937155] dump_stack_lvl+0x68/0x84
[ 1.937166] dump_stack+0x18/0x34
[ 1.937175] panic+0x15c/0x31c
[ 1.937184] nmi_panic+0x8c/0x90
[ 1.937196] arm64_serror_panic+0x6c/0x7c
[ 1.937205] do_serror+0x58/0x5c
[ 1.937213] el1h_64_error_handler+0x30/0x50
[ 1.937223] el1h_64_error+0x78/0x7c
[ 1.937232] gckHARDWARE_Flush+0x304/0x4d0
[ 1.937240] gckFUNCTION_Init+0x2c/0x60
[ 1.937248] gckHARDWARE_PostConstruct+0xa0/0x170
[ 1.937257] gckKERNEL_Construct+0x394/0x720
[ 1.937267] gckDEVICE_AddCore+0x4c/0x180
[ 1.937275] gckGALDEVICE_Construct+0x32c/0x8c0
[ 1.937285] gpu_probe+0x550/0x780
[ 1.937292] platform_probe+0x68/0xe0
[ 1.937303] really_probe.part.0+0x9c/0x30c
[ 1.937312] __driver_probe_device+0x98/0x144
[ 1.937320] driver_probe_device+0xc8/0x15c
[ 1.937330] __driver_attach+0x80/0x18c
[ 1.937339] bus_for_each_dev+0x70/0xd0
[ 1.937348] driver_attach+0x24/0x30
[ 1.937359] bus_add_driver+0x108/0x1fc
[ 1.937368] driver_register+0x78/0x130
[ 1.937378] __platform_driver_register+0x28/0x34
[ 1.937389] gpu_init+0x54/0x90
[ 1.937398] do_one_initcall+0x50/0x1b0
[ 1.937405] kernel_init_freeable+0x20c/0x290
[ 1.937421] kernel_init+0x24/0x12c
[ 1.937429] ret_from_fork+0x10/0x20
[ 1.937442] SMP: stopping secondary CPUs
[ 1.940775] Kernel Offset: disabled
[ 1.940777] CPU features: 0x00000001,20000846
[ 1.940783] Memory Limit: none

0 Kudos
Reply
1,100 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

The image provided does not provided much information about the issue you're having, I would like to confirm which SCFW and uboot version you have used for the compilation of the flash.bin?

Best regards,
Aldo.

0 Kudos
Reply
1,093 Views
kishorem
Contributor II

We are using scfw version imx-scfw-porting-kit-1.15.0 which we downloaded from
https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat...

And we replaced the DDR configuration file accordingly.

And we built only scfw image (flash.bin)  by following this step.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootab... ?

We are using C0 version of processor do we need scfw_bin for C0? or B0 will work?

0 Kudos
Reply
1,082 Views
AldoG
NXP TechSupport
NXP TechSupport

Hi,

There is no problems with the steps, just make sure that you're using the appropriate version of SECO, ATF and uboot according to the SCFW version that you're using.

Regarding using B0, if you have a C0 version chip please do use the C0 flag when building flash.bin.

Finally, if you're only creating SCFW flash.bin, with no uboot, you'll need a uboot flash.bin to load it, since UUU uses Uboot to download and flash all images.

Best regards,
Aldo.