For SoCs that boot from a raw flash device (such as Aspeed AST2500), an image's U-Boot, kernel image, and rootfs are combined into a single image suitable for writing directly the flash. Specifically: - there is no partition table (but the contents are organized into parition-like ranges) - padding is 0xFF instead of 0x00 - U-Boot is written as a raw binary at a fixed location WIC, today, assumes that a partition table (msdos or gpt) will be written, padding is all zeros, and boot files are copied into a filesystem. A new imager plugin and bootimg source plugin are likely required to add the raw flash features. Discussion on oe-core mailing list: http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131533.html
from the first look we can do this the following way: - Implement wks option to skip creating partition table for existing imager plugin or implement new imager plugin if modification is not feasible. - Implement wks option to set padding. Would it be enough to pad partitions or it's better to pad the image? - Use existing wks option --fixed-size in to set partition sizes - implement --offset wks option if partition content needs to be written with an offset from the partition start (is this u-boot case?) - Use rawcopy or/and fsimage plugin or write new plugin to populate partitions I think it's better to use existing functionality than create new plugins. Comments?
There is a tool developed for similar purpose: http://git.denx.de/?p=u-boot.git;a=tree;f=tools/binman;h=706dfe34f9557807ffa7eeab80c502145d3cddbc;hb=HEAD It's tightly coupled with uboot, so probably we can't use it, but we should look at least look at a possibility to reuse it's ideas.
I'm interested in this feature. Has anyone started working on that? If not, I will try to take a look at it.
(In reply to comment #3) > I'm interested in this feature. Has anyone started working on that? If not, > I will try to take a look at it. you are more than welcome to take this issue as it sounds like you have interest in this subject. If you don't have an bug account, you may want to recreate on. thank you for helping. - armpit
Bulk move from 4.99 or 0.00 to 5.99