LINUX BOOT PROCEDURE AND BOOTLOADER.pptVIP

  • 1
  • 0
  • 约5.83千字
  • 约 33页
  • 2017-05-17 发布于江苏
  • 举报
LINUX BOOT PROCEDURE AND BOOTLOADER.ppt

LINUX BOOT PROCEDURE AND BOOTLOADER LAB 6 OUTLINE Introduction Boot loader U-Boot Kernel INIT Lab Introduction An embedded linux system is typically consist of some software below : Boot loader Kernel Init program Your application BOOT LOADER Boot loader is a program that : Execute when board power on Detect hareware (if necessary) Initialize hardware Copy first program, might be : A simple program Bootloader stage N OS kernel Transfer control to it and go Boot loader is varied from different CPU, different board. BOOT LOADER Execute when board power on Any CPU will execute a program at specified address when power on Boot loader always be placed there BOOT LOADER Detect Hardware Search for attached device Filesystem on storage Mouse on USB …etc Use detected device if need Read configure file in filesystem BOOT LOADER Initialize Hardware Some hardware require default value Stop interrupt Set CPU clock Configure RAM or MMU Reset other processor such as DSP BOOT LOADER Copy First Program A simple program Non-OS program Bootloader stage N Boot loader might have multiple stages, multiple modes OS kernel Linux WinCE …etc BOOT LOADER Copy First Program Stage N Typical 2 stages in embedded system Stage 1 Write in assembly language to speed up Initialize hardware Copy Stage 2 to RAM Prepare stack for Stage 2 Jump to Stage 2 Stage 2 Write in C for more feature Initialize hardware Load kernel Send parameter to kernel Start kernel BOOT LOADER Copy First Program Multiple modes In order to provide more feature, boot loader might have multiple modes Mode 1: Boot program or kernel Copy program only Mode 2: Update utility Read filesystem or kernel via : RS232 : xmodem protocol (Very Slow) Network : FTP protocol Earse flash and overwrite it with new data BOOT LOADER Example BOOT LOADER Transfer Control to It and Go Copy next program to RAM Sometimes might execute on ROM Setup stack for it Set PC (or jump) to its start address U-Boot U-Boot : Universal Bootloader

文档评论(0)

1亿VIP精品文档

相关文档