UART 2 at Linux for Custom board based on LS1046A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UART 2 at Linux for Custom board based on LS1046A

Jump to solution
1,657 Views
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 Kudos
Reply
1 Solution
1,548 Views
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.

View solution in original post

0 Kudos
Reply
4 Replies
1,591 Views
yipingwang
NXP TechSupport
NXP TechSupport

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

=> setenv othbootargs "console=ttyS1,115200"

=>boot

 

0 Kudos
Reply
1,572 Views
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 Kudos
Reply
1,549 Views
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 Kudos
Reply
1,533 Views
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 Kudos
Reply