Embedded Development notes-general Linux technology-Linux programming and kernel information. The following is a detailed description. Recently, I want to develop a wireless monitoring project from labview to LabWindowsCVI. The company organized a training program for embedded development. This training instructor is a professor of the Electronics Science and Technology University who has been engaged in embedded development for many years, the following are the notes made during the lesson. If there is anything wrong, please point out that I would like to thank you first.
Embedded linux versions include read hat linux, rtlinux, uclinux, and monta vista hard hat linux.
Standard linux source code package on the Internet: arch (support for various CPUs, memory management, boot, pci, etc.), block, erypto (encryption algorithm), drivers, fs, include, init, kernel, net, mm
Data Structure file_operations
All driver entries init_module ()
Categories of drivers: drivers, blocks, and networks
Device parts: file type, master device number, sub-device number, use mknod to create device parts
Character driver: The register_chrdev function registers the unregister_chrdev function and uninstalls it.
Block DRIVER: register_blkdev registers for unregister_blkdev to uninstall
Block_device_operations
Kernel tree www.kernel.org latest kernel 2.6
Decompress the kernel.
Configure kernel (cropping kernel) make menuconfig
Compile the kernel make zImage (bzImage). zImage is less than 1 M after compilation and bzImage is greater than 1 M after compilation.
Dependency detection make dep
Driver compilation make modules
Linux strictly follows the OSI Architecture
Gcc inline () Internal chain function
Linux supports the ram (virtual) File System. It virtualizes a file into a file system, which can be created manually or by using the busybox tool.
Sound collection
/Dev/dsp digital sample
/Dev/mixer
/Dev/audio Sound Device
If you need to set the clock to 1 MS, standard LINUX is impossible, because the standard LINUX clock is 10 MS, to implement the need to modify the standard LINUX, install the rtlinux patch
The Virtual File System must be bin, dev, etc, lib, and sbin.
The text editing Commands include:
Kate
Vi
Ismod... ko install driver
Makenod
Make. ext3 directory format convert to ext3 format
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.