From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from slimlogic.co.uk ([89.16.172.20]) by linuxtogo.org with esmtp (Exim 4.72) (envelope-from ) id 1QyLlE-0007Uu-Pu for openembedded-core@lists.openembedded.org; Tue, 30 Aug 2011 12:41:41 +0200 Received: from [10.131.0.186] (188-220-38-49.zone11.bethere.co.uk [188.220.38.49]) by slimlogic.co.uk (Postfix) with ESMTPSA id D77D013001B for ; Tue, 30 Aug 2011 11:36:49 +0100 (BST) Message-ID: <4E5CBD9D.6020803@slimlogic.co.uk> Date: Tue, 30 Aug 2011 11:38:21 +0100 From: Graeme Gregory User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.17) Gecko/20110414 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: openembedded-core@lists.openembedded.org References: <1314598341-2793-1-git-send-email-joelagnel@ti.com> <1314696718.5939.305.camel@rex> <4E5CAF0A.9080902@slimlogic.co.uk> In-Reply-To: Subject: Re: [RFC oe-core] mkcard: Add a script to parition and format an SD Card X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Patches and discussions about the oe-core layer List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Aug 2011 10:41:41 -0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 30/08/2011 11:34, Koen Kooi wrote: > 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. > I actually meant the script is unsuitable for use within bitbake. The format is actually very generic. An aweful lot of embedded systems require MSDOS compatible partition tables which is basically what the script creates. parted sucks as it doesnt have a simple way to say make this msdos compatible. Graeme