• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Embedded Software » Android » Android forum » Burning NAND on am3517evm
Share
Android
  • Forum
Options
  • Subscribe via RSS

Forums

Burning NAND on am3517evm

This question is not answered
Ron Olson
Posted by Ron Olson
on Apr 30 2012 09:27 AM
Intellectual660 points

We're developing an android tablet, derived from the am3517evm eval board.  Our tablet uses NAND to store the firmware.  We burn the board's NAND in our development lab successfully, but now we're exploring approaches for burning the NAND in the factory as well as by a customer when installing updates.  So, we're looking for ideas on the best approach for this.  We realize many others have the same need so have been down this path, but we haven't yet seen a good description of the options. 

During our development phase, we started by using the TI flash tool, and later used u-boot and the Linux, like this:

  • To burn u-boot and the kernel, we boot into u-boot, and use the u-boot 'nand erase' and 'nand write' commands for the burns.
  • To burn the root file system, we boot into Linux,  mount the NAND file system partition as yaffs2, and then untar our file system into that partition.  This takes over an hour.

This approach gets us by for development, but it's too cumbersome and slow for use by either our factory, or for later updates by our customers.  So, we're now looking for alternatives that are simpler and faster.  I'm aware that Android has a recovery tool, and we're looking at that, even though it's not directly supported by the TI distribution.  For a first cut, we're also looking for a simpler (and admittedly less flexible) approach to get us going, presumably leveraging existing utilities.

Our thinking is to program the NAND by running scripts from Linux, booted from an SD card.  We would store our u-boot, kernel, and rootfs images somewhere on the SD card, along with the scripts.  The scripts would call up utilities to perform the NAND erase and burn procedure.

My questions are:

  • Is using a Linux boot with scripts a good approach for burning the NAND?
  • How would the scripts go about their business?  Are there existing utilities, like perhaps something in MTD Utilities, that could accomplish the erase and burns?  I'm assuming the flash_eraseall tool works for the erase part of this, but am not sure about the burn part.
  • Or, do we need to write some C code and call kernel NAND routines that already exist.
  • For the root file system, I'm hoping we would do a one-time burn onto NAND to produce a 'golden image', using the mount and untar procedure we're currently using.  Then, we would copy that partition to a simple file of unformatted bytes, which could then be quickly burned to other boards using a byte level burn, rather than the slow yaffs2 level burn.
  • What other sources for information, other than this forum, might provide other ideas?


Thanks,
Ron

Report Abuse
  • Reply
You have posted to a forum that requires a moderator to approve posts before they are publicly available.
All Replies
  • Satish Patel
    Posted by Satish Patel
    on May 07 2012 23:47 PM
    Expert4350 points

    Hi Ron,

    Apporch which might help you..

    - one can update NAND images ( x-loader,u-boot,kernel,file system etc..) using fastboot commands from host.

    http://processors.wiki.ti.com/index.php/TI-Android-GingerBread-2.3-DevKit-1.0_UserGuide#Fastboot_commands

    - Like found in phone, one can write a code into u-boot to detect certain combination of keypress, which will put device in fastboot mode. Then by connecting a cable to host pc, one can dowload required images to device.

    BR,

    satish

    Kindly click the verify answer button on this post if it answer your question.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use