mån 2013-01-28 klockan 21:25 +0200 skrev Simos Xenitellis:
> AFAIK, the NAND flash is accessible through a (possibly) proprietary
> protocol, and you can write to it with LiveSuit,
Actually FEL is even simpler than that. FEL as such knows nothing about
NAND. All it knows is "write to addresss", "read from address", and
"execute code at address".
What LiveSuit does is that it sends a number of small programs over FEL
to the device and executes those to first initialize the hardware and
then sends over it's flasher application which knows how to access the
NAND. LiveSuit then sends the image to be flashed to this program which
performs the actual writing to NAND.
> An alternative to LiveSuit is PhoenixCard,
http://linux-sunxi.org/PhoenixCard
> You convert the LiveSuit image to a special form and then write to a
> microSD card. Then boot the microSD card and the NAND memory is
> updated.
PhoenixCard is pretty much the same flashing application but loaded via
SD instead of FEL.
> Thefore, if you want to change a file in the NAND memory, you need to
> edit and then recreate a LiveSuit image, and finally install it.
Or change the file from Linux on the device itself. You can currently
change anything except for the boot blocks.
> There is a way to create LiveSuit images, however I do not have the link handy.
There is several ways
a) Use Allwinners tools for creating a livesuit image, found in the SDK.
b) Use one of the third-party image extractor & repacker tools.
Regards
Henrik