Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I need to get a minimal kernel runing on an embedded hardware. the machine cpu is NXP i.MX7, it should support,
I2C
USB device for micro SD Card MSD mode
micro SD card, FAT file system
4.7 LCD with LCDIF
power management
video camera with MIPI DSI
matrix keypad
GPIO
ADC
PWM
The system is set up to run qt program after power up. So I want to get a clean and minimal kernel configuration, only includes above sutffs, no network, no wifi, no bluetooth, etc, just keep the kernel as small as possible.
Can anyone having the same experience how to make it.
1) Download your kernel.
2) Unpack it in your home directory.
3) Go into the linux-x.y.z directory.
4) Run make defconfig to get a starting file for your configuration.
5) Run make menuconfig
6) Browse the menus and remove what you don't want. A lot of the stuff you mention will be in the drivers section. Use the very good built-in help to determine what is safe to remove.
7) Run make.
8) As root, run make modules_install and copy the bzImage in the arch/your_architecture tree into /boot.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.