1. Install the virtual machine and Ubuntu system provided by the CD Detailed explanation of Linux device driver development (2nd edition)Download redhat linux, the Linux kernel is in the /home/baohua/develop/linux directory.
When compiling the kernelLinux device driver development detailed explanation (2nd edition), you need to configure the kernel, you can use one of the following commands:
#makeconfig (the most traditional text-based configuration interface, not recommended)
#makemenuconfig (configuration interface based on text menu)
#makexconfig (requires QT to be installed)
#makegconfig (requires GTK to be installed)
Run makeARCH=armmenuconfig in the /home/baohua/develop/linux directory to configure the kernel.
The way to compile the kernel and modules is:
makeARCH=armzImage
makeARCH=armmodules
In the above command, if ARCH=arm has been imported as an environment variable, there is no need to write this option after the make command. After executing the above command, you will get the uncompressed kernel image vmlinux and kernel symbol table file System.map in the root directory of the source code, and you will get the compressed kernel image zImage in the arch/arm/boot/ directory. Get the selected kernel module in the corresponding directory.
tips:
1. The most well-known bootloader in the field of embedded Linux is U-Boot, and its code library is located in
The above is the detailed content of The most traditional text-based Linux configuration interface, makemenuconfig. For more information, please follow other related articles on the PHP Chinese website!