blob: 377e406688de6e364857df0a37053e746f23eaca [file] [log] [blame]
Daniel Schultzd87842c2024-08-30 02:09:31 -07001/* 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
11netargs=setenv bootargs console=${console} root=/dev/nfs ip=dhcp rw
12 nfsroot=${serverip}:${nfsroot},vers=4,tcp
13netloadimage=${net_fetch_cmd} ${kernel_addr_r} ${serverip}:/Image
14netloadfdt=${net_fetch_cmd} ${fdt_addr_r} ${serverip}:/${fdtfile}
15netboot=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}