analytics

2011年6月2日星期四

Build Chromium OS

Chrome Book快出货了,自从Chromium OS中加入了VPN,有了进一步的实用价值。Mark一下编译Chrome OS的过程,错误处理和一些使用方法.



  1. Install depot_tool( To be continue..)
  2. Get code by git
  3. cd ${HOME}/chromiumos
    repo sync
  4. It's not strictly nessary, build I suggest you do it with --replace.
    1. cd src/scripts
      ./make_chroot
    2. ./enter_chroot.sh
      1. (cros-chroot) johnnyrotten@flyingkite ~/trunk/src/scripts $ 
        Then select a board, suggest add --force.
        BOARD=x86-generic
        ./setup_board --board=${BOARD} --force
        Error:There maybe have these error like this."Error: The above package list contains packages which cannot be* installed at the same time on the same system."
        We can remove them by the follow command:
        emerge -C [packagename]
      2. Build backage.
        1. ./build_packages --board=${BOARD} --oldchromebinary
        2. Build image
          1. ./build_image --board=${BOARD} --withdev --noenable_rootfs_verification
          2. Make a chrome to udisk
            1. ./image_to_usb.sh --board=${BOARD} --to=${MY_USB_KEY_LOCATION}
            2. Make a VMWare image
              1. ./image_to_vm.sh --board=${BOARD} --format=vmware
                Error: no space
                 When we build the image, if we stop it, it will leave huge temp file in /chroot/tmp. So if we get failed with no space, we can clean the temp file in /chroot/tmp









              http://dawnwindsblog.blogspot.com/2011/06/build-chromium-os.html

              没有评论:

              发表评论