做內核的錯誤信息: /usr/src/ linux - 2.4.20 -8/include/linux/dcache.h: In function `dget': /usr/src/linux- 2.4.20 -8/include/linux/d" name="description" />

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>
  • 編譯內核2.4.20-8custom

    發表于:2007-07-04來源:作者:點擊數: 標簽:
    編譯內核 MI LY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"> 做內核的錯誤信息: /usr/src/ linux - 2.4.20 -8/include/linux/dcache.h: In function `dget': /usr/src/linux- 2.4.20 -8/include/linux/d

    編譯內核

    MILY: 宋體; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">做內核的錯誤信息:

    /usr/src/linux-2.4.20-8/include/linux/dcache.h: In function `dget':

    /usr/src/linux-2.4.20-8/include/linux/dcache.h:254: warning: implicit declaratio

    n of function `__out_of_line_bug_R8b0fd3c5'

    cpufreq.c: In function `cpufreq_parse_policy':

    cpufreq.c:111: warning: implicit declaration of function `sscanf_R859204af'

    cpufreq.c: In function `cpufreq_proc_read':

    cpufreq.c:225: warning: implicit declaration of function `sprintf_R1d26aa98'

    cpufreq.c: In function `cpufreq_proc_init':

    cpufreq.c:327: warning: implicit declaration of function `printk_R1b7d4074'

    cpufreq.c: In function `cpufreq_restore':

    cpufreq.c:1109: warning: implicit declaration of function `panic_R01075bf0'

    cpufreq.c: At top level:

    cpufreq.c:192: warning: `cpufreq_setup' defined but not used

    make[1]: *** [cpufreq.o] Error 1

    make[1]: Leaving directory `/usr/src/linux-2.4.20-8/kernel'

    make: *** [_mod_kernel] Error 2

    解決辦法:先執行:make mrpoper

    做內核的方法:

    下載好的內核解壓縮到:/usr/src/目錄下
    #cd /usr/src/
    進入該目錄
    #ln linux-2.4.26 linux-2.4
    創建該目錄的符號鏈接文件
    #cd linux-2.4
    進入內核目錄
    修改Makefile文件,找到包含EXTAVERSION的行將其改為EXTRAVERSION=qun
    #make mrproper
    確保源文件的一致性
    #make xconfig
    選擇需要編譯進內核的功能
    #make dep
    解決依賴性

    #make clean
    #make bzImage
    生成內核
    #make modules
    編譯內核模塊

    #cp usr/src/linux-2.4/arch/i386/boot/bzImage /boot/vmlinuz-2.4.20tcp
    #make modules_install
    安裝內核模塊

    記著查看/lib/modules新生成一個目錄為:2.4.20-8custom
    #mkinitrd /boot/initrd-2.4.20-8custom.Img  2.4.20-8custom
    生成啟動鏡像文件
    # cp /usr/src/linux-2.4/System.map /boot/System.map-2.4.20-8tcp

    刪除原有的/boot下的System.map文件

    Ln –s /boot/System.map-2.4.20-8tcp /boot/System.map
    #vi /etc/grub.conf #
    在最后部分添加如下行:
    title Red hat  Linux (2.4.20-8-tcp01)

             root (hd1,5)

            kernel /vmlinuz-2.4.20-8tcp ro root=LABEL=/12

            initrd /initrd-2.4.20-8custom.img

    :wq!
    #reboot
    重新啟動后就可以看到剛剛安裝好的內核了。
    #
    對于2.6的內核而言,步驟就簡單了很多只需要這幾個命令:
    make xconfig
    、make、make install

    MOUNT出錯:

    # mount -t nfs  10.65.69.224:/home /mnt

    mount: RPC: Program not registered

    啟動 nfs進程解決這個問題:service nfs start

     編譯完

    原文轉自:http://www.kjueaiud.com

    老湿亚洲永久精品ww47香蕉图片_日韩欧美中文字幕北美法律_国产AV永久无码天堂影院_久久婷婷综合色丁香五月

  • <ruby id="5koa6"></ruby>
    <ruby id="5koa6"><option id="5koa6"><thead id="5koa6"></thead></option></ruby>

    <progress id="5koa6"></progress>

  • <strong id="5koa6"></strong>