[yocto] Antwort: Where to find the udevadm monitor?

2017-10-18 Thread S . Jaritz
I figured out. udevadm monitor ist provided by the SystemV package. Problem solved! Stefan ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30 04668 Grimma Telefon: +49 3437 9211 181 Telefax: +49 3437 9211 26 E-Mail:

[yocto] Where to find the udevadm monitor?

2017-10-18 Thread S . Jaritz
Hej, Actually I am playing a bit arround with udev rules. For that I like to use the udevadm monitor. The udev is provided by /meta/recipes-core/udev/eudev_3.2.2.bb In this recipe there is no udevadm option. While checking, I saw it was once in udev-utils and been moved to udev.inc.

[yocto] Antwort: How to make changes and build u-boot source code in yocto

2017-07-03 Thread S . Jaritz
Hej ho my Workflow for adjusting uboot (u-boot-at91): 1.) build the original uboot 2.) apply changes 3.) create patch 3.1.) if you reconfigure it -> save/copy the config 3.2.) if you adding code -> use meld or something similar to create a patch 4.) create u-boot-at91_%.bbappend 4.1) copy

[yocto] [meta-raspberrypi] How to add a own dts file and patch the dts makefile

2017-06-30 Thread S . Jaritz
Hej It's friday and I have some time to play a bit around. I like to build a simple test-adapter using a RPi. I want to connect some of the 40GPIO pins with a custom mainboard. For that I like to define the pin behaviour by an own dts file. I created my own dts file (testboard.dts) + a simple

[yocto] How to setup apt-get to work togehter with the packages build with yocto?

2017-02-02 Thread S . Jaritz
Hej I like to setup a central host for the packages build with yocto. The goal is, that everyone can download the "new" packages from a server in the local network. I am looking for a description how to archive that or some tips to start from. Regards! Stefan

[yocto] How to setup syslog by using an own filterfile and log policy configuration?

2017-01-25 Thread S . Jaritz
Hej I like to configure syslog. It seems that are more than one way to set up syslog. I am asking for the comon way/steps to do that. I have several use cases. To simplify I like to ask how to configure syslog to write an infinity long log file in /var/log/. Following steps: 1.) configure

[yocto] How to create an user bsp based on a other meta bsp layer?

2016-11-02 Thread S . Jaritz
Hej I want to create an own meta-bsp package for my custom mainboard based on an ATMEL SAMA5D35 SoC. For that I checked the documentation http://www.yoctoproject.org/docs/2.2/bsp-guide/bsp-guide.html#using-the-yocto-projects-bsp-tools . For me it is not clear how to create a bsp package based

[yocto] What is the common way to extend an package without bbappend?

2016-09-28 Thread S . Jaritz
Hej I want to install apache2 + a website. For that I need to copy my website to the std. dir defined in the apache config file. In my thinking my website uses the apache service to be aviable and therefore is an own package (myweb.bb). This package contains the dependency to the "apache2"

[yocto] Antwort: Re: "bitbake virtual/kernel -c menuconfig" seems to be broken

2016-09-27 Thread S . Jaritz
When I run 'bitbake core-image-minimal' before it works. Think Roberts work arround points at the right spot(because the populate sysroot is called through core-image-minimal build). Maybe add this trick to the documentation. Stefan

[yocto] "bitbake virtual/kernel -c menuconfig" seems to be broken

2016-09-27 Thread S . Jaritz
Hej Some error occurred. I give a print (sorry for that German text - but the error should be clear): ## GEN ./Makefile HOSTLD scripts/kconfig/mconf scripts/kconfig/mconf.o: In Funktion `show_help': mconf.c:(.text+0x914): Nicht definierter Verweis auf `stdscr'

[yocto] Antwort: Re: How to extract an archive in a git repostry and copy it to a defined position in the rootfs? (Solved)

2016-09-13 Thread S . Jaritz
Thanks for the help! The solution is simple. As mentioned by Ross No do_fetch extension is needed. The extract + copy goes into do_install. part of the recipe do_install () { install -d ${D}/opt tar -xzf example.tar.gz -C ${D}/opt/ } FILES_${PN} += "/opt/*"

[yocto] How to extract an archive in a git repostry and copy it to a defined position in the rootfs?

2016-09-13 Thread S . Jaritz
Hej I like to build an package out of a git repro. This git repro contains compressed files. One of these files I like to copy into my package. I looked into the documentation, but it is only described how to use the fetcher of bitbake. Think I need to add some extra lines of instruction

[yocto] How to add a textline to the busybox-syslog syslog.conf?

2016-08-25 Thread S . Jaritz
Hej ho I have an app that is using syslog. For it I like to set the amount of log data. I am using the std. yocto(krogoth) together with the std. meta-atmel layer. This layers are installing the "busybox-syslog"-package. This comes with the "/etc/syslog.conf" file. My question is: How to

[yocto] How to generate a debug version of a single application and deploy it into the image?

2016-08-17 Thread S . Jaritz
Hej Some software can be only tested on the final system. For that it would be usefull to start with a debug version of that app and change it later to release. In my case I have a software which do logging. The amount of the logs depends on type of the build (Release skips all debug

[yocto] if else blocks in recipes(bitbake)

2016-08-12 Thread S . Jaritz
Hej If have a simple problem. On one system a program is started as a daemon and on the other one not. In my recipe the program is build. by using update-rc.d I create the init script for systemV. The code looks like: ## SUMMARY = "myApp" SECTION = "myApp" LICENSE = "CLOSED" DEPENDS =

[yocto] [fixed] Antwort: Re: Antwort: Re: How to set the sysroot toolchain to hard float

2016-08-08 Thread S . Jaritz
The problem was fixed. Updating meta-atmel to the current version fixes the dpkg error by appending the architecture parameter to the dkpg recipe ( https://github.com/linux4sam/meta-atmel/commit/63d4287f50b89496a4c72e3b5845e59c55887451 ). Regards! Stefan Jaritz

[yocto] Antwort: Re: Antwort: Re: How to set the sysroot toolchain to hard float

2016-08-08 Thread S . Jaritz
Hej ho Thank you. I already know the files. My question was targeting the way how to set the tune option manually. Maybee something is missed up by the layers. My bblayers.conf looks like: # # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf # changes

[yocto] Antwort: Re: Antwort: Re: Antwort: Re: How to set the sysroot toolchain to hard float

2016-08-05 Thread S . Jaritz
when forcing dpkg it is installed and it works. 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:

[yocto] Antwort: Re: Antwort: Re: How to set the sysroot toolchain to hard float

2016-08-05 Thread S . Jaritz
I read the printings like you and I am confused. let's take valgrind as example: 1.) the rootfs build goes to: /poky/build/tmp/work/cortexa5hf-vfp-poky-linux-gnueabi/valgrind/3.11.0-r0/deploy-debs/cortexa5hf-vfp/valgrind_3.11.0-r0_armhf.deb the extension of the deb package say it its hard float.

[yocto] Antwort: Re: How to set the sysroot toolchain to hard float

2016-08-05 Thread S . Jaritz
hej @find out: transfer a build package into the evalboard and try to install it. I am using deb packages. dpkg gives me an error because of architecture. @print configuration output: ### Build Configuration: BB_VERSION= "1.30.0" BUILD_SYS = "x86_64-linux"

[yocto] How to set the sysroot toolchain to hard float

2016-08-05 Thread S . Jaritz
Hej I am building for the Atmel Evalbaord SAMA5D3x a Yocto Image. It works fine, but sysroot toolchain is set to soft float instead of hard float. How can I set the sysroot toolchain to hard float? My actual configuration: 1.) use meta-atmel layer 2.) in /build/conf/layer.conf -> MACHINE ??=

[yocto] problem with package architecture

2016-08-03 Thread S . Jaritz
Hej I am using the actual Yocto version. A Yocto Linux I is build based on the meta-atmel layer. The system seems to be "armel" but the packages are for "armhf". When running bitbake it shows: ## Build Configuration: BB_VERSION= "1.30.0" BUILD_SYS = "x86_64-linux"

[yocto] How to set the console color by default

2016-07-15 Thread S . Jaritz
Hej It is Friday and the week is almost over - it is time for some image beautifications! Is there a switch to activate the console colours by default? If not - what is the preferred way to produce a nice coloured console? Regards! Stefan Jaritz

Re: [yocto] Problems finding python when using a cmake recipe

2016-07-14 Thread S . Jaritz
It works fine! Problem solved 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

[yocto] Problems finding python when using a cmake recipe

2016-07-14 Thread S . Jaritz
Hej I want to create a recipe for an application. This application is generated through cmake. In the cmake file "CMakeLists.txt" is the passage: ## include(FindPythonInterp) include(FindPythonLibs) add_custom_command(OUTPUT "${CMAKE_BINARY_DIR}/error.cpp"

Re: [yocto] How to install a service generated by update-rc.d?

2016-07-08 Thread S . Jaritz
Yes - The installation of the can_if into /etc/init.d was missing. By adding: do_install () { install -d ${D}${sysconfdir}/init.d cat ${WORKDIR}/can_if | \ sed -e 's,/etc,${sysconfdir},g' \ -e 's,/usr/sbin,${sbindir},g' \ -e

[yocto] How to install 2 or more initscrips out form one recipe?

2016-07-08 Thread S . Jaritz
Hej I run into a problem when I tried to install 3 initscrips out of one recipe. My recipe looks like: # SUMMARY = "demo cfg" SECTION = "demo" LICENSE = "CLOSED" inherit update-rc.d RDEPENDS_${PN} = "bash initscripts" SRC_URI = "file://startA \ file://startB \

[yocto] How to set the prefix of a (cmake) recipe?

2016-07-07 Thread S . Jaritz
Hej I want to install my software packages to the usr/local/bin dir. That is why I need to change the prefix form usr to usr/local. How to archive that? The software is build through a cmake. Is there somethingt I need to think extra for setting the prefix? Maybe I found some inconsistency:

[yocto] Antwort: Re: How to create a directory for an SD-Card mount?

2016-07-07 Thread S . Jaritz
Problem solved! Thank you for the help. It was solved by: do_install () { ... install -d ${D}/media/sd1 ... } FILES_${PN} += "media/sd1" @Mike: I am using the meta-atmel. The mount dir is created. In my case I have a rule which mounts the sd card to mount/sd1, That's why I need to create

[yocto] How to create a directory for an SD-Card mount?

2016-07-06 Thread S . Jaritz
Hej I managed to create and install a rule that should mount a sd card to "/media/sd1". To finish it, I need to create the directory "sd1" in media. My recipe for the rule looks like: ### SUMMARY = "the udev rules for the board" SECTION = "rules" LICENSE = "CLOSED" SRC_URI =

[yocto] How to install a service generated by update-rc.d?

2016-07-06 Thread S . Jaritz
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

[yocto] problem with installation pathes of recipes useing cmake + cpack

2016-06-24 Thread S . Jaritz
Hej I have several recipes which are based on cmake. At cmake is the "make package" enabled. It is based on CPack(debian). I am using the predefined GNU installation dirs by "include(GNUInstallDirs)" and its variables like CMAKE_INSTALL_FULL_BINDIR etc.

[yocto] How to re-set the libary path for the package manager/QA module

2016-06-22 Thread S . Jaritz
Hej I want to build a library. It comes with a cmake based build. In these process the library is build and deployed together with 2 links. Like that: libMyLib: usr/lib/test/mylib.so usr/lib/test/mylib.so.0 usr/lib/test/mylib.so.1.0.0 mylib.so and mylib.so.0 are links to mylib.so.1.0.0 The

[yocto] Antwort: Re: installation of kernel modules

2016-06-22 Thread S . Jaritz
Hej Daniel, Building the modules as rpm works fine but it fails for deb. The deb generation process seems a little buggy. I have discovered problems with naming recipes (the QA tries to find the license by a "lowercased" link). I checked the package dir. It is fine. The 3 files (a.ko, b.ko, &

[yocto] installation of kernel modules

2016-06-21 Thread S . Jaritz
Hej I have a problem when running do_rootfs() with some own kernel drivers included. My kernel recipe builds some easy GPIO drivers. # They come as one package: myKernelModules: -> a.ko -> b.ko -> c.ko # I build a recipe which creates: myKernelModules.bb ->

[yocto] Problems creating packages for kernel modules when switching from rpm to deb

2016-06-17 Thread S . Jaritz
Hej I have encountered a problem, when I switched from rpm to deb. I have a recipe which generates 3 kernel modules. The compiling and packaging works fine. But when I do the do_rootfs it fails with: ## ERROR: core-image-minimal-1.0-r0 do_rootfs: Unable to install packages.

[yocto] [Found Error] Re: License problems when switching form RPM to DEB - looking for a easy way to fix it

2016-06-14 Thread S . Jaritz
Hej I found the error at the QA check of the debian packages. The deb QA modul has problems resolving the links into the "sysroots//pkgdata/runtime-resolve". This is because there is a lowcase conversation of the recipe name: p.e.: "helloMyWorld.bb" the name of the link is "helloMyWorld"

[yocto] Antwort: Re: License problems when switching form RPM to DEB - looking for a easy way to fix it

2016-06-13 Thread S . Jaritz
Hej I deleted the tmp and rebuild it. But the error stays. I added a licence file to the repro and added the LICENSE="ESA" LIC_FILES_CHKSUM="files://ESAlicense.txt;md5=.." What's the connection between the LICENSE and LIC_FILES_CHKSUM field? How the license manifest is build? I think the

[yocto] Antwort: Re: Problems with do_rootfs when changing the user password

2016-06-09 Thread S . Jaritz
Hej Thanks for the infos. I figured out that the common tutorial under meta-skeleton does not covers the change of the root password. Although "usermod -P" does not exits. Now the "usermod -p" wants a encrypted password. Looks like most of the examples at the www are little outdated. My

[yocto] License problems when switching form RPM to DEB - looking for a easy way to fix it

2016-06-09 Thread S . Jaritz
Hej I switched from RPM to DEB because the board configuration should be handled by a package manager. By doing so I ran into a QA problem. All the software provided by my colleagues I maked with LICENSE = "CLOSED" because they do not provide a license file. This works fine with the rpm

[yocto] Antwort: Re: Problems with do_rootfs when changing the user password

2016-06-09 Thread S . Jaritz
Thanks & done in that way but the bitbake error "core-image-minimal-1.0-r0 do_rootfs: myNewPassword.bb not found in the base feeds" still remains Stefan Jaritz ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30 04668 Grimma Telefon:

[yocto] Problems with do_rootfs when changing the user password

2016-06-09 Thread S . Jaritz
Hej I want to change the root password. For that I create the recipe "myNewPassword.bb" with: SUMMARY = "my new password" SECTION = "new" LICENSE = "CLOSED" inherit extrausers EXTRA_USERS_PARAMS = "\ usermod -P xyz root; \ " compiling and packaging

[yocto] How to execute a git submodule init/update?

2016-06-06 Thread S . Jaritz
Hej I have a git source which need some submodules. For that I need to execute "git submodule init" and "git submodule update". Any idea how to do it in a comon way? Regards! Stefan Jaritz ESA Elektroschaltanlagen Grimma GmbH

[yocto] [Solved] Antwort: Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?

2016-06-01 Thread S . Jaritz
Hej Problem solved! It worked like described by Rebert and on Stack Overflow. Thanks for the help Stefan Jaritz ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30 04668 Grimma Telefon: +49 3437 9211 176 Telefax: +49 3437 9211 26

[yocto] Antwort: Re: How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?

2016-06-01 Thread S . Jaritz
Thanks for the reply Like you thought - I want to include the lib + headers. I included the "myLib" via IMAGE_INSTALL_append = " myLib" and have a project IMAGE_INSTALL_append = " myProject" which has in it's recipe DEPENDS = "myLib" In my eyes this should be enough. When looking into

[yocto] How to include a own libary into the toolchain(SDK) for an embeeded Linux generated by Yocto?

2016-05-31 Thread S . Jaritz
Hej, I am looking for an example where is shown how to include an own library into the toolchain. Let's call the library "myLib". For it I created an recipe "myLib.bb" and added: BBCLASSEXTEND = "native nativesdk" In my "local.conf" I added: IMAGE_INSTALL_append = " myLib" When

[yocto] How to set a cmake cache variable to a spezific value?

2016-05-30 Thread S . Jaritz
Hej I want to build a recipe for a cmake based application. To make it run I need to set a cached cmake variable. What is the common/best way to achive it? Regards! Stefan Jaritz ESA Elektroschaltanlagen Grimma GmbH Broner Ring 30

[yocto] How can I set a recipe that its binaries become available at cross-compile time?

2016-05-23 Thread S . Jaritz
Hej I a cmake based application, some code generation via dbusxx-xml2cpp. It is provided by the dbuss-c++ lib. A recipe can be found under: http://git.yoctoproject.org/cgit/cgit.cgi/meta-ivi/tree/meta-ivi-demo/recipes-extended/dbus-c++?id=b90c2a20744e1e82b2169a88e68d7677bec907b6 It working and

[yocto] How to include packages for the cmake build process?

2016-05-19 Thread S . Jaritz
Hej I have some general question. Actual I am try to build an older software. It is based on cmake. At the build process doxygen, python, sed, dbusxx-xml2cpp are called. They are included via the "findprogram"/"find_package" command. How to include external programs like python, sed etc. in

[yocto] autotools error when building libdbus-c++; autoreconf "possibly undefined macro: AC_DEFINE"

2016-05-13 Thread S . Jaritz
Hej I try to build the libdbus-c++ libary. The build process is based on autotools. When compiling it do_configure throws an error. The macro "AC_DEFINE" is not found. Any idea how to make autoreconf run? Below I listed to recipe and after the Error plot # libdbus-c++_0.9.bb

[yocto] Solved - Antwort: RE: how to install a kernel module

2016-05-13 Thread S . Jaritz
I solved that problem Using IMAGE_INSTALL += "ledmodule" instead of IMAGE_INSTALL_append = " ledmodule" caused that the module was installed. I found the hint in https://communities.intel.com/thread/56810?start=0=0 Thanks for the help. Maybe a tip in the recipe template "hello_mod" could

[yocto] Antwort: RE: how to install a kernel module

2016-05-13 Thread S . Jaritz
Thanks for taking the time to help me I tried your approach but it does not worked. I tell what I figured out so far: I.) checking the target system 1.) When flashing the images into my device and boot the system, the driver is not loaded. 2.) lsmod shows that there is no driver loaded 3.)

[yocto] how to install a kernel module

2016-05-12 Thread S . Jaritz
Hej I created a recipe for a own modul. It's similar to the example given at: http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-skeleton/recipes-kernel/hello-mod I checked the bitbake process. A "kernel-module-" package is created and filled with the ko-file. Actually I am failing to

[yocto] at91 kernel module problem with includes

2016-05-11 Thread S . Jaritz
Hej I like to build a module. I am working on a SAMA5D3x Evalboard form Atmel. For that I use the meta-atmel recipes. My driver should toggle a pin. The pins are defined in the "mach/gpio.h". Any ideas how to configure that the atmel linux is creating the includes? Maybe I forgot to set some

[yocto] Antwort: Re: How to build a simple kernel modul

2016-05-10 Thread S . Jaritz
Thanks so far! I have 3 questions for my understanding: 1.) How to define extra Include Paths if the module needs some extra Includes? Like the "mach/gpio.h", which should be under "/arch/arm/mach-at91/include" and is needed for the PIN definitions. Should it be done at the

[yocto] How to build a simple kernel modul

2016-05-09 Thread S . Jaritz
Hej, I want to build a recipe for a simple GPIO Module. I found no tutorial at the documentation. What is the comon way to build a simple kernel module? The Makefile looks like: # obj-m += ledmodule.o SRC := $(shell pwd) all: modules modules: $(MAKE) -C $(KERNEL_SRC) M=$(SRC)

Re: [yocto] HG Parameters for the fetcher

2016-05-09 Thread S . Jaritz
Thanks, What is when the HG comes over SSH with authentication? Like: SRC_URI = "hg://myHG/ABC;module="dev";protocol=ssh;rev=42" with user for example "yocto" I think the syntax could be: SRC_URI = "hg://yocto@myHG/ABC;module="dev";protocol=ssh;rev=42" Regards Stefan Jaritz Entwickler

[yocto] HG Parameters for the fetcher

2016-05-02 Thread S . Jaritz
Hej, Actually I try to build a recipe for a Mercurial SCM. The hg sources are local. In my bb File I have this lines: SRCREV = "486c7001d4e5" SRC_URI = "hg://myHG" I got the error: ERROR: Logfile of failure stored in:

[yocto] Antwort: Re: Re: Antwort: Re: how to configure the build packages of a makefile based libary

2016-04-29 Thread S . Jaritz
Hej Finally we made it - Thanks to you all for helping me! I attached my bb file for that case someone is searching for a bitbake recipe for building the libhiredis ## SUMMARY = "libhiredis" SECTION = "lib" LICENSE = "MIT" LIC_FILES_CHKSUM =

[yocto] Antwort: Re: how to configure the build packages of a makefile based libary

2016-04-28 Thread S . Jaritz
Hej sorry - that does not work. Maybe you can show me some working/common code. Do I have to create the FILE_${PV} or/and FILE_${PV}-dev, FILE_${PV}-static? The builded files go into the Git dir & the autotools-brokensep is generating the package dir. I repeat my question: What are the

Re: [yocto] how to configure the build packages of a makefile based libary

2016-04-28 Thread S . Jaritz
Hej The makefile has an install section. I relocated it with the ${D}. By doing that I managed that the compiler filled the "package" directory. But there is still a packing issue. Below is the log (and below of it is the libhiredis.bb). Now my question: How to define the FILES variable for a

[yocto] how to configure the build packages of a makefile based libary

2016-04-28 Thread S . Jaritz
Hej I like to include the hiredis library. I created a recipe and modified the EXTRA_OEMAKE. The compilation works (in the git directory object, "so" and "a" files are generated). But the generated files are not placed into packages. Any ideas? below there is the "libhiredis.bb" file:

[yocto] problems with cmake finding the c++ includes

2016-04-26 Thread S . Jaritz
Hej, I am new to yocto. I like to create an recipe for the g3log library. I managed to get the git sources and start the cmake compile. But it stops when it tries to compile "#include ". Do you have an idea how to fix that? Below there is the content of the "g3log.bb":

[yocto] Binary Configuration Support

2016-04-21 Thread S . Jaritz
Hej, I read that there is a way to the binary configuration ( https://wiki.yoctoproject.org/wiki/Binary_configuration_support). It is described jow this internally works. But I am missing an example how to use it praticaly. My learning system is a SAMA5D3x Eval board from Atmel. For that I am