ts-7000
[Top] [All Lists]

Re: [ts-7000] erasing (and recreating) rootfs partition in on-board flas

To:
Subject: Re: [ts-7000] erasing (and recreating) rootfs partition in on-board flash
From: Michael Schmidt <>
Date: Thu, 26 Feb 2009 15:56:16 -0700
odonovan_dan wrote:
> Hi
> 
> I would like to completely erase the /dev/mtdblock/3 (rootfs)
> partition on a TS7400 with 32MB flash, so that I can reinstall a clean
> version of the ts-linux distro that comes pre-installed on it.
> 
> Can anyone suggest a suitable tool or technique to use for this?  I'm
> hoping for something more low-level that 'rm -rf' if possible, perhaps
> something that might scrub the OOB metadata produced by YAFFS also?


ftp://ftp.embeddedARM.com/ts-arm-sbc/ts-7200-linux/binaries/ts-utils/eraseall

This is the utility we use.  You should just need to specify which 
partition to erase.  (Don't remember off the top of my head though 
whether you need to specify the /dev/mtd* or /dev/mtdblock*, but I 
*think* it's the former).  It uses the mtd layer to erase all the blocks 
on the partition; this includes the OOB blocks.

You could also use mtderase, but it's a bit less verbose about what it's 
doing.


> Also, if I use some tool to completely erase the contents of
> /dev/mtdblock/3, would it then be sufficient to simply mount it as a
> YAFFS partition again to recreate the filesystem or is there an
> additional step that would be needed to "format" the partition?

YAFFS will detect the blocks are erased and will automatically do what 
it needs to in order to use the partition.

> Thanks,
> -Dan

  ______   Best Regards,
|__  __/                  Michael Schmidt
    ||                   Software Engineer
    ||echnologic Systems (EmbeddedARM.com)
    || (480)        16525 East Laser Drive
    |/ 837-5200   Fountain Hills, AZ 85268
        http://oz.embeddedarm.com/~michael


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU