[Linux learning] Kernel Compilation in Ubuntu (1)

Source: Internet
Author: User
(1) an error occurs when you input makemenuconfig when you want to execute the kernel configuration. this problem occurs mainly because there is no ncurses library, while m

(1) an error occurs when you input make menuconfig to execute kernel configuration.


This problem occurs mainly because there is no ncurses library, and make menconfig requires this library. Therefore, you need to install ncurses or ncurses-devel. Run sudo apt-get install ncurses or sudo apt-get install ncurses-devel.

(2) error
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] Error 1
Make [2]: *** [drivers/input/touchscreen] error 2
Make [1]: *** [drivers/input] error 2
Make: *** [drivers] error 2

Solution:
Compile the file to check whether there is any problem in the kernel. the following error occurs when running the make command:
Problem: drivers/input/touchscreen/eeti_ts.c: 65: Error: implicit declaration function 'irq _ to_gpio 'solution: re-make menuconfig, set the input device in the driver to> touch the device, if you do not select the EETI option, save and exit, and re-make

(3) port the Linux kernel 2.6.38 to TQ2440. Port steps see URL: http://blog.sina.com.cn/s/blog_77aea4c60100qs9o.html
In the first example, change it to/drivers/tty/serial/
Following the 10th./patch-kernel.sh c m/usr/src/linux-2.6.38 (directory where your kernel is located), "no file and directory" is displayed"
Solution: seeing that there is no patch-kernel.sh under the yaffs2 folder, only the patch-ker.sh, then changed to:./patch-ker.sh c m/usr/src/linux-2.6.38 and then appeared:
Updating/usr/src/linux-2.6.38/fs/Kconfig
Updating/usr/src/linux-2.6.38/fs/Makefile
Patch completed

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.