The first embedded Linux development environment construction
1.1.2 Embedded Development SCM (Single Chip microcomputer) microcontroller, MCU (Micro Controller unit) microcontroller, SoC (System on a Chip): Systems-level chip, on one chip due to extensive use of predetermined Module IP (intellectual property) and the rapid development of integrated circuits;
1.2 Embedded Linux system based on ARM processor
1.2.1
1.2.2 Embedded Operating system: Embedded Linux: Open source free, easy to transplant, rich in resources, hardware support a wide range of shortcomings: real-time lack of vxwork:windows ce:uc/os-ii;
2.1 PC and embedded device cross development mode compiles bootloader on the host, then burns the veneer through JTAG, compiles the embedded Linux kernel on the host, burns the veneer through the bootloader or launches directly, and compiles various applications on the host. The single board starts the kernel and allows them through NFS after being validated and then burned into a single board;
2.1.2 Target Board requirements
2.2 Software Environment Construction
2.2.1 Host Linux operating system installation: Install Linux system via virtual machine;
2.2.2 Host Linux operating system network configuration VMware provides 4 types of network connectivity: Network Bridge Network (bridged), Network address Translation Network (NAT), only host network (HOST-ONLY), and customer network slightly. Installation configuration Ftp,ssh and NFS Services
2.2.4 U-boot,linux kernel, according to BusyBox created the file system these 3 parts constitute the basic, the smallest embedded system;
Chapter three basic knowledge of embedded programming
3.1 Cross-compilation Tool options Introduction: ARM-LINUX-GCC
3.2.1 Makefile Rules
3.2.2 Makefile Common function string substitution and parsing functions: subst, patsubst, strip, findstring, filter, filter-out, sort, filename function: dir, Notdir, Suffi X, basename, Addsuffix, Addprefix, wildcard, other functions: foreach, If-then, origin, Shell,
3.3.1 Basic assembly instruction relative Jump instruction: B, BL, data transfer instruction MOV, address read pseudo instruction LDR, memory access instruction: LDR, str, LDM, STM, add/Subtract instruction: Add,sub program Status Register access instructions: MSR, Mrs,
Chapter fourth Introduction to Tools and commands in Windows and Linux environments
Windows tools:
4.1.1 Code Reading Editing Tool: Source Insight, 4.1.2 File Transfer tool: CuteFTP 4.1.3 Remote Login tool: SECURECRT, support a variety of protocols such as SSH2, SSH1, Telnet, serial and so on. 4.1.4 TFTP Server Software: TFTPD32, a lightweight DHCP, TFTP, SNTP and syslog server software,
Linux Tools and commands:
4.2.1 Code reading Editing Tool: Kscope 4.2.2 Remote Login tool: C-kermit 4.2.3 Edit Command VI 4.2.4 Find command grep, finding command; 4.2.5 Online manual view command man:man [section] name
4.2.6 Other commands: Tar, diff, Patch
The Tar:tar command has the ability to package, unpack, compress, decompress, such as "Tar Czf dirA.tar.gz dira";
diff, Patch:diff commands are commonly used to compare files, directories, can also be used to make patch files;