QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 907|回复: 9

编译内核 求教!!!!!!!!

[复制链接]
发表于 2004-12-19 22:18:06 | 显示全部楼层 |阅读模式
我要用ADSL上网,需要个pppoe.o。但是编译不成。错误如下:
[root@localhost linux-2.4]# make modules
......
make[2]: *** [ppp_generic.o] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/net'
make[1]: *** [_modsubdir_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_mod_drivers] Error 2
[root@localhost linux-2.4]#
[root@localhost linux-2.4]# make modules_install
......
cp: stat‘dummy.o’失败: 没有那个文件或目录
cp: stat‘ppp_deflate.o’失败: 没有那个文件或目录
cp: stat‘ppp_generic.o’失败: 没有那个文件或目录
cp: stat‘pppoe.o’失败: 没有那个文件或目录
cp: stat‘pppox.o’失败: 没有那个文件或目录
cp: stat‘slhc.o’失败: 没有那个文件或目录
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.20-8/drivers/net'
make[1]: *** [_modinst_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.20-8/drivers'
make: *** [_modinst_drivers] Error 2
[root@localhost linux-2.4]#
以下是我编译时的部分选项:

Code maturity level options
  • Prompt for development and/or incomplete code/drivers

    Loadable module support
  • Enable loadable module support
  • Set version information on all module symbols
  • Kernel module loader

    Networking options

    <*> Packet socket

    <*> Unix domain sockets
  • TCP/IP networking
  • Asynchronous Transfer Mode (ATM)
  • Classical IP over ATM

    [M] RFC1483/2684 Bridged protocols

    Network Device Support

    <M > PPP (point-to-point protocol) support

    <M> PPP Deflate compression

    <M> PPP over Ethernet (EXPERIMENTAL)

    USB support

    <*> Support for USB
  • Preliminary USB device filesystem

    <M> UHCI

    <M> OHCI

    Processor type and features

    [ ] Symmetric multi-processing support
    求教高手。我该怎么办。

    对了我是red hat linux 9
  • 发表于 2004-12-20 01:18:08 | 显示全部楼层
    楼上的哥哥,请把你省略的贴出来好吗?
    最重要的被你省了……
    回复

    使用道具 举报

     楼主| 发表于 2004-12-20 09:57:44 | 显示全部楼层
    呵呵,不好意思我是菜鸟,一会就帖来.
    回复

    使用道具 举报

     楼主| 发表于 2004-12-20 14:01:18 | 显示全部楼层
    多谢大哥,编译通过了.新问题是如何让grub使用新内核呢?我的是2.4内核.
    回复

    使用道具 举报

    发表于 2004-12-20 14:16:33 | 显示全部楼层
    看看/boot目录下有几个vmlinuz*,initrd*.*文件,可以说说吗?
    回复

    使用道具 举报

     楼主| 发表于 2004-12-20 14:18:01 | 显示全部楼层
    我执行了#make install
    多了个启动选项:2.4.20-8custom
    可是还是停到了:
    ......
    VFS:Cannot open root device "LABEL=/" or 00:00
    Pleace append a correct "root=" boot option
    Kernel panic : VFS :Unable to mount root fs on 00:00
    回复

    使用道具 举报

     楼主| 发表于 2004-12-20 14:19:15 | 显示全部楼层
    这就去看
    回复

    使用道具 举报

    发表于 2004-12-20 14:36:31 | 显示全部楼层
    /boot/grub/grub.conf
    这文件可以贴出来吗?
    回复

    使用道具 举报

     楼主| 发表于 2004-12-20 15:13:26 | 显示全部楼层
    /boot里有:vmlinuz-2.4.20-8
                    vmlinuz-2.4.20-8custom
                    initrd-2.4.20-8.img
                    initrd-2.4.20-8custom.img
    有人说把root=LABEL=/去掉,可是也不行啊
    原grub.conf文件
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You do not have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd0,1)
    #          kernel /boot/vmlinuz-version ro root=/dev/hda2
    #          initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=1
    timeout=10
    splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    title Red Hat Linux (2.4.20-8custom)
            root (hd0,1)
            kernel /boot/vmlinuz-2.4.20-8custom ro root=LABEL=/
            initrd /boot/initrd-2.4.20-8custom.img
    title Red Hat Linux (2.4.20-
            root (hd0,1)
            kernel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
            initrd /boot/initrd-2.4.20-8.img
    title DOS
            rootnoverify (hd0,0)
            chainloader +1
    现在的grub.conf文件
    # grub.conf generated by anaconda
    #
    # Note that you do not have to rerun grub after making changes to this file
    # NOTICE:  You do not have a /boot partition.  This means that
    #          all kernel and initrd paths are relative to /, eg.
    #          root (hd0,1)
    #          kernel /boot/vmlinuz-version ro root=/dev/hda2
    #          initrd /boot/initrd-version.img
    #boot=/dev/hda
    default=1
    timeout=10
    splashimage=(hd0,1)/boot/grub/splash.xpm.gz
    title Red Hat Linux (2.4.20-8custom)
            root (hd0,1)
            kernel /boot/vmlinuz-2.4.20-8custom
            initrd /boot/initrd-2.4.20-8custom.img
    title Red Hat Linux (2.4.20-
            root (hd0,1)
            kernel /boot/vmlinuz-2.4.20-8
                    initrd /boot/initrd-2.4.20-8.img
    title DOS
            rootnoverify (hd0,0)
            chainloader +1
    结果还是出错
    ......
    mount: error 6 mounting ext3
    pivotroot: pivot_root /sysroot,/sysroot/initrd/ failed:2
    umount /initrd /proc failed:2
    Freeing unused kernel memeorg:132K freed
    kernel panic:NO init found, Trg passing init=option to kernel.
    回复

    使用道具 举报

    发表于 2004-12-21 17:51:06 | 显示全部楼层
    在原来的grub.conf上把root=LABLE=/改成root=/dev/hda2试试
    回复

    使用道具 举报

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

    本版积分规则

    GMT+8, 2024-9-19 19:41 , Processed in 0.056051 second(s), 16 queries .

    © 2021 Powered by Discuz! X3.5.

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