ubuntu 编译内核时出的错误

CC     arch/x86/boot/tty.o

CC     arch/x86/boot/video .o
arch/x86/boot/boot .h: Assembler messages:
arch/x86/boot/boot .h:112: Error: bad register name `%dil'
make[1]: *** [arch/x86/boot/video .o] Error 1
make: *** [bzImage] Error 2
解决:
在所在行用"=q"替换"=r"即可。(replace "=r" with "=q" in the affected line ."dil" (lower 8 bits part of [RE]DI) register is inexistent underx86-32, only available under x86-64 .

今天编译内核,使用make menuconfig时出错,报错为:
yongtao@yongtao-desktop:~/public/linux_release/linux-2.6.24$ make menuconfig
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/kxgettext.o
  HOSTCC  scripts/kconfig/lxdialog/checklist.o
在包含自 scripts/kconfig/lxdialog/checklist.c:24 的文件中:
scripts/kconfig/lxdialog/dialog.h:32:20: 错误: curses.h:没有该文件或目录
make[1]: *** [scripts/kconfig/lxdialog/checklist.o] 错误 1
make: *** [menuconfig] 错误 2

应该是apt-get install libncurses5-dev
 
譬如fs里边一定要选中VFS,EXT3编译为M,因为现在系统一
般都采用了ext3格式,您要是漏掉这个东东,加载不了分区,可别怨我没告诉你哦,当然second extended fs更是一定要选啦:)
我在 编译的历史中曾经有VFS:Unable to mount root fs on 00:00的经历,一直卡在那里,好久都没解决啊,不过后来终于发现应该是fs的问题,或者是您的root分区没指定好啊..
假期过完了,又接着编译,又编译了两次,每次还都是这个
错误
VFS:Connot open root device "hda12" or unknown-block(0,0)
kernel panic--not syncing:VFS:Uable to mount root fs on unknown-block(0,0)
VFS老师讲过是底层的物理设备和上层用户间通信的一个逻辑的过渡层。网友提供的一些
解决方法:
原因一:ext2文件格式支持没有编译进内核,不论你使用ext3或其它文件格式,ext2支持都
必须直接编译进内核,不能以内核模块形式编译。
原因二:如果使用initrd.img启动系统,则cromfs必须编译
cromfs在哪里配置我没有找到,但我把关于ATA/IDE/SATA/SCSI的选项都编译进内核就解决
了,不过到现在也不知道什么原因。
来源: http://www.sudu.cn/info/html/edu/20080428/302845.html
编译内核参考: http://www.51nb.com/forum/thread-295749-1-1.html

你可能感兴趣的:(ubuntu,ext,X86)