Target audience
For the most part, you should know what you're doing to go this way. Provided by the SDK
NOTE: It is not possible to switch toolchains or install new ones, as well as generally update the system in any way. If you want a newer version, delete all and start over. Installation instructionsGetting the SDKThe latest version of SDK can be located in chromiumos-overlay.git repository, in sdk_version.conf The individual SDK tarballs can be found in the Google Storage mirror: http://commondatastorage.googleapis.com/chromiumos-sdk/ In order to download the latest SDK automatically, you can execute: eval $(curl -s https://chromium.googlesource.com/chromiumos/overlays/chromiumos-overlay/+/master/chromeos/binhost/host/sdk_version.conf?format=TEXT | base64 -d | grep '^SDK_LATEST_VERSION=') wget "https://commondatastorage.googleapis.com/chromiumos-sdk/cros-sdk-${SDK_LATEST_VERSION}.tar.xz" Unzipping & entering SDKUnzip the SDK to a folder of your choice, for example "./sdk": mkdir sdk cd sdk tar xvf ../cros-sdk-${SDK_LATEST_VERSION}.tar.xz Set up some mounts: mount -t proc proc ./proc mount -t sysfs sysfs ./sys Enter by using chroot: sudo chroot . /bin/bash Optional: setting up various environment bits prior to chrootThese are mostly optional and depend on what do you want to do inside the chroot. For merely running gcc, you should need neither.
Remember to clean up the chroot (especially) from mounts after you stop using it. |
Chromium OS > Obsolete Documentation >