UART 2 at Linux for Custom board based on LS1046A

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

UART 2 at Linux for Custom board based on LS1046A

ソリューションへジャンプ
7,894件の閲覧回数
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 解決策
7,785件の閲覧回数
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 返答(返信)
7,828件の閲覧回数
yipingwang
NXP TechSupport
NXP TechSupport

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

=> setenv othbootargs "console=ttyS1,115200"

=>boot

 

0 件の賞賛
返信
7,809件の閲覧回数
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 件の賞賛
返信
7,786件の閲覧回数
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 件の賞賛
返信
7,770件の閲覧回数
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 件の賞賛
返信