]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Allow the u-boot loaderdev env var to be formatted in the "usual" loader(8)
authorian <ian@FreeBSD.org>
Mon, 18 Feb 2019 17:12:30 +0000 (17:12 +0000)
committerian <ian@FreeBSD.org>
Mon, 18 Feb 2019 17:12:30 +0000 (17:12 +0000)
commitd3280f0f29457cd229c395cb9eb56f31d68e0bae
tree62f548f00d68b1cfe7acd3d94f8ed63eb6684a60
parentf7760539ad0ed42e2fc5a5442f0902df206fbfed
Allow the u-boot loaderdev env var to be formatted in the "usual" loader(8)
way: device<unit>[s|p]<slice><partition>.  E.g., disk0s2a or disk3p12.
The code first tries to parse the variable in this format using the
standard disk_parsedev().  If that fails, it falls back to parsing the
legacy format that has been supported by ubldr for years.

In addition to 'disk', all the valid uboot device names can also be used:
mmc, sata, usb, ide, scsi. The 'disk' device serves as an alias for all
those types and will match the Nth storage-type device found (where N is
the unit number).
stand/uboot/common/main.c