libreboot changing mac address in rom

13 Antworten [Letzter Beitrag]
tonlee
Offline
Beigetreten: 09/08/2014

https://libreboot.org/docs/gnulinux/grub_cbfs.html#changeMAC

Have you done this part? Can you give easier understandable instructions?
Thank you.

Libreshop
Offline
Beigetreten: 10/27/2018

Did you already flashed the bios, or not?
I'm using raspberry pi to flash a Lenovo x200. This is my full tutorial for flashing:

pi# sudo apt-get update && sudo apt-get upgrade
pi# sudo apt-get install flashrom
pi# mkdir ~/roms && cd ~/roms
pi# wget https://www.mirrorservice.org/sites/libreboot.org/release/stable/20160907/rom/grub/libreboot_r20160907_grub_x200_8mb.tar.xz
pi# tar -xvf libreboot_r20160907_grub_x200_8mb.tar.xz && cd libreboot_r20160907_grub_x200_8mb
pi# mv libreboot_r20160907_grub_x200_8mb 8mb
pi# cp ./8mb/x200_8mb_ukqwerty_vesafb.rom ./libreboot.rom

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
=-=-=-= update rom MAC number=-=-=-=
- write x200 macaddress
pi# mkdir ~/util && cd ~/util
pi# wget https://www.mirrorservice.org/sites/libreboot.org/release/stable/20160907/libreboot_r20160907_util.tar.xz
pi# tar -xvf libreboot_r20160907_util.tar.xz
pi# cd libreboot_r20160907_util/ich9deblob/armv71
pi# ./ich9gen --macaddress XX:XX:XX:XX:XX:XX
pi# cp ich9fdgbe_8m.bin ~/roms/ && cd ~/roms/
pi# dd if=ich9fdgbe_8m.bin of=libreboot.rom bs=12k count=1 conv=notrunc
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

- shutdown rpi
- disconnect bios battery
- connect rpi to x200 with pomona (see pics)

pi# sudo modprobe spidev
pi# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -c MX25L6405D -r romread1.rom
pi# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -c MX25L6405D -r romread2.rom
pi# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 -c MX25L6405D -r romread3.rom
pi# sha512sum romread*.rom

- if checksum result is ok, then proceed, else search internet for solution

pi# cd ~/roms
pi# flashrom -p linux_spi:dev=/dev/spidev0.0,spispeed=512 --chip MX25L6405D -w 8mb/libreboot.rom

- change intel wifi with atheros
- connect bios battery
- start x200
- install Trisquel or Parabola

rpi2-io.png rpi2-io-scheme.png x200-chip-connecting-pins-to-rpi.jpg
tonlee
Offline
Beigetreten: 09/08/2014

> Did you already flashed the bios

no.

> I'm using raspberry pi

I have a beaglebone black rev c

Installing libreboot on a thinkpad t400 by beaglebone
black rev c is the same as installing it
on thinkpad x200 by raspberry pi?

Libreshop
Offline
Beigetreten: 10/27/2018

1. Grab a libreboot.rom for your hardware (in my case x200, in your case t400)
2. Generate a bin file containing your mac, and burn it in you downloaded libreboot.rom
3. Connect rpi or beaglebone to laptops bios, to flash it

1 & 2 is mostly the same (just be sure to download the rom file for your hardware)
3 is the different part.

For that you can read this page https://libreboot.org/docs/install/t400_external.html#initial-bbb-configuration

tonlee
Offline
Beigetreten: 09/08/2014

On libreboot's irc I was told, I should first flash from
beaglebone black to t400, the libreboot rom
as is. Having the generic mac address. Then I should
edit the libreboot rom such that it gets the
specific mac address of the t400. Described in the
link https://libreboot.org/docs/gnulinux/grub_cbfs.html#changeMAC.
Then flash the mac address edited libreboot rom
internally onto the t400.

Libreshop
Offline
Beigetreten: 10/27/2018

I only flashed X200's (around 15) and all of them as I described here(expect the first one), and then I start the laptop using a live-usb to check if the components are working and the correct mac address is used. And didn't had a problem in any of my flashed laptops.

The first one, I have flashed it like they told you. first flashed it with the generic mac address, afterwards reflashed with the specific-mac rom.

But after that, I only flashed laptops directly using specific-mac rom.

By the way, once you flash your BIOS, you can reflash it from inside your laptop, and doesn't need beaglebone of raspbery pi to do it. Ofcourse if you don't configure your rom with write-lock. :)

tonlee
Offline
Beigetreten: 09/08/2014

> start the laptop using a live-usb

Before assembling the notebook?

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry, it was a little bit confusing how I explained it.

Before assembling, I use live-usb to check the chipset of the laptop. To get the correct rom.

After assembling and after flashing the bios, I use live-usb to check that the mac of the laptop is set correctly, atheros wifi is working, sound, microphone, (fingerprint is working if it's available), ...

Libreshop
Offline
Beigetreten: 10/27/2018

Srry for sending the answer multiple times. Had a little problem with my browser, if a moderator can remove the duplicates, it will be really helpfull.