编译2.5.72出错
我在linux9.0下编译2.5.72内核,内核已编译完成,但在编译模块时出现下面的错误:CC drivers/char/mxser.o
drivers/char/mxser.c: In function `mxser_module_init':
drivers/char/mxser.c:501: warning: unused variable `ret1'
drivers/char/mxser.c:501: warning: unused variable `ret2'
CC drivers/char/moxa.o
drivers/char/moxa.c: In function `moxa_init':
drivers/char/moxa.c:342: warning: unused variable `ret1'
drivers/char/moxa.c:342: warning: unused variable `ret2'
drivers/char/moxa.c: In function `moxa_close':
drivers/char/moxa.c:618: invalid type argument of `unary *'
make: *** Error 1
make: *** Error 2
make: *** Error 2
请各位高人帮我看下是什么原因,配置文件如下:
我的机器是方正卓越Z6995A品牌机,具体配置是:
CPU:赛扬900
内存:256M SDRAM
软猫:HSF
声卡(集成):SIS7018
显示芯片:SIS630
主板:SIS630
两个USB接口
PS/2鼠标
普通键盘 请重新上传一下配置文档,这个文档中没有内容
已重新上传了配置文档
不好意思,重新传了一个。 i compile use the default config, without problem. change u .config file, comment these lines. i do not think u need these devices support.> CONFIG_DEFXX=m
> CONFIG_COMPUTONE=m
> CONFIG_RISCOM8=m
> CONFIG_SPECIALIX=m
> CONFIG_SPECIALIX_RTSCTS=y
> CONFIG_SX=m
> CONFIG_MOXA_INTELLIO=m
> CONFIG_MOXA_SMARTIO=m
启动又出错了
首先谢谢版主,编译全部完成了,按照论坛里的贴子修改了GRUB,过程我已经仔细核对了,没有问题。但是在启动时跳出大概10行字后就不动了,看不到引导过程。然后用老内核启动,引导过程中却出现了麻烦,象是非法关机的一样,必须手动重启才行。请问是什么原因?
我把grub.conf和内核配置上传上来,请帮我看下!
grub.conf:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:You have a /boot partition.This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd0,9)
# kernel /vmlinuz-version ro root=/dev/hda11
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,9)/grub/splash.xpm.gz
title Red Hat Linux (2.5.72-lious.001) ---->新内核
root (hd0,9)
kernel /vmlinuz-2.5.72-lious.001 ro root=/dev/hda11
initrd /initrd-2.5.72-lious.001.img
title Red Hat Linux (2.4.20-8 standard) -->老内核
root (hd0,9)
kernel /vmlinuz-2.4.20-8.standard ro root=LABEL=/
initrd /initrd-2.4.20-8.standard.img
title DOS
rootnoverify (hd0,0)
chainloader +1 请把fdisk -l /dev/hda的结果贴上来
fdisk输出结果
# fdisk -l /dev/hdaDisk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks IdSystem
/dev/hda1 * 1 653 5245191 bWin95 FAT32
/dev/hda2 654 486533832890 fWin95 Ext'd (LBA)
/dev/hda5 654 1176 4200966 bWin95 FAT32
/dev/hda6 1177 1750 4610623+ bWin95 FAT32
/dev/hda7 1751 2261 4104576 bWin95 FAT32
/dev/hda8 2262 2577 2538238+ bWin95 FAT32
/dev/hda9 2578 3082 4056381 bWin95 FAT32
/dev/hda10 3083 3095 104391 83Linux
/dev/hda11 3096 3860 6144831 83Linux
/dev/hda12 3861 3925 522081 82Linux swap
# 不好意思,请把/etc/fstab也贴上来吧.上面的两个贴子重复了,你可以删掉一个
my fstab
LABEL=/ / ext3 defaults 1 1LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devptsgid=5,mode=6200 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda12 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hda1 /mnt/hda1 auto iocharset=cp936 0 0
/dev/hda5 /mnt/hda5 auto iocharset=cp936 0 0
/dev/hda6 /mnt/hda6 auto iocharset=cp936 0 0
/dev/hda7 /mnt/hda7 auto iocharset=cp936 0 0
/dev/hda8 /mnt/hda8 auto iocharset=cp936 0 0
/dev/hda9 /mnt/hda9 auto iocharset=cp936 0 0 oh,so intersting,it seems that more and more people would like to write in English influenced by dragonfly.perhaps i will use English from now on,too.
hehe :lol::lol::lol:
this is water,it is away from the point,pls do not kick me,hehe :lol::lol::lol:
具体信息
用新内核启动时出现如下的信息:...
root(hd0,9)
Filesystem type is ext2fs,Partition type 0x83
kernel /vmlinuz-2.5.72-lious.001 ro root=dev/hda11
initrd /initrd-2.5.72-lious.001.img
Uncompressing Linux...ok,booting the kernel
然后就一动不动了,硬盘灯时闪时闪的。键盘也不能使用。只好手动重启。
因为我在redhat9.0下的/etc/rc.d/rc.local最後面加上一行 /sbin/hdparm -d1 -X68 -c3 -m16 /dev/hda以开启硬盘DMA,重启老内核时屏幕显示:
Starting xfs
/dev/hda:
setting 32-bit I/O support flag to 3
setting multcount to 16
setting using_dma to 1 (on)
setting xfermode to 68 (UltraDMA mode4)
后又死掉了。再重启老内核,出现检查硬盘的信息,一段漫长的等待后才进入X。
还有,我觉得现在的系统没有编译新内核前快了。
我在 Setup System Services时,只留下以下几个 Service,其他的都关闭了。
crondnetworksyslogd the filesystem is ext3,but when the os is booting,it reads "Filesystem type is ext2fs,Partition type 0x83"
so i think perhaps the config is not quite right.
your fstab tells us that your / partition is ext3,and in the help file of xconfig ,there is a paragraph as follow:
Be aware however that the file system
of your root partition (the one containing the directory /) cannot
be compiled as a module, and so this may be dangerous.
but your config file reads:
CONFIG_EXT3_FS=m
so i think you should configure your kernel again,and make the CONFIG_EXT3_FS=y
in addition,why do you insist on using the dma, can you shut off dma,and see if the old kernel can boot correctly? i think for dma, u only need set to 1. other parameters are useless for latest harddrive and system.
按各位的意见,重新编译了,还是不行。
如题。
页:
[1]
2