Help installing Libreboot and dependencies
I am having the absoulte hardest time installing Libreboot on my Thinkpad X60s. I must be missing something. I downloaded the source and binaries from here: http://libreboot.org/docs/release.html#release5 , and I'm trying to follow the guildlines here: http://libreboot.org/docs/index.html . The instructions talk about a "deps-trisquel" script, but I can't find that in the files. Instead I used "./builddeps", which gave me this:
x60s@x60s-ThinkPad-X60s:~/Downloads/libreboot_src$ sudo ./builddeps
./builddeps: line 7: make: command not found
./builddeps: line 11: make: command not found
./builddeps: line 12: make: command not found
./builddeps: line 22: make: command not found
./builddeps: line 23: make: command not found
./builddeps: line 28: make: command not found
Importing unicode...
Importing libgcrypt...
WARNING: grub-core/lib/libgcrypt-grub already exists
WARNING: grub-core/lib/libgcrypt-grub/cipher already exists
WARNING: grub-core/lib/libgcrypt-grub/mpi already exists
WARNING: grub-core/lib/libgcrypt-grub/src already exists
Generating Automake input...
Saving timestamps...
Running autoreconf...
./autogen.sh: line 83: autoreconf: command not found
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... no
checking for cmp... cmp
checking for bison... no
configure: error: bison is not found
./builddeps: line 31: make: command not found
./builddeps: line 36: make: command not found
./builddeps: line 37: make: command not found
./builddeps: line 42: make: command not found
./builddeps: line 43: make: command not found
./builddeps: line 46: cd: flashrom: No such file or directory
./builddeps: line 47: make: command not found
./builddeps: line 48: make: command not found
After that, I tried to follow the next step, but I don't see a "getall" script either. I am extremely confused and any help would be greatly appriciated.
Have you got the build-essential package installed?
No, I don't know what that is.
That documentation refers to release 6, beta 6. Older versions have
different scripts.
Do you have tools for recovery if your build fails to boot?
Do you think it would just be easier to use release 6? I forgot to mention that I was trying to use release 5. No, I don't have any recovery tools. What should I be using for that?
Easier is to use binaries from release 6. Unbricking guides in the
documentation recommend known working recovery tools, they are needed if
flashing fails or if you flash a non-working ROM. People on #libreboot
on Freenode know more.
Alright, that definitely helped. Now i'm stuck on the "How to build "flashrom"" section. Specifically this part:
"After you've done that, under ./flashrom/ you will find the following executables:
flashrom
For flashing while coreboot or libreboot is running.
flashrom_lenovobios_sst
This is patched for flashing while Lenovo BIOS is running on an X60 or T60 with the SST25VF016B (SST) flash chip.
flashrom_lenovobios_macronix
This is patched for flashing while Lenovo BIOS is running on an X60 or T60 with the MX25L1605D (Macronix) flash chip."
Does this mean that I can only install libreboot if the motherboard has a flash chip installed?
EDIT: Nevermind, I figured it out. I'm happy to say that libreboot is installed. Thanks for your help. You guys are awesome.
Glad to hear you got it sorted!
I think it would now be a good idea to give constructive criticism to Libreboot about the instructions, the bits you found confusing. The guy who runs it (Fchmmr) is pretty open to suggestions according to my experience. That way the next guy will have a better experience. :)
I'll definitely send him an email.
Don't remember if it's already part of build-essential, but make sure that make is properly installed:
sudo apt-get install make.
If that's the case, then the script can't find it and you probably have to tell it about the correct path with some kind of flag.
I don't know for sure, though.
Yes it's in b-e.
$ apt-cache depends build-essential
build-essential
|Depends: libc6-dev
Depends: <libc-dev>
libc6-dev
Depends: gcc
Depends: g++
Depends: make
Depends: dpkg-dev
Also what does this mean?
"Before building a ROM in libreboot (or coreboot, for that matter), you need to configure it. This is done using the following inside the source tree:
$ make menuconfig"
I understand how to use the terminal, but how do you write a command in the source tree?
That just means you have to be in the correct folder in the terminal to run that command. So just cd to the right place, whatever that is. (You could also make menuconfig to configure your kernel before compiling it, if you're in the folder containing the kernel sources.)
Help with libreboot might be more on topic on the libreboot project infrastructure (website, mailing lists, IRC channel, etc.)
Will do. I've taken it to the IRC.