# Libreboot task list

Back to index.html.

# Important tasks for the libreboot project

This page is part of the git repository, so feel free to submit patches adding to or removing from this list. (adapting the HTML should be simple enough)

# Special news that affects libreboot

- Coreboot (upstream) is adopting a new release model. See http://www.coreboot.org/pipermail/coreboot/2015-July/080120.html - TODO: think about how this affects libreboot, and see what can be done to make effective use of this policy change.

# Board ports

- Someone linked to this news post about a PCI-E graphics card for which a free VBIOS replacement exists. This card uses the same chipset as the onboard GPU in the ASUS KFSN4-DRE mainboard, which is already supported in libreboot. This graphics card will allow certain desktop motherboards to be viable in libreboot.
- patch for linux (kernel) to add coreboot framebuffer support
- Libreboot has so far been biased towards Intel. This needs to end (the sooner, the better). A nice start:
  - ASUS KGPE-D16: this is a very modern board. It has support for both Fam10h and Fam15h AMD CPUs. The board is still new, and still in production. See these coreboot mailing list posts:
    post 1 and post 2
    The board is fully functional (blobs not required), and will be an instant addition to libreboot. See https://raptorengineeringinc.com/coreboot/kgpe-d16-status.php
    Raptor Engineering Inc (USA) has ported this board to coreboot, and is using the port internally on their computing cluster, for the research that they do. This is the same company that ported the ASUS KFSN4-DRE which is supported in libreboot. The owner (and the person who ported the board to coreboot), Timothy Pearson (tpearson on freenode IRC) has reached out to the community, in request for funding. This funding will pay for the many months of work (at least 4-5 months, for over 10000 lines of code any many patches that will need to be split up) to get the code upstreamed into coreboot. This is not as simple as just releasing the code; coreboot has a very strict code review process (in place to ensure quality control). The patches will have to be split up, with people's concerns and comments addressed over a long period, with patches constantly rebased to keep up with the latest coreboot master branch. In order to get this done in a decent enough time frame, Raptor Engineering will need to work on a more-or-less full-time basis. The funding amounts that he has asked for, are as follows:
    - 35K USD - This pays for basic support (Fam10h), plus upstreaming. Minifree Ltd (Francis Rowe's company, sometimes known as Gluglug) will pay for this.
    - The following will be crowd-funded:
      15K USD - pays for S3 (suspend/resume), stable text-mode graphics initialization and Fam15h CPU support
      - 20K USD stretch goal - upstreaming (crowd funded)
      Excess funding from the crowd funding campaign (when started) will be used to subsidize Minifree's costs, and will support the libreboot project.
    Although Raptor would be working for many months to get this upstreamed (merged in coreboot's master branch in the git repository), libreboot would merge it more or less instantly, probably in the same week that the code is released for review. Raptor would also of course be rebasing the patches on a regular basis, as part of the review process, so even if it takes longer for the patches to be merged in coreboot, libreboot would have support for this board.
    This is a very high-end board, making for a powerful server or workstation (desktop) system that should easily be more than powerful enough for almost everyone. Timothy has replaced the AGESA source in coreboot with native initialization code for AMD. The work that he has done can easily be extended to support more hardware, so getting this code out and upstreamed is very important.
    Francis Rowe (lead developer of libreboot) is working with Timothy to get a crowd funding campaign started, and trying to get as many people as possible interested in pledging towards the campaign.
    If you are interested in donating towards the campaign (once it begins), register your interest by contacting Francis Rowe, using the information on the maintainers page.
    - TYAN S8230 is very similar, and could probably be ported based on the KGPE-D16. Same GPU too. http://tyan.com/product_SKU_spec.aspx?ProductType=MB&pid=665&SKU=600000194
      - W83627 (SuperIO) might have a public datasheet. Board-specific wiring (PCI interrupts, DIMM voltage selection). etc. Board seems to use socketed SOIC-8 SPI flash according to tpearson, based on photos available online - looks like a ZIF socket or something else, a clip retaining the chip.
      - tpearson says: Tyan seems to have done the same thing as Asus did and built a whole lot of custom power control circuitry out of FETs. According to him, this will take much effort to reverse engineer.
      - IPMI firmware is non-free but optional (for iKVM feature, remote management like Intel ME). Not sure if add-on module or baked in. In either case, it might be removed or otherwise excluded because it's a HUGE backdoor. Unlike Intel ME, this isn't signed so can be removed, and also replaced theoretically. Is the protocol standard public? If so, might be easy/feasible to replace with free code. https://github.com/facebook/openbmc - also linked from https://raptorengineeringinc.com/coreboot/kgpe-d16-status.php - might be possible adapt this. - You might need to use the vendor tools running from under the proprietary BIOS to wipe the Flash chip holding the IPMI firmware, if it's baked in. (on KGPE-D16, it's an add-on card so just don't add the add-on card - also SOIC-16 according to tpearson. but not sure what form factor used on S8230 - it better not be bl***y WSON).
      - SAS controller requires firmware, but optional. (same thing on KGPE-D16). Board also has SATA, so it's fine. NOTE: SAS firmware is already flashed onto the SAS controller, to a dedicated chip. Not uploaded/handled by coreboot or linux kernel.
      - tpearson says: power control circuits are a potential issue, not a definite one. it all depends on how Tyan decided to wire things up if they engineered things properly, it should actually be transparent. ASUS did not, and required work to get it going (see the notes document)
  - Lenovo G505S (works without CPU microcode updates). Videos BIOS is not yet fully replaced (openatom doesn't have a working framebuffer, yet, but it can draw a bitmap in user space, using a special utility) - openatom in github. SMU needs replacing (ruik/funfuctor/patrickg/mrnuke might be able to help).
  - F2A85-M and E350M1 (libreboot_*_headless.rom). Test openatom (video BIOS replacement). SMU firmware is a problem. XHCI firmware is a problem.
  - - Look into the rockchip (rk3288. note: mali gpu. one or two blobs might need replacing. see this page for example) and IBM 'POWER8' platforms - NOTE: ARM systems use the depthcharge payload which afaik is free-sw. For GRUB, see https://wiki.linaro.org/LEG/Engineering/Grub2
    - asus chromebook c201. paulk is working on it. See libreboot mailing list post https://lists.nongnu.org/archive/html/libreboot/2015-08/msg00009.html for details
      http://review.coreboot.org/#/c/11112/(merged)
      http://review.coreboot.org/#/c/11113/
      http://review.coreboot.org/#/c/11114/
      http://review.coreboot.org/#/c/11116/
      http://review.coreboot.org/#/c/11115/(merged)
      http://review.coreboot.org/#/c/11117/
      http://review.coreboot.org/#/c/11119/
      http://review.coreboot.org/#/c/11118/(merged)
      http://git.code.paulk.fr/gitweb/?p=depthcharge.git;a=shortlog;h=refs/heads/next
      http://git.code.paulk.fr/gitweb/?p=depthcharge.git;a=commit;h=5ca76d1cb8fda74c93a6c65dab8a776d72e1f61a
      http://git.code.paulk.fr/gitweb/?p=depthcharge.git;a=commit;h=01c61f3c0ca96d49c2d33e0bf93e1d4779664011
      http://git.paulk.fr/gitweb/?p=embedded-freedom-scripts.git;a=summary http://www.chromium.org/chromium-os/chromiumos-design-docs/firmware-boot-and-recovery
      http://www.chromium.org/chromium-os/chromiumos-design-docs/verified-boot
      http://www.chromium.org/chromium-os/chromiumos-design-docs/verified-boot-crypto
    - There may be others
  - This list needs to expand!
- That doesn't mean Intel is off the table just yet:
  - Intel D510MO motherboard (desktop), pineview chipset. damo22 got raminit working, and is working on finishing the port for coreboot. southbridge NM10 (basically rebranded ich7). not sure about video init (does it have native graphics initialization?). TODO: review it for libreboot once damo22 pushes the code to coreboot for review. damo22 says it should work with several CPUs (Atom D510 D525 N5x etc - but he's unsure). TODO: find other boards similar that could be ported. damo22's one has an Intel Atom D510 CPU.
  - ThinkPad W500: they all use switchable graphics (ATI+Intel). Unknown if PM45 is compatible with GM45.
  - ThinkPad X61: ICH8, i965 lubko in #coreboot. https://github.com/lkundrak/coreboot/tree/x61 - raminit still isn't done, there might be other parts that need to be finished (probably EC). This system comes with a ME, but it's optional like in GM45, and can be removed.
    - T61: http://review.coreboot.org/#/c/8482/
  - ThinkPad R60, Z61 - probably very similar to X60/T60, with few modifications required (probably only the changes based on logs acquired by following http://www.coreboot.org/Motherboard_Porting_Guide)
  - Non-lenovo GM45 laptops:
    Dell Latitude E6400 - quite a few of these online. This is a good laptop to target in coreboot and libreboot. NOTE: EC support. ALSO: DDR2 memory (coreboot raminit for GM45 currently only supports DDR3)
- Desktop system: Dell Optiplex 755. There are lots of these available online. ICH9. DDR2 RAM (needs work in coreboot). No EC (it's a desktop). It will require quite a bit of work in coreboot, but this is a very good candidate. The ME can probably be removed and disabled, using ich9gen without any modifications (or with few modifications). Where are the datasheets? Schematics?

Back to top of page.

# Platform-specific bugs

- Several serious bugs exist on the ThinkPad R500, which makes the system virtually unusable. See hcl/r500/index.html#issues.
- GM45: investigate S3/raminit on all models (CPU stepping/cpuid). See hcl/x200.html#ram_s3_microcode
- all thinkpads: When the system is running, plugging in an ethernet cable doesn't always work (no network), you have to try several times. Booting with an ethernet cable attached is reliable. Debug this and fix it.
- KFSN4-DRE: investigate the 30 second bootblock delay. More info
- KFSN4-DRE: jittery text-mode graphics. More info
- Fix these issues on GM45/GS45 targets:
  - X200: text-mode is broken. only framebuffer graphics work. Git-bisect is needed.
  - X60: on the latest coreboot-libre update lately (during June 2015), keyboard works intermittently. Bisect and fix.
  - X200/X60: battery drained even while system is "off" on some systems. investigate. Could just be the Ethernet controller waiting for a Wake-on-LAN frame. 'ethtool -s net0 wol d' disables wake on lan until the next boot. There are a lot of ways to make it permanent: netctl. systemd, udev, cron - wake on lan was tested, and isn't the issue. It is probably how coreboot handles power off state (see the code that handles power_on_after_fail)
  - Sound (internal speaker) broken on T500 (works in lenovobios). external speaker/headphones work. - probably a different hda_verb - different HDA verbs are now used, test this again - worked while system was disassambled, but booted (loose), stopped working when re-assembling. Not sure what's going on here.
  - Fix remaining incompatible LCD panels in native graphics on T500 and T400. See hcl/gm45_lcd.html. - EDID related, or difference in how VGA ROM does init. Investigate.
  - T400/T500/R400 (tested on T400): UART (serial port) doesn't work. Investigate. (already tried enabling early h8 dock option. some RE with superiotool is needed). - kmalkki has an R400. He says he can be contracted for it. (try to DIY first)
- Finish all work listed in future/index.html
- Fix these issues on i945 targets (X60/T60/macbook21)
  - i945: fix VRAM size (currently 8MB. should be 64MB). See future/index.html#i945_vram_size.
  - Fix remaining incompatible LCD panels in native graphics on T60. See future/index.html#lcd_i945_incompatibility. - EDID related, or difference in how VGA ROM does init. Investigate.
  - i945: the intel video driver used to initialize the display without native graphics initialization and without the extracted video BIOS. It no longer does, so investigate why it does not, and fix the regression (fix has to be done in the kernel, Linux). See http://www.coreboot.org/pipermail/coreboot/2014-June/078104.html and http://www.coreboot.org/pipermail/coreboot/2014-June/078105.html
  - Add fake_vbt tables on i945 systems (also GM45).
  - Commit 26ca08caf81ad2dcc9c8246a743d82ffb464c767 in coreboot, see the while (1) loop that waits for the panel to power up on i945. This is an infinite loop if the panel doesn't power up. Fix it. Also, are there panels that don't power up? Test this, and fix it.
- Look into the notes an http://www.thinkwiki.org/wiki/Problem_with_high_pitch_noises

Back to top of page.

# Flashing from lenovobios to libreboot (and vice versa)

- mtjm says: francis7: please add this issue to your current tasks list (inspired by what GNUtoo-irssi wrote): have the script for flashing from Lenovo BIOS verify that the image is swapped (i.e. last 64 KiB is just 0xff bytes, second to last 64 KiB isn't) and fail before writing to flash if it isn't
- Implement everything outlined in hcl/gm45_remove_me.html#demefactory and test it.

Back to top of page.

# Payloads

- Add ProteanOS payload to systems with big enough flash chips. (eg X200/R400). This page (outdated, but still useful according to the maintainer) has some info: http://www.proteanos.com/doc/plat/porting/. pehjota says that once the port is done, prokit can be modified to generate the entire distribution as a vmlinuz and initrd.img file.

Back to top of page.

# Build system

- Patch the coreboot build system, so that version information is still reliably generated (e.g. in the logs), which is currently lacking because libreboot deletes the .git directory (because the git history contains the deleted blobs, so libreboot has to delete it). It could just be a small patch that hardcodes the coreboot version information, for that coreboot version, each time libreboot rebases on a new version of coreboot.
  patrickg says: francis7: we have you covered: have your libreboot script add a file ".coreboot-version" to the top-level directory, containing the appropriate version number information. that will be used if git describe doesn't work (eg. because .git is missing)
- Make memtest86+ build using coreboot's own crossgcc toolchain. Currently, memtest86+ doesn't even work at all when cross-compiled using the toolchain in x86-64 trisquel7
- Make libreboot (all of it!) build reproducibly. This is very important.
  - Talk to h01ger in coreboot about the coreboot part (he did reproducible.debian.net/coreboot/coreboot.html
  - h01ger says ------ fchmmr: please keep the reproducible-builds@lists.alioth.debian.org mailing list posted - i'm aware of http://projects.mtjm.eu/work_packages/16 :-)
  - https://reproducible.debian.net/coreboot/coreboot.html
  - check coreboot mailing list, eg: http://www.coreboot.org/pipermail/coreboot/2015-June/079994.html
  - Check GRUB in Debian (or GRUB upstream) for how to make that reproducible if Debian has done this already (they are working on reproducible builds) - h01ger says reproducible.debian.net/grub2
  - https://wiki.debian.org/ReproducibleBuilds
  - Join #debian-reproducible on OFTC IRC.
  - merged in master (coreboot) - pay attention to these, especially the fact that the reproducibility relies on git (libreboot uses coreboot without git, and the reason makes this unavoidable): http://review.coreboot.org/#/c/8616/ http://review.coreboot.org/#/c/8617/ http://review.coreboot.org/#/c/8618/ http://review.coreboot.org/#/c/8619/
  - not yet merged in master (coreboot: http://review.coreboot.org/#/c/10515/ -- not really relevant yet, but will be in the future. (libreboot currently ignores SeaBIOS)

Back to top of page.

# Improvements to the utilities

- Make ich9gen/ich9deblob portable. They both rely extensively on bitfields, and they assume little-endian; for instance, mapping a little endian file directly to a struct, instead of serializing/deserializing. Re-factor both utilities and make them fully portable.
- Make ich9gen/ich9deblob/demefactory show GPL license info via --version argument.
- Adapt linux-libre deblob scripts for use with coreboot. Libreboot is already deblobbed using its own script, but updating it is still a bit too manual. linux-libre's deblob scripts do an excellent job and (adapted) will make it much easier to maintain coreboot-libre.

Back to top of page.

# BeagleBone Black

- Get libre distros ported to it. Eg proteanos, trisquel, parabola, librecmc and so on.
- See BBB screwdriver - from the coreboot project, this is an openwrt-based image for the BBB that comes with EHCI enabled out of the box. Look into re-basing that on librecmc (librecmc is a deblobbed version of openwrt).

Back to top of page.

# Documentation improvements

- Next release after 20150518, relating to the ASUS KFSN4-DRE:
  - Remove the notes in docs/release.html that say NOTE: not in libreboot 20150518. Only in git, for now.
  - Remove the note in docs/hcl/kfsn4-dre.html that says NOTE: This board is unsupported in libreboot 20150518. To use it in libreboot, for now, you must build for it from source using the libreboot git repository.
  - Remove the note in docs/hcl/r500.html that says NOTE: This board is unsupported in libreboot 20150518. To use it in libreboot, for now, you must build for it from source using the libreboot git repository.
- Next release after 20150518: note, mention that ACPI brightness methods for X60/T60 work again.
- Get /proc/ioports for all hw logs. (this was added to Motherboard Porting Guide recently) - other instructions were also added there. basically, get whatever extra logs are desirable, for all systems.
- Add info about FTDI FT232H usbdebug (BBB could be used for this): http://review.coreboot.org/#/c/10063
- Add information from hw registers on all boards. Get them for the following remaining boards: X60, T60, macbook21, R400
- Add guides for GM45 laptops in docs/security/
- Add guides for GM45 laptops in docs/hardware/
- Convert documentation to use Latex (or whatever the GNU project requires) as source.
- LPC (eg PLCC socket) flashing guide is needed: image, image, image - work with mrnuke on getting info about vultureprog PLCC flashing into libreboot. Libreboot needs server boards. https://github.com/mrnuke/vultureprog, https://github.com/mrnuke/qiprog, https://github.com/mrnuke/vultureprog-hardware. He also uses the sigrok logic analyzer (free/libre): http://www.dx.com/p/logic-analyzer-w-dupont-lines-and-usb-cable-for-scm-black-148945

Back to top of page.

# Project (institutional) improvements

- Add proper guidelines for contributions, like Development Guidelines on the coreboot wiki. For instance, require Sign-off-by in all commits for libreboot. Consulting with the FSF about this (licensing@fsf.org).
- Libreboot needs to be factory firmware, not the replacement. It needs to be *the* firmware. Consult with the openlunchbox project (and maybe others) on getting hardware manufactured with libreboot support (out of the box, from the factory). - rhombus tech might be interesting to contact (also projects like novena, and so on). eg http://rhombus-tech.net/community_ideas/laptop_15in/news/ - also see http://elinux.org/Embedded_Open_Modular_Architecture/EOMA-68
- Set up a routine (project-wise) for testing each system with the latest kernel version.
- Define properly how to maintain libreboot (things to look out for, things to do on a release). It's somewhat documented now, but it's not perfect. Delegate tasks (to people that are reliable).

Back to top of page.

# EC firmware

http://www.coreboot.org/Embedded_controller Replace this on all libreboot targets. Some laptops use an extra SPI flash chip for the EC, some have EC in the main chip, some don't use SPI flash at all but have the firmware inside the EC chip itself. If the EC has integrated flash then you need to be able to get to the pins on the chip or be able to program them over LPC or SPI (if they have that feature). The lenovo laptops currently supported in libreboot all use H8 EC chips (contains flash inside the chip). Read the datasheets on how to externally flash the EC. Chromebooks seem to have free EC (https://chromium.googlesource.com/chromiumos/platform/ec/+/master/chip/). - see http://blogs.coreboot.org/blog/2015/05/28/progress-gsoc-week-1/ (H8S EC, applies to thinkpads)

https://github.com/lynxis/h8s-ec https://events.ccc.de/congress/2010/Fahrplan/events/4174.en.html

https://archive.org/details/27c3-4174-en-the_hidden_nemesis

Back to top of page.

Copyright © 2014, 2015 Francis Rowe <info@gluglug.org.uk>
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found at gfdl-1.3.txt

Updated versions of the license (when available) can be found at https://www.gnu.org/licenses/licenses.html

UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.

TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.

The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.