mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-18 10:54:37 +00:00

Add the optargs variable so that we can set optional arguments while booting. Signed-off-by: Nathan Morrisson <nmorrisson@phytec.com> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
22 lines
664 B
Bash
22 lines
664 B
Bash
/* SPDX-License-Identifier: GPL-2.0+ */
|
|
/*
|
|
* Copyright (C) 2024 PHYTEC Messtechnik GmbH
|
|
* Author: Daniel Schultz <d.schultz@phytec.de>
|
|
*/
|
|
|
|
/* Logic for TI K3 based SoCs to boot via network. */
|
|
|
|
#include <env/phytec/overlays.env>
|
|
|
|
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}
|
|
netboot=run netargs;
|
|
setenv autoload no;
|
|
dhcp;
|
|
run netloadimage;
|
|
run netloadfdt;
|
|
run net_apply_overlays;
|
|
run net_apply_extensions;
|
|
booti ${kernel_addr_r} - ${fdt_addr_r}
|