From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 09265E00BA0; Fri, 29 Jan 2016 02:45:09 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-HAM-Report: * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (oliver.graute[at]gmail.com) * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [74.125.82.48 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 57CB5E00B8C for ; Fri, 29 Jan 2016 02:45:04 -0800 (PST) Received: by mail-wm0-f48.google.com with SMTP id l66so61742088wml.0 for ; Fri, 29 Jan 2016 02:45:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=BLEzSGzCFKXLfdrl0nU34uJAzli8gxGf575dEO4C5pc=; b=KxaG55AOxC0ellCX8BuARBZmbjg59SfAXbQY5uxjGmuDRj/gI1udR3RYFxEtb0Sz2F TUC3+y7RA2LSHt0qhzBXqKERMkjm1+KjDIy+GMkGFISbwiG5G74f5+S6QLxtTkV7VliQ aSOfSXoiu6fszYrZnWiLC157RcCqsZcsMkln3rPTDtn1fMj44vkyhv5KDMsBRsWystrW /3Yvo82XvCKCom7TLzjQisqw0BQ2Z7y/aM7p5bZYGOfnJ7r7G5/sMFgrjPggLawcNhoh GKxtlU/HpNtGSmVtd6iW726BAgE6rE+ylJzywAxYLuBwClPeJZIqpEFNFdgzvPlcRsGv p0Qg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mail-followup-to :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=BLEzSGzCFKXLfdrl0nU34uJAzli8gxGf575dEO4C5pc=; b=m5uQgyxPuNriNz9JbJ89lG8XaEf/bW9Vn/8KAI0oI50JhHg/NYeZTmhKUoG8/KZRxd Dn6aWrO5A1kZItJ9lgXTtvSip3+lhECFQY2pV/qEwgumuYbAvNwtOJQ2vCKwNbG0Pfw7 kyIbKaO5cnMBrrUshk4rlyW0zFfxC6cI/eZmL23tDHv904ZLp21hkY1bfs1106BoabsO cvMbI+U8ZC8YqvzSgiUZc7C6C9FtG2ztGddV0pVB7XiHABg1iQAWotkQZjPbF1GhpWHf WFMSBvpNg2HaWJbKX4z2LTM1YFjrFMKBmNyfyftBOEMzmYAh9VF7fZkS4HDxyr1wzKjt VrRw== X-Gm-Message-State: AG10YOTmwcFRfKGzrzXJB7nzyxoLGadiT0MxggAuvUa1SAV9CakcDPnbH5P/sBJqjRTqWw== X-Received: by 10.28.32.206 with SMTP id g197mr8373641wmg.28.1454064303651; Fri, 29 Jan 2016 02:45:03 -0800 (PST) Received: from localhost (x55b1e45f.dyn.telefonica.de. [85.177.228.95]) by smtp.gmail.com with ESMTPSA id v191sm6870637wme.1.2016.01.29.02.45.02 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Fri, 29 Jan 2016 02:45:03 -0800 (PST) Date: Fri, 29 Jan 2016 11:36:29 +0100 From: Oliver Graute To: meta-freescale@yoctoproject.org Message-ID: <20160129103629.GB21464@graute-opti> Mail-Followup-To: meta-freescale@yoctoproject.org References: <20160128113740.GA21464@graute-opti> MIME-Version: 1.0 In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Subject: Re: adjust image partitions for imx6ulevk X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list 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: Fri, 29 Jan 2016 10:45:09 -0000 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On 28/01/16, Otavio Salvador wrote: > On Thu, Jan 28, 2016 at 9:37 AM, Oliver Graute wrote: > > whats is the right way to adjust the flash partitions for my imx6ulevk? > > > > I need a bootstream partition, two rootfs partitions with 125 MB each > > and a data partitions with 730 MB. > > > > during some code investigation I found image_types_fsl.bbclass where > > some partitioning seems to happen. Is this the point to start? > > For this kind of use-case the wic is better. ok thanks for the hint. I read the wic part in the dev-manual of yocto https://www.yoctoproject.org/docs/1.5.2/dev-manual/dev-manual.html after that I tried to write my own imx-test.wks for wic. # short-description: Create SD card image with a boot partition and two rootfs # long-description: # Create an image that can be written onto a SD card using dd for use # with i.MX SoC family # It uses u-boot # # The disk layout used is: # - --------- --------- ------------ ------------ ----------- # | | u-boot | /boot | rootfs 1 | rootfs 2 | data | # - --------- --------- ------------ ------------ ----------- # ^ ^ ^ ^ ^ # | | | | | # 0 1kiB 4MiB 4MiB + 8MiB 4MiB + 8Mib + rootfs 1 + rootfs 2 + data IMAGE_EXTRA_SPACE (default 10MiB) # part u-boot --source rawcopy --sourceparams="file=u-boot.img" --ondisk mmcblk --no-table --align 1 part /boot --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4096 --size 8M --extra-space 0 part / --source rootfs --rootfs-dir=rootfs1 --ondisk mmcblk --fstype=ext4 --label platform --align 4096 part /rescue --source rootfs --rootfs-dir=rootfs2 --ondisk mmcblk --fstype=ext4 --label secondary --align 4096 I also added to my build-imx6ulevk/conf/local.conf IMAGE_BOOT_FILES = "u-boot.img zImage:kernel" then I execute: wic create imx-test.wks -e fsl-image and get the follwing output: Done. Creating image(s)... Couldn't get 'bitbake -e rootfs1' output. Bitbake failed with error: Loading cache...done. Loaded 2378 entries from dependency cache. ERROR: Nothing PROVIDES 'rootfs1' Summary: There was 1 WARNING message shown. Summary: There was 1 ERROR message shown, returning a non-zero exit code. Couldn't get 'bitbake -e rootfs1' output. Bitbake failed with error: Loading cache...done. Loaded 2378 entries from dependency cache. ERROR: Nothing PROVIDES 'rootfs1' Where do I need to provide rootfs1 and rootfs2. Can you comment my first try :) best regards, Oliver