I bought and refurbished a Thinkpad X220 with new disks, RAM, and screen and decided to attempt flashing coreboot for the first time.
I had a mixed experience :D
Initially, I wanted to have coreboot with the tianocore edk2 payload to enable UEFI on the device but it wouldn't compile on my Arch Linux laptop. I tried official repository and MrChromebox' fork. I even downgraded nasm but didn't succeed to compile edk2.
So I went for SeaBIOS and that worked out of the box. I added coreDOOM and Tint seconday payloads just for fun. I couldn't get coreDOOM compiled so I had to patch it until it worked. I'm wondering where I can submit the patches to? I couldn't figure out the review.coreboot.org site.
For Doom Payload I had to use Squashware because the firmware chip on the X220 is only 8MB.
Lastly, I tried to to get a bootsplash in but resolutions are tricky. I tried 1366x768 which is the native screen resolution but neither coreboot nor SeaBIOS are supporting that apparently, so I had to create one at 1024x768 but coreboot distorts it horizontally and SeaBIOS cuts it off on the left ^
(Sorry for broken English not my first language) Took me 8 hours to compile and flash, durring my club while everyone was being a dick towards me and not telling my what I should be working on, i decided to try to complete my coreboot rom and I did! Everything went well first try!
There are many of old T60 (supported by core/libre-boot) and T61 (not supported by any OSFW) Thinkpads laying around, and their build quality & unique features have helped them to become legendary. The resilient magnesium alloy, versatile trackpoint and spill-resistant keyboard - all that makes their laptop cases quite an attractive choice for the new custom motherboard to be installed into. And, soon, a great such an upgrade will become available!
Here's a website for the crowdfunding of this T700 motherboard - where you could learn more details and share your feedback at the comments below:
As you see by the tech specs, indeed this MB could bring a new life to good old T60/T61 Thinkpads. Initially it has been designed by Hope - founder of a prominent 51nb project. However, due to various reasons - more on that here https://www.xyte.ch/2021/11/09/t700-part-1-preparation/ - he has decided to pass the torch to XY Tech, who is also a famous and trusted member of the enthusiast community.
Overall, this project seems quite close to coming true, and - if this brave endeavor touches your heart and such an MB upgrade could be useful to you - you are welcome to participate in this crowdfunding. As for a coreboot firmware: although a T700 project doesn't give a complete guarantee for it, we at 3mdeb don't see any major blockers and are confident that we can successfully implement a coreboot for this motherboard ;-)
I just finished externally flashing Libreboot 25.06 (seagrub + corebootfb) onto a MacBook1,1 (A1181, early 2006) with the original Core Duo T2400 CPU and can now confirm that the machine successfully trains and boots 4GB of RAM under Coreboot.
Coreboot initializes the full 4096MB during DRAM setup
SeaGRUB boots normally with framebuffer enabled
Linux (PAE kernel) sees 3343MB usable (chipset MMIO reservation, etc)
Why would I bother trying this you might ask? I'm a bit of a hardware archeologist and I enjoy seeing if I can force older computers to do things outside of their design spec. Plus an old customer of mine brought be the laptop years ago in a non working state after he got into a fight with his girlfriend and, after she destroyed his Xbox, he ripped the screen straight off of this old machine. I felt it was a bit unfair to leave it dead, so I resurrected it as a headless system with VGA out.
My main reason for sharing is that Apple messed up the EFI implementation so badly that the computer can't even boot on the original EFI firmware if more than 2GB of RAM are installed. Coreboot fixes that thoroughly, and provides much needed USB booting features, which also never really worked on Apple's EFI.
Apparently some forum posts from quite a few years back stated that the T2400 models would have issues booting up with 4GB of RAM on these boards regardless of Coreboot, so figured I'd publically document that it works as clearly no one else was going to do it.
I have a burning pocket and lots of rework skills, so I'm planning to also try replacing the BGA CPU with a T7400 for giggles to see how much it improves the machine's usability. I'm still waiting on that part from AliExpress, so no idea when I'll post about that.
Here's a hardware overview though that I've confirmed working, for the record.
Hardware details:
Board: MacBook1,1 (820-1889)
Flash chip: SST25VF016B (U6301) - externally flashed via SOIC-8 (Revelprog-IS), located on the back of the board right beside the RAM sockets.
RAM: 2×2GB DDR2-800MT/s SO-DIMMs (chipset downclocked to 667MT/s for the older CPU)
Thank you for your extensive work to make the actually proprietary Chromebooks become actually libre - lots of people claim that Chromebooks are open source because coreboot... no. Google dumps code onto the internet, that only works for their proprietary ChromeOS infrastructure. Chrultrabook and MrChromebox have done copious amounts of reverse engineering, documentation work and community support for over a decade to make these Chromebooks actually, truly respectful of software freedom - thanks to them, you can run normal Linux and Windows on a Chromebook. Libreboot recently inherited this work, in its Libreboot 26.10 release, but the extent to which these two upstream projects enabled such progress was extremely understated. Thus was the article written. Chrultrabook und MrChromebox gewidmet, in Dankbarkeit. Yes. Thanks again.
Hot off the heels of the previous hotfix is a fresh release based on the newly-tagged coreboot 4.11. In addition to being rebased on the latest version of coreboot, this release features a host of improvements and fixes:
fixed issue with NVRAM being corrupted by Windows
new/improved UEFI Boot Options/Settings screens
improved header layout
simplified menu options
more descriptive naming for SATA, NVMe, and USB drives in boot menu
easier to make changes to and save bootorder entries
open-source coreboot native graphics init (libgfxinit) now used for Haswell, Broadwell, and Skylake devices instead of closed-source GOP driver
better scaling of boot splash/menus for HiDPI displays
This MrChromebox release offers coreboot/Tianocore images for close to 70 Chromebooks/Chromeboxes as well as all Purism Librem laptops, all easily flashed using my ChromeOS Firmware Utility Script; a full list of supported devices can be found here.
All other devices supported by the coreboot 4.11 release can easily take advantage of the improvements in my tree by cloning my coreboot repo and building as usual.
All changes on the Tianocore side have already been merged and are available to anyone using the default coreboot repo.
Hi, I am reading online that the Lenovo Thinkpad T470s is officially supported by coreboot https://doc.coreboot.org/mainboard/lenovo/skylake.html but I can’t find any guides or videos of how to do it or anyone flashing the firmware in this machine, I seen plenty of t440p and T480 tutorials and videos but nothing on T470s.
I have never done any kind of firmware modifications, anyone knows what will be the right way to flash coreboot in this machine? Or if it’s even supported (I am not very technical so the coreboot docs don’t really explain much to me) thank you for reading me
Intel BootGuard has kept most Skylake/Kaby-Lake/Coffee-Lake laptops locked away from coreboot – until now.
At the end of 2024, Ubuntu developer Mate Kukri introduced deguard, a small utility that leverages CVE-2017-5705 inside ME 11.x to disable BootGuard fuses in SRAM. The result: previously “un-coreboot-able” machines – e.g. Lenovo T480/T480s and Dell OptiPlex 3050 – can boot unsigned firmware again. It has been presented and discussed at the Dasharo Developers vPub 0xE, you can watch the presentation and look through the slides below.
🔹 What deguard does
"Downgrades ME via SPI flash overwrite"
"Patches BootGuard fuses on-the-fly"
"Lets you sign nothing at all – coreboot just runs"
🔹 Why it matters
"Opens the door for community coreboot ports on 8th-gen Intel laptops"
"Gives Libreboot & vendors like NovaCustom a path to newer hardware"
"Great teaching example of how not to design a root-of-trust"
I flashed it one more time because i got a bug with ME, but now everything is working! almost configured it but I got a new problem. I've been working on MAC randomization in the Heads environment, but I just hit a roadblock. Dropping into the recovery shell and checking /sys/class/net/ reveals that the ethernet interface is completely missing (only lo is present). The driver doesn't seem to initialize the hardware in the pre-boot environment, even though it works fine in the main OS. Currently digging through configs to see why the NIC is ghosting me in BusyBox. Future Hardware Plans: I’m considering moving away from standard USB drives for GPG keys. I’m looking at an STM32F103 (BluePill) with USB-C as a possible DIY hardware token. If it works out, I'll try to flash it with GNUK and integrate it as a dedicated security key for this machine. The plan is to finalize this "Stealth-MAC" feature and potentially sell the unit to fund my next project once it’s rock solid. I'll be pushing my progress and initrc scripts to GitHub this weekend. If anyone has dealt with missing network interfaces in minimal Heads builds, I’d appreciate your insights!
IT WORKS, now I am in the setup phase, I think I will figure out by Friday if everything goes smoothly, but later I will unload the template with my final project on Github and a detailed guide for installation!
Insanely improved over 26.10. EDK2 improvements. Lots. Lots and lots of build system changes - everything EDK2 now. Logic in lbmk for re-inserting user-supplied builds of legacy payloads, and complementary documentation. Libreboot is now boring, modern, conservative, and ultra-modern UEFI firmware. Extra filesystems added for non-fat32 esp support: ext 2/3/4, exfat, ntfs, zfs, xfs, btrfs, f2fs, ufs1, ufs1_be, ufs2 - was gonna do bfs (beOS/haikuOS fs support) but literally just forgot, will add in next release! more work planned for ESP in edk2 in later release: port grub luks/raid/lvm drivers, for encrypted esp, also port rebios's vga emulation to legacy seabios. in all: this is a completely legacy-free libreboot release. All the old legacy bloat removed. Migration guides available. Libre UEFI is the future.
I recently successfully flashed coreboot to my old t420, so I'm going to share what I learned in the process.
Keep in mind that I'm no coreboot expert nor a tech guy by any means, so yes, I'm not responsible for your nuclearized house or the theft of your kidney in case something goes wrong.
What you need:
A t420. Another working pc ( or a raspberry ) which will be used to flash to the t420 mainboard. A spi flash chip with some test wires. I use a CH341a flash programmer, which can be found on ebay for less than 10$ including wires.
I do not use a soic clip, I have a pair of them but they not sit firmly to the chip, and I found this very annoying. Besides of this, with test wires you do not have to dismantle the magnesium frame nor the cpu/fan sink from the mainboard, which makes the process easier and faster. All you have to do is to connect wires to the back of the mainboard. This is the mainboard from the front ( photo taken from coreboot site ), in the red circle the part of the pad that you have to use.
Keep in mind that if you do not dismantle the whole mainboard you'll see this from the rear.
Location: basically under the touchpad, covered by the bottom bezel. To remove it, remove before the upper one, lcd display, firewire, and the two screw in the north/east of the fansink ( they're covered by power supply wires, so move them if you don't see screws there ).
Let's come to the software part.
Update the original lenovo bios to the latest version.
Install flashrom on your distribution ( you can also use the one in coreboot utils, which is always up to date ). Connect the wires to the pad. Try:
flashrom -p [your-programmer]
If everything is fine it will show you a list of chips name to pass with -c parameter, I chose MX25L6406E/MX25L6408E and gave:
Extract the binary blobs from the raw flash image:
cd ./util/ifdtool
make
./ifdtool -x t420.bin
( cd .. )
Following files will show up:
flashregion_0_flashdescriptor.bin
flashregion_1_bios.bin
flashregion_2_intel_me.bin
flashregion_3_gbe.bin
You will use them later during config.
Build coreboot toolchain ( this will take time )
$ make crossgcc-i386 CPUS=$(nproc)
Now you can configure your coreboot options. This will show you a graphical interface to do it:
$ make nconfig
In the chipset section add paths to descriptor/me/gbe you extracted before:
Choose the rest of your config ( payloads, me disable, etc ), then press F6 to save.
Now, give:
$ make
Your coreboot.rom file will be placed in "build" folder. Unlock the flash descriptor if you want to write to ME region without an external programmer when bios will be installed:
$./ifdtool -u coreboot.rom
You can now choose either to flash only bios region ( safer, but you are not going to disable intel me nor unlocking flash descriptor ) or to flash the entire chip.
If you flash only bios region in the future you could only flash internally the same region. To remove ME you will have to dismantle the laptop again and flash externally. In case of locked FD/ME, to update bios you will have to use:
I've also upgraded to a IVB dual core cpu, everything it's working fine.
Now few tips and considerations:
To set battery thresholds and to lower power consumption, TLP works. Battery recalibrate not working though ( nor it will unless natacpi patch will be merged in linux kernel ).
To control fan behavior install thinkfan.
Check for temperature sensors:$ find /sys/devices -type f -name "temp*_input"
in its section of thinkfan.conf file. As for temperature settings, I suggest you to start with level 1 fan speed very early ( I set 20° ), at this speed the fan is barely audible and keeping the system always cool will prevent from annoying temperature/fan rises during light use.
Other tip, SNB/IVB could use vaapi hardware acceleration only for h264 format ( no vp9 ). So if you want to use mpv to watch youtube videos and if you want to use hw acc. you have to tell to youtube-dl to download the right format. In mpv config file ./config/mpv/mpv.conf add:
As for now the system consume around 7.5 W when idling ( wifi/bt on, screen 40% ) and ~12W on light browsing.
Temperature stays in mid thirties celsius when system boots, but if you stress a little the system it never returns under lower fourties. A similar behavior happens with power consumption, it reaches 6.5W at boot, ad stays there for hours until you use some applications, then no matter if you close everything it does not come back under 7.5W ( why?).
But still, also considering that I replaced original battery cells with better ones ( this gave me a solid 15% more Wh on the 6 cell battery ) , I could reach 5h of browsing/video battery life on a 2011 14 inches laptop , which is really good.
Documentation used and from which I took some parts of the guide:
Libreboot is free/opensource boot firmware replacing proprietary BIOS/UEFI. Better security/customisation than most proprietary firmware.
Highlights in this release include:
* MrChromebox EDK2 payload by default on most boards, with SeaBIOS CSM (CSMWrap) and GRUB EFI provided in-flash for backward compatibility. * 233 new Chromebooks added; every board supported by MrChromebox coreboot. With our GRUB EFI/SeaBIOS CSM build added * 15h.org coreboot fork used on KCMA-D8, KGPE-D16 boards for improved raminit. * GRUB EFI build uses terminal_input console and no nativedisk; it piggybacks off of EDK2 drivers, like distros. It even works on Chromebooks (eMMC boot). * Intel HAP bit set by default on Chromebooks, and IFD regions unlocked where appropriate * Dell OptiPlex 5050 SFF, Supermicro X11SSH-F, ThinkPad X280, X270.
Modern Linux distros boot, with e.g. UKI/systemd-boot. Windows also compatible now.
After nearly three weeks of guessing and debugging, I'm happy to announce I have a booting coreboot build for the Thinkpad W541! Credit goes to Peter Lemenkov for writing the mainboard port and additional thanks to /u/zenhangeki and the people on the IRC.
A couple months ago, /u/sirarthurhipoint and his friend gave me this w541 after showing me a post on this subreddit of a user purchasing a w541 and looking to port it. Another redditor in the comments mentioned the existence of a coreboot Gerrit WIP PR by Peter Lemenkov, and we were able to contact him and ask him what his progress was on the port. According to him, the port was untested because he didn't have a flasher on hand, and so we let him know we were willing to flash his repo and tell him the results. We were able to use this port to test builds of coreboot on our W541.
The original builds from his gerrit repo all failed, so I spent a good amount of time trying to write my own coreboot port with the autoport script using orangecms's gist post on porting coreboot to a haswell+lynxpoint gigabyte laptop as a guide. Doing this taught me a lot about how the coreboot architecture works and some of the critical steps to writing a port (although I can't say I really succeeded doing so). Most importantly, it showed me the SPI Flash console output option to save logs directly onto the FMAP region of the cbfs.
For a good period of time, we weren't able to generate any logs at all and coreboot would refuse to boot past printing one line stating the bootblock stage was starting. It turns out that for some reason, that specific printk statement prevents the W541 from booting at all. This happened several times in different parts of the code between the romstage and the postcar stage.
I was able to remove most of them until I reached the exact point at which the machine would attempt to enter the postcar stage. /u/zenhangeki and I were able to determine that it halted right on the function that enters the stage. For a couple days we were confused. Postcar is a very simple stage of booting coreboot, and there didn't appear to be a reason why it would halt at that point. However, a few days ago I noticed that if I put enough printk debug lines in the code, the code would regress and stop at an even earlier point. This made me suspicious that there might be a time element involved or maybe intel boot guard was actually enabled in some way but triggering late in the boot process. So /u/sirarthurhipoint and I discussed this for a bit, and he sugggested that I should try to remove as many print statements as possible and maybe lower the logging level. Setting my logging level from level 8 (SPEW) to level 4 (WARN), I got this: https://pastebin.com/hAPN0usL.
Waking up the next morning, I plugged a Xubuntu 18.04 SSD into the W541 waited a bit, suddenly saw systemd messages show up and low and behold, I was booted into linux with graphics enabled.
So far, everything I have tested is working and it even boots into Windows (but the dGPU doesn't appear to work on Windows, it might need to be initialized in romstage.c?). Currently I have tried:
USB ports
Keyboard + Touchpad/TrackPoint
Monitor
SATA
2x 8gb DDR3
Speakers
Integrated graphics
The code used to build this is located at https://github.com/Amersel/coreboot/tree/lenovo_w541-4.12. I'll also be posting my running build as a github release, which is a combination of the 8M and 4M chip (in that order) in a single file that is 12M in size. No guarantees it will work for you, but this image does not include a BIOS image for my NVIDIA Quadro K2100M (I think the dGPU vbios is located on one or both of the winbound chips next to the GPU) so it might work if you flash it.