Hello ,
In IMX8ULP-EVK9 when I flash M core image I am getting below logs on A core side
U-Boot SPL 2023.04+gf8a2983ec8+p0 (Mar 04 2024 - 07:25:04 +0000)
Normal Boot
ELE firmware version 1.0.0-344acb84
upower_apd_inst_isr: entry
upower_init: soc_id=48
upower_init: version:11.11.13
upower_init: start uPower RAM service
user_upwr_rdy_callb: soc=b
user_upwr_rdy_callb: RAM version:12.18
Turning on switches...
Turn on switches ok
Turning on memories...
Turn on memories ok
Clearing DDR retention...
Clear DDR retention ok
SEC0: RNG instantiated
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x88000000, size 288
Download 999424, Total size 1000448
NOTICE: BL31: v2.8(release):lf-6.6.3-1.0.0-0-g8dbe28631
NOTICE: BL31: Built : 17:57:56, Jan 22 2024
NOTICE: upower_init: start uPower RAM service
NOTICE: user_upwr_rdy_callb: soc=b
NOTICE: user_upwr_rdy_callb: RAM version:12.18
U-Boot 2023.04+gf8a2983ec8+p0 (Mar 04 2024 - 07:25:04 +0000)
M33 Sync: OK
CPU: i.MX8ULP(Dual 7) rev1.2 at 800MHz
CPU current temperature: 26
Reset cause: POR
Boot mode: Single boot
Model: NXP i.MX8ULP 9X9 EVK
DRAM: 2 GiB
Core: 54 devices, 28 uclasses, devicetree: separate
MMC: FSL_SDHC: 0
Loading Environment from nowhere... OK
[*]-Video Link 0 (720 x 1280)
[0] display-controller@2e050000, video
[1] dsi@2db00000, video_bridge
[2] panel@0, panel
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
switch to partitions #0, OK
mmc0(part 0) is current device
UID 0x6deef9a3,0x8743c9c3,0x31a68c96,0xe34e50d4
Net: eth0: ethernet@29950000
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}; | Cannot open /dev/ttyUSB2! | bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ;
Hit any key to stop autoboot: 0 | |
+-----------------------------+
## Checking Image at 83800000 ...
Unknown image format!
Run fastboot ...
auto usb 1
UID 0x6deef9a3,0x8743c9c3,0x31a68c96,0xe34e50d4
flash target is MMC:0
switch to partitions #0, OK
mmc0(part 0) is current device
Starting download of 1417216 bytes
..........
downloading of 1417216 bytes finished
writing to partition 'bootloader'
Initializing 'bootloader'
switch to partitions #1, OK
mmc0(part 1) is current device
Writing 'bootloader'
MMC write: dev # 0, block # 0, count 2768 ... 2768 blocks written: OK
Writing 'bootloader' DONE!
currently I am building flash image with help of imx-mkimage imx-mkimage
Now I want to put custom print in u-boot what steps I need to follow to put custom print overthere?
Hello @dhruvinrajpura
I hope you are doing very well.
You can do it modifying or adding your own logs into the U-boot source.
To locate any specific log in u-boot you can do it with grep utility on Linux, for example:
If you want to locate the log:
Hit any key to stop autoboot
You can use the below command on uboot-imx directory:
$ grep -rnw 'Hit any key to stop autoboot' .
You will have an output like:
$ grep -rnw 'Hit any key to stop autoboot' .
./board/theobroma-systems/lion_rk3368/README:78:Hit any key to stop autoboot: 2
./board/phytium/durian/README:58:Hit any key to stop autoboot: 0
./board/rockchip/evb_rk3229/README:90:Hit any key to stop autoboot: 0
./board/rockchip/sheep_rk3368/README:43:Hit any key to stop autoboot: 0
./board/rockchip/evb_rv1108/README:45:Hit any key to stop autoboot: 0
./board/qualcomm/dragonboard820c/readme.txt:265:Hit any key to stop autoboot: 0
./common/autoboot.c:378: printf("Hit any key to stop autoboot: %2d ", bootdelay);
./common/menu.c:439: printf("Hit any key to stop autoboot: %d ", menu->delay);
./test/py/u_boot_console_base.py:22:pattern_stop_autoboot_prompt = re.compile('Hit any key to stop autoboot: ')
./doc/board/sipeed/maix.rst:140: Hit any key to stop autoboot: 0
./doc/board/intel/edison.rst:143: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-imx8mp.rst:113: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-imx8mm.rst:107: Hit any key to stop autoboot: 0
./doc/board/toradex/verdin-am62.rst:146: Hit any key to stop autoboot: 0
You can see that log is printed from the /common/autoboot.c file, and now you can modify it and recompile.
I hope this information can helps to you.
Best regards,
Salas.