--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-os-dev?hl=en
Hi, everyone.I follow the guide http://www.chromium.org/chromium-os/developer-guide to build a ChromeOS image successfully.But I have few questions,1. Which kernel (version) will be built in the image? I saw the source code contains few different kernel (version).
2. If I want to add a kernel module, is there have a quick way to re-gen the image?
I have checked another guide http://www.chromium.org/chromium-os/how-tos-and-troubleshooting/kernel-configuration, but I am not sure how to make a complete ChromeOS image.
Thank everyone.
(cr) ((3730ff1728c1...)) lake@OA-106028 ~/trunk/src/third_party/kernel/v4.4 $ FEATURES="noclean" cros_workon_make --board=${BOARD} --install chromeos-kernel-4_4>>> Emerging (1 of 1) sys-kernel/chromeos-kernel-4_4-9999::chromiumos for /build/amd64-generic/* chromeos-kernel-4_4-R66-10315.0-1516619937.gcov.xz SHA256 SHA512 WHIRLPOOL size ;-) ... [ ok ]* Running stacked hooks for pre_pkg_setup* sysroot_build_bin_dir ... [ ok ]* Determining the location of the kernel source code* Found kernel source directory:* /mnt/host/source/src/third_party/kernel/v4.4* Found kernel object directory:* /build/amd64-generic/usr/src/linux* Found sources for kernel version:* 4.4.112* Running stacked hooks for post_pkg_setup* python_eclass_hack ... [ ok ]* Running stacked hooks for pre_src_unpack* python_multilib_setup ... [ ok ]>>> Unpacking source...* Using local source dir(s): /mnt/host/source/src/third_party/kernel/v4.4* path: /mnt/host/source/src/third_party/kernel/v4.4* destdir: /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999* Using experimental inplace build in /mnt/host/source/src/third_party/kernel/v4.4.* For inplace build you need to modify the sandbox* Set SANDBOX_WRITE=/mnt/host/source in your env.>>> Unpacking chromeos-kernel-4_4-R66-10315.0-1516619937.gcov.xz to /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work>>> Source unpacked in /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work* Running stacked hooks for post_src_unpack* asan_init ... [ ok ]>>> Preparing source in /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999 ...>>> Source prepared.>>> Configuring source in /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999 ...* Using kernel config: chromiumos-x86_64* - disabling framebuffer console config* - enabling Support running virtual machines with KVM config* - enabling CDC MBIM driver config* - enabling TPM support config* - enabling Transparent Hugepage Support config* - enabling 802.1Q VLAN config* - disabling VT console configERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.make -j8 O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4 LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld 'CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' HOSTCC=x86_64-pc-linux-gnu-gcc HOSTCXX=x86_64-pc-linux-gnu-g++ oldnoconfigmake[1]: Entering directory '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'GEN ./Makefilescripts/kconfig/conf --olddefconfig Kconfig.config:4463:warning: override: reassigning to symbol FRAMEBUFFER_CONSOLE.config:4472:warning: override: reassigning to symbol KVM.config:4479:warning: override: reassigning to symbol VSOCKETS.config:4481:warning: override: reassigning to symbol VIRTUALIZATION.config:4485:warning: override: reassigning to symbol USB_NET_CDC_MBIM.config:4488:warning: override: reassigning to symbol TCG_TPM.config:4489:warning: override: reassigning to symbol TCG_TIS.config:4493:warning: override: reassigning to symbol TRANSPARENT_HUGEPAGE.config:4497:warning: override: reassigning to symbol VLAN_8021Q.config:4500:warning: override: reassigning to symbol VT.config:4501:warning: override: reassigning to symbol VT_CONSOLE## configuration written to .config#make[1]: Leaving directory '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'>>> Source configured.>>> Compiling source in /build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999 ...ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.make -j8 O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4 LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld 'CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' HOSTCC=x86_64-pc-linux-gnu-gcc HOSTCXX=x86_64-pc-linux-gnu-g++ -kmake[1]: Entering directory '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'CHK include/config/kernel.releaseGEN ./MakefileCHK include/generated/uapi/linux/version.hCHK include/generated/utsrelease.hCHK scripts/mod/devicetable-offsets.hUsing /mnt/host/source/src/third_party/kernel/v4.4 as source for kernel/mnt/host/source/src/third_party/kernel/v4.4 is not clean, please run 'make mrproper'in the '/mnt/host/source/src/third_party/kernel/v4.4' directory.make[1]: *** [/mnt/host/source/src/third_party/kernel/v4.4/Makefile:1013: prepare3] Error 1make[1]: Target '_all' not remade because of errors.make[1]: Leaving directory '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'make: *** [Makefile:150: sub-make] Error 2make: Target '_all' not remade because of errors.* __helpers_die: WARNING: emake failed* If this failure is due to build-dir corruption, run:* sudo rm -rf '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'* ERROR: sys-kernel/chromeos-kernel-4_4-9999::chromiumos failed (compile phase):* command: emake O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4 LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0 CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0 HOSTCC=x86_64-pc-linux-gnu-gcc HOSTCXX=x86_64-pc-linux-gnu-g++ -k** Call stack:* ebuild.sh, line 93: Called src_compile* environment, line 5268: Called cros-kernel2_src_compile* environment, line 1607: Called kmake '-k'* environment, line 4200: Called cw_emake 'O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4' 'LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld' 'CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'HOSTCC=x86_64-pc-linux-gnu-gcc' 'HOSTCXX=x86_64-pc-linux-gnu-g++' '-k'* environment, line 2257: Called die* The specific snippet of code:* die "command: emake $*";** If you need support, post the output of `emerge --info '=sys-kernel/chromeos-kernel-4_4-9999::chromiumos'`,* the complete build log and the output of `emerge -pqv '=sys-kernel/chromeos-kernel-4_4-9999::chromiumos'`.* The complete build log is located at '/build/amd64-generic/tmp/portage/logs/sys-kernel:chromeos-kernel-4_4-9999:20180305-043835.log'.* For convenience, a symlink to the build log is located at '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/temp/build.log'.* The ebuild environment file is located at '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/temp/environment'.* Working directory: '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999'* S: '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999'>>> Failed to emerge sys-kernel/chromeos-kernel-4_4-9999 for /build/amd64-generic/, Log file:>>> '/build/amd64-generic/tmp/portage/logs/sys-kernel:chromeos-kernel-4_4-9999:20180305-043835.log'* Messages for package sys-kernel/chromeos-kernel-4_4-9999 merged to /build/amd64-generic/:* For inplace build you need to modify the sandbox* Set SANDBOX_WRITE=/mnt/host/source in your env.* Using kernel config: chromiumos-x86_64* - disabling framebuffer console config* - enabling Support running virtual machines with KVM config* - enabling CDC MBIM driver config* - enabling TPM support config* - enabling Transparent Hugepage Support config* - enabling 802.1Q VLAN config* - disabling VT console config* If this failure is due to build-dir corruption, run:* sudo rm -rf '/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4'* ERROR: sys-kernel/chromeos-kernel-4_4-9999::chromiumos failed (compile phase):* command: emake O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4 LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0 CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0 HOSTCC=x86_64-pc-linux-gnu-gcc HOSTCXX=x86_64-pc-linux-gnu-g++ -k** Call stack:* ebuild.sh, line 93: Called src_compile* environment, line 5268: Called cros-kernel2_src_compile* environment, line 1607: Called kmake '-k'* environment, line 4200: Called cw_emake 'O=/build/amd64-generic/var/cache/portage/sys-kernel/chromeos-kernel-4_4' 'LD=/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0/ld' 'CC=x86_64-cros-linux-gnu-gcc -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'CXX=x86_64-cros-linux-gnu-g++ -B/usr/x86_64-pc-linux-gnu/x86_64-cros-linux-gnu/binutils-bin/2.27.0' 'HOSTCC=x86_64-pc-linux-gnu-gcc' 'HOSTCXX=x86_64-pc-linux-gnu-g++' '-k'* environment, line 2257: Called die* The specific snippet of code:* die "command: emake $*";** If you need support, post the output of `emerge --info '=sys-kernel/chromeos-kernel-4_4-9999::chromiumos'`,* the complete build log and the output of `emerge -pqv '=sys-kernel/chromeos-kernel-4_4-9999::chromiumos'`.* The complete build log is located at '/build/amd64-generic/tmp/portage/logs/sys-kernel:chromeos-kernel-4_4-9999:20180305-043835.log'.* For convenience, a symlink to the build log is located at '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/temp/build.log'.* The ebuild environment file is located at '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/temp/environment'.* Working directory: '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999'* S: '/build/amd64-generic/tmp/portage/sys-kernel/chromeos-kernel-4_4-9999/work/chromeos-kernel-4_4-9999'
Unfortunately, I am failed.I following the guide that build a ChromeOS image with kernel 4.4.Next I try to replace the kernel with 4.14 and I got some error message as below.My command is:cros_workon_make --board amd64-generic chromeos-kernel-4_14 --installError message in the following, is any suggestion here?
--