UART 2 at Linux for Custom board based on LS1046A

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

UART 2 at Linux for Custom board based on LS1046A

跳至解决方案
8,205 次查看
Ghouse
Contributor V

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

0 项奖励
回复
1 解答
8,096 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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.

在原帖中查看解决方案

0 项奖励
回复
4 回复数
8,139 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Please configure othbootargs as the following under u-boot prompt.

=> setenv othbootargs "console=ttyS1,115200"

=>boot

 

0 项奖励
回复
8,120 次查看
Ghouse
Contributor V

HI, thank u for the reply,

I have changed as suggested by you,

but when i boot the Kernel boot log is still not being displayed (Attached is the boot log seen in UART2).

The boot stops at "Starting kernel ..."

Please let me know what can be done.

Thank u.

0 项奖励
回复
8,097 次查看
yipingwang
NXP TechSupport
NXP TechSupport

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.

0 项奖励
回复
8,081 次查看
Ghouse
Contributor V

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

 

 

0 项奖励
回复