How to install Libreboot in 2024?
from libreman@lemy.lol to linux@lemmy.ml on 22 Jun 2024 14:37
https://lemy.lol/post/27065238

Hi all . I currently have version 2023.06.25 installed, stable. Tell me how to install the latest version 20240612? I see a lot of changes here codeberg.org/…/d8bcd5c7044e28c6e20778ea25f6b90709… If I understand correctly the mechanism for introducing blob objects has changed, how can I check the ROM after I run the command $ ./build roms t440plibremrc_12mb

#linux

threaded - newest

TheyCallMeHacked@discuss.tchncs.de on 22 Jun 2024 16:53 next collapse

I’m not sure what you mean by “checking the ROM”…

libreman@lemy.lol on 22 Jun 2024 18:01 collapse

I’m not sure what you mean by “checking the ROM”…

Hello . I mean, how do I know that there are blob objects embedded in the ROM, without which my laptop won’t turn on, I mean mrc.bin

Previously I could check this using the command:

./cbfstool grub_t440pmrc_12mb_libgfxinit_corebootfb_usqwerty.rom print

TheyCallMeHacked@discuss.tchncs.de on 22 Jun 2024 18:31 collapse

Oh you can still do that. The path changed to elf/cbfstool/[TREE]/cbfstool (replace [TREE] with the tree concerened). Note that since the switch to the libre RAM init code, mrc.bin is not included anymore

libreman@lemy.lol on 22 Jun 2024 19:36 next collapse

$ ./build roms t440plibremrc_12mb

Thanks for your answer and help. I understand you correctly that after I executed the command

$ ./build roms t440plibremrc_12mb

Then I can update my ROM (for example, I now have 2023.06.25) by running the commands:

  1. Boot with kernel parameter iomem=relaxed
  2. Download and install ** flashprog** since flashrom will not work (for me it shows the chip size as 8Mb instead of 12Mb)
$ git clone  https://github.com/SourceArcade/flashprog.git
$ cd flashprog
$ make 
$ sudo make install
  1. Check for errors with the command: $ sudo flashprog -p internal

4 Flash $ sudo flashprog -p internal -w seabios_withgrub_t440plibremrc_12mb_libgfxinit_corebootfb_ukqwerty_grubfirst.rom

And can I be sure that after turning on my computer I will see Grub Libreboot?

TheyCallMeHacked@discuss.tchncs.de on 22 Jun 2024 21:47 collapse

Yeah, that’s basically right. I believe flashprog is also included in libreboot, have a look in the elf/ directory. After that, it should work as expected

libreman@lemy.lol on 23 Jun 2024 07:34 collapse

Yeah, that’s basically right. I believe flashprog is also included in libreboot, have a look in the elf/ directory. After that, it should work as expected

Thank you, kind person)) I installed it, but after installation my screen is too bright and this happens every time, so for now I will use the latest test version, it works well.

I have another question, please tell me how, in your opinion, I can edit grub.cgf correctly so as not to get an error with searching for disk “ahci1”

I inserted these lines:

...........

	echo # Insert newline

}

menuentry 'Load  GNU/Linux-Libre (LTS)' {

	cryptomount -a

	set root='lvm/matrix-rootvol'

	linux /boot/vmlinuz-linux-libre-lts root=/dev/mapper/matrix-rootvol cryptdevice=/dev/sda1:lvm

	initrd /boot/initramfs-linux-libre-lts.img

}

menuentry 'Load Operating System (incl. fully encrypted disks)  [o]' --hotkey='o' {

and deleted these ones since I don’t use raid:

menuentry 'Load Operating System (incl. fully encrypted disks)  [o]' --hotkey='o' {

        if [ "${grub_scan_disk}" != "ata" ]; then

		search_grub ahci

	fi

	if [ "${grub_scan_disk}" != "ahci" ]; then

		search_grub ata

	fi

        # grub device enumeration is very slow, so checks are hardcoded

        # TODO: add more strings, based on what distros set up when

	# the user select auto-partitioning on those installers

	lvmvol="lvm/matrix-bootvol lvm/matrix-rootvol"

        raidvol="md/0 md/1 md/2 md/3 md/4 md/5 md/6 md/7 md/8 md/9"

        # in practise, doing multiple redundant checks is perfectly fast and

	# TODO: optimize grub itself, and use */? here for everything

        for vol in ${lvmvol} ${raidvol} ; do

		try_user_config "${vol}"

	done

        unset ahcidev

	unset atadev

	for i in 11 10 9 8 7 6 5 4 3 2 1 0; do

		for part in 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1; do

			if [ "${grub_scan_disk}" != "ata" ]; then

				ahcidev="(ahci${i},${part}) ${ahcidev}"

			fi

			if [ "${grub_scan_disk}" != "ahci" ]; then

				atadev="(ata${i},${part}) ${atadev}"

			fi
TheyCallMeHacked@discuss.tchncs.de on 23 Jun 2024 15:44 collapse

Hmm, I’m not sure… I must admit, I only use SeaBIOS, not GRUB, so I wouldn’t know how to configure it

libreman@lemy.lol on 22 Jun 2024 20:37 collapse

I installed the updated version 20240612 everything worked as you said. Checking nothing as in the previous instructions does not give anything, as you wrote: after switching to the libre RAM initialization code mrc.bin no longer turns on.

Now i need to edit grub.cfg because I get an error with searching for the achi1 disk

davel@lemmy.ml on 22 Jun 2024 17:32 collapse

How to install Libreboot in 2024?

That’s an oddly specific question. When else but now? Did you arrive by time machine?

libreman@lemy.lol on 22 Jun 2024 18:04 collapse

That’s an oddly specific question. When else but now? Did you arrive by time machine?

Yes, I was looking for you and I want to take you to my planet called GnuBoot, will you come with me? ))

libreman@lemy.lol on 27 Jun 2024 10:20 collapse

ok, thanks