[meta-freescale] [v2][PATCH] atf: Reorganize
From: Chunrong Guo *Add FUSE DISTRO_FEATURES *Add chassistype and ddrphyopt *Install srk.pri and srk.pub Signed-off-by: Chunrong Guo --- recipes-bsp/atf/atf_git.bb | 93 +- 1 file changed, 68 insertions(+), 25 deletions(-) diff --git a/recipes-bsp/atf/atf_git.bb b/recipes-bsp/atf/atf_git.bb index 45bd376..fd1ee30 100644 --- a/recipes-bsp/atf/atf_git.bb +++ b/recipes-bsp/atf/atf_git.bb @@ -2,6 +2,7 @@ DESCRIPTION = "ARM Trusted Firmware" LICENSE = "BSD" LIC_FILES_CHKSUM = "file://license.rst;md5=e927e02bca647e14efd87e9e914b2443" +PR = "r1" inherit deploy @@ -29,21 +30,27 @@ LDFLAGS[unexport] = "1" AS[unexport] = "1" LD[unexport] = "1" -# set secure option -# fuseopt ?= "FUSE_PROV=1 FUSE_FILE=$(CONFIG_SEC_FUSE_FILE)" - BOOTTYPE ?= "nor nand qspi flexspi_nor sd emmc" -BUILD_SECURE = "${@bb.utils.contains('COMBINED_FEATURES', 'secure', 'true', 'false', d)}" -BUILD_OPTEE = "${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'true', 'false', d)}" +BUILD_SECURE = "${@bb.utils.contains('DISTRO_FEATURES', 'secure', 'true', 'false', d)}" +BUILD_OPTEE = "${@bb.utils.contains('DISTRO_FEATURES', 'optee', 'true', 'false', d)}" +BUILD_FUSE = "${@bb.utils.contains('DISTRO_FEATURES', 'fuse', 'true', 'false', d)}" uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" rcw ?= "" rcw_ls1012afrwy = "_default" rcw_ls1012ardb = "_default" -rcwsec ?= "" -rcwsec_ls1012afrwy = "_sben" -rcwsec_ls1012ardb = "_sben" +rcwsec ?= "_sben" + +chassistype ?= "ls2088_1088" +chassistype_ls1012ardb = "ls104x_1012" +chassistype_ls1012afrwy = "ls104x_1012" +chassistype_ls1043ardb = "ls104x_1012" +chassistype_ls1046ardb = "ls104x_1012" + +ddrphyopt ?= "" +ddrphyopt_lx2160ardb = "fip_ddr_sec" + do_configure[noexec] = "1" do_compile() { @@ -51,14 +58,23 @@ do_compile() { install -d ${S}/include/tools_share/openssl cp -r ${RECIPE_SYSROOT}/usr/include/openssl/* ${S}/include/tools_share/openssl ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/gen_keys 1024 + +if [ "${BUILD_FUSE}" = "true" ]; then + ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/gen_fusescr ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/input_files/gen_fusescr/${chassistype}/input_fuse_file + fuseopt="fip_fuse FUSE_PROG=1 FUSE_PROV_FILE=fuse_scr.bin" +fi if [ "${BUILD_SECURE}" = "true" ]; then -secureopt="TRUSTED_BOARD_BOOT=1 $ddrphyopt CST_DIR=${RECIPE_SYSROOT_NATIVE}/usr/bin/cst" +secureopt="TRUSTED_BOARD_BOOT=1 ${ddrphyopt} CST_DIR=${RECIPE_SYSROOT_NATIVE}/usr/bin/cst" secext="_sec" bl33="${uboot_boot_sec}" -rcwsec="${rcwsec}" +if [ ${chassistype} = ls104x_1012 ]; then +rcwtemp="${rcwsec}" +else +rcwtemp="${rcw}" +fi else bl33="${uboot_boot}" -rcwsec="${rcw}" +rcwtemp="${rcw}" fi if [ "${BUILD_OPTEE}" = "true" ]; then @@ -70,39 +86,47 @@ do_compile() { for d in ${BOOTTYPE}; do case $d in nor) -rcwimg="${RCWNOR}${rcwsec}.bin" +rcwimg="${RCWNOR}${rcwtemp}.bin" uefiboot="${UEFI_NORBOOT}" ;; nand) -rcwimg="${RCWNAND}${rcwsec}.bin" +rcwimg="${RCWNAND}${rcwtemp}.bin" ;; qspi) -rcwimg="${RCWQSPI}${rcwsec}.bin" +rcwimg="${RCWQSPI}${rcwtemp}.bin" ;; sd) -rcwimg="${RCWSD}${rcwsec}.bin" +rcwimg="${RCWSD}${rcwtemp}.bin" ;; flexspi_nor) -rcwimg="${RCWXSPI}${rcwsec}.bin" +rcwimg="${RCWXSPI}${rcwtemp}.bin" uefiboot="${UEFI_XSPIBOOT}" ;; esac if [ -f "${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg}" ]; then +oe_runmake V=1 -C ${S} realclean +oe_runmake V=1 -C ${S} all fip pbl PLAT=${PLATFORM} BOOT_MODE=${d} RCW=${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg} BL33=${bl33} ${bl32opt} ${spdopt} ${secureopt} ${fuseopt} +cp -r ${S}/build/${PLATFORM}/release/bl2_${d}*.pbl ${S} +cp -r ${S}/build/${PLATFORM}/release/fip.bin ${S} +if [ "${BUILD_FUSE}" = "true" ]; then +cp -f ${S}/build/${PLATFORM}/release/fuse_fip.bin ${S} +fi + if [ ${MACHINE} = ls1012afrwy ]; then oe_runmake V=1 -C ${S} realclean oe_runmake V=1 -C ${S} all fip pbl PLAT=ls1012afrwy_512mb BOOT_MODE=${d} RCW=${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg} BL33=${bl33} ${bl32opt} ${spdopt} ${secureopt} ${fuseopt} -cp -r ${S}/build/ls1012afrwy_512mb/release/bl2_qspi.pbl ${S}/bl2_${d}_512mb.pbl +cp -r ${S}/build/ls1012afrwy_512mb/release/bl2_qspi${secext}.pbl ${S}/bl2_${d}${secext}_512mb.pbl cp -r ${S}/build/ls1012afr
Re: [meta-freescale] FSL BSP + meta-qt5 upstream/thud
On Fri, Mar 15, 2019 at 3:59 AM Ruchika Dahiya wrote: > I am trying to bitbake fsl-image-multimedia-full with meta-qt5 , > upstream/thud . > > Script could not find qtwebengine Examples and fails . I have added > qtwebengine-example in local.conf . > > Any one has any idea why it has failed. Examples are not built by default but depends on 'examples' to be available on qtbase's PACKAGECONFIG. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] postinstall script cannot find gtk/3.0.0 in usr/lib .
On Tue, Mar 12, 2019 at 12:05 PM Ruchika Dahiya wrote: > I am trying to build chromium -x11 and QT with master FSL community BSP for > iMX6 sabre sd board . > > I am getting following Error . In Error Log , says there is not gtk/3.0.0 > directory in / usr/lib . > > ERROR: fsl-image-multimedia-full-1.0-r0 do_rootfs: The postinstall intercept > hook 'update_gtk_immodules_cache' failed, details in > /mnt/dev_disk2/fsl-community-Rocko/fsl-community-master/build/tmp/work/imx6qdlsabresd-fslc-linux-gnueabi/fsl-image-multimedia-full/1.0-r0/temp/log.do_rootfs > ERROR: fsl-image-multimedia-full-1.0-r0 do_rootfs: > ERROR: fsl-image-multimedia-full-1.0-r0 do_rootfs: Function failed: do_rootfs > > Any idea to resolve this Error ? The mix of non-matching branches is not expected to work. Please use the respective branch. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] [PATCH] atf: Reorganize
Please prepare a PR on github, so we can review it. On Tue, Mar 12, 2019 at 12:11 AM C.r. Guo wrote: > > From: Chunrong Guo > > *Add FUSE DISTRO_FEATURES > *Add chassistype and ddrphyopt > *Install srk.pri and srk.pub > > Signed-off-by: Chunrong Guo > --- > recipes-bsp/atf/atf_git.bb | 90 > +- > 1 file changed, 66 insertions(+), 24 deletions(-) > > diff --git a/recipes-bsp/atf/atf_git.bb b/recipes-bsp/atf/atf_git.bb > index 45bd376..edba6cc 100644 > --- a/recipes-bsp/atf/atf_git.bb > +++ b/recipes-bsp/atf/atf_git.bb > @@ -29,21 +29,27 @@ LDFLAGS[unexport] = "1" > AS[unexport] = "1" > LD[unexport] = "1" > > -# set secure option > -# fuseopt ?= "FUSE_PROV=1 FUSE_FILE=$(CONFIG_SEC_FUSE_FILE)" > - > BOOTTYPE ?= "nor nand qspi flexspi_nor sd emmc" > -BUILD_SECURE = "${@bb.utils.contains('COMBINED_FEATURES', 'secure', 'true', > 'false', d)}" > -BUILD_OPTEE = "${@bb.utils.contains('COMBINED_FEATURES', 'optee', 'true', > 'false', d)}" > +BUILD_SECURE = "${@bb.utils.contains('DISTRO_FEATURES', 'secure', 'true', > 'false', d)}" > +BUILD_OPTEE = "${@bb.utils.contains('DISTRO_FEATURES', 'optee', 'true', > 'false', d)}" > +BUILD_FUSE = "${@bb.utils.contains('DISTRO_FEATURES', 'fuse', 'true', > 'false', d)}" > > uboot_boot_sec ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa-secure-boot" > uboot_boot ?= "${DEPLOY_DIR_IMAGE}/u-boot.bin-tfa" > rcw ?= "" > rcw_ls1012afrwy = "_default" > rcw_ls1012ardb = "_default" > -rcwsec ?= "" > -rcwsec_ls1012afrwy = "_sben" > -rcwsec_ls1012ardb = "_sben" > +rcwsec ?= "_sben" > + > +chassistype ?= "ls2088_1088" > +chassistype_ls1012ardb = "ls104x_1012" > +chassistype_ls1012afrwy = "ls104x_1012" > +chassistype_ls1043ardb = "ls104x_1012" > +chassistype_ls1046ardb = "ls104x_1012" > + > +ddrphyopt ?= "" > +ddrphyopt_lx2160ardb = "fip_ddr_sec" > + > do_configure[noexec] = "1" > > do_compile() { > @@ -51,14 +57,23 @@ do_compile() { > install -d ${S}/include/tools_share/openssl > cp -r ${RECIPE_SYSROOT}/usr/include/openssl/* > ${S}/include/tools_share/openssl > ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/gen_keys 1024 > + > +if [ "${BUILD_FUSE}" = "true" ]; then > + ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/gen_fusescr > ${RECIPE_SYSROOT_NATIVE}/usr/bin/cst/input_files/gen_fusescr/${chassistype}/input_fuse_file > + fuseopt="fip_fuse FUSE_PROG=1 FUSE_PROV_FILE=fuse_scr.bin" > +fi > if [ "${BUILD_SECURE}" = "true" ]; then > secureopt="TRUSTED_BOARD_BOOT=1 $ddrphyopt > CST_DIR=${RECIPE_SYSROOT_NATIVE}/usr/bin/cst" > secext="_sec" > bl33="${uboot_boot_sec}" > -rcwsec="${rcwsec}" > +if [ ${chassistype} = ls104x_1012 ]; then > +rcwtemp="${rcwsec}" > +else > +rcwtemp="${rcw}" > +fi > else > bl33="${uboot_boot}" > -rcwsec="${rcw}" > +rcwtemp="${rcw}" > fi > > if [ "${BUILD_OPTEE}" = "true" ]; then > @@ -70,39 +85,47 @@ do_compile() { > for d in ${BOOTTYPE}; do > case $d in > nor) > -rcwimg="${RCWNOR}${rcwsec}.bin" > +rcwimg="${RCWNOR}${rcwtemp}.bin" > uefiboot="${UEFI_NORBOOT}" > ;; > nand) > -rcwimg="${RCWNAND}${rcwsec}.bin" > +rcwimg="${RCWNAND}${rcwtemp}.bin" > ;; > qspi) > -rcwimg="${RCWQSPI}${rcwsec}.bin" > +rcwimg="${RCWQSPI}${rcwtemp}.bin" > ;; > sd) > -rcwimg="${RCWSD}${rcwsec}.bin" > +rcwimg="${RCWSD}${rcwtemp}.bin" > ;; > flexspi_nor) > -rcwimg="${RCWXSPI}${rcwsec}.bin" > +rcwimg="${RCWXSPI}${rcwtemp}.bin" > uefiboot="${UEFI_XSPIBOOT}" > ;; > esac > > if [ -f "${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg}" ]; then > +oe_runmake V=1 -C ${S} realclean > +oe_runmake V=1 -C ${S} all fip pbl PLAT=${PLATFORM} > BOOT_MODE=${d} RCW=${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg} BL33=${bl33} > ${bl32opt} ${spdopt} ${secureopt} ${fuseopt} > +cp -r ${S}/build/${PLATFORM}/release/bl2_${d}*.pbl ${S} > +cp -r ${S}/build/${PLATFORM}/release/fip.bin ${S} > +if [ "${BUILD_FUSE}" = "true" ]; then > +cp -f ${S}/build/${PLATFORM}/release/fuse_fip.bin ${S} > +fi > + > if [ ${MACHINE} = ls1012afrwy ]; then > oe_runmake V=1 -C ${S} realclean > oe_runmake V=1 -C ${S} all fip pbl > PLAT=ls1012afrwy_512mb BOOT_MODE=${d} > RCW=${DEPLOY_DIR_IMAGE}/rcw/${PLATFORM}/${rcwimg} BL33=${bl33} ${bl32opt} > ${spdopt} ${secureopt} ${fuseopt} > -cp -r ${S}/build/ls1012afrwy_512mb/release/bl2_qspi.pbl > ${S}/bl2_${d}_512mb.pbl > +cp -r > ${S}/build/ls1012afrwy_512mb/release/bl2_qspi${secext}.pbl > ${S}/bl2_${d}${secext}_51
Re: [meta-freescale] Status of browser support.
On Sat, Mar 9, 2019 at 12:43 AM Björn Bosell wrote: > We eventually went a completely different route and patched the chromium > within qtwebengine with something based on the chromium-imx repo reworked > to apply to chromium 65. > > > Now I apologize beforehand because I do not know if this is the correct > place to ask these questions. > > > Where would be the best place to contribute these changes? > > Also what would be the best way? > Sure, please prepare a PR on github so we can review and apply it :-) -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] wpa_supplicant: Libgcrypt warning: missing initialization - please fix the application
Hello Mauro, On Thu, Mar 7, 2019 at 11:34 AM Mauro Ziliani wrote: > I'm working on imx6dlsabresd con Jethro/krogoth bsp. > > I manage the wifi connection with connman. > > > Suddenly the first time I use connman I get the error in subject and the > authentication fails, even if the psk inserted is ok. > > I restart connman service, I retry to auth with psk and all work ok. > > > How can I solve this? > > > Have you any experience about? > > > I working with a Edimax EW7811un usb dongle, with edimax driver. This does not sound i.MX specific; also it would be good to try to use a newer OE release as a bunch of fixes and improvements has been done since jethro and krogoth releases. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] [PATCH] imx-base: make gstreamer1.0 packages socarch specific
Hello Max, On Thu, Mar 7, 2019 at 7:34 AM Max Krummenacher wrote: > > gstreamer and its plugins have been forked for i.MX. So all of the generated > packages should have their PACKAGE_ARCH set to SOCARCH. > > Prevents, when building gstreamer for an i.MX machine followed by a non i.MX > machine: > > | ERROR: gstreamer1.0-1.14.4-r0 do_packagedata_setscene: QA Issue: Package > version for package gstreamer1.0 went backwards which would break package > feeds from (0:1.14.imx-r0 to 0:1.14.4-r0) [version-going-backwards] > | and many more for each generated package > > Signed-off-by: Max Krummenacher Could you cook a PR on github for us? -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] Broken/missing bbappend?
On Thu, Mar 7, 2019 at 12:23 AM Ruchika Dahiya wrote: > Is there any patch available for this chromium recipe missing problem ? > > I am still facing these error , > > ERROR: No recipes available for: > > > /mnt/dev_disk2/fsl-community-Rocko/fsl-community-bsp/sources/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium-wayland_48.0.2548.0.bbappend > > > /mnt/dev_disk2/fsl-community-Rocko/fsl-community-bsp/sources/meta-freescale/dynamic-layers/browser-layer/recipes-browser/chromium/chromium_52.0.2743.76.bbappend You cannot use meta-browser's master branch as it has been updated and the respective patches and bbappend files are based on earlier releases. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
Re: [meta-freescale] Building gstreamer-plugins-bad for iMX8
Hello Vincent, On Mon, Mar 4, 2019 at 5:37 AM Vincent DEHORS wrote: > When building a multimedia image for a Nitrogen8m with master branch, I got > the following error : > > from ../../../git/ext/opencv/gstgrabcut.cpp:90: [...] > error: conflicting declaration of C function 'CvMoments cvMoments(const > cv::Moments&) > > This error comes from gstreamer1.0-plugins-bad (1.14.imx). > > I managed to build by using HPP header instead of the C one in from > gstgrabcut.cpp, like this is already done in > 0001-opencv-fix-build-for-opencv-3-4-2.patch. I am not sure where to send the > patch, is-it the right place ? > > In gstreamer1.0-plugins-bad master, all C header includes have been removed > by : > > https://github.com/GStreamer/gst-plugins-bad/commit/26cabf9b1f2251df52be9958592b03518832cd9a Yes; here is a good place to send a patch. Please prepare it as a PR on github so we can review and handle it. -- Otavio Salvador O.S. Systems http://www.ossystems.com.brhttp://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750 -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale
[meta-freescale] [thud][fsl-community-bsp] building a correct sd card image
Hello, I have done the following procedure to try to build an image for my i.MX6 : - get the fsl-community-bsp repository on branch thud - run setup-environment like this : MACHINE=imx6qdlsabresd DISTRO=fslc-framebuffer ./setup-environment build - bitbake core-image-minimal - put the built image on a sd card with wic The sdcard goes to uboot, but isn't able to boot the linux kernel afterwards (it hangs at "Decompressing kernel..." from what I can see). I also tried with fsl-image-machine-test with the same result. Would anyone know what is going wrong ? The card boots fine with the official freescale BSP. Here are my variables: BB_VERSION = "1.40.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "universal" TARGET_SYS = "arm-fslc-linux-gnueabi" MACHINE = "imx6qdlsabresd" DISTRO = "fslc-framebuffer" DISTRO_VERSION = "2.6" TUNE_FEATURES = "arm armv7a vfp thumb neon callconvention-hard" TARGET_FPU = "hard" meta meta-poky = "HEAD:f5a57e939e626a5b7c6de5b51799ca602ed355ed" meta-oe meta-multimedia = "HEAD:6ef9657068492d4644079c88f2adee9c3cac9543" meta-freescale = "HEAD:6a43f14bce556189cb8e7338148b777ca6f6141a" meta-freescale-3rdparty = "HEAD:815df63f9b8997623fe9e23c78de736c25f0a4fd" meta-freescale-distro = "HEAD:ef7e7ec8141c5099ba87c766108f698b9cc2e9a0" Kind regards, Jean-Michaël -- ___ meta-freescale mailing list meta-freescale@yoctoproject.org https://lists.yoctoproject.org/listinfo/meta-freescale