トーク:Chromium OS をビルドする

提供:maruko2 Note.
移動: 案内, 検索

Ubuntu 9.10 があれば、20行で Chromium OS がビルド&USBメモリにインストールすることができる。(途中、パスワードの入力と、かなりの時間が必要。)

wget http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
sudo sh install-build-deps.sh
cd ~
wget http://build.chromium.org/buildbot/archives/chromiumos-0.4.22.8.tar.gz
tar xzf chromiumos-0.4.22.8.tar.gz
ln -s chromiumos-0.4.22.8 chromiumos
cd ~/chromiumos/src/scripts
./make_local_repo.sh
./make_chroot.sh
mkdir -p ~/chromiumos/src/build/x86/local_assets
wget -O ~/chromiumos/src/build/x86/local_assets/chrome-chromeos.zip http://build.chromium.org/buildbot/archives/chromium-chromiumos-r32516.zip
./enter_chroot.sh
cd ../platform/pam_google && ./enable_localaccount.sh Administrator
cd ~/trunk/src/scripts
./set_shared_user_password.sh
./build_platform_packages.sh
./build_kernel.sh
./build_image.sh
exit
./image_to_usb.sh --from=~/chromiumos/src/build/images/999.999.33109.075017-a1 --to=/dev/sdb


Chromium OS のユーザーエージェント
Mozilla/5.0 (X11; U; CrOS i686 9.10.0; en-US) AppleWebKit/532.5 (KHTML, like Gecko) Chrome/4.0.253.0 Safari/532.5

ビルド手順

wget http://src.chromium.org/svn/trunk/src/build/install-build-deps.sh
sudo sh install-build-deps.sh

Install depot tools

cd ~
svn co http://src.chromium.org/svn/trunk/tools/depot_tools
export PATH=`pwd`/depot_tools:"$PATH"

Install git

sudo apt-get install git-core

Get a copy of Chromium OS repository

gclient config http://src.chromium.org/git/chromiumos.git
gclient sync
**ものすごく時間がかかる**

Make your local repository

ln -s chromiumos.git chromiumos
cd ~/chromiumos/src/scripts
./make_local_repo.sh

Create your build environment

./make_chroot.sh
CAUTION: Do *NOT* rm -rf the chroot directory; if there are stale bind
mounts you may end up deleting your source tree too.  To unmount and
delete the chroot cleanly, use:
    ./make_chroot.sh --delete

Building Chromium

mkdir -p ~/chromiumos/src/build/x86/local_assets
wget -O ~/chromiumos/src/build/x86/local_assets/chrome-chromeos.zip \
 http://build.chromium.org/buildbot/archives/chromium-chromiumos-r32516.zip

Building Chromium OS

./enter_chroot.sh
cd ../platform/pam_google && ./enable_localaccount.sh Administrator
cd ~/trunk/src/scripts
./set_shared_user_password.sh
Enter password for shared user account: 空白
Shared user password set in /home/maruko2/trunk/src/scripts/shared_user_passwd.txt
./build_platform_packages.sh
./build_kernel.sh
./build_image.sh
Done.  Image created in /home/maruko2/trunk/src/build/images/0.5.25.200912290339-a1
To copy to USB keyfob, outside the chroot, do something like:
  ./image_to_usb.sh --from=/home/maruko2/chromiumos.git/src/build/images/0.5.25.200912290339-a1 --to=/dev/sdb
To convert to VMWare image, outside the chroot, do something like:
  ./image_to_vmware.sh --from=/home/maruko2/chromiumos.git/src/build/images/0.5.25.200912290339-a1
exit
sudo apt-get install qemu
./image_to_vmware.sh --from=~/chromiumos/src/build/images/0.5.25.200912290339-a1/
LINEで送る このエントリーをはてなブックマークに追加
個人用ツール
名前空間
変種
表示
操作
案内
ツールボックス

注目のページ

このサイトのはてなブックマーク数