]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r263052, r263124, r263265, r263267... Enhance loaderdev env var.
authorian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Apr 2014 00:45:42 +0000 (00:45 +0000)
committerian <ian@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Tue, 29 Apr 2014 00:45:42 +0000 (00:45 +0000)
commit44740cf25665bf4d43a12c99f0bb31a77ee46452
tree9c3c5f09276a4dd11c269470de7bcbd03d78dc70
parent43aa76658ba3563b040db35be2d75e05256be181
MFC r263052, r263124, r263265, r263267...  Enhance loaderdev env var.

Enhance the mechanism that lets you configure the ubldr boot device by
setting the u-boot environment variable loaderdev=.  It used to accept only
'disk' or 'net'.  Now it allows specification of unit, slice, and partition
as well.  In addition to the generic 'disk' it also accepts specific
storage device types such as 'mmc' or 'sata'.

If there isn't a loaderdev env var, the historical behavior is maintained.
It will use the first storage device it finds, or a network device if
no working storage device exists.

99% of the work on this was done by Patrick Kelsey, but I made some
changes, so if anything goes wrong, blame me.

(Indeed, the 3 followup commits fixed things I got wrong on the first.)

git-svn-id: svn://svn.freebsd.org/base/stable/10@265071 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/boot/uboot/common/main.c
sys/boot/uboot/lib/api_public.h
sys/boot/uboot/lib/disk.c
sys/boot/uboot/lib/glue.c
sys/boot/uboot/lib/libuboot.h