最后,我解决了我的问题。我下面的教程解释了如何获得自定义的3.4.0内核头文件并且在你的三星Series 5 Chromebook上工作。注意:你必须有一个非ARM处理器才能工作。另外,如果您还没有这样做,请使用本教程将Chrubuntu 12.04安装到您的Samsung Series 5:http://chromeos-cr48.blogspot.com/2012/04/chrubuntu-1204-now-with-double-bits.html
确保在运行脚本之前以root身份登录。
1.运行该脚本,我从宏碁C7教程(修改注意:当你得到的消息不覆盖内核只需点击yes如果重写内核,它可能会导致你的Chrubuntu。安装故障):
#!/bin/bash
#Edited 11/27/2013
#Fixes the old_bins directory not found error
set -x
#
# Grab verified boot utilities from ChromeOS.
#
mkdir -p /usr/share/vboot
#
#Make a new directory called old_bins
#
mkdir -p /usr/bin/old_bins
mount -o ro /dev/sda3 /mnt
#
#copy the vbutil_* commands to the old_bins directory
#
cp /mnt/usr/bin/vbutil_* /usr/bin/
cp /mnt/usr/bin/vbutil_* /usr/bin/old_bins
cp /mnt/usr/bin/dump_kernel_config /usr/bin
rsync -avz /mnt/usr/share/vboot/ /usr/share/vboot/
umount /mnt
#
# On the Acer C7, ChromeOS is 32-bit, so the verified boot binaries need a
# few 32-bit shared libraries to run under ChrUbuntu, which is 64-bit.
#
apt-get install libc6:i386 libssl1.0.0:i386
#
# Fetch ChromeOS kernel sources from the Git repo.
#
apt-get install git-core
cd /usr/src
git clone https://git.chromium.org/git/chromiumos/third_party/kernel.git
cd kernel
git checkout origin/chromeos-3.4
#
# Configure the kernel
#
# First we patch ``base.config`` to set ``CONFIG_SECURITY_CHROMIUMOS``
# to ``n`` ...
cp ./chromeos/config/base.config ./chromeos/config/base.config.orig
sed -e \
's/CONFIG_SECURITY_CHROMIUMOS=y/CONFIG_SECURITY_CHROMIUMOS=n/' \
./chromeos/config/base.config.orig > ./chromeos/config/base.config
./chromeos/scripts/prepareconfig chromeos-intel-pineview
#
# ... and then we proceed as per Olaf's instructions
#
yes "" | make oldconfig
#
# Build the Ubuntu kernel packages
#
apt-get install kernel-package
make-kpkg kernel_image kernel_headers
#
# Backup current kernel and kernel modules
#
tstamp=$(date +%Y-%m-%d-%H%M)
dd if=/dev/sda6 of=/kernel-backup-$tstamp
cp -Rp /lib/modules/3.4.0 /lib/modules/3.8.0-backup-$tstamp
#
# Install kernel image and modules from the Ubuntu kernel packages we
# just created.
#
dpkg -i /usr/src/linux-*.deb
#
# Extract old kernel config
#
vbutil_kernel --verify /dev/sda6 --verbose | tail -1 > /config-$tstamp-orig.txt
#
# Add ``disablevmx=off`` to the command line, so that VMX is enabled (for VirtualBox & Co)
#
sed -e 's/$/ disablevmx=off/' \
/config-$tstamp-orig.txt > /config-$tstamp.txt
#
# Wrap the new kernel with the verified block and with the new config.
#
vbutil_kernel --pack /newkernel \
--keyblock /usr/share/vboot/devkeys/kernel.keyblock \
--version 1 \
--signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \
--config=/config-$tstamp.txt \
--vmlinuz /boot/vmlinuz-3.4.0 \
--arch x86_64
#
# Make sure the new kernel verifies OK.
#
vbutil_kernel --verify /newkernel
#
# Copy the new kernel to the KERN-C partition.
#
dd if=/newkernel of=/dev/sda6
2.它不应该完成第一次运行。你会得到一个关于fstack-protector-strong
的错误。导航到/usr/src/kernel/arch/x86/Makefile
,并从stackp-y := -fstack-protector-strong
编辑78号线到stackp-y := -fstack-protector-all
与新修改Makefile文件再次运行该脚本。再次,不要覆盖内核。
4.你应该得到一些更多的错误,但不用担心。现在是打开VMware Workstation的时候了。当你得到内核3.4.0头缺少提示时,将提示框指向:/usr/src/linux-headers-3.4.0/include
5.你完成了!一切都应该现在工作。感谢michaela_elise(Reddit)创建原始脚本并指出-fstack-protector-strong
问题。 (注意:您可能需要在第二次和最后一次运行脚本后重新启动。第二次运行脚本后,我的虚拟机工作站发生故障。)
给出更多详细信息 – codercat
问题是我没有关于这个问题的更多细节。我不知道为什么VMware Workstation无法正常工作。我有位于我的/ usr/src文件夹中的linux-headers-3.4.0-030400和linux-headers-3.4.0-030400-通用文件夹。我也遵循这个指南为我的Chrubuntu安装:http://chromeos-cr48.blogspot.com/2012/04/chrubuntu-1204-now-with-double-bits.html – pr0d1gy
我也尝试过每个内核的建设脚本,人们已经为C7 Chromebook取得了成功,但他们都没有成功。 – pr0d1gy