Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id A7A7EE00AAF; Thu, 22 Sep 2016 07:21:18 -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.1 required=5.0 tests=BAYES_00,RDNS_NONE autolearn=no version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.8 RDNS_NONE Delivered to internal network by a host with no rDNS X-Greylist: delayed 480 seconds by postgrey-1.32 at yocto-www; Thu, 22 Sep 2016 07:21:16 PDT Received: from thorne-ul-dt.pt.local (unknown [81.128.174.58]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 521FBE008E3 for ; Thu, 22 Sep 2016 07:21:16 -0700 (PDT) Received: by thorne-ul-dt.pt.local (Postfix, from userid 1000) id 96D22196250F; Thu, 22 Sep 2016 15:13:14 +0100 (BST) From: Thomas.Thorne@Net2Edge.com To: meta-freescale@yoctoproject.org Date: Thu, 22 Sep 2016 15:12:46 +0100 Message-Id: <1474553566-23686-1-git-send-email-Thomas.Thorne@Net2Edge.com> X-Mailer: git-send-email 2.7.4 Cc: otavio.salvador@ossystems.com.br Subject: [Documentation][PATCH] Include rootfs.tar.gz Method In Build and boot steps 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: Thu, 22 Sep 2016 14:21:18 -0000 From: Thomas Thorne Many Yocto build systems, including the one for the ls1021a-twr do not generate .sdcard bianry images. This changeset adds some instructions on inflaiting a tar'ed and gzip'ed root filesystem image onto an SD card and then copying over the kernel and device tree bianry files too. I think this also reflects the more recent documentation from the Yocto project. Signed-off-by: Thomas Thorne --- user-guide/source/nsteps.rst | 52 +++++++++++++++++++++++++++++++++----------- 1 file changed, 39 insertions(+), 13 deletions(-) diff --git a/user-guide/source/nsteps.rst b/user-guide/source/nsteps.rst index a64cca7..63b2f6b 100644 --- a/user-guide/source/nsteps.rst +++ b/user-guide/source/nsteps.rst @@ -29,19 +29,45 @@ Build and boot in *N*-steps build $ bitbake-layers show-recipes "*image*" | grep ':' # To list all possible images build $ bitbake # Bake! The first time can take several hours -6. Flash your SD card:: - - # Insert your SD Card - # Type '$ dmesg | tail' to see the device node being used, e.g /dev/sdb - # In case the SD to be flashed has already some partitions, the host system may have - # mounted these, so unmount them, e.g. '$ sudo umount /dev/sdb?'. - build $ ls -la 'tmp/deploy/images//*.sdcard' - - # Flash the soft link one - build $ sudo dd if=tmp/deploy/images//-.sdcard \ - of=/dev/sdX \ - bs=1M \ - conv=fsync +6. Flash your SD card: + + a) With a pre-formed sdcard image:: + + # Insert your SD Card + # Type '$ dmesg | tail' to see the device node being used, e.g /dev/sdb + # In case the SD to be flashed has already some partitions, the host system may have + # mounted these, so unmount them, e.g. '$ sudo umount /dev/sdb?'. + build $ ls -la 'tmp/deploy/images//*.sdcard' + + # Flash the soft link .sdcard image + build $ sudo dd \ + if=tmp/deploy/images//-.sdcard \ + of=/dev/sdX \ + bs=1M \ + conv=fsync + + b) With a pre-formed root filesystem archive, kernel and device tree binary image:: + + # Insert your SD Card + # Check your card is mounted ls /media// + build $ ls -la 'tmp/deploy/images//*.tar.gz' + + # Inflate the the soft link .tar.gz onto the cards filesystem + build $ sudo tar -zxvf \ + tmp/deploy/images//-.tar.gz \ + -C /media// + + # Copy over the kernel + build $ ls -la 'tmp/deploy/images//uImage*.bin' + build $ sudo cp \ + 'tmp/deploy/images//uImage-.bin' \ + /media///boot/ + + # Copy over the device tree binary + build $ ls -la 'tmp/deploy/images//uImage*.dtb' + build $ sudo cp \ + 'tmp/deploy/images//uImage-.dtb' \ + /media///boot/ 7. Place your SD Card in the correct board's slot and boot! -- 2.7.4