Problem Building DHCP into image
Dear all,
I try to build a yocto image using the following receipe
The build config is
Build Configuration:
BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "dora:19745990465b37107142c5464008ca9f7959cc0b" meta-oe meta-networking = "dora:ee173678383683e972c7d4d6f0ef5790bfa50274" meta-ros = "master:821427d23adb33674da76dc34d8ab6983590fcd4" meta-overo = "dora:49d78254783e7cd1da4b7695e0014d526fbb6d58" meta-dfki = "master:d6156057fc7adc1585ec28505f63633e981f66d3"
The problem is building the dhcp part, i.e.
IMAGE_INSTALL += " \
dhcp\"
using bitbake dhcp runs fine, but
bitbake my image (see pastbin) results in
| Configuring iftop.
| Collected errors:
| * opkg_install_cmd: Cannot install package dhcp.
| WARNING: /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/run.do_rootfs.26292:1 exit 255 from
| opkg-cl ${ipkg_args} install ${package_to_install}
| ERROR: Function failed: do_rootfs (log file is located at /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/log.do_rootfs.26292)ERROR: Task 7 (/home/eich/overo/meta-dfki/images/dfki-console-image.bb, do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5619 didn't need to be rerun and 1 failed. No currently running tasks (5619 of 5621)
Summary: 1 task failed:
/home/eich/overo/meta-dfki/images/dfki-console-image.bb, do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Any ideas?
Cheers,
Markus
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------
Quoted 28 lines · Dr. Markus Eich
Dear all,
I try to build a yocto image using the following receipe
The build config is
Build Configuration:
BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "dora:19745990465b37107142c5464008ca9f7959cc0b" meta-oe meta-networking = "dora:ee173678383683e972c7d4d6f0ef5790bfa50274" meta-ros = "master:821427d23adb33674da76dc34d8ab6983590fcd4" meta-overo = "dora:49d78254783e7cd1da4b7695e0014d526fbb6d58" meta-dfki = "master:d6156057fc7adc1585ec28505f63633e981f66d3"
Quoted 5 lines
The problem is building the dhcp part, i.e.
IMAGE_INSTALL += " \ dhcp\"
I think you probably want dhcp-server
Quoted 31 lines
using bitbake dhcp runs fine, but
bitbake my image (see pastbin) results in
| Configuring iftop. | Collected errors: | * opkg_install_cmd: Cannot install package dhcp. | WARNING: /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/run.do_rootfs.26292:1 exit 255 from | opkg-cl ${ipkg_args} install ${package_to_install} | ERROR: Function failed: do_rootfs (log file is located at /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/log.do_rootfs.26292)ERROR: Task 7 (
/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5619 didn't need to be rerun and 1 failed. No currently running tasks (5619 of 5621)Summary: 1 task failed:
/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.Any ideas?
Cheers,
Markus
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Quoted 4 lines · Dr. Markus Eich
Maybe I should start with what I intend to do (sorry, I am newbie in yocto)
The image I have runs fine with my network connection. It only cannot get the DNS resolving working. When connect to my board, I have to use
Quoted 8 lines
dhclient once manually. I want to do this using the systemd configuration. So I need to install the service somehow at start.
Checking the dhcp_4.2.5-P1.bbappend receipe I found
SYSTEMD_AUTO_ENABLE_dhcp-client = "disable"
how can I make my receipe to start dhcp client via a systemd service?
This question surely belongs on the mailing list, where everyone can benefit from the discussion (and someone who actually knows/likes systemd can answer)
Quoted 71 lines
Am 22.05.2014 17:34, schrieb Gary Thomas:
Quoted 68 lines · Dr. Markus Eich
Quoted 28 lines
Dear all,
I try to build a yocto image using the following receipe
The build config is
Build Configuration:
BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "dora:19745990465b37107142c5464008ca9f7959cc0b" meta-oe meta-networking = "dora:ee173678383683e972c7d4d6f0ef5790bfa50274" meta-ros = "master:821427d23adb33674da76dc34d8ab6983590fcd4" meta-overo = "dora:49d78254783e7cd1da4b7695e0014d526fbb6d58" meta-dfki = "master:d6156057fc7adc1585ec28505f63633e981f66d3"Quoted 5 lines
The problem is building the dhcp part, i.e.
IMAGE_INSTALL += " \ dhcp\"
I think you probably want dhcp-server
Quoted 30 lines
using bitbake dhcp runs fine, but
bitbake my image (see pastbin) results in
| Configuring iftop. | Collected errors: | * opkg_install_cmd: Cannot install package dhcp. | WARNING: /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/run.do_rootfs.26292:1 exit 255 from | opkg-cl ${ipkg_args} install ${package_to_install} | ERROR: Function failed: do_rootfs (log file is located at /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/log.do_rootfs.26292)ERROR: Task 7 (
/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5619 didn't need to be rerun and 1 failed. No currently running tasks (5619 of 5621)Summary: 1 task failed:
/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.Any ideas?
Cheers,
Markus
Signature · 4 lines
------------------------------------------------------------ Gary Thomas | Consulting for the MLB Associates | Embedded world ------------------------------------------------------------
Hello Markus,
By running:
bitbake dhcp
you actually will run the dhcp recipe and all tasks that goes into it (that will create packages, among other things). By adding IMAGE_INSTALL, you try to add a certain package into the build.
I will recommend to use CORE_IMAGE_EXTRA_INSTALL anyhow.
Now, the dhcp recipe will build the following packages:
dhcp-server, dhcp-server-config, dhcp-client, dhcp-relay, etc.
I believe that you want to add one of this to your image (server, client, etc).
Regards,
Cristian Iorga
YP
Intel Corporation
-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dr. Markus Eich
Sent: Thursday, May 22, 2014 6:23 PM
To: [email protected]
Subject: [poky] Problem Building DHCP into image
Dear all,
I try to build a yocto image using the following receipe
The build config is
Build Configuration:
BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "dora:19745990465b37107142c5464008ca9f7959cc0b" meta-oe meta-networking = "dora:ee173678383683e972c7d4d6f0ef5790bfa50274" meta-ros = "master:821427d23adb33674da76dc34d8ab6983590fcd4" meta-overo = "dora:49d78254783e7cd1da4b7695e0014d526fbb6d58" meta-dfki = "master:d6156057fc7adc1585ec28505f63633e981f66d3"
The problem is building the dhcp part, i.e.
IMAGE_INSTALL += " \
dhcp\"
using bitbake dhcp runs fine, but
bitbake my image (see pastbin) results in
| Configuring iftop. | Collected errors: | * opkg_install_cmd: Cannot install package dhcp. | WARNING:
/home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/run.do_rootfs.26292:1 exit 255 from
| opkg-cl ${ipkg_args} install ${package_to_install}
| ERROR: Function failed: do_rootfs (log file is located at /home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/log.do_rootfs.26292)
ERROR: Task 7 (/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5619 didn't need to be rerun and 1 failed. No currently running tasks (5619 of 5621)
Summary: 1 task failed:
/home/eich/overo/meta-dfki/images/dfki-console-image.bb, do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
Any ideas?
Cheers,
Markus
--
Dr.-Ing. Markus Eich
Senior Researcher
Marine Inspection Robotics
Space Robotics
Besuchsadresse der Nebengeschäftstelle:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, Germany
Postadresse der Hauptgeschäftsstelle Standort Bremen:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 1
28359 Bremen, Germany
Tel.: +49 421 178 45-4105
Zentrale: +49 421 178 45-0
Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
E-Mail: [email protected]
Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-----------------------------------------------------------------------
--
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Thank you that did the trick. I have now installed dhclient on the image.
using
INSTALL +="dhcp-client"
But I somehow cannot enable it in systemd.
on the target machine I have lots of .service scripts in
/lib/systemd/system
but all the dhcp services are missing. I have found that there is a recipe
dhcp_4.2.5-P1.bbappend
in meta-openembedded/meta-systemd/oe-core/recipes-connectivity/dhcp
which uses
do_install_append() {
install -d ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dhcpd.service ${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dhclient.service
${D}${systemd_unitdir}/system
install -m 0644 ${WORKDIR}/dhcrelay.service ${D}${systemd_unitdir}/system
}
but it seems that it is not installed. How can I tell my recipe to add the corresponding services?
Cheers,
Markus
Am 23.05.2014 15:21, schrieb Iorga, Cristian:
Quoted 132 lines
Hello Markus,
By running:
bitbake dhcp
you actually will run the dhcp recipe and all tasks that goes into it (that will create packages, among other things). By addingIMAGE_INSTALL, you try to add a certain package into the build.
I will recommend to useCORE_IMAGE_EXTRA_INSTALLanyhow.
Now, the dhcp recipe will build the following packages:
dhcp-server, dhcp-server-config, dhcp-client, dhcp-relay, etc.
I believe that you want to add one of this to your image (server, client, etc).Regards,
Cristian Iorga
YP
Intel Corporation-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of Dr. Markus Eich
Sent: Thursday, May 22, 2014 6:23 PM
To: [email protected]
Subject: [poky] Problem Building DHCP into imageDear all,
I try to build a yocto image using the following receipe
The build config is
Build Configuration:
BB_VERSION = "1.20.0" BUILD_SYS = "x86_64-linux" NATIVELSBSTRING = "Ubuntu-14.04" TARGET_SYS = "arm-poky-linux-gnueabi" MACHINE = "overo" DISTRO = "poky" DISTRO_VERSION = "1.5.1" TUNE_FEATURES = "armv7a vfp neon" TARGET_FPU = "vfp-neon" meta meta-yocto = "dora:19745990465b37107142c5464008ca9f7959cc0b" meta-oe meta-networking = "dora:ee173678383683e972c7d4d6f0ef5790bfa50274" meta-ros = "master:821427d23adb33674da76dc34d8ab6983590fcd4" meta-overo = "dora:49d78254783e7cd1da4b7695e0014d526fbb6d58" meta-dfki = "master:d6156057fc7adc1585ec28505f63633e981f66d3"The problem is building the dhcp part, i.e.
IMAGE_INSTALL += " \ dhcp\"
using bitbake dhcp runs fine, but
bitbake my image (see pastbin) results in
| Configuring iftop. | Collected errors: | * opkg_install_cmd: Cannot install package dhcp. | WARNING:
/home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/run.do_rootfs.26292:1exit 255 from
| opkg-cl ${ipkg_args} install ${package_to_install}
| ERROR: Function failed:do_rootfs(log file is located at/home/eich/overo/build/tmp/work/overo-poky-linux-gnueabi/dfki-console-image/1.0-r0/temp/log.do_rootfs.26292)
ERROR: Task 7 (/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 5620 tasks of which 5619 didn't need to be rerun and 1 failed. No currently running tasks (5619 of 5621)Summary: 1 task failed:
/home/eich/overo/meta-dfki/images/dfki-console-image.bb,do_rootfs
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.Any ideas?
Cheers,
Markus
--
Dr.-Ing. Markus EichSenior Researcher
Marine Inspection Robotics
Space RoboticsBesuchsadresse der Nebengeschäftstelle:
DFKI GmbH
Robotics Innovation Center
Robert-Hooke-Straße 5
28359 Bremen, GermanyPostadresse der Hauptgeschäftsstelle Standort Bremen:
DFKI GmbH
Robotics Innovation Center Robert-Hooke-Straße 1
28359 Bremen, GermanyTel.: +49 421 178 45-4105
Zentrale: +49 421 178 45-0
Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen)
E-Mail: [email protected]Weitere Informationen: http://www.dfki.de/robotik
-----------------------------------------------------------------------
Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH
Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern
Geschaeftsfuehrung: Prof. Dr. Dr.h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff
Vorsitzender des Aufsichtsrats: Prof. Dr.h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313
Sitz der Gesellschaft: Kaiserslautern (HRB 2313)
USt-Id.Nr.: DE 148646973
Steuernummer: 19/673/0060/3
-------------------------------------------------------------------------
_______________________________________________
poky mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/poky
Signature · 35 lines
Dr.-Ing. Markus Eich Senior Researcher Marine Inspection Robotics Space Robotics Besuchsadresse der Nebengeschäftstelle: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 5 28359 Bremen, Germany Postadresse der Hauptgeschäftsstelle Standort Bremen: DFKI GmbH Robotics Innovation Center Robert-Hooke-Straße 1 28359 Bremen, Germany Tel.: +49 421 178 45-4105 Zentrale: +49 421 178 45-0 Fax: +49 421 178 45-4150 (Faxe bitte namentlich kennzeichnen) E-Mail: [email protected] Weitere Informationen: http://www.dfki.de/robotik ----------------------------------------------------------------------- Deutsches Forschungszentrum fuer Kuenstliche Intelligenz GmbH Firmensitz: Trippstadter Straße 122, D-67663 Kaiserslautern Geschaeftsfuehrung: Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) Dr. Walter Olthoff Vorsitzender des Aufsichtsrats: Prof. Dr. h.c. Hans A. Aukes Amtsgericht Kaiserslautern, HRB 2313 Sitz der Gesellschaft: Kaiserslautern (HRB 2313) USt-Id.Nr.: DE 148646973 Steuernummer: 19/673/0060/3 -----------------------------------------------------------------------