找不到kernel-2.6.31.20的下載 - Linux

Faithe avatar
By Faithe
at 2010-06-11T03:31

Table of Contents

環境:ubuntu9.10、kernel2.6.31.20
目的:編譯一個簡單的module然後掛上去

最近剛開始學driver,

因為我安裝ubuntu之後/lib/modules/2.6.31-20-generic下沒有build這個檔案,

所以我直接去kernel.org下載kernel source linux-2.6.31-2來build我的module

因為我在kernel.org上只有看到linux-2.6.31-2沒看到linux-2.6.31.20,

就以為兩個是一樣的意思,

結果遇到"insmod: error inserting 'hello.ko': -1 Invalid module format",

dmesg出現"hello: no symbol version for module_layout"

google了一下好像是版本下錯的樣子,

但是我怎麼也google不到linux-2.6.31-20這個版本的kernel source code

可以請問一下這到底是什麼情況嗎?謝謝!
※ 編輯: kafy 來自: 118.168.71.241 (06/11 03:33)
※ 編輯: kafy 來自: 118.168.71.241 (06/11 03:35)
kafy:另外為啥ubuntu的kernel version跟kernel.org的version數字 06/11 03:43
kafy:差這麼多呀? 06/11 03:44
godman362:sudo apt-get install linux-source-`uname -r` 06/11 07:18
godman362:這樣有試過嗎? 06/11 07:18
kafy:dpkg -l查不出來,apt-get也沒用(難道這是cannonical的財產?) 06/11 08:33
godman362:dpkg -l是看自己有哪些套件吧....? 06/11 09:22
godman362:apt-cache search linux-source看看 06/11 09:22
godman362:抱歉記錯,是-L才是 06/11 09:26

Tags: Linux

All Comments

Genevieve avatar
By Genevieve
at 2010-06-15T19:06
另外為啥ubuntu的kernel version跟kernel.org的version數字
Skylar DavisLinda avatar
By Skylar DavisLinda
at 2010-06-20T14:32
差這麼多呀?
Eartha avatar
By Eartha
at 2010-06-21T01:33
sudo apt-get install linux-source-`uname -r`
這樣有試過嗎?
Andy avatar
By Andy
at 2010-06-22T19:26
dpkg -l查不出來,apt-get也沒用(難道這是cannonical的財產?)
Emily avatar
By Emily
at 2010-06-26T06:38
dpkg -l是看自己有哪些套件吧....?
apt-cache search linux-source看看
Emily avatar
By Emily
at 2010-06-28T11:44
抱歉記錯,是-L才是

virtulBox的NAT設定?

Liam avatar
By Liam
at 2010-06-11T01:22
我的host是win7 64,client是vbox 3.2 with CentOS 5.5 我已經在OS上安裝了VNC,也確定已啟動了,但問題來了.. 我要如何從win7連過去,因為本來的設定是走NAT,沒辦法讓我從win7連過去 我查google有個做法是在NAT下加介面卡做橋接. 但3.2版裡找不到, ...

vbox+CentOS顯示的問題..

Yuri avatar
By Yuri
at 2010-06-11T01:18
※ 引述《Dataman (Dataman)》之銘言: : 桌面大小只有800x600可以選. : 但我已經將/etc/X11/xrog.conf裡加上了 : Modes and#34;1024x768and#34; : 也用sh安裝過vboxlinuxadditions-x86.run過了 : 訊息告訴我已 ...

開啟NCQ

James avatar
By James
at 2010-06-10T22:57
請問要如何打開硬碟NCQ? 因為我只能遠端操作,沒辦法把BIOS改成AHCI mode, 還有其他方法開啟硬碟NCQ嗎? https://ata.wiki.kernel.org/index.php/Libata_FAQ 裡面建議的幾個方法, 試過無效, 不知道還有沒有其他的? 硬碟確定有支援NCQ, OS ...

ubunto 系統移機問題

Frederica avatar
By Frederica
at 2010-06-10T21:10
大家好 如果 我ubunto系統不想重灌.... 但是想更換整個硬體 升級 有類似 ghost的作法 可以copy 舊系統到 新硬體上嗎??? 可否 請 大家賜教 謝謝~~~~ -- 真相是殘酷的;幻想是美好的 http://www.wretch.cc/album/alicepaul ...

關於startx的問題?

Freda avatar
By Freda
at 2010-06-10T20:45
Hi 各位: 是不是不能在pietty工具啟動startx呀,以下是出現的錯誤, [testatlocalhost ~]$ startx xauth: creating new authority file /home/test/.serverauth.4330 Fatal server error: ...