Part Number: AM62A7-Q1
Other Parts Discussed in Thread: SYSCONFIG, AM62A7
Hello, question has been locked.
https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1601185/am62a7-q1-am62a7-q1-using-wkup-uart0-as-main-uart0
i want to use WKUP-UART0 as MAIN-UART0 to output linux log in customer board base on k3-am62a7-sk.dts and linux is run normally, and now i want to change the WKUP-UART0 as MAIN-UART0 to output linux.
i make this change in uboot,but not work, no output
1.change dts: serial2 = &wkup_uart0;
2.change am62ax.env uart address: 0x2b300000(wkup_uart0 address in k3-am62a-wakeup.dtsi)
3.dev-data.c: add 114
I tried some of the suggestions provided, but wakeup0 still isn't outputting anything.(If using main0 produces output, it proves that the download link is working correctly.)
So, are any other changes needed?
diff --git a/uboot/arch/arm/mach-k3/r5/am62ax/dev-data.c b/uboot/arch/arm/mach-k3/r5/am62ax/dev-data.c
index 6cced9efd..c11a4b272 100644
--- a/uboot/arch/arm/mach-k3/r5/am62ax/dev-data.c
+++ b/uboot/arch/arm/mach-k3/r5/am62ax/dev-data.c
@@ -54,7 +54,7 @@ static struct ti_dev soc_dev_list[] = {
PSC_DEV(75, &soc_lpsc_list[7]),
PSC_DEV(36, &soc_lpsc_list[8]),
PSC_DEV(102, &soc_lpsc_list[8]),
- PSC_DEV(146, &soc_lpsc_list[8]),
+ PSC_DEV(114, &soc_lpsc_list[8]),
PSC_DEV(166, &soc_lpsc_list[9]),
PSC_DEV(135, &soc_lpsc_list[10]),
PSC_DEV(170, &soc_lpsc_list[11]),
diff --git a/uboot/board/ti/am62ax/am62ax.env b/uboot/board/ti/am62ax/am62ax.env
index 5d5e4fb3f..03b1b86fc 100644
--- a/uboot/board/ti/am62ax/am62ax.env
+++ b/uboot/board/ti/am62ax/am62ax.env
@@ -8,7 +8,7 @@
name_kern=Image
console=ttyS2,115200n8
-args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x02800000
+args_all=setenv optargs ${optargs} earlycon=ns16550a,mmio32,0x2b300000
${mtdparts}
run_kern=booti ${loadaddr} ${rd_spec} ${fdtaddr}
diff --git a/uboot/dts/upstream/src/arm64/ti/k3-am62a7-sk.dts b/uboot/dts/upstream/src/arm64/ti/k3-am62a7-sk.dts
index 2b7f2e6b0..a298a5036 100644
--- a/uboot/dts/upstream/src/arm64/ti/k3-am62a7-sk.dts
+++ b/uboot/dts/upstream/src/arm64/ti/k3-am62a7-sk.dts
@@ -19,9 +19,9 @@
model = "Texas Instruments AM62A7 SK";
aliases {
- serial0 = &wkup_uart0;
+ serial0 = &main_uart0;
serial1 = &mcu_uart0;
- serial2 = &main_uart0;
+ serial2 = &wkup_uart0;
serial3 = &main_uart1;
rtc0 = &wkup_rtc0;
ethernet0 = &cpsw_port1;
@@ -179,13 +179,12 @@
/* WKUP UART0 is used for DM firmware logs */
&wkup_uart0 {
+ status = "okay";
pinctrl-names = "default";
pinctrl-0 = <&wkup_uart0_pins_default>;
- status = "reserved";
};
DFU download log, when i download tiboot3 and dfu turn to unkown ,and wakeupuart0 no output
C:\Project\dfu_flash-cs-120m\dfu-120m\ospi>dfu-util.exe -d 0451:6165 -R -a 0 -D C:\Project\dfu_flash-cs-120m\dfu-120m\ospi\HS-FS\tiboot3.bin
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to sourceforge.net/.../
Warning: Invalid DFU suffix signature
A valid DFU suffix will be required in a future dfu-util release
Opening DFU capable USB device...
Device ID 0451:6165
Device DFU version 0110
Claiming USB DFU Interface...
Setting Alternate Interface #0 ...
Determining device status...
DFU state(2) = dfuIDLE, status(0) = No error condition is present
DFU mode device DFU version 0110
Device returned transfer size 512
Copying data from PC to DFU device
Download [=========================] 100% 311222 bytes
Download done.
DFU state(6) = dfuMANIFEST-SYNC, status(0) = No error condition is present
DFU state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to Run-Time mode
C:\Project\dfu_flash-cs-120m\dfu-120m\ospi>dfu-util.exe -l
dfu-util 0.11
Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to sourceforge.net/.../
Cannot open DFU device 17e9:4307 found on devnum 33 (LIBUSB_ERROR_NOT_FOUND)
Failed to retrieve language identifiers
Failed to retrieve language identifiers
Failed to retrieve language identifiers
Failed to retrieve language identifiers
Found DFU: [0451:6165] ver=0200, devnum=43, cfg=1, intf=0, path="2-1.2.1.3", alt=1, name="UNKNOWN", serial="UNKNOWN"
Found DFU: [0451:6165] ver=0200, devnum=43, cfg=1, intf=0, path="2-1.2.1.3", alt=0, name="UNKNOWN", serial="UNKNOWN"
Found Runtime: [174f:11af] ver=1010, devnum=4, cfg=1, intf=4, path="2-9", alt=0, name="Camera DFU Device", serial="200901010001"
C:\Project\dfu_flash-cs-120m\dfu-120m\ospi>