Re: [yocto] Image specific configuration files

2018-06-13 Thread Iván Castell
e () { > install -m 755 ${WORKDIR}/rcS.release ${D}${sysconfdir}/init.d/rcS > } > > BBCLASSEXTEND = "production rnd release" > > ====== > > In your production image you add > > IMAGE_INSTALL_append = "busybox-production"

Re: [yocto] Adding kernel module to yocto core-image-base

2018-06-12 Thread Iván Castell
Hello. First you need to reconfigure your kernel configuration (ncurses must be properly installed in your host PC): $ bitbake -c menuconfig virtual/kernel After you need to generate a fragment.cfg (containing a diff betweeen your default and your recently customized kernel config): $

Re: [yocto] Issue when integrating different bsp-layers on a single bblayers.conf

2018-06-08 Thread Iván Castell
Hello. Many thanks for your explanation Mr. Trevor. That makes sense to me. At least now we know we are in the good way. 2018-06-07 18:47 GMT+02:00 Trevor Woerner : > Hi Iván, > > On Thu 2018-06-07 @ 04:39:11 PM, Iván Castell wrote: > > When setting the "build" direc

[yocto] Issue when integrating different bsp-layers on a single bblayers.conf

2018-06-07 Thread Iván Castell
Hello forum. I am trying to integrate several BSP-layers for different platforms on a single Yocto repository to build a Linux Yocto-based distro for all those platforms easily. The idea is maintaining a single bblayers.conf with all the layers available, set PLATFORM and DISTRO on local.conf,

Re: [yocto] partitions resizing on the fly

2018-06-05 Thread Iván Castell
I managed this issue redefining this script in my custom layer (rocko branch): scripts/lib/wic/canned-wks/mkefidisk.wks and setting a bigger size for the root partition (80GB in my case): part / --source rootfs --ondisk sda --fstype=ext4 --label platform --align 1024 --use-uuid --*size

Re: [yocto] Image specific configuration files

2018-06-01 Thread Iván Castell
2018-06-01 11:24 GMT+02:00 Alexander Kanavin : > I have to say defining multiple distros and then tweaking recipes > according to those definitions is not a good practice, as recipes should > generally only access DISTRO_FEATURES and otherwise be distro-agnostic. The > above iptables scenario

Re: [yocto] Image specific configuration files

2018-06-01 Thread Iván Castell
means that you create a single image > file per build > (which can be any of the given types)? > You're setup doesn't allow for building the "developent" and > "production" image at the same time? > > Be Well, > Alan > > > > On Fri, Jun 1, 2018 at 11:0

Re: [yocto] Image specific configuration files

2018-06-01 Thread Iván Castell
f these types of images for a while now. > > So far have avoided diving into multiple distros because would like to > have the option > of building all the images at the same time (so they are basically the > same distro). > > On Fri, Jun 1, 2018 at 8:13 AM, Iván Castell >

Re: [yocto] Image specific configuration files

2018-06-01 Thread Iván Castell
I fixed this issue defining different distro.conf files in my custom layer, adding a custom variable DISTRO_STAGE with the name of my distro (production, rnd, retail, and so on), Then you setup DISTRO in your local.conf to the proper value you want to use. Finally you can use that DISTRO_STAGE

Re: [yocto] Compilation error after upgrading rocko branch

2018-05-11 Thread Iván Castell
em sent a patch this morning, but the > workaround right now is to disable uninative. This in your local.conf > will work: > > INHERIT_remove = "uninative" > > Ross > > On 11 May 2018 at 13:02, Iván Castell <icast...@nayarsystems.com> wrote: > > Hello for

[yocto] Compilation error after upgrading rocko branch

2018-05-11 Thread Iván Castell
Hello forum. After updating all my layers to the lastest state of the "rocko" branch, I am getting this error in "meta-oe" layer: | In file included from ../../git/fontforge/splinefont.h:36:0, | from ../../git/fontforge/sd.h:34, | from

Re: [yocto] Native curl and SSL CA certificates

2018-05-10 Thread Iván Castell
Ok that's already fixed. I could manage it executing this in host machine after building the image: $ bitbake package-index 2018-05-10 16:01 GMT+02:00 Iván Castell <icast...@nayarsystems.com>: > Once the image was build and cloned into the target device, this error > appears

Re: [yocto] Native curl and SSL CA certificates

2018-05-10 Thread Iván Castell
mp/deploy/rpm After that, "repodata" directory appears in the package feed and "repomd.xml" file is inside available, but "repomd.xml.asc" is still not found. Do I am missing something? Thank you in advance! 2018-05-09 13:44 GMT+02:00 Iván Castell <icast...@nayarsyst

Re: [yocto] Native curl and SSL CA certificates

2018-05-09 Thread Iván Castell
exander Kanavin < alexander.kana...@linux.intel.com>: > On 05/09/2018 09:29 AM, Iván Castell wrote: > >> But I am not fetching nor installing packages over the network during >> image creation. I just build an image using local recipes (standard >> procedure). One of those loca

Re: [yocto] Native curl and SSL CA certificates

2018-05-09 Thread Iván Castell
pos.d install -m 0600 ${WORKDIR}/yocto-adv-rpm.repo ${D}/etc/yum.repos.d/yocto-adv-rpm.repo } FILES_${PN} += "/etc/yum.repos.d" The contets of yocto-adv-rpm.repo are in the previous message. 2018-05-09 8:29 GMT+02:00 Iván Castell <icast...@nayarsystems.com>: > But I am no

Re: [yocto] Native curl and SSL CA certificates

2018-05-09 Thread Iván Castell
-certificates.crt is properly installed, the build process ends fine. If that file is not properly installed, the build process fails with the error reported in my previous message. 2018-05-08 21:15 GMT+02:00 Alexander Kanavin < alexander.kana...@linux.intel.com>: > On 05/08/2018 05:55

[yocto] Native curl and SSL CA certificates

2018-05-08 Thread Iván Castell
Hello forum. Using the "rocko" branch. The SSL CA certificates "ca-certificates.crt" don't appear inside this directory: build/tmp/work/x86_64-linux/curl-native/7.54.1-r0/recipe-sysroot-native/etc/ssl/certs/ That generates issues when trying to build images that use a https repository of rpm

Re: [yocto] Writing a functional Dockerfile to run a container with a package revision (PR) server

2018-05-04 Thread Iván Castell
Iván Castell <icast...@nayarsystems.com>: > The purpose is deploying a yocto PR server using a docker container. More > info about PR server can be found in the following link: https://wiki. > yoctoproject.org/wiki/PR_Service > > To try doing that I wrote this "Dockerfile&q

[yocto] Writing a functional Dockerfile to run a container with a package revision (PR) server

2018-05-04 Thread Iván Castell
The purpose is deploying a yocto PR server using a docker container. More info about PR server can be found in the following link: https://wiki.yoctoproject.org/wiki/PR_Service To try doing that I wrote this "Dockerfile" to generate a docker image: FROM ubuntu:16.04 MAINTAINER Yocto

[yocto] Generation of images when using repository of signed rpm packages

2018-04-26 Thread Iván Castell
Hello forum. I have two questions related with the generation of images when the distro is configured to use a repository of rpm packages signed with gpg. First question: after running the "bitbake my-image.bb" command, the build process stops with this message of error: ERROR: myimage-1.0-r0

Re: [yocto] Usage of yocto on different (production vs debug) scenarios

2018-04-25 Thread Iván Castell
scenarios? Thank you in advance! :-) 2018-04-24 8:45 GMT+02:00 Iván Castell <icast...@nayarsystems.com>: > That sounds really convincing, I will give it a chance and come back to > describe the hole process after all. Thank you for that valuable > infor

Re: [yocto] Usage of yocto on different (production vs debug) scenarios

2018-04-24 Thread Iván Castell
That sounds really convincing, I will give it a chance and come back to describe the hole process after all. Thank you for that valuable information Mr. Ross 2018-04-23 17:38 GMT+02:00 Burton, Ross : > Very curious as to what book said that, because *any* example of that >

Re: [yocto] Usage of yocto on different (production vs debug) scenarios

2018-04-23 Thread Iván Castell
Thanks a lot for all your replies. I am working on a solution trying to get the best option of all your answers. I will come back after deciding my solution to share it with the community. Related with that shared state cache, I found some information on a e-book (search the text on google to

[yocto] Usage of yocto on different (production vs debug) scenarios

2018-04-20 Thread Iván Castell
Hello forum. We are trying to use yocto in a continuous integration environment with different (production vs debug) scenarios. To setup a given scenario (production vs debug) we are using something like this: $ SCENARIO=debug $ MACHINE= DISTRO=-${SCENARIO} source

Re: [yocto] compiling core-image-sato failure on 32 bits system

2018-04-17 Thread Iván Castell
poky-linux/linux-libc-headers/4.12-r0/temp/log.do_install.4172 contents to gather more useful information to discover/fix your issue. 2018-04-17 11:50 GMT+02:00 Stéphane Ancelot <sance...@numalliance.com>: > > > Le 17/04/2018 à 09:08, Iván Castell a écrit : > > Review "d

[yocto] Issues related generation of an image build with signed rpm packages

2018-03-26 Thread Iván Castell
Hello forum. In order to generate a distro image with support for signed rpm packages, I generated a pair of GPG keys, and setup my custom distro.conf file so Yocto can sign packages it generates. My distro.conf file includes this: INHERIT += "sign_rpm" RPM_GPG_NAME = "gpgyocto"

Re: [yocto] How to check list of installed packages to stop the build process conditionally

2018-03-26 Thread Iván Castell
urrent/mega-manual/mega- > manual.html#var-RCONFLICTS > > Best regards, > Vincent > > 2018-03-26 9:54 GMT+02:00 Iván Castell <icast...@nayarsystems.com>: > >> Hello forum. >> >> My layer provides two custom recipes A and B with exactly the same >>

[yocto] How to check list of installed packages to stop the build process conditionally

2018-03-26 Thread Iván Castell
Hello forum. My layer provides two custom recipes A and B with exactly the same functionality. To get a working image, one of these two recipes must be included on the generated image (A_installed XOR B_installed). So I need the build process being able to check the list of installed packages,

Re: [yocto] Kickstart file to customize rootfs mount opts not modifying fstab as expected

2018-03-15 Thread Iván Castell
After some googling I fixed my issue customizing mkefidisk.wks script, adding "rootflags=data=journal" to the line related with the bootloader: bootloader --ptable gpt --timeout=5 --append="rootfstype=ext4 console=ttyS0,115200 console=tty0 rootflags=data=journal noapic" Now my rootfs is

[yocto] Kickstart file to customize rootfs mount opts not modifying fstab as expected

2018-03-14 Thread Iván Castell
Hello forum. I want to customize my rootfs partition to be mounted with the "data=journal" option enabled. To do that I have modified my layer adding a custom mkefidisk.wks script with this contents for the rootfs partition: part / --source rootfs --ondisk sda --fstype=ext4

Re: [yocto] Yocto procedure to write generated image to hdd

2018-03-02 Thread Iván Castell
/init: line98: grep: command not found /init: line112: sed: command not found And after all, this error message appears: ERROR: Initramfs failed to initialize the system Hope all this information can be helpful to fix this issue. Thank you in advance! :-) 2018-03-02 9:52 GMT+01:00 Iván

Re: [yocto] Yocto procedure to write generated image to hdd

2018-03-02 Thread Iván Castell
ipes-core/initrdscripts/initramfs-framework/init. In that init script there are two calls to "fatal" function. Maybe this information can be useful to discover what is happening. I have tested adding suggested "init_fatal_sh" bootarg but I don't get any shell to debug the proble

Re: [yocto] Yocto procedure to write generated image to hdd

2018-03-01 Thread Iván Castell
2018-03-02 0:41 GMT+01:00 Anuj Mittal <anuj.mit...@intel.com>: > Hi, > > On 03/01/2018 07:20 PM, Iván Castell wrote: > > > > Is this the proper way to install the generated image in the hard disk? > > Maybe I am doing something wrong? > > Does the image b

Re: [yocto] Yocto procedure to write generated image to hdd

2018-03-01 Thread Iván Castell
ul. Thanks in advance!! 2018-03-01 12:20 GMT+01:00 Iván Castell <icast...@nayarsystems.com>: > Hello forum. > > Working with 'rocko' yocto branch. Yocto generates .ext4, .hddimg and .wic > images. I want to install the proper image to the HDD of my PC, in order to > use it as my d

[yocto] Yocto procedure to write generated image to hdd

2018-03-01 Thread Iván Castell
Hello forum. Working with 'rocko' yocto branch. Yocto generates .ext4, .hddimg and .wic images. I want to install the proper image to the HDD of my PC, in order to use it as my default Linux distro. I have been using the .wic image to boot from the USB pendrive until now, writing it to the USB

Re: [yocto] Expansion of variables inside do_package_prepend task

2018-02-22 Thread Iván Castell
2018-02-21 17:17 GMT+01:00 Joshua Watt <jpewhac...@gmail.com>: > On Wed, 2018-02-21 at 16:50 +0100, Iván Castell wrote: > > Hello forum. > > I have a question regarding the expansion of variables in a recipe. > Suppose I have a recipe with this "do_install"

[yocto] Expansion of variables inside do_package_prepend task

2018-02-21 Thread Iván Castell
Hello forum. I have a question regarding the expansion of variables in a recipe. Suppose I have a recipe with this "do_install" task defined: do_install() { BBB = ${WORKDIR} } Variable BBB expands to the proper working directory. $ bitbake -e | grep BBB BBB =

Re: [yocto] Removing busybox completely from the generated image

2018-02-21 Thread Iván Castell
2018-02-21 4:01 GMT+01:00 Paul Eggleton <paul.eggle...@linux.intel.com>: > On Tuesday, 20 February 2018 9:26:49 PM NZDT Iván Castell wrote: > > 2018-02-20 7:45 GMT+01:00 Martin Hundebøll <m...@prevas.dk>: > > >> Thank you for the information, I will take into ac

Re: [yocto] Removing busybox completely from the generated image

2018-02-20 Thread Iván Castell
2018-02-20 7:45 GMT+01:00 Martin Hundebøll : > Hi Ivan, > >> >> Thank you for the information, I will take into account that tool for >> future embedded projects. However, the focus of this issue was to remove >> completely busybox from the image, not replacing it by another

Re: [yocto] Removing busybox completely from the generated image

2018-02-19 Thread Iván Castell
2018-02-19 16:18 GMT+01:00 Maxin B. John <maxin.j...@intel.com>: > Hi, > > On Mon, Feb 19, 2018 at 02:17:38AM -0800, Khem Raj wrote: > > On Mon, Feb 19, 2018 at 12:35 AM, Iván Castell > > <icast...@nayarsystems.com> wrote: > > > I have tried breaking a

Re: [yocto] Removing busybox completely from the generated image

2018-02-19 Thread Iván Castell
some valid alternative available? Where are these alternatives defined? In general, is it posible to build yocto images without using busybox at all? 2018-02-16 16:56 GMT+01:00 Iván Castell <icast...@nayarsystems.com>: > Hello forum! > > I'm trying to build a yocto image without b

[yocto] Removing busybox completely from the generated image

2018-02-16 Thread Iván Castell
Hello forum! I'm trying to build a yocto image without busybox and without any busybox applet deployed. I have tried that configuring my distro.conf file in this way: DISTRO_FEATURES_remove = " busybox" VIRTUAL-RUNTIME_base-utils = "" PREFERRED_PROVIDER_virtual/base-utils = ""

[yocto] go-runtime ABI issues when executing a Go lang project compiled with yocto

2018-02-16 Thread Iván Castell
Hi forum. I'm having ABI issues trying to compile a Go lang related project. In order to resolve my project dependencies, I use dep tool. To be able to dep, I had to modify meta/recipes-devtools/go/go-dep_0.3.0.bb, adding this at the end: BBCLASSEXTEND = "native nativesdk" After that, this

[yocto] Howto generate a Yocto image with spanish full-support by default

2018-02-16 Thread Iván Castell
Hello yocto mailing list. I'm having troubles trying to setup a Yocto image with full support to English and Spanish languages (Spanish as default). The testing image I am building is based on the rocko branch, and my distro is "systemd" based. My current distro.conf yocto setup is this: