QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1853|回复: 22

编译2.5.72出错

[复制链接]
发表于 2003-6-23 20:23:50 | 显示全部楼层 |阅读模式
我在linux9.0下编译2.5.72内核,内核已编译完成,但在编译模块时出现下面的错误:
CC [M]  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 [M]  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[2]: *** [drivers/char/moxa.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
请各位高人帮我看下是什么原因,配置文件如下:

我的机器是方正卓越Z6995A品牌机,具体配置是:
CPU:赛扬900
内存:256M SDRAM
软猫:HSF
声卡(集成):SIS7018
显示芯片:SIS630
主板:SIS630
两个USB接口
PS/2鼠标
普通键盘

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
发表于 2003-6-23 21:05:50 | 显示全部楼层
请重新上传一下配置文档,这个文档中没有内容
回复

使用道具 举报

 楼主| 发表于 2003-6-23 22:33:42 | 显示全部楼层

已重新上传了配置文档

不好意思,重新传了一个。
回复

使用道具 举报

发表于 2003-6-23 22:45:46 | 显示全部楼层
i compile use the default config, without problem.
回复

使用道具 举报

发表于 2003-6-23 23:41:16 | 显示全部楼层
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
回复

使用道具 举报

 楼主| 发表于 2003-6-24 13:30:56 | 显示全部楼层

启动又出错了

首先谢谢版主,编译全部完成了,按照论坛里的贴子修改了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

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

发表于 2003-6-24 13:51:18 | 显示全部楼层
请把fdisk -l /dev/hda的结果贴上来
回复

使用道具 举报

 楼主| 发表于 2003-6-24 14:17:26 | 显示全部楼层

fdisk输出结果

[root@localhost root]# fdisk -l /dev/hda

Disk /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   Id  System
/dev/hda1   *         1       653   5245191    b  Win95 FAT32
/dev/hda2           654      4865  33832890    f  Win95 Ext'd (LBA)
/dev/hda5           654      1176   4200966    b  Win95 FAT32
/dev/hda6          1177      1750   4610623+   b  Win95 FAT32
/dev/hda7          1751      2261   4104576    b  Win95 FAT32
/dev/hda8          2262      2577   2538238+   b  Win95 FAT32
/dev/hda9          2578      3082   4056381    b  Win95 FAT32
/dev/hda10         3083      3095    104391   83  Linux
/dev/hda11         3096      3860   6144831   83  Linux
/dev/hda12         3861      3925    522081   82  Linux swap
[root@localhost root]#
回复

使用道具 举报

发表于 2003-6-24 14:29:37 | 显示全部楼层
不好意思,请把/etc/fstab也贴上来吧.上面的两个贴子重复了,你可以删掉一个
回复

使用道具 举报

 楼主| 发表于 2003-6-24 18:59:12 | 显示全部楼层

my fstab

LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 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
回复

使用道具 举报

发表于 2003-6-24 20:24:17 | 显示全部楼层
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     

this is water,it is away from the point,pls do not kick me,hehe     
回复

使用道具 举报

 楼主| 发表于 2003-6-24 21:29:54 | 显示全部楼层

具体信息

用新内核启动时出现如下的信息:
...
root(hd0,9)
Filesystem type is ext2fs,Partition type 0x83
kernel /vmlinuz-2.5.72-lious.001 ro root=dev/hda11
[linux-bzImage,setup=0x1400,size=0xed785]
initrd /initrd-2.5.72-lious.001.img
[linux-initrd @ 0xf7cb000,0x14a01 bytes]
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,其他的都关闭了。
crond  network  syslogd
回复

使用道具 举报

发表于 2003-6-24 22:41:01 | 显示全部楼层
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?
回复

使用道具 举报

发表于 2003-6-24 23:22:30 | 显示全部楼层
i think for dma, u only need set to 1. other parameters are useless for latest harddrive and system.
回复

使用道具 举报

 楼主| 发表于 2003-6-25 21:47:11 | 显示全部楼层

按各位的意见,重新编译了,还是不行。

如题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-9-18 15:23 , Processed in 0.105013 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表