UART 2 for NXP LS1046ardb based custom board

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

UART 2 for NXP LS1046ardb based custom board

ソリューションへジャンプ
24,663件の閲覧回数
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 件の賞賛
返信
1 解決策
24,592件の閲覧回数
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 件の賞賛
返信
10 返答(返信)
24,630件の閲覧回数
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 件の賞賛
返信
24,597件の閲覧回数
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 件の賞賛
返信
24,593件の閲覧回数
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 件の賞賛
返信
24,259件の閲覧回数
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 件の賞賛
返信
24,177件の閲覧回数
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 件の賞賛
返信
24,140件の閲覧回数
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 件の賞賛
返信
24,044件の閲覧回数
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 件の賞賛
返信
23,664件の閲覧回数
Ghouse
Contributor V

HI all, any update on the query ?

 

Please reply.

Thank u.

0 件の賞賛
返信
24,115件の閲覧回数
Ghouse
Contributor V

Hi @Chavira ,

awaiting for your reply, please provide your help.

Thank u.

0 件の賞賛
返信
24,496件の閲覧回数
Ghouse
Contributor V

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

0 件の賞賛
返信