0
我使用運行linux內核4.4.0系列的Ubuntu 16.0.4 LTS。 我對i2c-ocores代碼和eeprom驅動程序進行了一些更改,並重新構建了整個內核。然後我安裝了新建的內核。無法加載/插入內核模塊
我用下面的步驟來建立內核:
1. sudo apt-get source linux-image-$(uname -r)
2. Applied my changes to i2c-ocores and eeprom driver
3. sudo chmod a+x debian/scripts/*
4. sudo chmod a+x debian/scripts/misc/*
5. sudo fakeroot debian/rules clean
6. sudo fakeroot debian/rules editconfigs
a. Checked all the options for i2c driver
7. sudo fakeroot debian/rules binary-headers binary-generic skipabi=true skipmodule=true
8. Installed all the .deb packages created by the build.
安裝新內核後,我重新啓動機器,並插入i2c-ocores
和eeprom
司機和他們工作得很好。但是在四五次重啓後,我的這些驅動程序插入失敗。我正在使用modprobe
來插入模塊。
喜歡I2C-ocores,我得到了以下錯誤:
Aug 18 11:08:14 manik kernel: [ 214.831678] i2c_ocores: disagrees about version of symbol i2c_new_device
Aug 18 11:08:14 manik kernel: [ 214.831682] i2c_ocores: Unknown symbol i2c_new_device (err -22)
Aug 18 11:08:14 manik kernel: [ 214.831700] i2c_ocores: disagrees about version of symbol i2c_del_adapter
Aug 18 11:08:14 manik kernel: [ 214.831701] i2c_ocores: Unknown symbol i2c_del_adapter (err -22)
Aug 18 11:08:14 manik kernel: [ 214.831708] i2c_ocores: disagrees about version of symbol i2c_add_adapter
Aug 18 11:08:14 manik kernel: [ 214.831709] i2c_ocores: Unknown symbol i2c_add_adapter (err -22)
沒有任何人有任何想法,這裏發生了什麼?難道我做錯了什麼 ?
您不需要首先重新編譯整個內核。 – 0andriy
@AndyShevchenko - 我將如何在這個ubuntu安裝程序中單獨構建這些模塊? – Monku
@AndyShevchenko我不認爲這個問題與我構建模塊的方式有關,因爲我自己構建了整個內核。 – Monku