Thanks @Sanket_Parekh ,
I've tested your suggestion but it doesn't report me the output of the ucmd:
I'm running:
jetxeberria@pcs-200: sudo uuu -V -m 1:42 -b /path/to/custom/emmc/burn.lst /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/custom-imx8mpsolidrun-20230425082648.rootfs.wic.zst
The output is:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172
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
SDPS: MX93 0x1fc9 0x014e
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.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/path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk -scanlimited 0x800000
# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -scanterm -f /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk -scanlimited 0x800000
# 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 /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk -offset 0x57c00
SDPU: jump -scanlimited 0x800000
# }
# 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 /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk -skipspl -scanterm -scanlimited 0x800000
SDPV: jump -scanlimited 0x800000
# }
FB: ucmd net list
FB: done
Wait for Known USB Device Appear... at path 1:42
New USB Device Attached at 1:42
1:42>Start Cmd:SDPS: boot -scanterm -f /path/to/yocto/build/custom_solidrun_kirkstone/build/tmp/deploy/images/imx8mpsolidrun/imx-boot-imx8mpsolidrun-sd.bin-flash_evk -scanlimited 0x800000
100%1:42>Okay (2.002s)
libusb: error [udev_hotplug_event] ignoring udev action bind
New USB Device Attached at 1:42
1:42>Start Cmd:FB: ucmd net list
1:42>Okay (0.016s)
1:42>Start Cmd:FB: done
1:42>Okay (0s)
As you can see, my '.lst' file has just 2 lines different from the original 'emmc_burn_all.lst':
FB: ucmd net list
FB: done
After running the command, nothing is shown:
1:42>Start Cmd:FB: ucmd net list
1:42>Okay (0.016s)
1:42>Start Cmd:FB: done
1:42>Okay (0s)
Meanwhile, in the serial port I can see with minicom the following:
U-Boot SPL 2022.04-lf_v2022.04+gaa217664ff (Nov 15 2022 - 06:28:05 +0000)
Training for 3GByte Micron
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x&480203a0, size 1088
Need continue download 1024
Download 1647392, Total size 1648512
NOTICE: BL31: v2.6(release):lf-5.15.71-2.2.0-0-g3c1583ba0
NOTICE: BL31: Built : 11:00:38, Nov 21 2022
U-Boot 2022.04-lf_v2022.04+gaa217664ff (Nov 15 2022 - 06:28:05 +0000)
CPU: i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 40C
Reset cause: POR
Model: NXP i.MX8MPlus LPDDR4 SolidRun board
DRAM: 3 GiB
Core: 79 devices, 25 uclasses, devicetree: separate
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from nowhere... OK
[*]-Video Link 0fail to get display timings
probe video device failed, ret -22
[0] lcd-controller@32e80000, video
[1] mipi_dsi@32e60000, video_bridge
fail to get display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
BuildInfo:
- ATF 3c1583b
MMC: no card present
Detect USB boot. Will enter fastboot mode!
Net:
Warning: ethernet@30bf0000 (eth1) using random MAC address - 92:ea:66:6d:88:04
eth1: ethernet@30bf0000 [PRIME]
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 ${t;
Hit any key to stop autoboot: 0
## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
eth1 : ethernet@30bf0000 00:00:00:00:00:00 active
Detect USB boot. Will enter fastboot mode!
(NULL udevice *): request 00000000fcf12540 was not queued to ep1in-bulk
Here I highlight this warning when booting:
Warning: ethernet@30bf0000 (eth1) using random MAC address - 92:ea:66:6d:88:04
Anyway, when running the command net list, it doesn't report even the random MAC
eth1 : ethernet@30bf0000 00:00:00:00:00:00 active
As I told, I see here 2 problems:
1 - I can't retrieve the output of ucmd command from the Serial Downloader interface
2 - The output from the debug serial interface shows incorrect information