[OE-core] [RFC oe-core] mkcard: Add a script to parition and format an SD Card

Koen Kooi koen at dominion.thruhere.net
Tue Aug 30 10:34:14 UTC 2011


Op 30 aug. 2011, om 11:36 heeft Graeme Gregory het volgende geschreven:

> On 30/08/2011 10:31, Richard Purdie wrote:
>> On Mon, 2011-08-29 at 17:03 -0400, Jason Kridner wrote:
>>>>>> This script is BSP specific and shouldn't live in the OE-core layer.
>>>>> The only issue is this script is used from within the IMAGE_CMD_sdimg
>>>>> code which lives in OE-core (meta/classes/image_types.
>>>> classes shouldn't be calling external scripts
>>>> 
>>> Is the right approach to add parameters to the IMAGE_CMD_sdimg class
>>> such that it can be used generically to produce SD card images,
>>> instead of trying to move this to meta-ti?  Should it perhaps be a bit
>>> closer to what is being done by the Linaro image tools [1]?
>>> 
>>> [1] https://wiki.linaro.org/Source/ImageBuilding
>> I have heard multiple requests for making general SD card (or USB stick)
>> style images so I would love to see something generic. The script as it
>> stands looks like it has some issues due to requiring root access
>> (and/or special mounts).
>> 
> As the author again, its totally unsuitable and was never designed for
> doing that.

To clarify, it deals only with the slightly weird formatting needed by the OMAP3/4 boot ROM to get the bootloader from FAT and not with generic sd card images.

regards,

Koen



More information about the Openembedded-core mailing list