[Avila] problem with updating flash from Linux

David Acker dacker at roinet.com
Fri Nov 3 13:59:41 EST 2006


Ahmet Basagalar wrote:
> Hi,
> 
> I am running into problems while updating flash from Linux. I have 
> compiled Redboot without checksum control, so that is not an issue 
> anymore. But when I do a kernel upgrade using 'netflash' in Linux 
> sometimes it works and sometimes it does not, meaning redboot tries to 
> load the kernel but system just hangs as if it is a corrupt kernel. The 
> same happens for the filesystem, when I upgrade it by 'netflash' 
> sometimes I got error messages during mount. Updating flash through 
> redboot works fine.
> 

We use flashcp -v to the mtd device and that works great for us.  It 
verifies the images after writing.  You might want to keep a failsafe 
image and change the redboot boot script to boot from that before 
starting your upgrade.  Only switch the boot script back to your regular 
partition once you are done and verified. That way if things go wrong, 
it will reboot into a minimal linux that can repair itself.

We also found when flashing a jffs2fs image you want to size the image 
the same size as the flash partition.
-Ack





More information about the Avila mailing list