Skip to content
This repository has been archived by the owner on Aug 19, 2024. It is now read-only.

arnoldthebat/chromiumos

Repository files navigation

ChromiumOS

This project is no longer maintained

Chromium OS is an open-source project that aims to build an operating system that provides a fast, simple, and more secure computing experience for people who spend most of their time on the web.

This repo is for the special builds only

All downloads are located at https://chromium.arnoldthebat.co.uk/.

Clone this repo to your overlay name in your repo/src/overlays for example:

cd ~/chromiumos/src/overlays/
git clone [email protected]:arnoldthebat/chromiumos.git overlay-amd64-atb

AMD64 Setup

Setup the board

sed -i 's/ALL_BOARDS=(/ALL_BOARDS=(\n amd64-atb\n/' ${HOME}/chromiumos/src/third_party/chromiumos-overlay/eclass/cros-board.eclass

Special Build Setup

Running from inside cros_sdk:

export BOARD=amd64-atb
setup_board --board=${BOARD}
cros_workon --board=${BOARD} start sys-kernel/chromeos-kernel-4_14

Running from outside cros_sdk:

export BOARD=amd64-atb
cd ${HOME}/chromiumos
cros_sdk -- "setup_board" "--board=${BOARD}"
cros_sdk -- "cros_workon" "--board=${BOARD}" "start" "sys-kernel/chromeos-kernel-4_14"
sudo touch ~/chromiumos/chroot/etc/sandbox.d/50-chrome
sudo echo "SANDBOX_WRITE=\"${HOME}/depot_tools\"" | sudo tee  ${HOME}/chromiumos/chroot/etc/sandbox.d/50-chrome
sudo echo "SANDBOX_WRITE=\"/mnt/host/source/src/third_party/kernel/v4.14\"" | sudo tee -a ${HOME}/chromiumos/chroot/etc/sandbox.d/50-chrome

Alpha Build Setup

Running from inside cros_sdk:

export BOARD=amd64-atb
setup_board --board=${BOARD}
# cros_workon --board=${BOARD} start sys-kernel/chromeos-kernel-5_4

Running from outside cros_sdk:

export BOARD=amd64-atb
cd ${HOME}/chromiumos
cros_sdk -- "setup_board" "--board=${BOARD}"
# cros_sdk -- "cros_workon" "--board=${BOARD}" "start" "sys-kernel/chromeos-kernel-5_4"

Special Build Kernel

Running from inside cros_sdk:

export BOARD=amd64-atb
cd ~/trunk/src/third_party/kernel/v4.14/
make menuconfig KCONFIG_CONFIG=/mnt/host/source/src/overlays/overlay-${BOARD}/kconfigs/.config

Running from outside cros_sdk:

export BOARD=amd64-atb
cd ${HOME}/chromiumos/src/third_party/kernel/v4.14/
make menuconfig KCONFIG_CONFIG=${HOME}/chromiumos/src/overlays/overlay-${BOARD}/kconfigs/.config

Alpha Build Kernel

Running from inside cros_sdk:

export BOARD=amd64-atb
cd ~/trunk/src/third_party/kernel/v5.4/
make menuconfig KCONFIG_CONFIG=/mnt/host/source/src/overlays/overlay-${BOARD}/kconfigs/.config

Running from outside cros_sdk:

export BOARD=amd64-atb
cd ${HOME}/chromiumos/src/third_party/kernel/v5.4/
make menuconfig KCONFIG_CONFIG=${HOME}/chromiumos/src/overlays/overlay-${BOARD}/kconfigs/.config

Amend/Add/Remove as needed for your requirements.

Build AMD64 Packages

Running from inside cros_sdk:

export BOARD=amd64-atb
# Unibuild reqs
cros_workon --board ${BOARD} start chromeos-base/chromeos-config-bsp
cros_workon_make --board ${BOARD} chromeos-base/chromeos-config-bsp --install
emerge-$BOARD chromeos-config
# Build Packages
cd ~/trunk/src/scripts/
./build_packages --board=${BOARD}

This will take a long time!

Build AMD64 Image

Running from inside cros_sdk:

export BOARD=amd64-atb
export CHROMEOS_VERSION_AUSERVER=http://chromeota.arnoldthebat.co.uk:8080/update
export CHROMEOS_VERSION_DEVSERVER=http://chromeota.arnoldthebat.co.uk:8080
./build_image --board=${BOARD} --noenable_rootfs_verification dev

Copying to USB

Running from outside cros_sdk:

sudo dd if=/path/to/chromiumos_image.bin of=/dev/sdb bs=4096 status=progress && sync

Other hacks

Alpha Kernel patches

Running from inside cros_sdk:

sudo tee -a ~/trunk/chroot/etc/sandbox.conf <<<'SANDBOX_WRITE="/mnt/host/source/src/third_party/kernel/v5.4/"'

Running from outside cros_sdk:

sudo tee -a ${HOME}/chromiumos/chroot/etc/sandbox.conf <<<'SANDBOX_WRITE="/mnt/host/source/src/third_party/kernel/v5.4/"'

Special Kernel patches

Running from inside cros_sdk:

sudo tee -a ~/trunk/chroot/etc/sandbox.conf <<<'SANDBOX_WRITE="/mnt/host/source/src/third_party/kernel/v4.14/"'

Running from outside cros_sdk:

sudo tee -a ${HOME}/chromiumos/chroot/etc/sandbox.conf <<<'SANDBOX_WRITE="/mnt/host/source/src/third_party/kernel/v4.14/"'

Change Logs