]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add a routine to obtain netboot parameters from the U-Boot env vars. Call
authorIan Lepore <ian@FreeBSD.org>
Mon, 18 May 2015 16:12:41 +0000 (16:12 +0000)
committerIan Lepore <ian@FreeBSD.org>
Mon, 18 May 2015 16:12:41 +0000 (16:12 +0000)
commitdfad72a7d74f34f6143691f046a565be3aad0680
treeca0cda2b120f4c82aaf315b4d79000080015bc1b
parent40f51e754309cae5a0756a82f7cb0186156d6070
Add a routine to obtain netboot parameters from the U-Boot env vars.  Call
it from the uboot net_init() implementation.  The routine uses the standard
U-Boot env vars plus a freebsd-specific variable named "rootpath" (the
corresponding u-boot variable for that would be "bootfile" except that it
refers to ubldr, so a new name was needed to communicate the path to ubldr).

This allows ubldr to load a kernel from nfs without requiring a dhcp or
bootp server to provide the server ip and rootpath parameters.
sys/boot/uboot/lib/net.c