12.07.2015 Views

VOICE OF THE ENGINEER - ElectronicsAndBooks

VOICE OF THE ENGINEER - ElectronicsAndBooks

VOICE OF THE ENGINEER - ElectronicsAndBooks

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

BY MOHIT ARORA AND VARUN JAIN • FREESCALE SEMICONDUCTORBOOT-UP, <strong>THE</strong> SEQUENCE<strong>OF</strong> STEPS THAT A SYSTEMPERFORMS BETWEEN WHEN YOUSWITCH ON POWER AND LOADAPPLICATIONS, IS SIMPLEIN <strong>THE</strong>ORY BUT <strong>OF</strong>TEN COMPLEXIN REALITY. <strong>THE</strong> MAIN JOB<strong>OF</strong> A BOOT LOADER IS TO LOAD<strong>THE</strong> OPERATING SYSTEM,BUT S<strong>OF</strong>TWARE AND HARDWARE<strong>ENGINEER</strong>S VIEW THIS PROCESSIN DIFFERENT WAYS.UNDERSTANDINGEMBEDDED-SYSTEM-BOOT TECHNIQUESTo load a program into memory, you mustfirst load a program into memory. The bootupprocess, often a complex multistep sequenceinvolving numerous substeps, solvesthis problem. Any boot-up process, includingbooting up Windows, Linux, or an embeddedRTOS (real-time operating system),begins with the application of power to thesystem and the subsequent removal of systemreset. During POR (power-on-reset) assertion, you may have toreconfigure hardware peripherals if operational values differ fromthose of default settings. Embedded microcontrollers, for example,often offer various hardware-reset-configuration schemes.Over the last several decades, bootingup has evolved from a simple DOSbasedstep to more complicated multiple-operating-systemchoices or evenperipheral-based boot-up techniques.A USB (Universal Serial Bus) interface,for example, allows you to boot upa disk image from an external storagedevice; this approach is increasinglypopular in industrial- and embeddedsystemapplications because it providesabundant flexibility. In the case of softwarecorruption, for example, in whicha system requires the reloading of newfirmware, the USB technique allowsa service engineer to simply copy newsoftware onto a flash drive and bootfrom it. The service department thereforesaves the thousands of dollars inexpenses that it would otherwise incurin transporting the equipment to themanufacturer for repair.To enable system-boot flexibilityboth from USB, PCIe (PeripheralComponent Interconnect Express),and SDHC (secure-digital-high-capacity)interfaces and from conventionalmemory devices requires in-depth hardwareand software capabilities. Opensourcefirmware—specifically, the U-Boot (Universal Boot Loader) utility,which finds wide use in embedded-systemplatforms—may also be of value.The Linux-based boot loader can automaticallyboot up the operating system;alternatively, it allows a user to manuallyrun explicit commands to start theoperating system, and it supports bootingfrom a variety of interfaces (seesidebar “The U-Boot”).WINDOWS XP SYSTEM BOOTA simple x86 boot sequence is fairlyself-explanatory (Figure 1). WindowsXP follows comparable steps, albeitPOWER ICON: ZEFFSS1/ISTOCKPHOTO.COM; BUTTON AND BACKGROUND: DSGPRO/ISTOCKPHOTO.COM18 EDN | FEBRUARY 3, 2011

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!