Open BillPlunkett opened 5 months ago
@BillPlunkett
Thanks for the feedback. Please add these two patches to u-boot 2022.04.
https://github.com/TechNexion/u-boot-tn-imx/commit/e330b7a45dc7a2bfef9caeac0df4450f452a7ddd https://github.com/TechNexion/u-boot-tn-imx/commit/52d120f80742ca29eb890a05d7d6d3efe02ec112
Best Regards, Ray
I'm able to update using the instructions here: https://developer.technexion.com/docs/recover-to-factory-settings-pico-imx8m-mini However, I have trouble when attempting to update with the flash.bin created by with u-boot branch tn-imx_v2022.04_5.15.71_2.2.0-stable (tag tn-kirkstone_5.15.71-2.2.2_20240220).
After successfully building u-boot, I run './install_uboot_imx8.sh -t -b imx8mm-pico-pi.dtb -d /dev/null'. This also succeeds and produces imx-mkimage/iMX8M/flash.bin.
Unfortunately, attempting to update u-boot with 'sudo ../mfgtools/build/uuu/uuu -v -b emmc imx-mkimage/iMX8M/flash.bin' hangs after sending flash.bin:
wap@boyd:~/AtlasIED/artemis/u-boot-tn-imx$ sudo ../mfgtools/build/uuu/uuu -v -b emmc imx-mkimage/iMX8M/flash.bin [sudo] password for wap: uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.182-0-gda3cd53
Build in config: Pctl Chip Vid Pid BcdVersion Serial_No
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 SDPS: MX93 0x1fc9 0x014e SDPS: MX91 0x1fc9 0x0159 SDPS: MX95 0x1fc9 0x015d SDPS: MX95 0x1fc9 0x015c 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] SDPV: SPL1 0x1fc9 0x0151 [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 FBK: 0x1fc9 0x0153 FB: 0x0525 0xa4a5 FB: 0x18d1 0x0d02 FB: 0x3016 0x0001 FB: 0x1fc9 0x0152 FB: 0x0483 0x0afb
Run built-in script:
uuu_version 1.2.39
@_flash.bin | bootloader
@_image [_flash.bin] | image burn to emmc, default is the same as bootloader
This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-mkimage/iMX8M/flash.bin
This command will be run when ROM support stream mode
i.MX8QXP, i.MX8QM
SDPS: boot -f imx-mkimage/iMX8M/flash.bin
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-mkimage/iMX8M/flash.bin -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-mkimage/iMX8M/flash.bin -skipspl SDPV: jump
}
FB: ucmd setenv fastboot_dev mmc FB: ucmd setenv mmcdev ${emmc_dev} FB: ucmd mmc dev ${emmc_dev} FB: flash bootloader imx-mkimage/iMX8M/flash.bin 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 1:523- 1:523->Start Cmd:SDP: boot -f imx-mkimage/iMX8M/flash.bin 100%1:523->Okay (4.68s)
Additionally, I see this from u-boot on the console:
U-Boot SPL 2022.04-00229-gd5886ef0c7 (Jun 12 2024 - 14:25:33 -0600) power_bd71837_init dram_init: LPDDR4 4GB DDRINFO: start DRAM init DDRINFO: DRAM rate 3000MTS DDRINFO:ddrphy calibration done DDRINFO: ddrmix config done SEC0: RNG instantiated Back to ROM, SDP
Seems some USB SPL settings are missing from pico-imx8mm_defconfig. NXP fixed over 2 years ago...
https://github.com/nxp-imx/uboot-imx/commit/9f4627af0908cd02835fd69b1075c0489f248add