[Soc-coordination] MTD embedded onboard flash partitioning and installation, report, week 6
avtobiff at gmail.com
Sat Jul 4 15:14:42 UTC 2009
I have put up a web page  and a page on the Debian wiki  summarizing
my progress so far and how to build it for yourself.
Check out the web page, it has screenshots and a monolithic image of
Debian installer with my additions.
This week I have:
* Created udeb of mtd-utils (used for managing UBI).
* Created liblzo2-2-udeb (build dependency for mtd-utils).
* Made additions to hw-detect to recognize and load kernel modules required
* Sucessfully attached MTD flash to UBI (with mtd-utils-udeb).
* Created UBI volumes (with mtd-utils-udeb).
* Created simple udeb which runs in /lib/debian-installer-startup.d/. The script
loads nandsim module which creates a 256 MB simulated NAND.
* Created storaged_device option in partman-ubi, it attaches selected MTD to
* Created choose_partition option in partman-ubi. It is responsible for
listing attached UBI devices and UBI volumes. When executed with
free space on an UBI device selected, it asks user for volume name
and size and creates that volume.
The Debian installer work above is quite hacky and goes in circles around
parted, because parted does not understand MTD or UBI. Also the UI is
probably not what will finally be, it is a product of the hacky nature of Just
Getting Something Working(TM).
In order for a good integration into Debian installer parted has to understand
MTD and UBI.
This is what I'll look into next.
More information about the Soc-coordination