Fix boot w/ scriptaddr & minor newline issue
cover Fix boot w/ scriptaddr & minor newline issue
First patch fixes boot issues with script boot method and the second patch is a minor formatting fix in our board detection code.
@TI: I think the scriptaddr should be also updated for most TI/K3 and beagle board boards.
Wadim Egorov (2):
board: phytec: phycore_am6xx: Update scriptaddr
board: phytec: common: Fix missing newline in error message
board/phytec/common/phytec_som_detection.c | 2 +- board/phytec/phycore_am62ax/phycore_am62ax.env | 2 +- board/phytec/phycore_am62x/phycore_am62x.env | 2 +- board/phytec/phycore_am64x/phycore_am64x.env | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-)
Signature · 1 line
2.48.1
PATCH 1/2 board: phytec: phycore_am6xx: Update scriptaddr
After switching our boards to standard boot, we observed that the kernel hangs when booting with the "script" boot method over the network.
The original scriptaddr value was copied from ti_common.env and remained unused for some time. On phycore-am62x and phycore-am62ax, however, this address conflicts with the current location where ATF is loaded (CONFIG_K3_ATF_LOAD_ADDR).
Move scriptaddr to 0x89100000, directly after fdtoverlay_addr_r. The phycore-am64x is not affected by this issue, but we update it as well to keep all phycore-am6xx boards consistent.
--- board/phytec/phycore_am62ax/phycore_am62ax.env | 2 +- board/phytec/phycore_am62x/phycore_am62x.env | 2 +- board/phytec/phycore_am64x/phycore_am64x.env | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
board/phytec/phycore_am62ax/phycore_am62ax.env +1 -1
@@ -5,7 +5,7 @@ fdtaddr=0x88000000 loadaddr=0x82000000 -scriptaddr=0x80000000 +scriptaddr=0x89100000 fdt_addr_r=0x88000000 kernel_addr_r=0x82000000 ramdisk_addr_r=0x88080000
board/phytec/phycore_am62x/phycore_am62x.env +1 -1
@@ -5,7 +5,7 @@ fdtaddr=0x88000000 loadaddr=0x82000000 -scriptaddr=0x80000000 +scriptaddr=0x89100000 fdt_addr_r=0x88000000 kernel_addr_r=0x82000000 ramdisk_addr_r=0x88080000
board/phytec/phycore_am64x/phycore_am64x.env +1 -1
@@ -4,7 +4,7 @@ fdtaddr=0x88000000 loadaddr=0x82000000 -scriptaddr=0x80000000 +scriptaddr=0x89100000 fdt_addr_r=0x88000000 kernel_addr_r=0x82000000 ramdisk_addr_r=0x88080000
Signature · 1 line
2.48.1
Re: [PATCH 1/2] board: phytec: phycore_am6xx: Update scriptaddr
Quoted 9 lines · Wadim Egorov
After switching our boards to standard boot, we observed that the kernel hangs when booting with the "script" boot method over the network.
The original scriptaddr value was copied from ti_common.env and remained unused for some time. On phycore-am62x and phycore-am62ax, however, this address conflicts with the current location where ATF is loaded (
CONFIG_K3_ATF_LOAD_ADDR).
We should look into doing similar for K3 as well, would be useful when we switch to std boot as well.
Quoted 6 lines
Move scriptaddr to
0x89100000, directly afterfdtoverlay_addr_r. The phycore-am64x is not affected by this issue, but we update it as well to keep all phycore-am6xx boards consistent.Signed-off-by Wadim Egorov <[email protected]>---
Regards,
Anshul
PATCH 2/2 board: phytec: common: Fix missing newline in error message
In reply to Wadim EgorovThe error message in phytec_get_product_name() was missing a newline, causing log output to be concatenated with subsequent messages. Add the newline to improve readability.
--- board/phytec/common/phytec_som_detection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
board/phytec/common/phytec_som_detection.c +1 -1
@@ -309,7 +309,7 @@ static int phytec_get_product_name(struct phytec_eeprom_data *data, som_type =1 ;break ;default : -pr_err ("%s: Invalid SOM type: %i" , __func__, api2->som_type); +pr_err ("%s: Invalid SOM type: %i\n" , __func__, api2->som_type);return -EINVAL ; };
Signature · 1 line
2.48.1
Quoted 11 lines · Wadim Egorov
First patch fixes boot issues with script boot method and the second patch is a minor formatting fix in our board detection code.
@TI: I think the scriptaddr should be also updated for most TI/K3 and beagle board boards.
Wadim Egorov (2):
board: phytec:phycore_am6xx: Update scriptaddr
board: phytec: common: Fix missing newline in error message[...]
Applied to u-boot/master, thanks!
[1/2] board: phytec: phycore_am6xx: Update scriptaddr
commit: ac046ad1873cb3d85f4c81c0bed592a4ed7a5903
[2/2] board: phytec: common: Fix missing newline in error message
commit: 96971e5090cd6975023d0556b3d47b195442902eSignature · 1 line
Tom