我试图获取chromiumos源代码,并希望构建chromiumos。
export BOARD=coral
./setup_board --board=${BOARD} --force
./build_packages --board=${BOARD}
但是命令完成后,我收到了一些错误消息,我也尝试更新depot_tools但似乎受到权限被拒绝的限制......我该如何解决? 谢谢!
----消息
(cr) ((8c78090...)) ft@ft-Swift-SF315-51 ~/trunk/src/scripts $ ./setup_board --board=${BOARD} --force
INFO : Updating chroot
INFO : Clearing shadow utils lockfiles under /
INFO : Updating cross-compilers
10:34:40: INFO: Determining required toolchain updates...
10:34:41: INFO: Nothing to update!
INFO : Bootstrapping depot_tools
/mnt/host/source/src/scripts/update_chroot: line 90: ensure_bootstrap: command not found
ERROR : 5 10:34:41 CST 2018
ERROR : PGID PPID PID ELAPSED TIME %CPU COMMAND
ERROR : 8 4 8 1-20:51:43 00:00:00 0.0 -bash
ERROR : 27470 8 27470 00:01 00:00:00 4.0 _ /bin/bash ./setup_board --board=coral --force
ERROR : 27470 27470 27656 00:01 00:00:00 2.0 _ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=coral --usepkg
ERROR : 27470 27656 27786 00:00 00:00:00 0.0 _ /bin/bash /mnt/host/source/src/scripts/update_chroot --toolchain_boards=coral --usepkg
ERROR : 27470 27786 27787 00:00 00:00:00 0.0 _ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR : Arguments of 27656: '--toolchain_boards=coral' '--usepkg'
ERROR : Backtrace: (most recent call is last)
ERROR : update_chroot:90:main(), called: die_err_trap
ERROR :
ERROR : Command failed:
ERROR : Command 'ensure_bootstrap' exited with nonzero code: 127
ERROR : 5 10:34:41 CST 2018
ERROR : PGID PPID PID ELAPSED TIME %CPU COMMAND
ERROR : 8 4 8 1-20:51:43 00:00:00 0.0 -bash
ERROR : 27470 8 27470 00:01 00:00:00 4.0 _ /bin/bash ./setup_board --board=coral --force
ERROR : 27470 27470 27800 00:00 00:00:00 0.0 _ /bin/bash ./setup_board --board=coral --force
ERROR : 27470 27800 27801 00:00 00:00:00 0.0 _ ps f -o pgid,ppid,pid,etime,cputime,%cpu,command
ERROR : Arguments of 27470: ./setup_board '--board=coral' '--force'
ERROR : Backtrace: (most recent call is last)
ERROR : setup_board:93:main(), called: die_err_trap
ERROR :
ERROR : Command failed:
ERROR : Command '"${SRC_ROOT}/scripts"/update_chroot ${UPDATE_ARGS}' exited with nonzero code: 1
ERROR : (Note bash sometimes misreports "command not found" as exit code 1 instead of 127)
您需要确保depot_tools始终在您的$PATH中,包括在您使用cros_sdk
输入 SDK 之前
进入 SDK 后,depot_tools 安装在/mnt/host/depot_tools/
,这也应该在您的$PATH