"Linux learning" Ubuntu under Kernel compilation (i)

Source: Internet
Author: User

(1) An error occurred while entering make Menuconfig when running the kernel configuration


encountering this problem, the main thought is that there is no ncurses library, and make menconfig need this library . So you need to install ncurses or ncurses-devel. Input command: sudo apt-get install ncurses or sudo apt-get install ncurses-devel.

But there may still be a problem,

The solution to this problem is that there is no package ncurses available today, but it is referenced by other packages. This may mean that the missing package may have been discarded, or could only be found in other sources of disclosure
The ability to use the command: $sudo apt-get install libncurses* for installation.



Error 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] Error 1
MAKE[2]: * * [Drivers/input/touchscreen] Error 2
MAKE[1]: * * [Drivers/input] Error 2
Make: * * [Drivers] Error 2

The workaround:
Compile first to see if there is a problem with the kernel. The following error occurred while executing the make command:
Issue: drivers/input/touchscreen/eeti_ts.c:65: Error: Implicitly declaring function ' Irq_to_gpio ' resolution: Once again make menuconfig, connect the input devices in the driver to the touch device, Eeti option is not selected, save after exiting, make again

(3) Transplant linux2.6.38 kernel to TQ2440. Porting steps See URL: http://blog.sina.com.cn/s/blog_77aea4c60100qs9o.html
In the 9th article, you should read:/drivers/tty/serial/
According to 10th./patch-kernel.sh C m/usr/src/linux-2.6.38 (the folder in which you own the kernel) displays "No Files and folders"
Solution: See YAFFS2 directory There is no patch-kernel.sh, just patch-ker.sh. Then instead:./patch-ker.sh c m/usr/src/linux-2.6.38 then appears:
Updating/usr/src/linux-2.6.38/fs/kconfig
Updating/usr/src/linux-2.6.38/fs/makefile
Patch Complete

"Linux learning" Ubuntu under Kernel compilation (i)

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.