The DENX U-Boot and Linux Guide (DULG) for m28evk Table of contents: • 1. Abstract • 2. Introduction ♦ 2.1. Copyright ♦ 2.2. Disclaimer ♦ 2.3. Availability ♦ 2.4. Credits ♦ 2.5. Translations ♦ 2.6. Feedback ♦ 2.7. Conventions • 3. Embedded Linux Development Kit ♦ 3.1. ELDK Availability ♦ 3.2. ELDK Getting Help ♦ 3.3. Supported Host Systems ♦ 3.4. Supported Target Architectures ♦ 3.5. Installation ◊ 3.5.1. Product Packaging ◊ 3.5.2. Downloading the ELDK ◊ 3.5.3. Initial Installation ◊ 3.5.4. Installation and Removal of Individual Packages ◊ 3.5.5. Removal of the Entire Installation ♦ 3.6. Working with ELDK ◊ 3.6.1. Switching Between Multiple Installations ♦ 3.7. Mounting Target Components via NFS ♦ 3.8. Rebuilding ELDK Components ◊ 3.8.1. ELDK Source Distribution ◊ 3.8.2. Rebuilding Target Packages ◊ 3.8.3. Rebuilding ELDT Packages ♦ 3.9. ELDK Packages ◊ 3.9.1. List of ELDT Packages ◊ 3.9.2. List of Target Packages ♦ 3.10. Rebuilding the ELDK from Scratch ◊ 3.10.1. ELDK Build Process Overview ◊ 3.10.2. Setting Up ELDK Build Environment ◊ 3.10.3. build.sh Usage ◊ 3.10.4. Format of the cpkgs.lst and tpkgs.lst Files • 4. System Setup ♦ 4.1. Serial Console Access ♦ 4.2. Configuring the "cu" command ♦ 4.3. Configuring the "kermit" command ♦ 4.4. Using the "minicom" program ♦ 4.5. Permission Denied Problems ♦ 4.6. Configuration of a TFTP Server ♦ 4.7. Configuration of a BOOTP / DHCP Server ♦ 4.8. Configuring a NFS Server • 5. Das U-Boot ♦ 5.1. Current Versions ♦ 5.2. Unpacking the Source Code ♦ 5.3. Configuration The DENX U-Boot and Linux Guide (DULG) for m28evk 1 ♦ 5.4. Installation ◊ 5.4.1. Before You Begin ⋅ 5.4.1.1. Installation Requirements ⋅ 5.4.1.2. Board Identification Data ◊ 5.4.2. Installation Using a BDM/JTAG Debugger ◊ 5.4.3. Installation using U-Boot ♦ 5.5. Tool Installation ♦ 5.6. Initialization ♦ 5.7. Initial Steps ♦ 5.8. The First Power-On ♦ 5.9. U-Boot Command Line Interface ◊ 5.9.1. Information Commands ⋅ 5.9.1.1. bdinfo - print Board Info structure ⋅ 5.9.1.2. coninfo - print console devices and informations ⋅ 5.9.1.3. flinfo - print FLASH memory information ⋅ 5.9.1.4. iminfo - print header information for application image ⋅ 5.9.1.5. help - print online help ◊ 5.9.2. Memory Commands ⋅ 5.9.2.1. base - print or set address offset ⋅ 5.9.2.2. crc32 - checksum calculation ⋅ 5.9.2.3. cmp - memory compare ⋅ 5.9.2.4. cp - memory copy ⋅ 5.9.2.5. md - memory display ⋅ 5.9.2.6. mm - memory modify (auto-incrementing) ⋅ 5.9.2.7. mtest - simple RAM test ⋅ 5.9.2.8. mw - memory write (fill) ⋅ 5.9.2.9. nm - memory modify (constant address) ⋅ 5.9.2.10. loop - infinite loop on address range ◊ 5.9.3. Flash Memory Commands ⋅ 5.9.3.1. cp - memory copy ⋅ 5.9.3.2. flinfo - print FLASH memory information ⋅ 5.9.3.3. erase - erase FLASH memory ⋅ 5.9.3.4. protect - enable or disable FLASH write protection ⋅ 5.9.3.5. mtdparts - define a Linux compatible MTD partition scheme ⋅ 5.9.3.6. UBI Usage in U-Boot ◊ 5.9.4. Execution Control Commands ⋅ 5.9.4.1. source - run script from memory ⋅ 5.9.4.2. bootm - boot application image from memory ⋅ 5.9.4.3. go - start application at address 'addr' ◊ 5.9.5. Download Commands ⋅ 5.9.5.1. bootp - boot image via network using BOOTP/TFTP protocol ⋅ 5.9.5.2. dhcp - invoke DHCP client to obtain IP/boot params ⋅ 5.9.5.3. loadb - load binary file over serial line (kermit mode) ⋅ 5.9.5.4. loads - load S-Record file over serial line ⋅ 5.9.5.5. tftpboot- boot image via network using TFTP protocol ◊ 5.9.6. Environment Variables Commands ⋅ 5.9.6.1. printenv- print environment variables ⋅ 5.9.6.2. saveenv - save environment variables to persistent storage ⋅ 5.9.6.3. setenv - set environment variables ⋅ 5.9.6.4. run - run commands in an environment variable ⋅ 5.9.6.5. bootd - boot default, i.e., run 'bootcmd' ◊ 5.9.7. Flattened Device Tree support ⋅ 5.9.7.1. fdt addr - select FDT to work on ⋅ 5.9.7.2. fdt list - print one level The DENX U-Boot and Linux Guide (DULG) for m28evk 2 ⋅ 5.9.7.3. fdt print - recursive print ⋅ 5.9.7.4. fdt mknode - create new nodes ⋅ 5.9.7.5. fdt set - set node properties ⋅ 5.9.7.6. fdt rm - remove nodes or properties ⋅ 5.9.7.7. fdt move - move FDT blob to new address ⋅ 5.9.7.8. fdt chosen - fixup dynamic info ◊ 5.9.8. Special Commands ⋅ 5.9.8.1. i2c - I2C sub-system ◊ 5.9.9. Storage devices ⋅ 5.9.9.1. MMC devices ⋅ 5.9.9.2. NAND devices • 5.9.9.2.1. nand bad - show bad block information • 5.9.9.2.2. nand erase - erase region • 5.9.9.2.3. nand write - write to NAND device • 5.9.9.2.4. nand read - read from NAND device ◊ 5.9.10. Miscellaneous Commands ⋅ 5.9.10.1. date - get/set/reset date & time ⋅ 5.9.10.2. echo - echo args to console ⋅ 5.9.10.3. reset - Perform RESET of the CPU ⋅ 5.9.10.4. sleep - delay execution for some time ⋅ 5.9.10.5. version - print monitor version ⋅ 5.9.10.6. ? - alias for 'help' ♦ 5.10. U-Boot Environment Variables ♦ 5.11. U-Boot Scripting Capabilities ♦ 5.12. U-Boot Standalone Applications ◊ 5.12.1. "Hello World" Demo ◊ 5.12.2. Timer Demo ♦ 5.13. U-Boot Image Formats ♦ 5.14. U-Boot Advanced Features ◊ 5.14.1. Boot Count Limit • 6. Embedded Linux Configuration ♦ 6.1. Download and Unpack the Linux Kernel Sources ♦ 6.2. Kernel Configuration and Compilation ♦ 6.3. Installation • 7. Booting Embedded Linux ♦ 7.1. Introduction ♦ 7.2. Flattened Device Tree Blob ♦ 7.3. Passing Kernel Arguments ♦ 7.4. Boot Arguments Unleashed ♦ 7.5. Networked Operation with Root Filesystem over NFS ◊ 7.5.1. Bootlog of tftp'd Linux kernel with Root Filesystem over NFS ♦ 7.6. Boot from NAND Flash Memory ♦ 7.7. Standalone Operation with Ramdisk Image • 8. Building and Using Modules • 9. Advanced Topics ♦ 9.1. Flash Filesystems ◊ 9.1.1. Memory Technology Devices ◊ 9.1.2. Journalling Flash File System ◊ 9.1.3. Second Version of JFFS ◊ 9.1.4. Compressed ROM Filesystem ◊ 9.1.5. UBI and UBIFS file systems ⋅ 9.1.5.1. Create Device Files ⋅ 9.1.5.2. Using UBI on NAND Flash: ⋅ 9.1.5.3. Creating UBIFS File System Images The DENX U-Boot and Linux Guide (DULG) for m28evk 3 • 9.1.5.3.1. Determining the Parameters of the used Flash Types: • 9.1.5.3.2. Create some Test File System Hierarchy • 9.1.5.3.3. Installing UBIFS images into existing UBI Volume: • 9.1.5.3.4. Installing UBI images (if no UBI Volumes exist): ♦ 9.2. The TMPFS Virtual Memory Filesystem ◊ 9.2.1. Mount Parameters ◊ 9.2.2. Kernel Support for tmpfs ◊ 9.2.3. Usage of tmpfs in Embedded Systems ♦ 9.3. Using MultiMediaCards in Linux ♦ 9.4. Splash Screen Support in Linux ♦ 9.5. Root File System: Design and Building ◊ 9.5.1. Root File System on a Ramdisk ◊ 9.5.2. Root File System on a JFFS2 File System ◊ 9.5.3. Root File System on a cramfs File System ◊ 9.5.4. Root File System on a Read-Only ext2 File System ◊ 9.5.5. Root File System on a Flash Card ◊ 9.5.6. Root File System in a Read-Only File in a FAT File System ♦ 9.6. Root File System Selection ♦ 9.7. Overlay File Systems ♦ 9.8. The Persistent RAM File system (PRAMFS) ◊ 9.8.1. Mount Parameters ◊ 9.8.2. Example • 10. Debugging ♦ 10.1. Debugging of U-Boot ◊ 10.1.1. Debugging of U-Boot Before Relocation ◊ 10.1.2. Debugging of U-Boot After Relocation ♦ 10.2. Linux Kernel Debugging ◊ 10.2.1. Linux Kernel and Statically Linked Device Drivers ◊ 10.2.2. Dynamically Loaded Device Drivers (Modules) ◊ 10.2.3. GDB Macros to Simplify Module Loading ♦ 10.3. GDB Startup File and Utility Scripts ♦ 10.4. Tips and Tricks ♦ 10.5. Application Debugging ◊ 10.5.1. Local Debugging ◊ 10.5.2. Remote Debugging ♦ 10.6. Debugging with Graphical User Interfaces • 11. Simple Embedded Linux Framework • 12. Books, Mailing Lists, Links, etc. ♦ 12.1. Application Notes ♦ 12.2. Further Reading ◊ 12.2.1. Upstreaming ◊ 12.2.2. License Issues ◊ 12.2.3. Linux kernel ◊ 12.2.4. General Linux / Unix programming ◊ 12.2.5. Network Programming ◊ 12.2.6. C++ programming ◊ 12.2.7. Java programming ◊ 12.2.8. Internationalization And Character Sets ◊ 12.2.9. ARM Architecture Programming ◊ 12.2.10. Power Architecture® Programming ◊ 12.2.11. Embedded Topics ♦ 12.3. Mailing Lists ♦ 12.4. Links ♦ 12.5. Tools The DENX U-Boot and Linux Guide (DULG) for m28evk 4 • 13. Appendix ♦ 13.1. Flat Device Tree ♦ 13.2. BDI2000 Configuration file • 14. FAQ - Frequently Asked Questions ♦ 14.1. ELDK ◊ 14.1.1. ELDK Installation under FreeBSD ◊ 14.1.2. ELDK Installation Hangs ◊ 14.1.3. .gvfs: Permission Denied ◊ 14.1.4. Installation on Local Harddisk ◊ 14.1.5. System Include Files Missing ◊ 14.1.6. patch: command not found ◊ 14.1.7. ELDK Include Files Missing ◊ 14.1.8. Using the ELDK on a 64 bit platform ◊ 14.1.9.
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages210 Page
-
File Size-