
How to Libreboot a Dell Latitude E6430
I already did this on the E6400 and the E6430 is a lot of the same process. The big difference is that the E6430 is an Ivy Bridge machine, so the Libreboot rom needs some Intel vendor files put back into it before you flash. If you skip that step your laptop will not boot. You can do the whole thing internally from the stock Dell BIOS with no clip and no Raspberry Pi.
I will be using Arch for this project so you will need to use whatever commands you need to for your own distro and package manager
Flashing your BIOS can brick your laptop. Back up your factory rom and read the Libreboot docs before you start. I am not responsible for any damage to your device.
Intel graphics only
Make sure your E6430 has Intel graphics only. Some E6430s came with an Nvidia GPU and Libreboot says to never use a non-Intel-GPU Latitude. I bricked my E6400 by getting this wrong so check it first. Look at the sticker on the bottom or run
lspci | grep -i vga
If you see Nvidia, stop here.
What you need
- Dell Latitude E6430 with Intel graphics
- A Linux install on it (I am using Arch)
- The charger plugged in the whole time
Install the tools
sudo pacman -S flashprog git
Clone the libreboot make utility (lbmk)
git clone https://codeberg.org/libreboot/lbmk
cd lbmk
Install the dependencies lbmk needs
sudo ./mk dependencies arch
Download the rom
Go to https://mirror.math.princeton.edu/pub/libreboot/stable/26.11rev4/roms/ and download the E6430 rom along with its .sha256 file. I will be using libreboot-26.11rev4_dell_latitude_e6430_12mb.tar.xz
Put it in the lbmk folder and check the hash
sha256sum -c libreboot-26.11rev4_dell_latitude_e6430_12mb.tar.xz.sha256
Inject the vendor files
This is the step the E6400 didn’t need. Libreboot takes the Intel vendor files (like the Intel ME) out of their release roms, so you have to put them back yourself. lbmk downloads them for you and puts them in the rom
From inside the lbmk folder run
./mk inject libreboot-26.11rev4_dell_latitude_e6430_12mb.tar.xz setmac
setmac gives you a random MAC address for the ethernet port. If you want to keep a specific MAC you can put it on the end instead, like setmac 00:1f:16:00:01:02
This changes the tarball itself, so extract it after injecting
tar -xf libreboot-26.11rev4_dell_latitude_e6430_12mb.tar.xz
Any rom that still starts with DO_NOT_FLASH did not get injected. Don’t use it, flashprog will refuse it anyway
To double check the ME actually got put in, pull the regions out of the rom you plan to flash and look at the ME region
./elf/ifdtool/default/ifdtool -x bin/dell_latitude_e6430_12mb/YOUR_ROM.rom
hexdump -C flashregion_2_intel_me.bin | head
If it’s nothing but ff or 00, the injection didn’t work and you should not flash it. (The default folder in that path can be different depending on the board, check config/coreboot/ in lbmk if it isn’t there)
Turn off /dev/mem protection
Add iomem=relaxed to GRUB
sudo nano /etc/default/grub
Find the line that says GRUB_CMDLINE_LINUX_DEFAULT=" and change it to say: GRUB_CMDLINE_LINUX_DEFAULT="quiet iomem=relaxed"
Now write the changes you made to the grub config
sudo grub-mkconfig -o /boot/grub/grub.cfg
If you have Secure Boot on in the Dell BIOS turn it off too
Reboot the machine
sudo reboot now
Unlock the flash
The Dell BIOS locks the flash chip so it can’t be written from the OS. Libreboot comes with a tool to unlock it
cd ~/lbmk/util/dell-flash-unlock
make
sudo ./dell_flash_unlock
It will tell you to shut down. Shut down, don’t reboot
sudo shutdown now
The laptop might turn itself back on by itself. If it doesn’t, press the power button. Once you’re back in, run the unlock tool again before flashing
cd ~/lbmk/util/dell-flash-unlock && sudo ./dell_flash_unlock
Back up the factory rom
Check which chip flashprog finds
sudo flashprog -p internal
Note the chip name. If it says it found more than one, just pick one of the names it gives you and use it for every command below. Mine was CHIP_NAME
Read the factory rom twice
sudo flashprog -p internal -c CHIP_NAME -r factory1.rom
sudo flashprog -p internal -c CHIP_NAME -r factory2.rom
Compare the hashes to make sure the rom was read correctly
sha256sum factory1.rom factory2.rom
If they match, copy one of them to a USB stick or another computer. This is how you go back to the Dell BIOS if you ever need to
Flash Libreboot
Go to the folder with the injected roms
cd ~/lbmk/bin/dell_latitude_e6430_12mb
ls
There are a few different payloads. Like on the E6400 I am using seagrub with the coreboot framebuffer
sudo flashprog -p internal -c CHIP_NAME -w seagrub_dell_latitude_e6430_12mb_libgfxinit_corebootfb_usqwerty.rom
Wait for it to say VERIFIED. Do not turn off the laptop or pull the charger while it is flashing.
Once it says VERIFIED, run the unlock tool one more time. The Libreboot docs say to run it once after flashing
cd ~/lbmk/util/dell-flash-unlock && sudo ./dell_flash_unlock
Then shut down
sudo shutdown now
Wait 15 seconds, and start the computer. We have libreboot. Cool
Things that don’t work
From the Libreboot docs, these don’t work on the Latitudes after flashing:
- Battery charge thresholds (the Dell BIOS has them on the E6430, Libreboot doesn’t)
- Brightness hotkeys
- The physical wireless switch (turning wireless on in software still works)
- Waking from sleep by opening the lid, you have to press the power button
You can also take iomem=relaxed back out of your GRUB config now that you’re done flashing.