Hi there,
We have tried to generate IMX8MN image using zeus BSP, so far so good, but because it's already reach EOL, we plan to migrate to kirkstone BSP.
We use this xml to sync the sources:
$ repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-kirkstone -m imx-5.15.71-2.0.0.xml
And we use these commands to build the image:
$ MACHINE=imx8mnddr3levk DISTRO=fsl-imx-wayland source ./imx-setup-release.sh -b build
$ bitbake core-image-minimal
We manage to build the image, but when we tried to flash it to 8MNANOD3L-EVK using uuu, it always stuck here:
uuu perspective:
C:\Work\Shared>uuu.exe -V -b emmc_all imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk core-image-minimal-imx8mnddr3levk.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.165-0-ge10b026
Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX8DXL 0x1fc9 0x0147
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDPS: MX865 0x1fc9 0x0146
SDPS: MX8ULP 0x1fc9 0x014a
SDPS: MX8ULP 0x1fc9 0x014b
SDP: MX7D 0x15a2 0x0076
SDP: MX6Q 0x15a2 0x0054
SDP: MX6D 0x15a2 0x0061
SDP: MX6SL 0x15a2 0x0063
SDP: MX6SX 0x15a2 0x0071
SDP: MX6UL 0x15a2 0x007d
SDP: MX6ULL 0x15a2 0x0080
SDP: MX6SLL 0x1fc9 0x0128
SDP: MX7ULP 0x1fc9 0x0126
SDP: MXRT106X 0x1fc9 0x0135
SDP: MX8MM 0x1fc9 0x0134
SDP: MX8MQ 0x1fc9 0x012b
SDPU: SPL 0x0525 0xb4a4 [0x0000..0x04ff]
SDPV: SPL1 0x0525 0xb4a4 [0x0500..0x9998]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
FB: 0x3016 0x0001
Run built-in script:
uuu_version 1.4.149
# @_flash.bin | bootloader, which can extract from wic image
# @_image [_flash.bin] | wic image burn to emmc.
# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk
# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -scanterm -f imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk
# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk -offset 0x57c00
SDPU: jump
# }
# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk -skipspl -scanterm
SDPV: jump
# }
FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all core-image-minimal-imx8mnddr3levk.wic
FB: flash -scanterm bootloader imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done
Wait for Known USB Device Appear...
New USB Device Attached at 2:34
2:34>Start Cmd:SDPS: boot -scanterm -f imx-boot-imx8mnddr3levk-sd.bin-flash_ddr3l_evk
99%libusb: error [windows_transfer_callback] detected I/O error 1167: [1167] The device is not connected.
2:34>Okay (2.949s)
U-boot perspective:
U-Boot SPL 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 1600MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Find img info 0x&480319a0, size 1080
Need continue download 1024
Download 1410960, Total size 1412592
NOTICE: BL31: v2.6(release):lf-5.15.32-2.0.0-0-gc6a19b1a3
NOTICE: BL31: Built : 06:37:22, Jun 7 2022
U-Boot 2022.04-lf_v2022.04+g1c881f4da8 (Jun 07 2022 - 05:16:02 +0000)
CPU: i.MX8MNano UltraLite Quad rev1.0 1400 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 40C
Reset cause: POR
Model: NXP i.MX8MNano DDR3L EVK board
DRAM: 992 MiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]
Power supply on USB2
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
Core: 149 devices, 21 uclasses, devicetree: separate
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from nowhere... OK
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
BuildInfo:
- ATF c6a19b1
MMC: no card present
Detect USB boot. Will enter fastboot mode!
Net: eth0: ethernet@30be0000
Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment
Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0
## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
Failed to configure default pinctrl
Using zeus BSP, we never encounter such issue. And we find that sd.bin size is quite small on kirkstone (1.732 KB) compare to zeus (3.184 KB). Any hint would be appreciated. Thank you for your time and support.
已解决! 转到解答。
Hi there,
After troubleshooting the whole day, found out that I need to change /build/tmp/work/imx8mnddr3levk-poky-linux/u-boot-imx/2022.04-r0/build/imx8mn_ddr3l_evk_config/.config
CONFIG_USB_GADGET_VENDOR_NUM=0x1fc9
CONFIG_USB_GADGET_PRODUCT_NUM=0x0152
to:
CONFIG_USB_GADGET_VENDOR_NUM=0x0525
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
And call:
bitbake u-boot-imx -c compile -f
bitbake core-image-minimal -f
Now I can use flash with uuu + u-boot without problem. I consider it to be a BSP bug though, hopefully it can be resolved on next released. Thanks.
Hi there,
After troubleshooting the whole day, found out that I need to change /build/tmp/work/imx8mnddr3levk-poky-linux/u-boot-imx/2022.04-r0/build/imx8mn_ddr3l_evk_config/.config
CONFIG_USB_GADGET_VENDOR_NUM=0x1fc9
CONFIG_USB_GADGET_PRODUCT_NUM=0x0152
to:
CONFIG_USB_GADGET_VENDOR_NUM=0x0525
CONFIG_USB_GADGET_PRODUCT_NUM=0xa4a5
And call:
bitbake u-boot-imx -c compile -f
bitbake core-image-minimal -f
Now I can use flash with uuu + u-boot without problem. I consider it to be a BSP bug though, hopefully it can be resolved on next released. Thanks.