# 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)

# Board ports

- Libreboot has so far been biased towards Intel. This needs to end (the sooner, the better). A nice start:
  - 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).
  - ASUS KFSN4-DRE - fam10h, already in coreboot, seems to have native graphics initialization already, fam10h, already in coreboot. Works without CPU microcode updates, has native graphics initialization (text-mode and framebuffer mode). PLCC flash chip, but can be read/flashed from factory firmware so just boot up, dump, hot-swap and flash the dump to make a backup, then check that the system boots with the backup. Then flash the original chip with libreboot. External PLCC flash programmer not needed! - keep note of this ACPI issue (ask tpearson about it later): http://www.coreboot.org/pipermail/coreboot/2015-June/079966.html
  - ASUS KGPE-D16 - code not yet public, ported by Raptor Engineering Inc. (USA). They are asking for 90K* USD to pay for the work to upstream the code (do code review, add more patches, get it merged in coreboot master repository - a lot of work!). Crowd funding will be necessary. Crowd funding will be necessary. See coreboot mailing list. This board uses DIP-8 (socket) SPI flash, so it's easy to flash (external flashing required for initial install). * was 35K. The extra 15K is a stretch goal for S3 support and full text-mode graphics initialization (bugs eliminated). * 40K was added for Fam15h support. See http://www.coreboot.org/pipermail/coreboot/2015-June/079950.html
  - F2A85-M and E350M1 (libreboot_*_headless.rom). Test openatom (video BIOS replacement). SMU firmware is a problem. XHCI firmware is a problem.
  - TODO: Add ARM candidates here (the above systems are all AMD).
    - Look into the rockchip (rk3288. note: mali gpu. one or two blobs might need replacing. see this page for example) and IBM 'POWER8' platforms
  - This list needs to expand!
- That doesn't mean Intel is off the table just yet:
  - ThinkPad R500
  - 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/
  - 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

- 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.
- 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.
  - Sound (internal speaker) broken on T500 (works in lenovobios). external speaker/headphones work. - probably a different hda_verb
  - Fix remaining incompatible LCD panels in native graphics on T500. See hcl/t500.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)

- 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

- add resources/checksums/* and update it whenever updating the modules (coreboot, flashrom, etc) or updating patches. For each download script, make it check the sha512 hashes of all the files, to ensure that the files match the checksums.
- re-enable building of txtmode images (get memtest86 working again first, and fix gm45 txtmode)
- When downloading coreboot/grub/memtest/etc using the download scripts, it currently does not check the integrity of these sources at all. Libreboot releases are signed, but what can be done to improve it is to check the sha512sums of all files downloaded by these scripts (which are in the git repository, but not the release archives, because the release archives already include these sources). Do this for all non-integrated modules used in libreboot.
- 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)
- build/release/util currently fails on Parabola (it only works well in Trisquel). - this should be made portable. Build (cross-compile all of the dependencies from upstream, and include a ccs/ release archive. Then use those for dependencies to cross-compile everything (this should make portability easy, and there aren't a lot of dependencies for the utilities).

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: 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
- There are no instructions for how to use the GRUB terminal to find a grub.cfg manually, or how to boot an installed GNU/Linux manually, so some users get stuck after the initial installation of libreboot not knowing how to boot the GNU/Linux system that they had before installing. Fix that. (also, promote the FSF-endorsed distros while you do it)
- Add guides for GM45 laptops in docs/security/
- Add guides for GM45 laptops in docs/hardware/
- Convert documentation to Sphinx/ReST
  - Translations are needed for the documentation and the main website. Most people don't speak English as a first language.
- LUKS key in initramfs: Add Trisquel documentation for docs/gnulinux/encrypted_trisquel.html.
- PLCC 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).
- Set up a routine (project-wise) for testing each system with the latest kernel version.

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 programme 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)

Back to top of page.

Copyright © 2014, 2015 Francis Rowe <info@gluglug.org.uk>
This document is released under the Creative Commons Attribution-ShareAlike 4.0 International Public License and all future versions. A copy of the license can be found at cc-by-sa-4.txt.

This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See cc-by-sa-4.txt for more information.