Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id D4459E00712; Wed, 9 Nov 2016 09:31:06 -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=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 X-Spam-HAM-Report: * 0.5 RCVD_IN_SORBS_SPAM RBL: SORBS: sender is a spam source * [209.85.217.193 listed in dnsbl.sorbs.net] * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.217.193 listed in list.dnswl.org] * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 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-ua0-f193.google.com (mail-ua0-f193.google.com [209.85.217.193]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 78912E0034A for ; Wed, 9 Nov 2016 09:31:03 -0800 (PST) Received: by mail-ua0-f193.google.com with SMTP id 50so9688948uae.2 for ; Wed, 09 Nov 2016 09:31:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ossystems-com-br.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :organization; bh=6SELmiERM8hmy7fA2byvstyzhCNX40vHsmVQ17Do0+I=; b=bqPqD+021uDOKl/SpHX6ewt6m347LKqB4msxvYloktGZeqkvYiFSn3+IfHyYy2qxIM xCzv1ZTU4olo+slXcw+wLxOoYbkPCsHkDOpcYUYdShQCIofD1tGQ2SrlBMjSz4M9KI3o 5MQFk+Vi+9/5T4Kaz1BOR4Ewbu3kosYdDEgwZ+xZ3tI/l5n58qqcyI+bkTPqgZYqGKfA PkwOova6bxAT3pL6eI327FTP0tmu6PxUxA7Q2O3EUMwMeB6bcBevcVpGFWhpH3leE5fe Xb2xyeNQV5ZDMPD44tHxtG5F7p7QgU9/l+r0mdP0SJurZRRYfrh8oztjKec6AIjPOk5l gcMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:organization; bh=6SELmiERM8hmy7fA2byvstyzhCNX40vHsmVQ17Do0+I=; b=bxp4B1WNiUlMuQU5OMupFLu42AZOZS3zTE8OZpPkF1GqacY3aJzWo4aR8D6mXCyLdQ /qfS6X+O+XfP0/xSC51mOXDHCheevh+8DGjf+wW4G809igOyv7D07oJZK15hFRunOMVw 4Ac/Ad5ZdZpcS+yfsa7XU+9vO6guOuhA1gl5DAH2QYX0gSQSnDJHo32oaId2aIWdOUnU SOzMEaU8meD1z2k76bepQxX8G28vkMQ0LPm4AvjZuIgUxD06bINQ4hTMiU7VwBJeM/qZ OFWMB7dqvoee+bfj729oK+8cTLEvunWqd1TWFty7TwYPbdOSEEHH2MUsTyFeGr3EpQEF WkZQ== X-Gm-Message-State: ABUngvcP8lXx1pxMA51hCCIagbQQftrT+OtjxlTFrkhCDVR+NEdfZzSKwJPDkOPILI9Lgw== X-Received: by 10.176.82.157 with SMTP id v29mr428546uav.123.1478712662974; Wed, 09 Nov 2016 09:31:02 -0800 (PST) Received: from monster.lab.ossystems.com.br ([187.23.155.148]) by smtp.gmail.com with ESMTPSA id 95sm149757uar.4.2016.11.09.09.31.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Nov 2016 09:31:01 -0800 (PST) From: Fabio Berton To: meta-freescale@yoctoproject.org Date: Wed, 9 Nov 2016 15:30:25 -0200 Message-Id: <1478712625-29101-5-git-send-email-fabio.berton@ossystems.com.br> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1478712625-29101-1-git-send-email-fabio.berton@ossystems.com.br> References: <1478712625-29101-1-git-send-email-fabio.berton@ossystems.com.br> Organization: O.S. Systems Software LTDA. Subject: [Documentation][PATCH 5/5] UG: Update version to 2.2 (Morty) 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: Wed, 09 Nov 2016 17:31:06 -0000 - Update FSL layers names - Add DISTRO and MACHINE to run setup-environment - Update devtasks, nsteps and metadata to use Morty branch and distro fslc-framebuffer - Remove qt-in-use-image and qte-in-use-image from image list - Add FSLC distros description - Use DISTRO fslc-wayland in weston example Signed-off-by: Fabio Berton --- user-guide/source/conf.py | 4 +- user-guide/source/devtasks.rst | 58 ++++++++++++----------- user-guide/source/distro-list.inc | 4 ++ user-guide/source/distros.rst | 10 ++++ user-guide/source/image-list.inc | 2 - user-guide/source/index.rst | 1 + user-guide/source/metadata.rst | 99 ++++++++++++++++++++++++--------------- user-guide/source/nsteps.rst | 6 +-- user-guide/source/weston.rst | 13 +++-- 9 files changed, 121 insertions(+), 76 deletions(-) create mode 100644 user-guide/source/distro-list.inc create mode 100644 user-guide/source/distros.rst diff --git a/user-guide/source/conf.py b/user-guide/source/conf.py index 7c9f536..850f1ce 100644 --- a/user-guide/source/conf.py +++ b/user-guide/source/conf.py @@ -48,9 +48,9 @@ copyright = u'2014, Freescale Community BSP Team' # built documents. # # The short X.Y version or version name if applicable. -version = 'krogoth' +version = 'morty' # The full version, including alpha/beta/rc tags. -release = '2.1' +release = '2.2' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/user-guide/source/devtasks.rst b/user-guide/source/devtasks.rst index 2c195d2..dfd7675 100644 --- a/user-guide/source/devtasks.rst +++ b/user-guide/source/devtasks.rst @@ -15,7 +15,7 @@ before proceeding check the main `Layer Index`_. 1. To have access to Yocto scripts, run the setup environment script under your ``BASE`` directory:: - fsl-community-bsp $ . setup-environment build + fsl-community-bsp $ MACHINE=wandboard DISTRO=fslc-framebuffer source setup-environment build 2. Move to the place you want to create your layer and choose a name (e.g. ``fsl-custom``):: @@ -50,14 +50,14 @@ package development. However, if the need does arise, follow the steps listed be that you have already built the package you want to patch. * Create the patch or patches. In this example we are patching the - Linux kernel for `wandboard-dual machine `_; + Linux kernel for `wandboard machine `_; in other words, the value of ``MACHINE`` in ``build/conf/local.conf`` is - ``MACHINE ??= 'wandboard-dual'`` + ``MACHINE ??= 'wandboard'`` * If you already have the patches available, make sure they can be applied cleanly with the commands ``git apply --check ``. To create new or additional patches:: - build $ cd tmp/work/wandboard_dual-poky-linux-gnueabi/linux-wandboard/3.0.35-r0/git + build $ cd tmp/work/wandboard-fslc-linux-gnueabi/linux-wandboard/4.1.15-r0/git # Edit any files you want to change $ git add .. $ git commit -s -m '' # Create the commit @@ -69,8 +69,8 @@ that you have already built the package you want to patch. and the ```.bbfile``:: sources $ mkdir -p \ - meta-fsl-custom/recipes-kernel/linux/linux-wandboard-3.0.35/ - sources $ cat > meta-fsl-custom/recipes-kernel/linux/linux-wandboard_3.0.35.bbappend << EOF + meta-fsl-custom/recipes-kernel/linux/linux-wandboard-4.1.15/ + sources $ cat > meta-fsl-custom/recipes-kernel/linux/linux-wandboard_4.1.15.bbappend << EOF FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}-${PV}:" SRC_URI += "file://0001-calibrate-Add-printk-example.patch" PRINC := "${@int(PRINC) + 1}" @@ -78,12 +78,12 @@ that you have already built the package you want to patch. * Move the patch to the new layer:: - sources $ cp ../build/tmp/work/wandboard_dual-poky-linux-gnueabi/linux-wandboard/3.0.35-r0/git/0001-calibrate-Add-printk-example.patch \ - meta-fsl-custom/recipes-kernel/linux/linux-wandboard-3.0.35 + sources $ cp ../build/tmp/work/wandboard-fslc-linux-gnueabi/linux-wandboard/4.1.15-r0/git/0001-calibrate-Add-printk-example.patch \ + meta-fsl-custom/recipes-kernel/linux/linux-wandboard-4.1.15 * Setup the environment and clean previous package's build data (``sstate``):: - fsl-community-bsp $ . setup-environment build + fsl-community-bsp $ MACHINE=wandboard DISTRO=fslc-framebuffer source setup-environment build build $ bitbake -c cleansstate linux-wandboard * Compile and Deploy:: @@ -91,10 +91,10 @@ that you have already built the package you want to patch. build $ bitbake -f -c compile linux-wandboard # -f indicates bitbake to re-execute the compile task build $ bitbake -c deploy linux-wandboard -* Insert the SD into your Host and copy the ``uImage`` into the first partition. +* Insert the SD into your Host and copy the ``zImage`` into the first partition. Do not forget to unmount the partition before removing the card!:: - build $ sudo cp tmp/deploy/images/uImage /media/Boot + build $ sudo cp tmp/deploy/images/wandboard/zImage /media/Boot * Insert the SD into your board and test your change. @@ -105,7 +105,7 @@ Building the Kernel Manually * Prepare the Yocto/BitBake environment:: - fsl-community-bsp $ . setup-environment build + fsl-community-bsp $ MACHINE=wandboard DISTRO=fslc-framebuffer source setup-environment build * Build the toolchain:: @@ -116,11 +116,11 @@ Building the Kernel Manually * Install it on your PC:: - build $ sudo sh tmp/deploy/sdk/poky-eglibc-x86_64-arm-toolchain-.sh + build $ sudo sh tmp/deploy/sdk/fslc-framebuffer-glibc-x86_64-meta-toolchain-armv7at2hf-neon-toolchain-2.2.sh * Setup the toolchain environment:: - build $ source /opt/poky//environment-setup-armv7a-vfp-neon-poky-linux-gnueabi + build $ source /opt/fslc-framebuffer/2.2/environment-setup-armv7at2hf-neon-fslc-linux-gnueabi * Get the Linux Kernel source code:: @@ -129,24 +129,24 @@ Building the Kernel Manually * Create a local branch:: - linux-imx $ BRANCH=imx_3.0.35_4.0.0 # Change to any branch you want, + linux-imx $ BRANCH=imx_4.1.15_2.0.0_ga # Change to any branch you want, # Use 'git branch -a' to list all linux-imx $ git checkout -b my-${BRANCH} origin/${BRANCH} * Define/Export ``ARCH`` and ``CROSS_COMPILE``:: linux-imx $ export ARCH=arm - linux-imx $ export CROSS_COMPILE=arm-poky-linux-gnueabi- + linux-imx $ export CROSS_COMPILE=arm-fslc-linux-gnueabi- linux-imx $ unset LDFLAGS * Choose a configuration and compile:: - linux-imx $ make imx6_defconfig - linux-imx $ make uImage + linux-imx $ make imx_v7_defconfig + linux-imx $ make zImage -* To Test your changes, copy the ``uImage`` into your SD Card:: +* To Test your changes, copy the ``zImage`` into your SD Card:: - linux-imx $ sudo cp arch/arm/boot/uImage /media/Boot + linux-imx $ sudo cp arch/arm/boot/zImage /media/Boot * If you want your changes to be reflected in your Yocto Framework, create the patches following the subsection :ref:`patching-kernel` @@ -184,14 +184,14 @@ Follow these steps to contribute: Where ```` is any name you want to give to your local branch (e.g. ``fix_uboot_recipe``, ``new_gstreamer_recipe``, etc.) -* Make your changes in any Freescale related folder (e.g. ``sources/meta-fsl-arm``). +* Make your changes in any Freescale related folder (e.g. ``sources/meta-freescale``). In case you modified a recipe (.bb) or include (.inc) file, do not forget to `bump` (increase the value by one) either the ``PR`` or ``INC_PR`` value -* Commit your changes using `GIT`. In this example we assume your change is on ``meta-fsl-arm`` folder:: +* Commit your changes using `GIT`. In this example we assume your change is on ``meta-freescale`` folder:: - sources/meta-fsl-arm $ git add - sources/meta-fsl-arm $ git commit + sources/meta-freescale $ git add + sources/meta-freescale $ git commit In the commit's log, the title must start with the filename that was changed or created, followed by a brief description of the patch's goal. On subsequent lines, provide a thorough description of the changes. @@ -199,11 +199,15 @@ Make sure you follow the standards (type ` git log --pretty=oneline` to see prev * Create a patch:: - sources/meta-fsl-arm $ git format-patch -s --subject-prefix='`` is the file created by ``git format-patch``. * Keep track of patch responses on the mailing list. In case you need to rework your patch, repeat the steps but this time change the patch's subject to - ``--subject-prefix=' + + MACHINEOVERRIDES =. "mx6:mx6sl:" include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa9.inc - SOC_FAMILY = "mx6:mx6q" - - KERNEL_DEVICETREE = "${S}/arch/arm/boot/dts/imx6q-sabresd.dts" + KERNEL_DEVICETREE = "imx6sl-evk.dtb imx6sl-evk-csi.dtb imx6sl-evk-ldo.dtb \ + imx6sl-evk-uart.dtb imx6sl-evk-btwifi.dtb" - UBOOT_MACHINE = "mx6qsabresd_config" + UBOOT_CONFIG ??= "sd" + UBOOT_CONFIG[sd] = "mx6slevk_config,sdcard" + UBOOT_CONFIG[epdc] = "mx6slevk_epdc_config" + UBOOT_CONFIG[spinor] = "mx6slevk_spinor_config" + UBOOT_CONFIG[mfgtool] = "mx6slevk_config" SERIAL_CONSOLE = "115200 ttymxc0" MACHINE_FEATURES += " pci wifi bluetooth" + MACHINE_FIRMWARE += "linux-firmware-ath6k firmware-imx-epdc" + Important variables: -* ``IMAGE_FSTYPES``: Located in `imx-base.inc `_. - Defines the type of outputs for the root filesystem. Default is: ``"tar.bz2 ext3 sdcard"`` -* ``UBOOT_ENTRYPOINT_*``: Located in `imx-base.inc `_. +* ``IMAGE_FSTYPES``: Located in `imx-base.inc `_. + Defines the type of outputs for the root filesystem. Default is: ``"sdcard.gz"`` +* ``UBOOT_ENTRYPOINT_*``: Located in `imx-base.inc `_. Defines where the Kernel is loaded by U-boot * ``SOC_FAMILY``: Defines the machine's family. Only recipes with the same ``SOC_FAMILY`` (defined with the recipe's variable ``COMPATIBLE_MACHINE``) are taken into account when baking for a particular machine. diff --git a/user-guide/source/nsteps.rst b/user-guide/source/nsteps.rst index 66c1bf1..3116b75 100644 --- a/user-guide/source/nsteps.rst +++ b/user-guide/source/nsteps.rst @@ -10,18 +10,18 @@ Build and boot in *N*-steps $ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo $ chmod a+x ~/bin/repo -3. Download the Yocto's Metadata:: +3. Download the Yocto Metadata:: $ mkdir fsl-community-bsp # You can name it anything you want $ cd fsl-community-bsp fsl-community-bsp $ repo init \ -u https://github.com/Freescale/fsl-community-bsp-platform \ - -b krogoth + -b morty fsl-community-bsp $ repo sync 4. Select your machine (:ref:`machines`) and prepare the environment for bitbake:: - fsl-community-bsp $ MACHINE= source ./setup-environment build + fsl-community-bsp $ MACHINE= DISTRO= source setup-environment build build $ 5. Select your image (:ref:`images`) and build:: diff --git a/user-guide/source/weston.rst b/user-guide/source/weston.rst index 562c4f7..6a15887 100644 --- a/user-guide/source/weston.rst +++ b/user-guide/source/weston.rst @@ -1,17 +1,22 @@ Weston ====== -In order to test Weston, the reference implementation of a Wayland compositor, use the image *core-image-weston* +In order to test Weston, the reference implementation of a Wayland compositor, +use FSLC Distro *fslc-wayland* and the image *core-image-weston* -Add the following to conf/local.conf:: +If you are starting a new build run:: - DISTRO_FEATURES_remove = "x11" + $ MACHINE= DISTRO=fslc-wayland source setup-environment build + +if you already start setup-environment, set DISTRO to fslc-wayland in conf/local.conf:: + + DISTRO = "fslc-wayland" And bake the image:: $ bitbake core-image-weston -Remember to use a clean build-dir when changing `DISTRO_FEATURES` +Remember to use a clean build-dir when changing `DISTRO` Simple tests -- 2.1.4