Hi all,
Iam using
custom board based on LS1046ARDB, for the CLI console iam using the UART1 signals, however that Micro USB is damaged and i cant use it further.
I have brought out one more micro usb connector but that is connected to UART2.
I have made some changes in
plat/nxp/common/include/default/ch_3_2/soc_default_base_addr.h
plat/nxp/common/include/default/ch_2/soc_default_base_addr.h
and also changed "CONFIG_CONS_INDEX=2" in the tfa defconfig of U-boot (attached are the changes made), now iam getting boot log upto uboot in uart 2 , however when i try to boot, the log is stuck and not proceeding further, attached is the boot log using uart2.
i have also changed the u-boot environment to console=ttyS1,115200, but still the issue persists.
Please let me know what can be done.
i just want the complete log(till linux boots) to be displayed in Uart2
Thank u
Solved! Go to Solution.
In LSDK 21.08 build environment, please modify variable "distroboot" in configs/board/ls1046ardb/manifest as the following.
console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500
Modified to
console=ttyS1,115200 earlycon=uart8250,mmio,0x21d0500
Then regenerate the bootscript with the following command.
$ flex-builder -i mkdistroscr -m ls1046ardb
You will get the latest build script in build/firmware/u-boot/ls1046ardb/ls1046ardb_boot.scr.
Please copy ls1046ardb_boot.scr to the second partition of your SD card.
Please configure othbootargs as the following under u-boot prompt.
=> setenv othbootargs "console=ttyS1,115200"
=>boot
In LSDK 21.08 build environment, please modify variable "distroboot" in configs/board/ls1046ardb/manifest as the following.
console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500
Modified to
console=ttyS1,115200 earlycon=uart8250,mmio,0x21d0500
Then regenerate the bootscript with the following command.
$ flex-builder -i mkdistroscr -m ls1046ardb
You will get the latest build script in build/firmware/u-boot/ls1046ardb/ls1046ardb_boot.scr.
Please copy ls1046ardb_boot.scr to the second partition of your SD card.
Hi @yipingwang ,
Thank very much for the inputs, that has worked successfully and now iam able to boot till linux using Uart2.
Regards,
Md Ghouse