Skip to main content

New U-Boot flash script

Posted in

UPDATE 2: I have the latest FlashStock and uflasher available on my download page. Always check there for any updates.

UPDATE: Russell Davis has taken the uflasher script and made a purty/easy-to-use/all-in-one package. Check out his Flashstock v0.1

Now you can flash a stock Zipit directly to u-boot with this new script. It includes 4 different scripts: flashing from stock, flashing from 2.6.29 kernel, flashing from u-booted zipit, and a restore.

To flash a stock Zipit to u-boot you'll need the ez2s or iz2s userland. Format your sd card with a fat partition, extract ez2s/iz2s to it, then extract the flash script to it. Boot the Zipit to ez2s/iz2s, cd ../uflasher, then run ./flashstock.sh. When flashing from stock, a backup is automatically created in a sub-folder with the date and time (which may be incorrect but is created regardless). KEEP THIS BACKUP IF YOU EVER WANT TO RESTORE YOUR ZIPIT TO FACTORY SETTINGS!!!!

To flash a Zipit that is already running the 2.6.29 kernel you need your favorite userland and the flash script. Download and extract the script directly to your Zipit then run ./flash29.sh. You will be prompted if you want to make a backup or not.

To flash a Zipit that is already u-booted you need your favorite userland and the flash script. Download and extract the script directly to your Zipit then run ./flashu.sh. You will be prompted if you want to make a backup or not.

The last script is for restoring a Zipit if you have a backup that was created by the flash script. This requires the mtdblock backup files and the restore.def file which contains backup filenames, flash offsets and md5sums. To use the restore script (from any u-booted zipit) type ./restore.sh /path/to/backupfolder

http://www.mozzwald.com/zipit/z2uflasher_02052011.zip

Fixed a Zipit with a bad 29 flash

I've had a Zipit lying around after I tried to flash it with a 29 kernel over a year ago. I tried to save it with a serial flash but I yanked the serial transmit pad right off the board as part of the continued ruination of the poor thing.

I downloaded your z2uflasher and ran it on the crippled unit and alas it's now a full functioning member of my Zipit trio!

This is good news maybe for someone else who may have had a Zipit flash go bad.

Thanks Mozzwald and the others for all your hard work.

Tinner

Version?

Any info about uboot version/changes? Is this an update over previous uboot flashers, or more about creating a unified flasher?

u-boot updates

The u-boot version included is the same one from last September so this is just a flash script update. Theres someone working on better keyboard support and rotated screen for u-boot, but it's still being tested. I will do a release when it's ready. also checkout here for more info.

restore to stock, with no backup

Hello

I flashed a new linux kerenl a long time ago, and I don't think I have a backup...

Would somebody be so kind as to give me a tarball of the backup files?

may these files be used on any other z2?

thanks

Eric

Backup

Did you only flash the 2.6.29 kernel or u-boot? Any particular reason why you want to return to a stock zipit?

i would also like to know

i would also like to know that since i also forgot to keep the files and may want to restore it later.

is it possible

is it possible to flash aliosa kernel from u boot

Aliosa kernel

aliosa's kernel is the 2.6.29 kernel which only works with the original blob bootloader.

so

so i would have to revert to stock to reflash to 2.6.29

if so can i use the backup files from another zipit to revert to stock?

.29 restore

The easiest way to go back to a .29 kernel would be to restore to stock, then reflash the .29 kernel. You should be able to use the backup from any Zipit as a restore.

do you have a backup

since i flashed it long ago and ignored it for months i lost the back ups

is there a place where i could get the files?

Backups

I can only provide the BLOB Bootloader (mtdblock0) and the Linux Kernel (mtdblock1) as they are GPL. The only way to get mtdblock2, which contains the stock Zipit software, is from another Zipit of your own. Blob and Kernel patches here

Download stockbootldr+kernel.tar.bz2 which contains the stock blob bootloader, stock kernel and restore definition file. In restore.def, I left the last line for mtdblock2. If you have your own mtdblock2 backup, put it's md5sum in place of . If you do not have your own backup, remove the line for mtdblock2 and you can flash just blob and the kernel.

Be warned that flashing the stock bootloader and kernel without flashing the stock software will likely not allow your Zipit to boot. You would probably need to serial mod it and flash another kernel.

If you do not have your backups, perhaps you could purchase another Zipit and create a backup from it.