[oe] [PATCH] zaurus-updater: add support for home partition reflashing

Stanislav Brabec utx at penguin.cz
Mon Dec 1 10:15:13 UTC 2008


Dmitry wrote:
> 2008/11/29 Stanislav Brabec wrote:
> >
> > Note that on models with HDD it will not do what is expected.
> > It will format 2nd NAND partition, but /home is on /dev/hda2.
> 
> I don't know what it will format actually. Does the NAND have the "home"-labeled
> partition on those devices?

On SL-C3000 it probably does not.
On SL-C3100 it has and int contains Sharp ROM /home.
On SL-C3200 it has and it is broken due to bad partitioning table in
kernel. Not easy to fix, as kernel cannot differentiate between SL-C3100
and SL-C3200 yet.

Imaging tool just now creates two images: flash and HDD. HDD
uses /dev/hda2 as /home, flash uses NAND as /home. AFAIK nobody tests
flash image.

> > 1. Decrease number of reserved sectors while formatting the HDD. 5% is
> > far too much of space unusable for packages installation. I have 5%
> > free, but unable to run applications using /tmp. I propose 0% (or only
> > a few blocks).
> 
> You can use tune2fs at any time, IIRC, can't you?

Yes, you can. This operation is possible even on mounted device. But
tune2fs is not part of the default image, and you need additional
reboot. I guess that reserved sectors don't have a real meaning on
Zaurus.

> > 2. Support for langpacks. OE does not create langpack yet, but it would
> > be nice to be able to flash localized system.
> 
> As a Russian user, it's definitely +1.

Its support would be only a first step. Creating them is a more
complicated task.

> > 3. I am using post-flash customization using a combination of additional
> > files and patches. It would be nice to have something like that
> > directly as an updater feature.
> 
> It may be nice to have smth. like:
> 
> [snip]
> if [ -x post-updater-hook.sh ]
> then
>   . post-updater-hook.sh
> fi
> [snip]

Yes, it looks flexible. If the hook script will return 1, shell can be
launched.


________________________________________________________________________
Stanislav Brabec
http://www.penguin.cz/~utx/zaurus





More information about the Openembedded-devel mailing list