From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id 882B6E009AA; Wed, 7 Nov 2018 03:47:00 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, HTML_MESSAGE, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] * 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider * (markus4dev[at]gmail.com) * -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no * trust * [209.85.221.41 listed in list.dnswl.org] * 0.0 HTML_MESSAGE BODY: HTML included in message * -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's * domain * -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature * 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily * valid Received: from mail-wr1-f41.google.com (mail-wr1-f41.google.com [209.85.221.41]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 5C1A3E00950 for ; Wed, 7 Nov 2018 03:46:58 -0800 (PST) Received: by mail-wr1-f41.google.com with SMTP id j26-v6so17083629wre.1 for ; Wed, 07 Nov 2018 03:46:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=aPjaFkqYhRQV2usf2ctgLIlJvyn7f33j38F8/POqN64=; b=oq0/dVwkGkLuBI15z9ln90L1gZSeNI0gpOCYIlYO48nLkyJLOVc2Q+0ixVZBcaprio rSfvHW0fzvircU6SbXOcZwd/QzMtIdJzkjCXNaAjXg9hAxWR8Yag+nf5G17rheKS6XHN Xa2SxKED9HrdX6Bs5eI9Ea7qw16FJ4vPhcesoofH0Yyf/7dzB4+HPjAVDhm7iyhcFLJw miZ0A2SWkVabeDS5ooADK1b2C6Fd/Iy4JjfCwVD5YwwjqkD0+pM55ldopETuHfXjCliO F6CYa1DFpDTWHq2saHPCXrGrAleLpcv70jDvPUES4Ie7/w+k3Ne03+FFCvuBv9P1qW2g 3KCQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=aPjaFkqYhRQV2usf2ctgLIlJvyn7f33j38F8/POqN64=; b=sNFI8McBxu7mEPsLAO/m8iL3MR8SwmhOU2wE2igVz0oNrAKlKGEkZoU175AiCWUem8 JEjEeh5kcoxxcInkcMLIFPYnnZXT/KosbceIZdM+qpWzj5r0aMgEsa9oCfcWAwOEzkh2 3CWSL82JzTsINyF2wCanoRjQNQhcYIHdM/7tDjXrZXBsmX1tEt1k1iIb+ARv0u8LQboT NQsdpKxMG9a0NJoiz4bo9aV7wGW9oqEZtUf569k8mh1n6CsCacZQoyR8grDy1lXgnDqg vxgkMwFQ2B3JGKWcGJKtvL5rtEzU+NTeuIB+7hyAQN6e/BzH5ykkDbLENJXbsvGnX86D Zejg== X-Gm-Message-State: AGRZ1gJ5lPqS/ThMLKGMhTm87BZTOQ7YSnns83lp3PmDhespz7Q351Cq 9tGCxErFGbzxNuU+twnhy4XoR8qr4oRsohzIA+k= X-Google-Smtp-Source: AJdET5czg0GP4QhGaAxXvwhuiKrjYVjewwZtLONwlZgOL9damaBxgUty0BMc2LkJ6QV6lcorhRdpGWTpbDSqMyBadls= X-Received: by 2002:adf:e70d:: with SMTP id c13-v6mr1569370wrm.50.1541591217376; Wed, 07 Nov 2018 03:46:57 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Markus W Date: Wed, 7 Nov 2018 12:46:56 +0100 Message-ID: To: outbackdingo@gmail.com, yocto@yoctoproject.org Subject: Re: [meta-raspberrypi] Problem with adding udev rules X-BeenThere: yocto@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Discussion of all things Yocto Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 11:47:00 -0000 Content-Type: multipart/alternative; boundary="000000000000e69335057a11ac83" --000000000000e69335057a11ac83 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable This my bb file and than I have added the following to local.conf IMAGE_INSTALL_append =3D " my-rules ...". SUMMARY =3D "My rules" LICENSE =3D "CLOSED" PR =3D "r1" SRC_URI =3D "file://90-interfaces.rules" do_install[nostamp] =3D "1" do_unpack[nostamp] =3D "1" do_install () { install -d ${D}${sysconfdir}/udev/rules.d install -m 0666 ${WORKDIR}/90-interfaces.rules ${D}/etc/udev/rules.d/90-interfaces.rules } FILES_${PN} +=3D " /etc/udev/rules.d/90-interfaces.rules" PACKAGES =3D "${PN}" PROVIDES =3D "my-rules" Hope this helps /Markus On Wed, 7 Nov 2018 at 12:41, Outback Dingo wrote: > so curious, as im trying to add 2 udev rules also that i require in my > build, so how was your recipe configured? > > mine keeps telling me i have a conflict between packages as they both > install files to the same name and same place > On Wed, Nov 7, 2018 at 4:53 PM Outback Dingo > wrote: > > > > > > > > On Wed, Nov 7, 2018, 16:44 Markus W >> > >> I have resolved this issue. My problem was that in my layer I have a > >> recipe-core and within that I had the following structure > >> udev/udev-extra-rules and udev-extra-rules.bb file and a files dir on > >> the same level. > >> > >> By renaming udev/udev-extra-rules to my-udev/my-udev-extra-rules it > >> suddenly worked. > >> > >> Cool > >> > >> > >> Regards, > >> Markus > >> > >> On Tue, 6 Nov 2018 at 14:06, Outback Dingo > wrote: > >> > > >> > On Tue, Nov 6, 2018 at 11:57 AM Markus W > wrote: > >> > > > >> > > Hi! > >> > > > >> > > I want to append the rules in the > >> > > recipe-core/udev/udev-rules-rpi/99-com.rules with the rules below > from > >> > > within my own recipe. I can=C2=B4t figure out how to do that. > >> > > > >> > > I have tried to add those rules as separate rules file in a recipe > in > >> > > my own layer. After the build I can see that the rules file is in > the > >> > > correct directory /etc/udev/rules.d (next to 99-com.rules) but the > >> > > rules didn't get applied. The groups below I have created by > >> > > inheriting the useradd class (GROUPADD_PARAM_${PN} =3D "-r spi; -r > i2c; > >> > > -r gpio") in a different layer with a higher priority than the lay= er > >> > > with the rules recipe. > >> > > > >> > > Not sure why this is not working. Any suggestions? > >> > > > >> > > 90-interfaces.rules file: > >> > > > >> > > SUBSYSTEM=3D=3D"input", GROUP=3D"input", MODE=3D"0660" > >> > > SUBSYSTEM=3D=3D"i2c-dev", GROUP=3D"i2c", MODE=3D"0660" > >> > > SUBSYSTEM=3D=3D"spidev", GROUP=3D"spi", MODE=3D"0660" > >> > > SUBSYSTEM=3D=3D"bcm2835-gpiomem", GROUP=3D"gpio", MODE=3D"0660" > >> > > > >> > > SUBSYSTEM=3D=3D"gpio", GROUP=3D"gpio", MODE=3D"0660" > >> > > SUBSYSTEM=3D=3D"gpio*", PROGRAM=3D"/bin/sh -c '\ > >> > > chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio= ;\ > >> > > chown -R root:gpio /sys/devices/virtual/gpio && chmod -R 770 > >> > > /sys/devices/virtual/gpio;\ > >> > > chown -R root:gpio /sys$devpath && chmod -R 770 /sys$devpath\ > >> > > '" > >> > > > >> > > >> > might help to post the recipe used..... > >> > > >> > > >> > > Regards, > >> > > Markus > >> > > -- > >> > > _______________________________________________ > >> > > yocto mailing list > >> > > yocto@yoctoproject.org > >> > > https://lists.yoctoproject.org/listinfo/yocto > --000000000000e69335057a11ac83 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
This my bb file and than= I have added the following to local.conf IMAGE_INSTALL_append =3D " m= y-rules ...".

SUMMARY =3D "My rules"
LICENSE =3D "CLOSED"= ;
PR =3D "r1"

SRC_URI =3D &quo= t;file://90-interfaces.rules"

do_install[nost= amp] =3D "1"
do_unpack[nostamp] =3D "1"
=

do_install () {
=C2=A0 =C2=A0 install -d ${D}= ${sysconfdir}/udev/rules.d
=C2=A0 =C2=A0 install -m 0666 ${WORKDI= R}/90-interfaces.rules ${D}/etc/udev/rules.d/90-interfaces.rules
=
}

FILES_${PN} +=3D " /etc/udev= /rules.d/90-interfaces.rules"

PACKAGES =3D &q= uot;${PN}"
PROVIDES =3D "my-rules"

Hope this helps

/Marku= s

On Wed, 7 Nov 2018 a= t 12:41, Outback Dingo <outbac= kdingo@gmail.com> wrote:
so = curious, as im trying to add 2 udev rules also that i require in my
build, so how was your recipe configured?

mine keeps telling me i have a conflict between packages as they both
install files to the same name and same place
On Wed, Nov 7, 2018 at 4:53 PM Outback Dingo <outbackdingo@gmail.com> wrote:
>
>
>
> On Wed, Nov 7, 2018, 16:44 Markus W <markus4dev@gmail.com wrote:
>>
>> I have resolved this issue. My problem was that in my layer I have= a
>> recipe-core and within that I had the following structure
>> udev/udev-extra-rules and udev-extra-rules.bb file and a file= s dir on
>> the same level.
>>
>> By renaming udev/udev-extra-rules to my-udev/my-udev-extra-rules i= t
>> suddenly worked.
>>
>> Cool
>>
>>
>> Regards,
>> Markus
>>
>> On Tue, 6 Nov 2018 at 14:06, Outback Dingo <outbackdingo@gmail.com> wro= te:
>> >
>> > On Tue, Nov 6, 2018 at 11:57 AM Markus W <markus4dev@gmail.com> wrot= e:
>> > >
>> > > Hi!
>> > >
>> > > I want to append the rules in the
>> > > recipe-core/udev/udev-rules-rpi/99-com.rules with the ru= les below from
>> > > within my own recipe. I can=C2=B4t figure out how to do = that.
>> > >
>> > > I have tried to add those rules as separate rules file i= n a recipe in
>> > > my own layer. After the build I can see that the rules f= ile is in the
>> > > correct directory /etc/udev/rules.d (next to 99-com.rule= s) but the
>> > > rules didn't get applied. The groups below I have cr= eated by
>> > > inheriting the useradd class (GROUPADD_PARAM_${PN} =3D &= quot;-r spi; -r i2c;
>> > > -r gpio") in a different layer with a higher priori= ty than the layer
>> > > with the rules recipe.
>> > >
>> > > Not sure why this is not working. Any suggestions?
>> > >
>> > > 90-interfaces.rules file:
>> > >
>> > > SUBSYSTEM=3D=3D"input", GROUP=3D"input&qu= ot;, MODE=3D"0660"
>> > > SUBSYSTEM=3D=3D"i2c-dev", GROUP=3D"i2c&qu= ot;, MODE=3D"0660"
>> > > SUBSYSTEM=3D=3D"spidev", GROUP=3D"spi&quo= t;, MODE=3D"0660"
>> > > SUBSYSTEM=3D=3D"bcm2835-gpiomem", GROUP=3D&quo= t;gpio", MODE=3D"0660"
>> > >
>> > > SUBSYSTEM=3D=3D"gpio", GROUP=3D"gpio"= ;, MODE=3D"0660"
>> > > SUBSYSTEM=3D=3D"gpio*", PROGRAM=3D"/bin/s= h -c '\
>> > > chown -R root:gpio /sys/class/gpio && chmod -R 7= 70 /sys/class/gpio;\
>> > > chown -R root:gpio /sys/devices/virtual/gpio && = chmod -R 770
>> > > /sys/devices/virtual/gpio;\
>> > > chown -R root:gpio /sys$devpath && chmod -R 770 = /sys$devpath\
>> > > '"
>> > >
>> >
>> > might help to post the recipe used.....
>> >
>> >
>> > > Regards,
>> > > Markus
>> > > --
>> > > _______________________________________________
>> > > yocto mailing list
>> > > yocto@yoctoproject.org
>> > > https://lists.yoctoproject.org/listi= nfo/yocto
--000000000000e69335057a11ac83--