summaryrefslogtreecommitdiff
path: root/pcr/libreboot-utils/PKGBUILD
AgeCommit message (Collapse)Author
2022-05-11pcr: libreboot-utils: fix ectool installationDenis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-09pcr: libreboot-utils: fix python dependenciesDenis 'GNUtoo' Carikli
Without that fix it still builds fine with makepkg but it fails because python-setuptool is missing: | Traceback (most recent call last): | File "/build/libreboot-utils/src/libreboot-20211122_src/coreboot/default/util/me_cleaner/setup.py", line 3, in <module> | from setuptools import setup | ModuleNotFoundError: No module named 'setuptools' | ==> ERROR: A failure occurred in build(). | Aborting... In addition the 'python' package provides 'python3', but it's probably more clear if we use the 'python' package as dependency instead of what it provides. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-08pcr: libreboot-utils: Add ifdtoolDenis 'GNUtoo' Carikli
Recent (post 2006) Intel computers typically have a flash chip that contains several partitions: - An "Intel flash descriptor" partition that contains a partition table, permission settings for read/write access to these partitions. various configuration settings like the flash chip speed, and so on. - A partition for the BIOS that contains the BIOS, Coreboot, EFI, Libreboot, UEFI, etc. - A partition for the Management Engine firmware. - A partition for some Gigabit Ethernet settings (the MAC address, LEDs settings, etc). - A partition named "Platform data" that probably contains some serial numbers or other data on some computers. The ifdtool utility can display these partitions, various settings present in Intel flash descriptor, extract or replace these partitions content, etc. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-08libreboot-utils: Add me_cleanerDenis 'GNUtoo' Carikli
Recent (post 2006) Intel computers typically have a flash chip that contains several partitions: - A partition that contains a partition table, permission settings for read/write access to these partitions. various configuration settings like the flash chip speed, and so on. - A partition for the BIOS that contains the BIOS, Coreboot, EFI, Libreboot, UEFI, etc. - A partition for the Management Engine firmware. - A partition for some Gigabit Ethernet settings (the MAC address, LEDs settings, etc). - A partition named "Platform data" that probably contains some serial numbers or other data on some computers. The Management Engine firmware is signed, so its code cannot be modified. However the Management Engine firmware also contains its own partitioning scheme, and it's possible to remove some of its partitions in a way that enable computers to still boot and function normally. The me_cleaner utility can do that (so it still lives part of the Management Engine code or Operating system). The me_cleaner can also tell the Management Engine OS (with --soft-disable), that once its booted, it should not try to load additional applications. In addition me_cleaner can also verify the Management Engine firmware signatures. Note that me_cleaner cannot be used to completely remove the Management Engine firmware. To do that you need to use Libreboot instead. Libreboot removes completely the Management Engine firmware. However the method used by Libreboot only works with computers with the Intel GM45 chipset. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-07libreboot-utils: Add inteltoolDenis 'GNUtoo' Carikli
This utility enables to dump the registers of various chips (CPU, chipset, etc) on Intel computers. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-07libreboot-utils: Add cbmemDenis 'GNUtoo' Carikli
The cbmem utility enables to retrieve the Coreboot and Libreboot boot logs. This requires Coreboot or Libreboot to be built with CONFIG_CONSOLE_CBMEM=y to work. In addition cbmem also supports retrieving additional boot information like timestamps (which requires CONFIG_COLLECT_TIMESTAMPS=y), and so on. GRUB also has a cbmem console, so if configured to use it we can also retrieve the GRUB boot log. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-07pcr: libreboot-utils: Add bincfgDenis 'GNUtoo' Carikli
The bincfg utility enable to convert various binary formats to text file and vice-versa. It supports the GM45 Intel Flash Descriptor (IFD) which is contains the flash chip partition table and various settings including read/write permissions for the various flash partitions. Beware when changing the values in ways that have not been tested before as it could lead to non-booting computers. This is for instance the case when trying to set the BIOS partition read-only for all "CPUs" (Management Engine, main CPU, and Gigabit Ethernet). Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-07pcr: libreboot-utils: Add spkmodem_recvDenis 'GNUtoo' Carikli
When building Coreboot or Libreboot with CONFIG_SPKMODEM, the boot messages data is encoded as sound and sent to the sound card. To receive them you can record them with another computer (and ideally you need an audio cable for that and to make sure that the volume is not too low or not too high), and you can then decode them in real time with a command similar to that one: parec --channels=1 --rate=48000 --format=s16le | spkmodem-recv This also works with grub spkmodem console output. Note that the messages speed is relatively slow, so if you build Coreboot or Libreboot with that option, your boot might take a long time (like 30min for instance) if you have a lot of messages. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-06pcr: libreboot-utils: switch to make installDenis 'GNUtoo' Carikli
This makes sure that all the tools are installed. Some tools like cbfstool also have other tools like fmaptool that are really useful. fmaptool can be used to work with Chromebook images for instance. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-06pcr: libreboot-utils: armv7h: skip remaining tools requiring port mapped I/ODenis 'GNUtoo' Carikli
The warning about bucts was removed as in fact most of these tools are probably dangerous in one way or another if used improperly. Flashrom which is packaged in most GNU/Linux distributions is also very dangerous if used improperly, though it comes with warnings and safe defaults. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-06pcr: libreboot-utils: install cbfstool for all architecturesDenis 'GNUtoo' Carikli
Now that it builds for all architectures we can also ship it. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-06pcr: libreboot-utils: fix cbfstool compilation on 32bit architecturesDenis 'GNUtoo' Carikli
On i686, cbfstool wasn't build because it failed to compile, and on armv7h, the build fail with an error similar to this one: host/lib/extract_vmlinuz.c: In function ‘ExtractVmlinuz’: host/lib/extract_vmlinuz.c:67:9: warning: ‘memcpy’ specified bound between 2147483648 and 4294967295 exceeds maximum object size 2147483647 [-Wstringop-overflow=] 67 | memcpy(vmlinuz, kpart_data + vmlinuz_header_offset, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 68 | vmlinuz_header_size); | ~~~~~~~~~~~~~~~~~~~~ This fixes that build error and enables cbfstool to be built on all the architectures supported by Parabola. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-05pcr: libreboot-utils: don't build bucts for armv7hDenis 'GNUtoo' Carikli
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
2022-05-04pcr: libreboot-util: rename to libreboot-utils and fix headerDenis 'GNUtoo' Carikli
Since there is more than one utility in this package it's more clear if it is named libreboot-utils. In addition, this packages has part from the nvramtool I made from scratch so I added myself in the header in addition of Wael Karramas who is the main author of this package. I also fixed the Maintainers line as more than one person involved in Parabola has some knowledge about Libreboot and Coreboot. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>