【Linux學習】Ubuntu下核心編譯(一)

來源:互聯網
上載者:User

標籤:配置   cti   div   學習   sudo   解決辦法   linux2.6   size   命令   

(1)當要運行核心配置時,輸入make menuconfig時出現錯誤


遇到這個問題,主要是以為沒有ncurses庫,而make menconfig 須要這個庫。因此須要安裝ncurses或者ncurses-devel就可以。輸入命令:sudo  apt-get  install ncurses或者sudo apt-get  install ncurses-devel。

可是可能還會出現還有一種問題,

出現這樣的問題的解決辦法是:如今沒有可用的軟體包 ncurses , 可是它被其它的軟體包引用了。這可能意味著這個缺失的軟體包可能已被廢棄,或者僅僅能在其它公布源中找到
能夠使用命令:$sudo apt-get install libncurses*,進行安裝。



錯誤2:
drivers/input/touchscreen/eeti_ts.c: In function ‘eeti_ts_irq_active‘:

drivers/input/touchscreen/eeti_ts.c:65: error: implicit declaration of function ‘irq_to_gpio‘
make[3]: *** [drivers/input/touchscreen/eeti_ts.o] 錯誤 1
make[2]: *** [drivers/input/touchscreen] 錯誤 2
make[1]: *** [drivers/input] 錯誤 2
make: *** [drivers] 錯誤 2

解決的方法:
先編譯看下核心有沒有問題。執行make命令出現以下的錯誤:
問題:drivers/input/touchscreen/eeti_ts.c:65: 錯誤: 隱式聲明函數‘irq_to_gpio’解決:又一次make menuconfig,將driver中的輸入裝置->觸摸裝置中,將EETI選項不選,儲存退出後,又一次make

(3)移植linux2.6.38核心到TQ2440。移植步驟見網址:http://blog.sina.com.cn/s/blog_77aea4c60100qs9o.html
在第9條中自己改為:/drivers/tty/serial/
依照第10條中./patch-kernel.sh c m /usr/src/linux-2.6.38(自己核心所在檔案夾)後顯示“沒有那個檔案和檔案夾”
解決:看到yaffs2目錄下沒有patch-kernel.sh,僅僅有patch-ker.sh。然後改為:./patch-ker.sh c m /usr/src/linux-2.6.38然後出現:
Updating /usr/src/linux-2.6.38/fs/Kconfig
Updating /usr/src/linux-2.6.38/fs/Makefile
打補丁完畢

【Linux學習】Ubuntu下核心編譯(一)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.