日期:2014-05-16  浏览次数:20688 次

嵌入式linux Kernel 在线升级参考资料

author:DriverMonkey

phone:13410905075

qq:196568501

mail:bookworepeng@hotmail.com

承接:嵌入式外包项目(13410905075)

Writing Kernel Image to NAND Flash

Translate this page to   

Contents

[hide]
  • 1Writing Kernel Image to NAND Flash
  • 2Prerequisites
  • 3Downloading the Kernel Image to the DVEVM
  • 4Preparing to Write the Kernel Image
  • 5Writing the Kernel Image into NAND Flash
  • 6Updating a kernel from a linux prompt
  • 7Setting u-boot to Boot the Kernel from NAND Flash

Writing Kernel Image to NAND Flash

Often times it is useful to write the image of the kernel for your device into a permanent storage media such as NAND flash. This eliminates the need to download the kernel image each time the system is booted. Below you will find steps on how to write a previously compiled kernel image into NAND flash on the following DaVinci EVMs(DVEVM).

  • DM355
  • DM644x
  • DM6467

Note: This article assumes that you already have U-Boot running on the target. If not, e.g. your board is completely empty, see theRBL, UBL and host program article for instructions on how to get U-Boot bootloader on your board first. After you did this and have U-Boot running on your board, you can go on with steps below.

Alternatively, you can program your NAND flash with JTAG. This is useful for post mortem / rejuvenation of bricked NAND images, especially if you can't change the boot device select pins easily.

Prerequisites

For this example you will need the following:

  1. A previously compiled kernel image (uImage)
  2. A tftp server for downloading the image
  3. A terminal application for communicating with the DVEVM. i.e. minicom or hyperterminal

Downloading the Kernel Image to the DVEVM

This section assumes that you have a kernel image (uImage) already compiled. For information on compiling the Linux kernel for the DVEVM please see the Getting Started Guide (GSG) for your product (section 4.5) orcompiling DaVinci open source git kernel. The commands specified below wi