From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 05C79E00A45; Thu, 11 Jun 2015 01:42:45 -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=-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 * (plyatov[at]gmail.com) * -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 * -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low * trust * [209.85.215.49 listed in list.dnswl.org] Received: from mail-la0-f49.google.com (mail-la0-f49.google.com [209.85.215.49]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 6B4C5E00A3F for ; Thu, 11 Jun 2015 01:42:40 -0700 (PDT) Received: by lazv15 with SMTP id v15so277997laz.3 for ; Thu, 11 Jun 2015 01:42:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=X2zd9TdkxnXpfVYqV6OEFh05rotOy6NJiZk6OwbjIK8=; b=QaD0lLiFRUnjYZA7eFhV/AGhsfe4AihHilf7qoznAPZgv3UN+ih6zRKVBrv+sGc8GH VNPHj39zq+9SamHNSmXATTd6jK3j9RLcqya542LR9K2yXAy56UDZHzB6V3kQGb0al5hd Y3qKdqmzdpAwTG5+bXXFuW5Kc1jx01J4vhnvspKg2QiDpKq/uPmbHLvu8coKARdswg+P fi0SbosI9MsGh5RiB1+S2pTpjparACFR7S+adac2s1k7QJb/d8P7wTqoteSDT2ydyOYf JkA512dUJJA0ur2rDmvFcam0pNLMUF/nprbLrzwm3hC6vV2icENpSs5FcP23APxABw+g tvnw== X-Received: by 10.112.140.231 with SMTP id rj7mr8596034lbb.76.1434012158748; Thu, 11 Jun 2015 01:42:38 -0700 (PDT) Received: from [192.168.1.13] ([185.9.184.41]) by mx.google.com with ESMTPSA id w7sm2866999lag.42.2015.06.11.01.42.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Jun 2015 01:42:37 -0700 (PDT) Message-ID: <557949FC.20908@gmail.com> Date: Thu, 11 Jun 2015 11:42:36 +0300 From: Igor Plyatov User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 MIME-Version: 1.0 To: meta-freescale@yoctoproject.org Subject: Overlay with custom DTS and linux-imx-rt_3.10.31.bbappend X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: plyatov@gmail.com 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, 11 Jun 2015 08:42:45 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Dear all, My Yocto is made from "poky-fido-13.0.0", "meta-fsl-arm-1.8" overlay and my custom "meta-geosig" overlay. I have made my own linux-imx-rt_3.10.31.bbappend for vmx51 machine. Then, successful build the "linux-imx-rt" with the "imx51-babbage.dtb" to check correctness of bbappend. I got the "zImage--3.10.31-r0.1-imx51-babbage-20150611075900.dtb" and "zImage--3.10.31-r0.1-vmx51-20150611075900.bin" files. I need to use customized Device Tree for our board, but previously I do not use Device Trees. So, no experience with its integration. Please help me in some questions: 1) Where and how should I put my custom "imx51-geosig.dts" file for the recipe? 1A) As a DTS file in the recipes directory? 1B) As a patch for kernel? 2) How to instruct Yocto to use my "imx51-geosig.dts" during kernel build process? 3) How to force kernel to use my DTB? 3A) Does I need to instruct my Barebox to feed DTB to kernel? 3B) Does I need to embed DTB into the zImage? 3C) Some other way required? Details ------- Bootloader is the Barebox-2011.06. Content of the "vmx51.conf" (machine config): include conf/machine/include/imx-base.inc include conf/machine/include/tune-cortexa8.inc SOC_FAMILY = "mx5:mx51" KERNEL_DEVICETREE = "imx51-babbage.dtb" # Real DTB which should be used for vmx51 machine #KERNEL_DEVICETREE = "imx51-geosig.dtb" PREFERRED_PROVIDER_virtual/kernel = "linux-imx-rt" PREFERRED_PROVIDER_virtual/bootloader = "barebox" PREFERRED_VERSION_linux-rt = "3.10.31" KERNEL_IMAGETYPE = "zImage" MACHINE_FEATURES = "apm screen usbhost vfat ext2 ppp ethernet" SERIAL_CONSOLE = "115200 ttymxc0" ROOTFS_TYPE = "ubifs" IMAGE_FSTYPES += "ubi tar.bz2" # ubi fs args UBI_VOLNAME = "rootfs" MKUBIFS_ARGS = "-m 2KiB -e 126KiB -c 8160" UBINIZE_ARGS = "-m 2KiB -p 128KiB -s 512" Content of the "linux-imx-rt_3.10.31.bbappend": FILESEXTRAPATHS_prepend := "${THISDIR}/${P}:" PR := "${PR}.1" COMPATIBLE_MACHINE_vmx51 = "vmx51" SRC_URI += "file://vmx51-preempt-rt.scc \ file://vmx51-user-config.cfg \ file://vmx51-user-patches.scc \ file://vmx51-user-features.scc " Best wishes. -- Igor Plyatov