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
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
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
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"
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
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.
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!
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
Running from outside cros_sdk:
sudo dd if=/path/to/chromiumos_image.bin of=/dev/sdb bs=4096 status=progress && sync
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/"'
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/"'