Daniel Schultz | d87842c | 2024-08-30 02:09:31 -0700 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
| 2 | /* |
| 3 | * Copyright (C) 2024 PHYTEC Messtechnik GmbH |
| 4 | * Author: Daniel Schultz <d.schultz@phytec.de> |
| 5 | */ |
| 6 | |
| 7 | /* Logic for TI K3 based SoCs to boot via network. */ |
| 8 | |
| 9 | #include <env/phytec/overlays.env> |
| 10 | |
| 11 | netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw |
| 12 | nfsroot=${serverip}:${nfsroot},vers=4,tcp |
| 13 | netloadimage=${net_fetch_cmd} ${kernel_addr_r} ${serverip}:/Image |
| 14 | netloadfdt=${net_fetch_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile} |
| 15 | netboot=run netargs; |
| 16 | setenv autoload no; |
| 17 | dhcp; |
| 18 | run netloadimage; |
| 19 | run netloadfdt; |
| 20 | run net_apply_overlays; |
| 21 | run net_apply_extensions; |
| 22 | booti ${kernel_addr_r} - ${fdt_addr_r} |