UART 2 for NXP LS1046ardb based custom board

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

UART 2 for NXP LS1046ardb based custom board

Jump to solution
24,770 Views
Ghouse
Contributor V

Iam using a 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.

Please let me know if there is an option to connect UART2 to the Debug console.

Attached are the screen shots of the schematics.

Thank you.

0 Kudos
Reply
1 Solution
24,699 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Ghouse!

I tried on LS1043ARDB and works, but should be the same on LS1046ARDB.

Sorry for the bad information before.

I attached screenshots of my changes under CH_2 CH_3_2 and you have to add "CONFIG_CONS_INDEX=2" in the defconfig of U-boot.

 

View solution in original post

0 Kudos
Reply
10 Replies
24,737 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Ghouse!

Thank you for contacting NXP Support!

I assume that you refer to the software side as it is your question. I also assume that you use ATF and U-boot. Under ATF, currently, the UART is defined in these files. As you can see, it is the memory register offset of UART1. You can change it to 0x021Dxxxx, which is a register offset of UART2.
plat/nxp/common/include/default/ch_3_2/soc_default_base_addr.h:#define NXP_UART_ADDR 0x021C0000
plat/nxp/common/include/default/ch_2/soc_default_base_addr.h:#define NXP_UART_ADDR 0x021C0500

0 Kudos
Reply
24,704 Views
Ghouse
Contributor V

Hi Chavira,

Thank you for the reply,

I have modified both the files (please refer attached screen shots), after modification , i have run following commands to build the Image file,

flex-builder -c rcw -m ls1046ardb -b sd
flex-builder -c atf -m ls1046ardb -b sd
flex-builder -c u-boot -m ls1046ardb -b sd
flex-builder -i mkfw -m ls1046ardb -b sd

then i have installed the image to SD card using

flex-installer -f firmware.img -d /dev/sdc   (where sdc is the SD card directory)

But, while booting from SD card UART1 is not showing any boot messages.

Is there something iam missing??  Please provide your guidance.

Thank you.

0 Kudos
Reply
24,700 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Ghouse!

I tried on LS1043ARDB and works, but should be the same on LS1046ARDB.

Sorry for the bad information before.

I attached screenshots of my changes under CH_2 CH_3_2 and you have to add "CONFIG_CONS_INDEX=2" in the defconfig of U-boot.

 

0 Kudos
Reply
24,366 Views
Ghouse
Contributor V

Hi @Chavira

with reference to below discussion, i had applied the changes as suggested by you and iam able to get the cli console on UART2, but while booting to the Kernel iam getting below message and it stops to go further, (complete boot log is attached)

WARNING failed to get smmu node: FDT_ERR_NOTFOUND
WARNING failed to get smmu node: FDT_ERR_NOTFOUND

Starting kernel ...

when i revert back the changes of CH_2 CH_3_2 and remove "CONFIG_CONS_INDEX=2" in the defconfig of U-boot and recompile, the board is booting perfectly ok.

I just want the CLI port to be changed from Uart1 to Uart2 (since my UART1 port is physically damaged).

Please let me know what can be done.

Thank u.

0 Kudos
Reply
24,284 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Ghouse!

Sorry!

I forget to mention the last configuration.

You have to change the u-boot environment.

Please change the variable "console=ttyS0,115200" for "console=ttyS1,115200"

Best Regards!

Chavira

0 Kudos
Reply
24,247 Views
Ghouse
Contributor V

Hi @Chavira 

I have changed as suggested,  "console=ttyS0,115200" to "console=ttyS1,115200", but still the console is stopping, attached is the boot log.

 

Please  provide your help.

Thank u .

0 Kudos
Reply
24,151 Views
Ghouse
Contributor V

HI @Chavira 

Any update on the mentioned query??

PLz note that i have also updated "ls1046ardb_tfa_defconfig" for "CONFIG_BOOTARGS="console=ttyS1,115200" and built the firmware image, but the issue persists.

PLz provide your help

Thank u.

0 Kudos
Reply
23,771 Views
Ghouse
Contributor V

HI all, any update on the query ?

 

Please reply.

Thank u.

0 Kudos
Reply
24,222 Views
Ghouse
Contributor V

Hi @Chavira ,

awaiting for your reply, please provide your help.

Thank u.

0 Kudos
Reply
24,603 Views
Ghouse
Contributor V

Hi, thank u for the reply, that worked for me.

0 Kudos
Reply