> 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.I'm using an SD card.
> 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 ?
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
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
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
I'm no expert on using NAND, it's always been SD cards on Gumstix
for me. Open to suggestions.
http://gumstix.8.x6.nabble.com/flashing-u-boot-to-overo-from-linux-tp4968782p4968963.htmlIf you reply to this email, your message will be added to the discussion below: