Flashing SCFW Firmware on eMMC using i.MX8QXP Custom Board

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

Flashing SCFW Firmware on eMMC using i.MX8QXP Custom Board

Jump to solution
3,505 Views
kailas_kharse
Contributor IV

Hello Community,

I have generated the Custom SCFW for Custom Board based on i.MX8QXP with reference to i.MX8 MEK Board, We are using LPDDR4 and eMMC from different vendor.

PMIC Used:  MC33PF8100FJES

I am flashing the SCFW firmware on eMMC using UUU tool using following command:

$ sudo ./uuu -V -b emmc flash.bin

Logs for the above command attached(file name: "uuu_log_with-V.doc")

ISSUE: While flashing the eMMC Card, the USB Port continuously connects and disconnects (Note: All the cables are new, connections are good, the issue happens only when we run UUU command.) dmesg snapshot attached. ( File Name: "dmesg_while_uuu_is_executing.png")
The output of "lsusb" command to which board is connected"
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 005: ID 413c:301a Dell Computer Corp.
Bus 001 Device 004: ID 413c:2113 Dell Computer Corp.
Bus 001 Device 042: ID 0403:6010 Future Technology Devices International, Ltd FT2232C Dual USB-UART/FIFO IC
Bus 001 Device 057: ID 1fc9:012f NXP Semiconductors
Bus 001 Device 006: ID 0cf3:e007 Atheros Communications, Inc.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I have followed the below links to generate the SCFW Firmware:
1. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8-Boot-process-and-creating-a-bootab...
2. https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Getting-s...

Queries:
1. How can I flash the SCFW firmware to eMMC generated using imx-mkimage tool?

2. Why the USB Continuously reboots? Any known issue?

 

Regards,

Kailas K.

 

 

 

 

 

0 Kudos
Reply
1 Solution
3,498 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

1. this may be version compatibility issues, please try to rebuild image

from scratch using SCFW version matching linux and other (as described in Release Notes

of each software package on that web link)

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

 

2, for usb issues please try to reproduce issue on MEK reference board, to narrow down

problem, this may be due to hardware and one can recheck it with recommendations provided in

i.MX 8QuadMax/i.MX 8QuadXPlus Hardware Developer’s Guide

 

Best regards
igor

View solution in original post

6 Replies
3,373 Views
kailas_kharse
Contributor IV

Hello Igor,

I was able to resolve this above issue, Successfully ported the bootable image on Custom Board.

We were using i.MXQXP C0 revision. Issue was resolved by doing the following changes.

  • Open “~/imx-mkimage/iMX8QX/soc.mak” and replace “REV ?= B0” with “REV ?= C0”
  • $ cd imx-mkimage
  • $ make SOC=iMX8QX REV=C0 flash.

 

Thanks @igorpadykov for your support.

Success Logs:

kailas@kailas:~/mfgtools/uuu$ sudo ./uuu -b emmc /home/kailas/issI_uboot_scfw/imx-mkimage/iMX8QX/flash.bin
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.191-0-g4fe24b9

Success 1 Failure 0

3:1 7/ 7 [Done ] FB: Done

 

0 Kudos
Reply
3,487 Views
kailas_kharse
Contributor IV

Hello Igor,

I am flashing the SCFW image in eMMC using the below command.
$ sudo ./uuu -V -b emmc flash.bin

I have flashed the Uboot using the above command in EVK, But is it the right way to flash SCFW firmware using the above command?


As per the User Guide, SCFW firmware shall be flashed on SD card there is no procedure for eMMC, but for the custom board which we have developed using i.MX8QXP does not have SD card Slot we only have eMMC and Flex Interface for memories.

Can you please provide me with the Flashing procedure for SCFW using eMMC?

 

Thanks & Regards,

Kailas K.

 

0 Kudos
Reply
3,483 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

sect.4.3.4 Copying a bootloader image i.MX Linux User’s Guide​

is also valid for emmc. Also there are sample uuu scripts in Demo Images

which work with emmc

i.MX 8QuadXPlus(C0) MEK  ,  i.MX 8QuadXPlus(B0) MEK

Also SCFW image is not "flash.bin". flash.bin is full image and SCFW is part of that image
as shown on below link

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

 

Best regards
igor

3,477 Views
kailas_kharse
Contributor IV

Hello Igor,

Thank you for your prompt response,

Where I can get the SCFW Binary and SECO FW binary for release 5.4.24_2.1.0​?

 

Thanks & Regards,

Kailas K.

0 Kudos
Reply
3,467 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

>Where I can get the SCFW Binary and SECO FW binary for release 5.4.24_2.1.0​?

 

they are all included in image when one follows guidelines for image building
as shown on below link

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

https://developer.toradex.com/software/linux/linux-software/build-apalis-imx8-boot-imagelinux-from-s...

 

Best regards
igor

0 Kudos
Reply
3,499 Views
igorpadykov
NXP Employee
NXP Employee

Hi Kailas

 

1. this may be version compatibility issues, please try to rebuild image

from scratch using SCFW version matching linux and other (as described in Release Notes

of each software package on that web link)

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

 

2, for usb issues please try to reproduce issue on MEK reference board, to narrow down

problem, this may be due to hardware and one can recheck it with recommendations provided in

i.MX 8QuadMax/i.MX 8QuadXPlus Hardware Developer’s Guide

 

Best regards
igor