Hello Scott, I too think the requirement for the nandecc mode changed sometime last year. 
The guide (http://gumstix.org/how-to/70-writing-images-to-flash.html) has been updated to reflect this change. Thank you for pointing it out!


On Thu, Mar 20, 2014 at 3:24 AM, Scott Ellis [via Gumstix] <[hidden email]> wrote:
> I also had to modify your script to add nandecc sw after loading uImage.

What version of u-boot? I'm was using 2014.01 and need nandecc hw for
u-boot and uImage. It might be a recent change.

> You have said that you were not using this method to flash the gumstix.
> You run on sd card or you are using the old kermit way ?

I'm using an SD card.

Here are the steps I'm using

I compile the script I posted before with mkimage

mkimage -A arm -O linux -T script -C none -a 0 -e 0 -d nand-flash.script boot.scr

I put MLO, u-boot.img, uImage and boot.scr on the first (FAT) partition of
an SD card.

I put a minimal linux root filesystem on the second (EXT3) partition of the
SD card.

I also put the ubi file of the final root filesystem I want to copy to NAND
onto the root filesystem on the SD card. Some card copying scripts do all
the work.

I boot the SD card, it runs the boot.scr which handles writing the first
4 partitions of NAND and then boots the kernel into the minimal root

From the linux command line I then run

ubiformat -y /dev/mtd4 -f <rootfs.ubi>

That step could be automated with a startup script. TODO.

I'm using ubiformat for the rootfs based on this


"Note that ubiformat is still the preferred flashing method if the
 image is not being flashed for the first time, since it preserves
 existing erase counters (while using nandwrite or its equivalent
 does not)."

I'm no expert on using NAND, it's always been SD cards on Gumstix
for me. Open to suggestions.

If you reply to this email, your message will be added to the discussion below:
To start a new topic under Gumstix, email [hidden email]
To unsubscribe from Gumstix, click here.

View this message in context: Re: flashing u-boot to overo from linux
Sent from the Gumstix mailing list archive at Nabble.com.