CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_INITRD=y CONFIG_PACKET=y CONFIG_INET=y CONFIG_IP_MULTICAST=y CONFIG_IDE=y CONFIG_BLK_DEV_IDE=y CONFIG_BLK_DEV_IDEDISK=y CONFIG_IDEDISK_MULTI_MODE=y CONFIG_BLK_DEV_IDECD=y CONFIG_BLK_DEV_IDE_MODES=y CONFIG_NETDEVICES=y CONFIG_NET_ETHERNET=y CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 CONFIG_VT=y CONFIG_VT_CONSOLE=y CONFIG_REISERFS_FS=y CONFIG_EXT3_FS=y CONFIG_JBD=y CONFIG_FAT_FS=y CONFIG_VFAT_FS=y CONFIG_RAMFS=y CONFIG_ISO9660_FS=y CONFIG_JFS_FS=y CONFIG_NTFS_FS=y CONFIG_PROC_FS=y CONFIG_EXT2_FS=y CONFIG_MSDOS_PARTITION=y CONFIG_NLS=y CONFIG_NLS_DEFAULT="iso8859-1" CONFIG_VGA_CONSOLE=y CONFIG_VIDEO_SELECT=y CONFIG_VIDEO_IGNORE_BAD_MODE=y CONFIG_FB=y CONFIG_DUMMY_CONSOLE=y CONFIG_FB_VESA=y CONFIG_VIDEO_SELECT=y CONFIG_FBCON_CFB8=y CONFIG_FBCON_CFB16=y CONFIG_FBCON_CFB24=y CONFIG_FBCON_CFB32=y CONFIG_FBCON_FONTWIDTH8_ONLY=y CONFIG_FONT_8x8=y CONFIG_FONT_8x16=y
5 编译内核
#make dep #make bzImage
下面是最后编译结果:
Boot sector 512 bytes Setup is 4733 bytes System is 845 kB make[1]: Leaving directory `/usr/src/Linux-2.4。20-8/arch/i386/boot'
我用上面的配置得到了一个845k的内核。编译好的内核放在/usr/src/Linux-2.4。20-8/arch/i386/boot下。将他拷贝在一个安全的地方备用。建立一个专放babyLinux材料的目录:
#mkdir /babyLinux
|