From e75070a8f46f9e154f1ede8132ff3b8c7cfad604 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Mon, 28 Apr 2025 07:49:02 -0700 Subject: [PATCH 1/3] include: env: phytec: k3_net: Remove net_apply_extensions Extensions are now handled by the board-code. Remove this non-existing function to proper boot from network. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 1 - 1 file changed, 1 deletion(-) diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k3_net.env index 8ad1cb7b0c2..2ccdc9eaa59 100644 --- a/include/env/phytec/k3_net.env +++ b/include/env/phytec/k3_net.env @@ -18,5 +18,4 @@ netboot=run netargs; run netloadimage; run netloadfdt; run net_apply_overlays; - run net_apply_extensions; booti ${kernel_addr_r} - ${fdt_addr_r} From ad2ae4d2b250e25e305ddad9b9337abb4d796137 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Mon, 28 Apr 2025 07:49:03 -0700 Subject: [PATCH 2/3] include: env: phytec: k3_net: Use get_cmd 'net_fetch_cmd' is not defined by the K3 board files. They use the more common 'get_cmd' from NXP products. Signed-off-by: Daniel Schultz --- include/env/phytec/k3_net.env | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/env/phytec/k3_net.env b/include/env/phytec/k3_net.env index 2ccdc9eaa59..4d5c703cae9 100644 --- a/include/env/phytec/k3_net.env +++ b/include/env/phytec/k3_net.env @@ -10,8 +10,8 @@ netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw nfsroot=${serverip}:${nfsroot},vers=4,tcp ${optargs} -netloadimage=${net_fetch_cmd} ${kernel_addr_r} ${serverip}:/Image -netloadfdt=${net_fetch_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile} +netloadimage=${get_cmd} ${kernel_addr_r} ${serverip}:/Image +netloadfdt=${get_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile} netboot=run netargs; setenv autoload no; dhcp; From fd446b0c84478b4673b41a1440cd9116fdd41d92 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Mon, 28 Apr 2025 07:49:04 -0700 Subject: [PATCH 3/3] board: phytec: phycore_am62ax: Update Environment Add fit_addr_r to the environment to allow us to boot from a FIT image. Increase the maximum Image size from 23 MB to 26 MB by moving the initramfs start address up. This gives us a bigger ranger to provide kernel images which are not stripped down too much. Signed-off-by: Daniel Schultz Reviewed-by: Tom Rini --- board/phytec/phycore_am62ax/phycore_am62ax.env | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/phytec/phycore_am62ax/phycore_am62ax.env b/board/phytec/phycore_am62ax/phycore_am62ax.env index a0eacd1dfc3..40787b0cbcb 100644 --- a/board/phytec/phycore_am62ax/phycore_am62ax.env +++ b/board/phytec/phycore_am62ax/phycore_am62ax.env @@ -10,6 +10,7 @@ fdt_addr_r=0x88000000 kernel_addr_r=0x82000000 ramdisk_addr_r=0x88080000 fdtoverlay_addr_r=0x89000000 +fit_addr_r=0x90000000 fdtfile=CONFIG_DEFAULT_FDT_FILE mmcdev=1 @@ -22,4 +23,4 @@ get_cmd=tftp spi_fdt_addr=0x700000 spi_image_addr=0x800000 -spi_ramdisk_addr=0x1e00000 +spi_ramdisk_addr=0x2200000