作者 主題: [求助]編譯kernel(make modules)時出現錯誤訊息  (閱讀 3825 次)

0 會員 與 1 訪客 正在閱讀本文。

rickwolf

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
請問各位前輩,小弟是第一次編譯kernel,因為想做做看krab大大的vpn+mppc,我用的是RH9,要安裝的kernel則是2.6.9版,在make bzImage時都很正常,但是在make modules時,我在modules.err裡頭看到很多錯誤的訊息,不知道這個是不是造成我做完後重開機就會看到kernel panic的原因,所以把錯誤碼貼上來,請各位大大給點意見該如何修正錯誤,謝謝.
(PS.因為行數有近兩千行,但是看起來都差不多,所以只貼前一百行..)
drivers/atm/iphase.c: In function `desc_dbg':
drivers/atm/iphase.c:1017: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/atm/iphase.c:1018: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/atm/iphase.c:1027: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/atm/iphase.c: In function `free_desc':
drivers/atm/iphase.c:1070: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/atm/iphase.c: In function `rx_pkt':
drivers/atm/iphase.c:1097: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/esp.c: In function `autoconfig':
drivers/char/esp.c:2358: warning: `check_region' is deprecated (declared at include/linux/ioport.h:121)
drivers/char/specialix.c: In function `sx_check_io_range':
drivers/char/specialix.c:286: warning: `check_region' is deprecated (declared at include/linux/ioport.h:121)
drivers/char/moxa.c: In function `MoxaDriverPoll':
drivers/char/moxa.c:1723: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:1724: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:1728: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:1729: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:1732: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:1732: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:1737: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:1748: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortEnable':
drivers/char/moxa.c:2153: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2159: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2159: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortDisable':
drivers/char/moxa.c:2176: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortSetTermio':
drivers/char/moxa.c:2330: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2331: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2332: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortLineStatus':
drivers/char/moxa.c:2403: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2405: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortWriteData':
drivers/char/moxa.c:2473: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2474: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2475: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2476: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2477: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2485: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2486: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2495: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2499: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2509: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2512: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2514: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2522: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortReadData':
drivers/char/moxa.c:2536: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2537: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2538: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2539: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2540: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2551: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2552: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2561: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:2565: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2575: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2578: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:2580: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2588: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortTxQueue':
drivers/char/moxa.c:2603: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2604: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2605: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortTxFree':
drivers/char/moxa.c:2617: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2618: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2619: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `MoxaPortRxQueue':
drivers/char/moxa.c:2631: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2632: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2633: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `moxafunc':
drivers/char/moxa.c:2759: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2760: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c: In function `wait_finish':
drivers/char/moxa.c:2769: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `low_water_check':
drivers/char/moxa.c:2782: warning: passing arg 1 of `readb' makes pointer from integer without a cast
drivers/char/moxa.c:2783: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2784: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2785: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `moxaloadbios':
drivers/char/moxa.c:2800: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2803: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2805: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2806: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c: In function `moxafindcard':
drivers/char/moxa.c:2819: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2824: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2829: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c:2832: warning: passing arg 1 of `readw' makes pointer from integer without a cast
drivers/char/moxa.c: In function `moxaload320b':
drivers/char/moxa.c:2849: warning: passing arg 2 of `writew' makes pointer from integer without a cast
drivers/char/moxa.c:2850: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2852: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2853: warning: passing arg 2 of `writeb' makes pointer from integer without a cast
drivers/char/moxa.c:2855: warning: passing arg 2 of `writeb' makes pointer from integer without a cast

netman

  • 管理員
  • 俺是博士!
  • *****
  • 文章數: 17463
    • 檢視個人資料
    • http://www.study-area.org
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #1 於: 2005-01-19 00:31 »
rh9 要編 2.6.x 不是不行, 只是難度上或有點增加.
再, 於 2.6.x 上編的話, 先讀一下 README, 你會發現比 2.4.x 聰明多了哦.

回主題: 不好意思, 我也不知道你碰到的問題原因在哪裡呢~~~

krab

  • 憂鬱的高中生
  • ***
  • 文章數: 153
    • 檢視個人資料
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #2 於: 2005-01-19 00:48 »
基本上,這些應該是編譯核心的課題。我猜想如果您不是下nohup的指令去編譯的話,應該跑到中間就會error停住了,make bzImage; make modules; make modules_install; make install應該跑不完。

有個建議請參考:

您的系統下應該有一個有效可用的.config檔,譬如我的Fedora core 2 就有一個在
/boot/2.5.8-1.358.config,實際的檔名在/boot下面找一找。
請把它拷貝到linux底下為 .config,然後在make menuconfig時將它載入,然後去加選ppp_mppe_mppc編入module。接著跑下去,應該可以成功,試試看,加油吧。

還有,請不要叫我大大,真正的大大們在後面啦 :wink: 我跟您一樣是小菜鳥。

雖然我是隻小菜鳥,不過學linux學得很快樂,是隻快樂的linux小菜鳥 :D

krab

  • 憂鬱的高中生
  • ***
  • 文章數: 153
    • 檢視個人資料
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #3 於: 2005-01-19 01:02 »
埋頭苦寫個人意見,寫完丟出來之後,才發現netman大大已經伸出援手了。

netman大大的提醒,讓我彷彿回想起鳥哥的基礎篇裡好像提到跨越不同系列的核心升級,恐怕問題多多,不是一般初學者容易搞定的 :(

wangfang

  • 懷疑的國中生
  • **
  • 文章數: 39
    • 檢視個人資料
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #4 於: 2005-01-19 08:59 »
偶速用redhat 9,kernel速2.6.10
不過要升級將近十五個套件,相當費事,不然有些功能會無法正常工作,如iptables。
不過昇級後,使用tar ball編譯kernel,效能提升不少。
而且編譯過程像netman所說的,也smart不少,不用像2.4那般煩人。
-------------------------
建議你先使用make oldconfig將原本的設定記錄下來,再做make menuconfig,會將錯誤減少。

rickwolf

  • 可愛的小學生
  • *
  • 文章數: 3
    • 檢視個人資料
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #5 於: 2005-01-19 09:53 »
謝謝大家的回覆,我會再去試試看的...謝謝囉..^^

krab

  • 憂鬱的高中生
  • ***
  • 文章數: 153
    • 檢視個人資料
[求助]編譯kernel(make modules)時出現錯誤訊息
« 回覆 #6 於: 2005-01-19 11:43 »
原作者也有2.4.28的patch
http://www.polbox.com/h/hs001/linux-2.4.28-mppe-mppc-1.2.patch.gz

提供給您參考。