博客园 首页 新随笔 联系 订阅 管理

# cp linux-3.10.5.tar.gz /usr/src/linux-3.10.5.tar.gz
# cd /usr/src
# tar xvzf linux-3.10.5.tar.gz linux-3.10.5
# cd linux-3.10.5
# make mrproper
# make clean

预防没有abs命令
# pacman -S abs
从abs获取.config
# abs
# cp /var/abs/core/linux/config.x86_64 .config
# make menuconfig

预防没有bc命令
# pacman -S bc
# make
# make bzImage
# make modules
# make modules_install
# make install
拷贝内核到/boot
# cp -v arch/x86/boot/bzImage  /boot/vmlinuz-linux-3.10.5-ARCH
# mkinitcpio -k 3.10.5-ARCH -g /boot/initramfs-linux-3.10.5-ARCH.img
# grub-mkconfig -o /boot/grub/grub.cfg
# reboot

posted on 2013-08-13 14:37  ZhanGSKen163  阅读(1270)  评论(0编辑  收藏  举报