Digi 9P 9360/9750 Updating a running system the easy way, Updating a running system manually

Page 51

A d v a n c e d T o p i c s

Updating a running system (the easy way)

On a running system, that is a system able to start the boot loader, U-Boot contains pre- defined macros that can update the on-module flash memory.

If the boot loader is corrupted, you have to first use a debugger to restore the boot loader which then can be used to restore the remaining images.

Power up (or reset) the target. After 2-4 seconds, the boot loader messages appear on the serial port. Hit any key to interrupt the auto-boot process. You can break into the U-Boot command line interface by pressing any key.

There are 3 main flash partitions: U-Boot, kernel image, and a root file system. To update a partition using a TFTP server, run one or more of the following macros from the U-Boot prompt:

#run update_uboot_tftp

#run update_kernel_tftp

#run update_rootfs_tftp

You can also copy the images onto a vfat formatted usb-stick, connect it to the target, and run one or more of these macros from the U-Boot prompt:

#run update_uboot_usb

#run update_kernel_usb

#run update_rootfs_usb

Updating a running system manually

Advanced users may want to have more control over the flash update process. In this case, use the steps below to update an image on a running system. It is presumed you are using the memory layout as described in Appendix A of this document.

.

For more information about the use of U-Boot commands, refer Appendix A or the related documentation in Appendix B.

5 1

Image 51
Contents LxNETES User’s Guide ConnectCore 9P 9360/9750 Page Page Page Contents Building the First Project Interfaces & Devices Appendix B Introduction OverviewCross-development environment Linux kernel sources Template projectExample applications Features General featuresWhat’s new in LxNETES 3.2? RTC Gpio This is a tip. It contains useful information about a topic Conventions used in this manualAcronyms and abbreviations Requirements System Requirements/PrerequisitesSystem requirements Optional but recommended components Disk spaceTftp daemon Applications & ServicesNFS server JTAG-Booster N E T E S U s e r ’ s G u i d e Connecting host PC with development board Getting StartedIntroduction Seyon MinicomSeyon Settings Connect powerTest Ethernet configuration # ifconfig eth0 Installing LxNETESGuided Installation Manual Installation N u a l Installation Building the Default Project Run configureBuilding the First Project Run make Run make installApplication Development Writing applicationsAdding your own applications Using C++ Included example applicationsDisplay Proc/cpuinfo contents Debugging applications Choose the right architecture for your target Web server Boa Included pre-built applicationsShell applications busybox Telnet daemon utelnetdEmbedded Qt Nano-X/microwindowsMem Useful applicationsWriting your own kernel modules What is a kernel module?Kernel Development Writing kernel modulesAdd the module to the build environment Building and loading of kernel modulesIncluded Kernel modules Minimal Advanced Topics Modifying the default projectD i f y i n g t h e d e Fault p r o j e c t Building a custom project Boot process BootIntroduction Bank # 0 00000000 32 MB ConnectCore 9P 9360/9750NAND-Flash Linux boot methodsUSB NOR FlashMMU Linux boot processV a n c e d T o p i c s Passing arguments to the kernel Automating the image downloadUpdating the Flash memory Updating a running system manually Updating a running system the easy wayDownload the new image file to RAM Erase the Flash partitionWrite the image to Flash Boot KernelRoot File System Updating a corrupted system using a debugger Root File System Types Set bootargs to be passed to the kernel Download the kernel to RAM via TftpLaunch the kernel from RAM JFFS2 Copy the kernel to RAM O t F i l e S y s t e m T y p e s N E T E S U s e r ’ s G u i d e Serial interface Interfaces & DevicesLCD interface USB host interfaceI2C interface SPI interfaceReal time clock RTC How to set the initial system date and timeCompact flash interface SD card interfacePCI interface CD contents Appendix aRelated documentation Docs Images Install.shReadme.txt RelNotes.txtHardware SetupConnectCore 9P 9360 CC9P9360 ConnectCore 9P 9750 CC9P9750Sdram memory layout Memory layoutsFlash memory layout ConnectCore 9P 9360 / ConnectCore 9PTextbase N E T E S U s e r ’ s G u i d e Appendix B Boot command referenceO o t c o m m a n d r e f e r e n c e Skipped CC9C CCXP270 UNC90 Example A9M24x0 User keys