Compiling static 32-bit ChromeOS Flashrom on Fedora 22 32-bit

Install gcc and ting’: dnf groupinstall “C Development Tools and Libraries” Install some required static library dependencies. dnf install pciutils-devel-static zlib-static libfdt-devel glibc-static Clone ChromeOS Flashrom master: git clone https://chromium.googlesource.com/chromiumos/third_party/flashrom cd flashrom Make the damned thing: make CONFIG_FT2232_SPI=no CONFIG_DEDIPROG=no CONFIG_STATIC=yes CHECK_LIBPCI=no NOWARNERROR=yes Note: CONFIG_FT2232_SPI=no and CONFIG_DEDIPROG=no are set so that a static libusb dependency isn’t required. CHECK_LIBPCI=no is […]

EHCI Debug Gadget & ChromeOS Flashrom on BBB in Arch Linux

su root cd EHCI Debug Gadget pacman -Syu wget reboot wget http://www.coreboot.org/images/8/88/Ehci-debug-gadget-patches.tar.gz tar -xzf Ehci-debug-gadget-patches.tar.gz cp usbdebug-gadget/g_dbgp.ko /lib/modules/`uname -r`/kernel/drivers/usb/gadget cat /dev/ttyGS0 ChromeOS Flashrom pacman -Syu git make gcc dtc git clone https://chromium.googlesource.com/chromiumos/third_party/flashrom -b firmware-nyan-5771.B cd flashrom make CONFIG_SATAMV=0 CONFIG_LINUX_I2C=yes NOWARNERROR=yes CONFIG_LINUX_SPI=yes cd echo BB-SPIDEV0 > /sys/devices/platform/bone_capemgr/slots flashrom/flashrom -p linux_spi:dev=/dev/spidev1.0  

Procedure for building ChromeOS Flashrom on BeagleBone Black

Why do this? – Because you want to try to make sure you have a version of flashrom that will recognise all Chromebook SPI chips. Also, you may just want to write an area of the ROM instead of the whole thing (such as BOOT_STUB or RW_LEGACY) and upstream Flashrom doesn’t allow you to do […]

Procedure to get sound working in Fedora 22 on ASUS C300 Chromebook

This will probably work with other distro’s/Baytrail Chromebook models. Get to a terminal. Type “alsamixer”. Press the brightness down key AKA F6. Find “Left Speaker Mixer Left DAC” and press “m” to unmute. Find “Right Speaker Mixer Right DAC” and press “m” to unmute. Update your distro to hopefully as new a kernel as possible […]

Build Your Own Baytrail BOOT_STUB

You’ll need git, gcc, ncurses-devel, iasl and possibly other tools installed. Presumably from your home directory, run: git clone https://github.com/KevinOConnor/seabios.git -b baytrail-testing baytrail-seabios to download Kevin O’Connor’s Baytrail specific SeaBIOS sources. Change into the baytrail-seabios directory: cd baytrail-seabios Create a valid .config, and build: echo -e ‘CONFIG_COREBOOT=y\n# CONFIG_HARDWARE_IRQ is not set’ > .config make olddefconfig […]

Making the touchpad work on a HP Pavilion Chromebook in Ubuntu 14.04 and 14.10

For Ubuntu 14.04 you have to add the following to /etc/rc.local before “exit 0”: modprobe -r chromeos_laptop modprobe i2c-i801 modprobe chromeos_laptop For Ubuntu 14.10 you also have to add a “sleep 1” after loading the i2c module, so it would in this case read: modprobe -r chromeos_laptop modprobe i2c-i801 sleep 1 modprobe chromeos_laptop Then copy […]

Extracting the shell-ball ROM using a ChromeOS image

As an example I’m performing this on Fedora 20. I assume that you’re doing it from your home directory. 1. Download the linux script for downloading ChromeOS images. From the cli type/paste: wget https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh 2. Make the script executable so it will run: chmod +x linux_recovery.sh 3. Run the script: ./linux_recovery.sh 4. Type the model name […]

How to make the legacy SeaBIOS firmware slot the default on a Haswell/Broadwell based Chromebook

Divulged this evening by Duncan Laurie on the coreboot mailing list: If you want to boot SeaBIOS by default and you have unlocked the SPI flash write protection you can set flags in the (write protected) “GBB” flash region that will make it boot legacy mode by default. In Chrome OS there is a script called set_gbb_flags.sh […]