Hej,
I want to start a service that generates Sockets for the CAN Modules.
Manually configuring the system is no problem, but I like to have it done
by yocto. Below I give the code of my recipe (socketcan.bb):
#########################
SUMMARY = "the config for the can socket interface"
SECTION = "CAN"
LICENSE = "CLOSED"
inherit update-rc.d
RDEPENDS_${PN} = "initscripts"
DEPENDS = "iproute2"
SRC_URI = "file://can_if"
INITSCRIPT_PARAMS = "start 02 2 3 4 5 . stop 01 0 1 6 ."
INITSCRIPT_NAME = "can_if"
CONFFILES_${PN} += "${sysconfdir}/init.d/can_if"
#########################
It has one file bash script "can_if". This contains the up and down
commands. I want to generate at the /etc/rc*** Dirs the
S02can_if/K01can_if links.
Building the recipe via "bitbake socketcan" works fine.
When generating the rootfs via "bitbake core-image-minimal" I got the
following error:
#########################
ERROR: core-image-minimal-1.0-r0 do_rootfs: Unable to install packages.
Command
'/home/user/myTC/poky/build/tmp/sysroots/x86_64-linux/usr/bin/apt-get
install --force-yes --allow-unauthenticated python-modules meteocontrol
webmaint libg3logger0 packagegroup-core-ssh-openssh apt vim curl pmdb
redis libcsv3 myuser boost packagegroup-core-boot libredox0 libemd2
python-django python libev4 can-utils run-postinsts util-linux dpkg
mymodules grep libhiredis0.13 libmydbus0 libconfig iproute2 p7zip
socketcan' returned 100:
Reading package lists...
Building dependency tree...
Reading state information...
Package socketcan is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'socketcan' has no installation candidate
ERROR: core-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
ERROR: Logfile of failure stored in:
/home/user/myTC/poky/build/tmp/work/sama5d3xek-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.14597
ERROR: Task 9
(/home/user/myTC/poky/meta/recipes-core/images/core-image-minimal.bb,
do_rootfs) failed with exit code '1'
#########################
Any idea how to fix that?
Regards!
Stefan Jaritz
------------------------------------------------------------
ESA Elektroschaltanlagen Grimma GmbH
Broner Ring 30
04668 Grimma
Telefon: +49 3437 9211 176
Telefax: +49 3437 9211 26
E-Mail: s.jar...@esa-grimma.de
Internet: www.esa-grimma.de
Geschäftsführer:
Dipl.-Ing. Jörg Gaitzsch
Jörg Reinker
Sitz der Gesellschaft: Grimma
Ust.-ID: DE 141784437
Amtsgericht: Leipzig, HRB 5159
Steuernummer: 238/108/00755
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen.
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich
erhalten
haben, informieren Sie bitte sofort den Absender und löschen Sie diese
Nachricht. Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser
Mail
ist nicht gestattet.
This e-mail may contain confidential and/or privileged information. If you
are
not the intended recipient (or have received this e-mail in error) please
notify the sender immediately and destroy this e-mail. Any unauthorized
copying, disclosure or distribution of the material in this e-mail is
strictly
forbidden.
--
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto