Hi all,
I want to change u-boot debug console from UART2 to UART1.
Environment is as follows.
root@imx8mpevk:~# uname -a
Linux imx8mpevk 5.4.70-2.3.0+g4f2631b022d8 #1 SMP PREEMPT Thu Mar 18 06:07:11 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux
With reference to this page, I changed uboot-imx and imx-atf(See attached patch:diff_uboot.patch and diff_atf.patch) and build them.
#1.common/log.c diff is tentative for SPL debug logging.
#2.uboot build command
# source ${YOCTO_SDK_PATH}/environment-setup-aarch64-poky-linux
# make distclean
# make imx8mp_evk_defconfig
# make
#3.atf build command
# unset CFLAGS CPPFLAGS CXXFLAGS LDFLAGS MACHINE
# make PLAT=imx8mp bl31
Next, I built "flash.bin" using imx-mkimage and firmware-imx-8.11.bin by following the steps.
# cp uboot-imx/spl/u-boot-spl.bin imx-mkimage/iMX8M/
# cp uboot-imx/u-boot-nodtb.bin imx-mkimage/iMX8M/
# cp uboot-imx/arch/arm/dts/imx8mp-evk.dtb imx-mkimage/iMX8M/
# cp uboot-imx/tools/mkimage imx-mkimage/iMX8M/mkimage_uboot
# cp imx-atf/build/imx8mp/release/bl31.bin imx-mkimage/iMX8M/
# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_1d_dmem_202006.bin imx-mkimage/iMX8M/
# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_1d_imem_202006.bin imx-mkimage/iMX8M/
# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_2d_dmem_202006.bin imx-mkimage/iMX8M/
# cp firmware-imx-8.11/firmware/ddr/synopsys/lpddr4_pmu_train_2d_imem_202006.bin imx-mkimage/iMX8M/
# cd imx-mkimage
# make SOC=iMX8MP flash_evk
But the log at startup is only up to uboot SPL endpoint(See normal.log and stop.log).
When I raise the loglevel(See stop_loglevel7.log), it looks like ATF isn't loaded correctly.
Please tell me how to change the debug console of U-boot correctly.
Best regards,