Many people are learning to enrich themselves. Recently, all of their friends are learning the Linux operating system and have encountered many problems with the Linux operating system, for example, what should I do if I want to load a flash Driver I wrote into the project and select the driver when I configure the kernel through menuconfig? It can be divided into three steps:
1. Add the flashtest. c file you wrote to the/driver/mtd/maps/directory.
2. Modify the kconfig document in the/driver/mtd/maps directory:
ConfigMTD_flashtest
Tristate "ap71flash"
Third, modify the makefile document in this directory.
Add the following content: obj-$ (CONFIG_MTD_flashtest) + = flashtest. o. When you run makemenucofnig, you will find the ap71flash option, if you have selected this option. This option is saved in the. config document. When you compile the kernel, it will read. config file. If the ap71flash option is yes, when the makefile under/driver/mtd/maps/is called, The flashtest. o is added to the kernel. To achieve your purpose.
After the driver module is loaded, create a node in the dev directory. The command is as follows:
Mknodint_ctlc980
Int_ctl indicates the device name, C indicates the character device, 98 indicates the master device number, and 0 indicates the slave device number.
Cat/proc/interrupts
Cat/proc/devices
In this way, the flash Driver is loaded into the project in the Linux operating system.
- Linux UNIX system learning experience
- Simple Theory Linux ReiserFS system analysis features and results
- Introduction to Linux software installation
- Hands-on manual: Restore Linux passwords
- Learn how to check whether the email system is successfully installed in Linux