[Embedded Linux] Embedding Linux learning method suggestion [transfer]

xiaoxiao2021-03-23  210

The first point: experiment is focused on reading book (multi-code, less book) must first build an X86 experimental environment. Use the old computer (on the weekend computer city to sell inventory, new), build a set of experimental environments. Host host: a PC (can run Redhat Linux, see if the file can be, with the network card and floppy drive). Target Target: An old PC motherboard with a network card and a floppy drive, power supply. Attachment: The cross-network cable, the cross serial line is enough, and it will not exceed 3,000 yuan (already already satisfied). The software is all downloaded by the computer city / website. No matter what ARM PPC MIPS, look at the document later. Second focus: GNU C compiles to install RedHat Linux on the PC includes development tools. Familiar with Linux configuration commands. Practice Linux's C language programming, and multiple program compilation project production. If you are bored, you will compile the C language textbook, compile for more than a dozen, familiar with the GNU compiler. Www.gnu.org includes GNU Toolkit, including GCC Make LD Objdump Ar: RealTime Linux kernel programming / loaded to the target board. 1. Download RT-Linux, or uclinux or what non-Redhat's Linux source code must be included, compile engineering makefile, and for x86 pc. 2. Modify and configure programs, change RTLinux's standard console port to serial port, not VGA and keyboard. 3. In the redhat linux environment, compile this Embedded Linux kernel. Use mkboot to copy the compiled kernel execution file to copy the function of the floppy drive area in this program (or by the tool.) 4. Boot in the target PC motherboard with this floppy disk. Configure the PC motherboard target machine on the serial terminal of the PC host. The effect is the same as Redhat Linux Terminal Console. In the future, it will become more difficult, insist on. The fourth key compiled running network card driver download compiled your network card drive source running train and target network communication. Don't move too much, ping is the pass. The fifth focus is downloaded with TFTP to perform files from the PC host to the target machine. Sixth Key GNU GDB Remote Online Debug (Net Admission) Seventh Heart Real Time Key Key Case / Modifying Articles / Book Analytical Debug / Destroy the Source of the Core. Mainly scheduling / message / storage / file / process / thread / mutual exclusion, etc., understanding the kernel function is. The eighth key TCP / IP learning downloads a simple web server (http server) learning and understanding, and compiling load operations. Wiping the PC motherboard target machine as a website server, then accessing this web server in the PC host. Interested, put your photo into the target machine's HTML page. Www.zebra.org Ninth Key NIC Driver Analysis Learn about the PCI bus principle, try to write a network card driver, filter the processing of the Ethernet message. Track the special packets. Tenth key USB and flash file system exercises. (You can skip) You can analyze the modified USB and FLASH file system source code. Be sure to analyze the source code, check the model of Flash. The eleventh key router experiment. Analyze the source code from Zebra and buy a network card. Try to analyze the protocols such as Nat RIP, turn your PC board target machine, become a simple router. The experiment later needs to be based on the industry, for example, Mini-GUI (graphic programming), or DVR (hard disk video), or IP VEDIO WebTV server.

转载请注明原文地址:https://www.9cbs.com/read-130440.html

New Post(0)