Task #4 - Deploy and test

Document created by Daiane Angolini Employee on Jun 17, 2013Last modified by Daiane Angolini Employee on Mar 27, 2014
Version 8Show Document
  • View in full screen mode

Update

 

The source code is one week old now, so please, update it!

 

$ repo sync

 

Images - the result of a bitbake

 

 

Example of a content after bitbake

 

build_mx6/tmp/deploy/images:

fsl-image-gui-imx6qsabresd-20130505174618.rootfs.ext3

fsl-image-gui-imx6qsabresd-20130505174618.rootfs.sdcard

fsl-image-gui-imx6qsabresd-20130505174618.rootfs.tar.bz2

fsl-image-gui-imx6qsabresd-20130508162511.rootfs.ext3

fsl-image-gui-imx6qsabresd-20130508162511.rootfs.sdcard

fsl-image-gui-imx6qsabresd-20130508162511.rootfs.tar.bz2

fsl-image-gui-imx6qsabresd.ext3

fsl-image-gui-imx6qsabresd.sdcard

fsl-image-gui-imx6qsabresd.tar.bz2

modules-3.0.35-1.1.0+yocto+g0596856-r32.10-imx6qsabresd.tgz

README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt

u-boot.imx

u-boot-imx6qsabresd.imx

u-boot-imx6qsabresd-v2013.04-r3.imx*

uImage

uImage-3.0.35-r32.10-imx6qsabresd-20130505174618.bin

uImage-imx6qsabresd.bin

 

 

Get used with generated images. Understand which file is a symbolic link and which one is the image in fact. Symbolic link will always point to latest image.

 

sdcard image

 

Take a look how sdcard is generated here meta-fsl-arm - Layer containing Freescale ARM hardware support metadata

 

The disk layout used is:

 

 

0-> IMAGE_ROOTFS_ALIGNMENT    reserved to bootloader (not partitioned)

IMAGE_ROOTFS_ALIGNMENT -> BOOT_SPACE    kernel and other data

BOOT_SPACE -> SDIMG_SIZE     rootfs

Use IMAGE_OVERHEAD_FACTOR to add more space

 

Please, go to original file in order to understand the disk layout.

 

It´s basically some initial space for u-boot. One partition for uImage. One partition for rootfs. The total sdcard size will be calculate for every image, if you want to add more empty space inside generated sdcard, use IMAGE_OVERHEAD_FACTOR.

 

 

Deploy

 

Deploy the sdcard image:

 

$ sudo dd if=fsl-image-gui-imx6qsabresd.sdcard of=/dev/sdX bs=1M

 

 

Or, deploy the ext3 rootfs

 

$ sudo dd if=fsl-image-gui-imx6qsabresd.ext3 of=/dev/sdX2 bs=1M

 

Or deploy only the tar.bz rootfs

 

$ sudo mount /dev/sdX2 /mnt/card

$ sudo tar xf imagename-imx53qsb.tar.bz2 -C /mnt/card

 

In order to deploy only kernel

 

$ sudo cp uImage-3.0.35-r32.10-imx6qsabresd-20130505174618.bin /media/Boot

 

In order to  deploy only u-boot

 

$ sudo dd if=u-boot-imx6qsabresd-v2012.10-r3.imx of=/dev/sdX bs=512 seek=2

 

If using HDMI please, modify u-boot environment arguments:

setenv mmcargs "setenv bootargs console=${console},${baudrate} root=${mmcroot} rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24"

 

This is the how sdcards are made by meta-fsl-arm. Of course you can use your own. But double check the u-boot bootenv.

 

 

Plug your sdcard and let the board boot

 

To login: root

 

 

Go to HOME

Go to Task #3 - The build result

Go to Task#5 - kernel

Attachments

    Outcomes