编译Linux内核,基于x86
export ARCH=x86
make x86_64_defconfig
make menuconfig
报错:
scripts/kconfig/lxdialog/dialog.h:38:20: fatal error: curses.h: 没有那个文件或目录
#include CURSES_LOC
^
compilation terminated.
sudo apt-get install libncurses5-dev
make menuconfig
General Setup--->[*]Initial Ram filesystem and RAM disk
Device Driver---->[*]Block Devices---><*>RAM block device support
(65535)Default ram disk size (kbytes)
make
编译后的内核再/arch/x86_64/boot/bzImage