LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 986|回复: 12

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

[复制链接]
发表于 2004-12-19 20:33:15 | 显示全部楼层 |阅读模式
我要用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-19 22:50:50 | 显示全部楼层
    make[2]: *** [ppp_generic.o] Error 1
    这个说明可能你在做选择的时候就出了问题,这是网络连接的选项,你需要重新来过。
     楼主| 发表于 2004-12-19 23:38:53 | 显示全部楼层
    我想也是这个问题,可是我实在是菜鸟啊.有没有什么可以让我参考一下啊,奇怪redhat 9 内核2.4.20-8为什么默认竟不支持PPPOE?
    发表于 2004-12-19 23:51:29 | 显示全部楼层
    如果实在不清楚怎样配置,
    可以make oldconfig,
    redhat 9默认是有pppoe的。

    另外,请参考:
    http://www.linuxsir.cn/bbs/showt ... A%BA%CB%C5%E4%D6%C3
     楼主| 发表于 2004-12-20 09:25:29 | 显示全部楼层
    make oldconfig 编译出来的和原始内核一样的配置吗?
    /lib/modules 里没有pppoe.o这个模块

    多谢,高手指点
    QQ:28454541
     楼主| 发表于 2004-12-20 09:35:41 | 显示全部楼层
    我见过的最详细的配置文章了,不错不错.

    只是问中提到:
    #make oldconfig (如果只想在原来内核配置的基础上修改一些小地方,会省去不少麻烦)
    可是没有具体的解释如何操作.
    发表于 2004-12-20 10:28:25 | 显示全部楼层
    新手还是用make gconfig  或者make xconfig   好点 是图形界面的。没那么吃力。
     楼主| 发表于 2004-12-20 12:01:39 | 显示全部楼层
    编译内核是通过了,可是问题又来了.
    我把System.map和bzImage复制到了/boot也做好了连接。
    接下来呢?grub呢,要做些什么啊?
    我重起起不来了。
    发表于 2004-12-20 12:27:17 | 显示全部楼层
    重启的时候是些什么错误啊?
     楼主| 发表于 2004-12-20 13:46:09 | 显示全部楼层
    ......
    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

    然后死机了
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

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