標籤:配置 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下核心編譯(一)