From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id EC78EE0054C; Mon, 21 Jul 2014 23:37:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from akt59.rev.netart.pl (akt59.rev.netart.pl [85.128.150.59]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 90EADE00524 for ; Mon, 21 Jul 2014 23:37:30 -0700 (PDT) Received: from localhost (unknown [78.10.193.111]) by open-rnd.nazwa.pl (Postfix) with ESMTP id 90D671169765; Tue, 22 Jul 2014 08:37:28 +0200 (CEST) Date: Tue, 22 Jul 2014 08:37:28 +0200 From: Maciek Borzecki To: Jens Rehsack Message-ID: <20140722063728.GA14362@localhost.localdomain> References: <8AE475FC-772D-4B8F-B7E6-77CE9D82FE7B@gmail.com> <1496282345.2913448.1405854804281.open-xchange@poczta.nazwa.pl> <3282466A-D345-4E2F-A4E6-78A11871F91D@gmail.com> MIME-Version: 1.0 In-Reply-To: <3282466A-D345-4E2F-A4E6-78A11871F91D@gmail.com> X-Evolution-Identity: 1364978999.14311.0@localhost.localdomain X-Evolution-Fcc: folder://1364979001.14311.5%40localhost.localdomain/INBOX/Sent X-Evolution-Transport: 1364979002.14311.15@localhost.localdomain X-Evolution-Source-Folder: folder://1364979001.14311.5%40localhost.localdomain/INBOX X-Evolution-Source-Message: 4285 X-Evolution-Source-Flags: ANSWERED ANSWERED_ALL SEEN Organization: Open-RnD sp. z o.o. X-Evolution-Format: text/plain X-Mailer: Evolution 3.12.3 (3.12.3-1.fc20) User-Agent: Mutt/1.5.22.1 (2013-10-16) Cc: "meta-freescale@yoctoproject.org" , Otavio Salvador Subject: Re: Improving SD-Card images X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: maciej.borzecki@open-rnd.pl List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Jul 2014 06:37:43 -0000 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit On wto, 2014-07-22 at 07:16 +0200, Jens Rehsack wrote: > Am 21.07.2014 um 16:50 schrieb Otavio Salvador : > > > Hello, > > > > On Sun, Jul 20, 2014 at 8:13 AM, maciej.borzecki@open-rnd.pl > > wrote: > >>> Dnia 19 lipiec 2014 o 16:50 Jens Rehsack napisał(a): > >>> the options of meta-fsl-arm/classes/image_types_fsl.bbclass to generate > >>> sdcards are somehow limited :) > >>> > >>> For the final release we'd like to have following partitions: > >>> 1) boot (ext2, fat?) > >>> 2) prod-root (squashfs) > >>> 3) recovery-root (squashfs) > >>> 4) volatile (ext[34]?) > >>> 5) changes (unionfs over 2) > >>> > >>> Looks as if image_types_fsl.bbclass would need rework to support >2 > >>> partition, but that's just coding. > >> > >> Have you considered wic? I've posted a patch that adds building of SD card > >> image for BBB: > >> http://article.gmane.org/gmane.linux.embedded.yocto.meta-ti/4171 also > >> meta-ti have already dumped their > >> sdimg bbclass in favor of wic. Not saying that meta-fsl should do the same, > >> just pointing out that there may > >> be some room for unification. > > ... > > > > This is the long-term goal for sure. > > > > I have worked with Tom in extending 'wic' to have the plugin system > > you used to enable BBB to generate the image. I also want to try to > > leverage the U-Boot support backend so we can avoid a lot of > > custom-made recipes and duplication. > > > > I wasn't aware of your patch (thanks), I will look at it next week ... > > But beside of unifying image creation - which is of course a great step > for both, anyone who can give me a hint where to look for 2 independent > filesystems being created in one target (foo-image)?. This should help: http://article.gmane.org/gmane.linux.embedded.yocto.meta-ti/4185 You'll also need these patches: http://article.gmane.org/gmane.comp.handhelds.openembedded.core/53449 http://article.gmane.org/gmane.comp.handhelds.openembedded.core/53422 Then, the kickstart file is as follows: # vfat boot partition part --source beaglebonebootimg --ondisk mmcblk0p --fstype=vfat --label boot --active --align 1024 --size 10 # root filesystem part / --source rootfs --ondisk mmcblk0p --fstype=ext3 --label root --align 1024 # data partition part /media/data --ondisk mmcblk0p --fstype=vfat --label data --align 1024 --size 100 --fsoptions sync 3 partitions are defined in the file: - vfat, built by beaglebonebootimg source plugin (see first patch for reference on what the plugin does) - 2nd partition (ext3), built by rootfs plugin (contents of IMAGE_ROOTFS) - 3rd partition (vfat, 100MB, mounted with sync), empty partition, automatically added to fstab Hope this clears things up a bit. -- Maciej Borzęcki Senior Software Developer at Open-RnD Sp. z o.o., Poland www.open-rnd.pl mobile: +48 889 117 365, fax: +48 42 657 9079 Niniejsza wiadomość wraz z załącznikami może zawierać chronione prawem lub poufne informacje i została wysłana wyłącznie do wiadomości i użytku osób, do których została zaadresowana. Jeśli wiadomość została otrzymana przypadkowo zabrania się jej kopiowania lub rozsyłania do osób trzecich. W takim przypadku uprasza się o natychmiastowe zniszczenie wiadomości oraz poinformowanie nadawcy o zaistniałej sytuacji za pomocą wiadomości zwrotnej. Dziękujemy. This message, including any attachments hereto, may contain privileged or confidential information and is sent solely for the attention and use of the intended addressee(s). If you are not an intended addressee, you may neither use this message nor copy or deliver it to anyone. In such case, you should immediately destroy this message and kindly notify the sender by reply email. Thank you.