From mboxrd@z Thu Jan 1 00:00:00 1970 X-GM-THRID: 6551704819136987136 X-Received: by 2002:a2e:9917:: with SMTP id v23-v6mr144998lji.1.1525444357634; Fri, 04 May 2018 07:32:37 -0700 (PDT) X-BeenThere: isar-users@googlegroups.com Received: by 2002:a19:ae09:: with SMTP id f9-v6ls1359596lfc.13.gmail; Fri, 04 May 2018 07:32:37 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoSsd0qxG4LG6xhIBQMtCknGqorC/ymFDqObaXlC4Y5ewXWRG2dBRAzAmJL3o4t+uaYIyhK X-Received: by 2002:a19:93d6:: with SMTP id w83-v6mr755931lfk.16.1525444357104; Fri, 04 May 2018 07:32:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525444357; cv=none; d=google.com; s=arc-20160816; b=RMZNBFjRlNmA8S6i76wCnZ2n9oThEC0Iup9gFJxDGQpks+CCULwZtKm14ane9E2JNX 1tEsA9T3yMbnquA4CUmeXKYNz0z8LHPre8+TNKQKlL/UrL1XyxLJy2XlsLDak/d+dHxO Vkeir1joLbmvZNq/0zJL3e8FyhAN0o9Vd7vqnB5L0JX7+5NqTFv6nfVRTIhypnKWkKKm u78hGjLKvU4oMAwt4srCWQ238qZpcMYmo6zUnBn4LTLvDQc3YJrM0e5zgW+e25DDozvK Hz4zJQ36uHfETDoiLdMCv0VKqDblTzyoGAJlR5dQsqrIkQWw57ORmtp0wcd2yT52YGQX VrHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:arc-authentication-results; bh=LLx9gon+7rR7eGCFloWkZj2/U2ryQT1NeI2UtGnOKYY=; b=ZNNgf9uhT+mtyP6dd8jUKBRrEhGajjL1F2S+JveoKMEzFC9ELftX2T3/IWyGVBLDpZ HYyvGqjShIJ/7agZrh3GPyW0Yen/2VxAaA7h1GcJB72cxPJ4gMCoW27eFGPdw9rtXInK 1Ffhjrn6c6OM1BHHw2MVi0hGtLxbzfePn3cc3NJemskmO2zhhynoG9fZaPgKygOQiLjK ggbFkJigwGAaxeCjyb9I8WZdkhyL2FykkOitlyyuxTSQji0g13XZY6AL4vrFPi2OID96 /Ce3br9Ulw+AWi+R88v9/jKDWOfJ0RFcpOpbixuttr6Q6yqYwhPt/hvQOByQ8Ys9VIxW vz1g== ARC-Authentication-Results: i=1; gmr-mx.google.com; spf=pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) smtp.mailfrom=fdprnd@dave.eu Return-Path: Received: from mx.dave-tech.it (mx.dave-tech.it. [185.100.109.150]) by gmr-mx.google.com with ESMTP id i130-v6si438666lfi.5.2018.05.04.07.32.36 for ; Fri, 04 May 2018 07:32:36 -0700 (PDT) Received-SPF: pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) client-ip=185.100.109.150; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of fdprnd@dave.eu designates 185.100.109.150 as permitted sender) smtp.mailfrom=fdprnd@dave.eu Received: from [127.0.0.1] (unknown [192.168.0.115]) by mx.dave-tech.it (Postfix) with ESMTPS id 1DCE690; Fri, 4 May 2018 16:32:36 +0200 (CEST) Subject: Re: build and install .deb package To: Alexander Smirnov , isar-users@googlegroups.com References: <96b097fa-b6b4-a3a3-3264-9988029a0c94@ilbers.de> <8d0fe46e-1de6-81db-12a1-51764da65740@dave.eu> <72c018b0-2740-04af-1baa-e2b19170d83c@ilbers.de> From: Francesco Message-ID: Date: Fri, 4 May 2018 16:32:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <72c018b0-2740-04af-1baa-e2b19170d83c@ilbers.de> Content-Type: multipart/alternative; boundary="------------3DD368CEBA09006025143A8F" Content-Language: en-GB X-TUID: 3eDLC0rKXEr0 This is a multi-part message in MIME format. --------------3DD368CEBA09006025143A8F Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Here it is: 1. Name and path to your mypackage recipe:     meta-dave/recipes-devtools/testpkg/testpkg_0.1.bb 2. The variables from your mypackage recipe: PN, PROVIDES.     DESCRIPTION = "Sample application for ISAR"     MAINTAINER = "Your name here "     DEBIAN_DEPENDS = "apt (>= 0.4.2), passwd"     PN = "testpkg"     SRC_URI = "file://README \     file://postinst \     file://uImage \     file://lynx-modules.tar.gz \     file://imx6ul-lynx-som0013-cb002f.dtb \     " 3. The content of your conf/bblayers.conf file.     # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf     # changes incompatibly     LCONF_VERSION = "6"     BBPATH = "${TOPDIR}"     BBFILES ?= ""     BBLAYERS ?= " \       /mnt/elbe/Isar/isar/meta \       /mnt/elbe/Isar/isar/meta-isar \       /mnt/elbe/Isar/isar/meta-dave \       "     BBLAYERS_NON_REMOVABLE ?= " \       /mnt/elbe/Isar/isar/meta \       " 4. The full line IMAGE_INSTALL you've added.     IMAGE_INSTALL += "testpkg" P.S. Also, am I right, that you are able to run 'bitbake mypackage' without errors? /bitbake multiconfig:lynx-config:lynx-image/ Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:01 Parsing of 17 .bb files complete (0 cached, 17 parsed). 187 targets, 0 skipped, 0 masked, 0 errors. NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:00 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 9 tasks of which 0 didn't need to be rerun and all succeeded. / bitbake multiconfig:lynx-config:testpkg/ Loading cache: 100% |#############################################################################################################################################| Time: 0:00:00 Loaded 187 entries from dependency cache. NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies NOTE: Resolving any missing task queue dependencies Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:00 NOTE: Executing RunQueue Tasks NOTE: Tasks Summary: Attempted 14 tasks of which 3 didn't need to be rerun and all succeeded. As you can see the package and the image can be built fine if the variable IMAGE_INSTALL is left empty. As soon as I add testpkg to the IMAGE_INSTALL variable I get this error: | Fetched 12.6 MB in 10s (1,174 kB/s) | Reading package lists... | W: GPG error: http://security.debian.org jessie/updates InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?) | W: GPG error: http://ftp.debian.org jessie-updates InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?) | W: GPG error: http://ftp.debian.org jessie Release: Could not execute 'gpgv' to verify signature (is gpgv installed?) | I: Calculating required packages. | apt-get -y  -o Apt::Architecture=armhf -o Dir::Etc::TrustedParts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/mn t/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/trusted.gpg.d/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Apt::Ins tall-Recommends=false -o Dir=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/ -o Dir::Etc=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt / -o Dir::Etc::Parts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-ar mhf/lynx-image/rootfs/etc/apt/preferences.d/ -o APT::Default-Release=* -o Dir::State=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/lib/apt/ -o Dir::State:: Status=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/lib/dpkg/status -o Dir::Cache=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/cach e/apt/ install  apache2 apt base-files base-passwd bash bsdutils build-essential coreutils curl dash dbus debconf debconf-i18n debianutils diffutils dpkg e2fslibs e2fsprogs find utils gcc-4.8-base gcc-4.9-base gpgv grep gzip hostname init initscripts libacl1 libattr1 libblkid1 libc-bin libc6 libcomerr2 libgcc1 liblocale-gettext-perl liblzma5 libmount1 l ibncurses5 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre3 libselinux1 libsepol1 libsmartcols1 libss2 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi1 8n-perl libtinfo5 libuuid1 localepurge login lsb-base mawk mount multiarch-support ncurses-base ncurses-bin nginx openssh-server passwd perl-base sed sensible-utils sqlite3 star tpar sudo sysv-rc sysvinit-utils tar testpkg tftp tzdata util-linux vim wget zlib1g | Reading package lists... | Building dependency tree... | E: Unable to locate package testpkg | apt download failed. Exit value: 100 | WARNING: exit code 100 from a shell command. | ERROR: Function failed: do_rootfs (log file is located at /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/temp/log.do_rootfs.17385) ERROR: Task (multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-core/images/lynx-image.bb:do_rootfs) failed with exit code '1' NOTE: Tasks Summary: Attempted 6 tasks of which 5 didn't need to be rerun and 1 failed. My understanding is this: The testpkg.deb is generated and placed correctly inside the build/tmp/work/lynx-armhf/testpkg-0.1-r0 but then it seems that  it can't be found while the image is being built. How does bitbake know how to install the package? For other pre-compiled packages I used a dedicated recipe which inherits from dpkg class. These packages however,  were not being produced at runtime.  The situation now is a bit different. I'm trying to build the package and install it on the rootfs at runtime. Perhaps I'm misunderstanding something, given that my experience with both yocto and isar is quite limited. Thanks Frank On 04/05/2018 15:17, Alexander Smirnov wrote: > On 05/04/2018 04:03 PM, Francesco wrote: >> I tried to add the package name to the IMAGE_INSTALL variable inside >> my image recipe. This returned an error: Unable to locate package >> mypackage. I thought that I was doing something wrong, but I guess >> that if this is the correct way, the problem is somewhere else. >> > > Possibly I could also take a look on this, if you provide: > > 1. Name and path to your mypackage recipe, like: > > meta-isar/recipes-app/libhello/libhello.bb > > 2. The variables from your mypackage recipe: PN, PROVIDES. > > 3. The content of your conf/bblayers.conf file. > > 4. The full line IMAGE_INSTALL you've added. > > P.S. Also, am I right, that you are able to run 'bitbake mypackage' > without errors? > > Alex > >> Frank >> >> >> On 04/05/2018 14:49, Alexander Smirnov wrote: >>> Hello, >>> >>> On 05/04/2018 03:40 PM, Francesco wrote: >>>> Hello guys, >>>> >>>> I still have a question regarding the management of customised >>>> packages. >>>> >>>> I managed to create my .deb package using dpkg-raw but I would like >>>> also to install it on the rootfs of my image. How can this be done? >>>> >>>> Adding the package to IMAGE_INSTALL variable, does  not seem to >>>> work. Perhaps another recipe is required? >>> >>> it depends where you've added IMAGE_INSTALL. It should be visible >>> for image recipe, so you have to add it to one of the following places: >>> 1. Into you image recipe. If you use isar-image-base, then update >>> file 'meta-isar/recipes-core/isar-image-base.bb' >>> 2. Edit 'conf/local.conf' file in your build directory and add this >>> line to the end. >>> >>> Alex >>> >> --------------3DD368CEBA09006025143A8F Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

Here it is:

1. Name and path to your mypackage recipe:

    meta-dave/recipes-devtools/testpkg/testpkg_0.1.bb

2. The variables from your mypackage recipe: PN, PROVIDES.

    DESCRIPTION = "Sample application for ISAR"
    MAINTAINER = "Your name here <you@domain.com>"
    DEBIAN_DEPENDS = "apt (>= 0.4.2), passwd"
    PN = "testpkg"
   
    SRC_URI = "file://README \
    file://postinst \
    file://uImage \
    file://lynx-modules.tar.gz \
    file://imx6ul-lynx-som0013-cb002f.dtb \
    "


3. The content of your conf/bblayers.conf file.
   
    # LAYER_CONF_VERSION is increased each time build/conf/bblayers.conf
    # changes incompatibly
    LCONF_VERSION = "6"
   
    BBPATH = "${TOPDIR}"
    BBFILES ?= ""
   
    BBLAYERS ?= " \
      /mnt/elbe/Isar/isar/meta \
      /mnt/elbe/Isar/isar/meta-isar \
      /mnt/elbe/Isar/isar/meta-dave \
      "
    BBLAYERS_NON_REMOVABLE ?= " \
      /mnt/elbe/Isar/isar/meta \
      "
4. The full line IMAGE_INSTALL you've added.
    IMAGE_INSTALL += "testpkg"

P.S. Also, am I right, that you are able to run 'bitbake mypackage' without errors?
 bitbake multiconfig:lynx-config:lynx-image
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:00:01
Parsing of 17 .bb files complete (0 cached, 17 parsed). 187 targets, 0 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 9 tasks of which 0 didn't need to be rerun and all succeeded.
 bitbake multiconfig:lynx-config:testpkg
Loading cache: 100% |#############################################################################################################################################| Time: 0:00:00
Loaded 187 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:00
NOTE: Executing RunQueue Tasks
NOTE: Tasks Summary: Attempted 14 tasks of which 3 didn't need to be rerun and all succeeded.

As you can see the package and the image can be built fine if the variable IMAGE_INSTALL is left empty. As soon as I add testpkg to the IMAGE_INSTALL variable I get this error:

| Fetched 12.6 MB in 10s (1,174 kB/s)
| Reading package lists...
| W: GPG error: http://security.debian.org jessie/updates InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?)
| W: GPG error: http://ftp.debian.org jessie-updates InRelease: Could not execute 'gpgv' to verify signature (is gpgv installed?)
| W: GPG error: http://ftp.debian.org jessie Release: Could not execute 'gpgv' to verify signature (is gpgv installed?)
| I: Calculating required packages.
| apt-get -y  -o Apt::Architecture=armhf -o Dir::Etc::TrustedParts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/trusted.gpg.d -o Dir::Etc::Trusted=/mn
t/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/trusted.gpg.d/trusted.gpg -o Apt::Get::AllowUnauthenticated=true -o Apt::Get::Download-Only=true -o Apt::Ins
tall-Recommends=false -o Dir=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/ -o Dir::Etc=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt
/ -o Dir::Etc::Parts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/etc/apt/apt.conf.d/ -o Dir::Etc::PreferencesParts=/mnt/elbe/Isar/isar/build/tmp/work/lynx-ar
mhf/lynx-image/rootfs/etc/apt/preferences.d/ -o APT::Default-Release=* -o Dir::State=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/lib/apt/ -o Dir::State::
Status=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/lib/dpkg/status -o Dir::Cache=/mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/rootfs/var/cach
e/apt/ install  apache2 apt base-files base-passwd bash bsdutils build-essential coreutils curl dash dbus debconf debconf-i18n debianutils diffutils dpkg e2fslibs e2fsprogs find
utils gcc-4.8-base gcc-4.9-base gpgv grep gzip hostname init initscripts libacl1 libattr1 libblkid1 libc-bin libc6 libcomerr2 libgcc1 liblocale-gettext-perl liblzma5 libmount1 l
ibncurses5 libpam-modules libpam-modules-bin libpam-runtime libpam0g libpcre3 libselinux1 libsepol1 libsmartcols1 libss2 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi1
8n-perl libtinfo5 libuuid1 localepurge login lsb-base mawk mount multiarch-support ncurses-base ncurses-bin nginx openssh-server passwd perl-base sed sensible-utils sqlite3 star
tpar sudo sysv-rc sysvinit-utils tar testpkg tftp tzdata util-linux vim wget zlib1g
| Reading package lists...
| Building dependency tree...
| E: Unable to locate package testpkg
| apt download failed. Exit value: 100
| WARNING: exit code 100 from a shell command.
| ERROR: Function failed: do_rootfs (log file is located at /mnt/elbe/Isar/isar/build/tmp/work/lynx-armhf/lynx-image/temp/log.do_rootfs.17385)
ERROR: Task (multiconfig:lynx-config:/mnt/elbe/Isar/isar/meta-dave/recipes-core/images/lynx-image.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 6 tasks of which 5 didn't need to be rerun and 1 failed.


My understanding is this: The testpkg.deb is generated and placed correctly inside the build/tmp/work/lynx-armhf/testpkg-0.1-r0 but then it seems that  it can't be found while the image is being built. How does bitbake know how to install the package? For other pre-compiled packages I used a dedicated recipe which inherits from dpkg class. These packages however,  were not being produced at runtime.  The situation now is a bit different. I'm trying to build the package and install it on the rootfs at runtime.
Perhaps I'm misunderstanding something, given that my experience with both yocto and isar is quite limited.
Thanks

Frank

On 04/05/2018 15:17, Alexander Smirnov wrote:
On 05/04/2018 04:03 PM, Francesco wrote:
I tried to add the package name to the IMAGE_INSTALL variable inside my image recipe. This returned an error: Unable to locate package mypackage. I thought that I was doing something wrong, but I guess that if this is the correct way, the problem is somewhere else.


Possibly I could also take a look on this, if you provide:

1. Name and path to your mypackage recipe, like:

meta-isar/recipes-app/libhello/libhello.bb

2. The variables from your mypackage recipe: PN, PROVIDES.

3. The content of your conf/bblayers.conf file.

4. The full line IMAGE_INSTALL you've added.

P.S. Also, am I right, that you are able to run 'bitbake mypackage' without errors?

Alex

Frank


On 04/05/2018 14:49, Alexander Smirnov wrote:
Hello,

On 05/04/2018 03:40 PM, Francesco wrote:
Hello guys,

I still have a question regarding the management of customised packages.

I managed to create my .deb package using dpkg-raw but I would like also to install it on the rootfs of my image. How can this be done?

Adding the package to IMAGE_INSTALL variable, does  not seem to work. Perhaps another recipe is required?

it depends where you've added IMAGE_INSTALL. It should be visible for image recipe, so you have to add it to one of the following places:
1. Into you image recipe. If you use isar-image-base, then update file 'meta-isar/recipes-core/isar-image-base.bb'
2. Edit 'conf/local.conf' file in your build directory and add this line to the end.

Alex



--------------3DD368CEBA09006025143A8F--