On 9 January 2017 at 16:17, A. Wan <[email protected]> wrote:
>
> Both efibootmgr "14" and "0.12" specifically asks for efivar 0.19 (see
> INSTALL file)
I saw it!
My guess is that that's in there because efivar 0.19 was the current one
when that INSTALL was written.
I was keen to try out the latest versions of everything in the original hint.
> Is "14" the latest version? I don't understand git.
From what I can see, (I just went to the releases page of the GitHub repo
in a browser) yes, "14" is the latest .
To carry on the other thrust of the thread though, as that may be more
informative,
rather than attempt to re-write the hint at this point, I though I'd post a
"fleshed out" Changelog entry in case that's more useful, as well as aiding
any discussion around a re-write.
I am also not sure exactly how changes to the hints are managed ?
Anyroad, here you go:
CHANGELOG:
[TBD]
* Initial hint.
[KMB 2017]
* Updates in light of following the hints for a LFS 7.10 build,
around the end of 2016, start of 2017
* Need to build BLFS 7.10's Popt with the
--enable-static
option so that the static lib is then available to efivar
* Non-LFS Package version updates
dosfstools-3.0.26 -> dosfstools-3.0.28
efivar-0.12 -> efivar-30
efibootmgr-0.9.0 -> efibootmgr-14
unifont-7.0.05 -> unifont-9.0.06 (22-Dec-2016 17:03)
* efivar and efibootmgr GitHub repos are now part of the rhinstaller
project, so downloads are now from
https://github.com/rhinstaller/efivar/releases/download/30/
efivar-30.tar.bz2
https://github.com/rhinstaller/efibootmgr/releases/download/14/
efibootmgr-14.tar.bz2
* efivar-30 requires a different 'sed' from 0.12 because of a change
in the Makefile, vis:
0.12 CFLAGS ?= -O0 -g
30 OPTIMIZE ?= -O2 -flto
so
sed 's|-O2|-Os|g' -i Make.defaults
Note though that a '-0s' is doing a lot of what's in a '-02' so
is the implied change that was being made before, from just '-00'
what is now required (read: why the need for speed), or would the
efivar and efibootmgr defaults of '-02' be sufficent ?
* efivar's 'make' command was missing a double quote on the arg to
includedir=, so
make libdir="/usr/lib/" bindir="/usr/bin/" \
mandir="/usr/share/man/" \
includedir="/usr/include/" V=1 -j1
* efivar doesn't seem to build the 'tester' by default, but adding
in a
cd src/test
make tester
does, however, on my hardware, running the test fails the 'tentwentyfour'
test during the testing of efi_append_variable()
This doesn't appear to prevent an efibootmgr built against this efivar
from compiling and interrogating my UEFI bootloader correctly
* efibootmgr's source directory layout has changed, so to install,
now do:
install -v -D -m0755 src/efibootmgr /usr/sbin/efibootmgr
install -v -D -m0644 src/efibootmgr.8 \
/usr/share/man/man8/efibootmgr.8
install -v -D -m0644 src/efibootdump.8 \
/usr/share/man/man8/efibootdump.8
* LFS 7.10's Grub's configure no longer has the
--disable-grub-emu-usb
option
* The need to have to add an
efivarfs /sys/firmware/efi/efivars efivarfs defaults 0 1
line into Chapter 7's /etc/fstab, may not be necessary (?) as that
directory was created on an LFS system that didn't have such a line.
* The LFS 7.10 kernel build's "make defconfig" populated a good number of
the EFI-related options on my UEFI-enabled hardware, however, so as to
make Dan's list of settings easier to find when coming to alter/set
things, here is the list of the options along with the location of the
various checkboxes and the settings they should have, as seen when
starting from a "make menuconfig"
## CONFIG_EFI_PARTITION=y
Location:
-> Enable the block layer
-> Partition Types
[*] Advanced partition selection
...
[*] EFI GUID Partition support
## CONFIG_EFI=y
## CONFIG_EFI_STUB=y
Location:
-> Processor type and features
[*] EFI runtime service support
[*] EFI stub support
## CONFIG_FB_EFI=y
Location:
-> Device Drivers
-> Graphics support
-> Frame buffer Devices
[*] EFI-based Framebuffer Support
## CONFIG_FRAMEBUFFER_CONSOLE=y
Location:
-> Device Drivers
-> Graphics support
-> Console display driver support
Framebuffer Console support (Not available on mine)
## CONFIG_EFI_VARS is not set
## CONFIG_EFI_RUNTIME_MAP=y
Location:
-> Firmware Drivers
-> EFI (Extensible Firmware Interface) Support
< > EFI Variable Support via sysfs
[*] Export efi runtime maps to sysfs
## CONFIG_EFIVAR_FS=y
Location:
-> File systems
-> Pseudo filesystems
[*] EFI Variable filesystem
Hope that's useful,
Kevin
--
http://lists.linuxfromscratch.org/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page