From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pd0-f175.google.com (mail-pd0-f175.google.com [209.85.192.175]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id ABA14E004CF for ; Thu, 30 May 2013 10:12:07 -0700 (PDT) Received: by mail-pd0-f175.google.com with SMTP id 6so710385pdd.34 for ; Thu, 30 May 2013 10:12:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :message-id:references:to:x-mailer; bh=JzJFw1q5Atch6qB79n4n8QJXi29sJRRgbp4Ue7n9rXc=; b=b5E0h81uvkqOM8OUHAEuZASsvOdoOReK+8N9N5QoztjRIc9C6/sQGSK1B0izODUtoh iDhvZsvIwH3WCVe+ZhudCghUrtd52WlyGoKpvJyz5vru28xv8eLHAh72Jl9uECsYUw1c t4VMV/6vGeWMIWvqJBdZN7xnFKwuTi7fKqtbsq0CP2e0Yau5OspjA54C8P042eI4poER 6K1ixk4XxfmXBxiScOC8gc/83onUjs7UT1iUTsG5hjtUbu2EPsCBm9tMtcG8jyUgXNkg +GJT8ET6nKmWTzSL1XFnda6H5oGLGPFrgU3uSIfPUz4GuGD9yTjyYHewNbFn52FOlePh 4qzw== X-Received: by 10.66.240.41 with SMTP id vx9mr9431870pac.93.1369933927510; Thu, 30 May 2013 10:12:07 -0700 (PDT) Received: from ramanathan-sslvpn-nc.jnpr.net (natint3.juniper.net. [66.129.224.36]) by mx.google.com with ESMTPSA id gi2sm42816497pbb.2.2013.05.30.10.12.05 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 30 May 2013 10:12:06 -0700 (PDT) Mime-Version: 1.0 (Mac OS X Mail 6.3 \(1503\)) From: Khem Raj In-Reply-To: Date: Thu, 30 May 2013 10:12:03 -0700 Message-Id: References: <20130529143948.GM3192@jama> <2809625.nUpYsyq62m@helios> <51A6200C.6030904@windriver.com> <20130529161447.GP3192@jama> To: Katu Txakur X-Mailer: Apple Mail (2.1503) Cc: Paul Eggleton , "yocto@yoctoproject.org" Subject: Re: using module_autoload 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: Thu, 30 May 2013 17:12:07 -0000 Content-Type: multipart/alternative; boundary="Apple-Mail=_FE70984D-91B2-4859-8BB2-77586D25D920" --Apple-Mail=_FE70984D-91B2-4859-8BB2-77586D25D920 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On May 30, 2013, at 1:49 AM, Katu Txakur wrote: > Thanks again Martin, > I tried with that kernel-module-split.bbclass but although I got no = errors, it didn't work :( > Can I create the file spike.conf and tell the recipe or the Makefile = to copy it to /etc/modules-load.d ? > how can I do that? >=20 Did you add the module_autoload_foo =3D "foo" where kernel-module-foo is = the module you are interested in to your recipe after inheriting module-split class ? if not try that > Thanks again, I would be completely stuck without your help > Katu >=20 >=20 > 2013/5/29 Martin Jansa > On Wed, May 29, 2013 at 04:48:58PM +0100, Katu Txakur wrote: > > Guys, > > I'm using the gumstix repo > > https://github.com/gumstix/Gumstix-YoctoProject-Repo and I don't = have any > > module-split bbclass. > > The module.bbclass inherits module-base.bbclass and = module_strip.bbclass, > > but the latest is empty. > > Do you think my problem could be related with that? module_strip is = also > > inherited by kernel.bbclass >=20 > That looks like danny release, so you don't have this commit > = http://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-m= odule-split.bbclass?id=3D51928b6b5ca0a46a9dcd754483a19af58b95fa18 >=20 > You can backport it if you want, but without this module_autoload = won't > work for external modules. >=20 > > 2013/5/29 Bruce Ashfield > > > > > On 13-05-29 11:32 AM, Katu Txakur wrote: > > > > > >> Martin, Paul, thanks for your help. > > >> Yes, the recipe does inherit module. > > >> Any other problem that you can think off? > > >> > > > > > > Note: if you are on master, Martin said "module-split", not > > > "module". > > > > > > Cheers, > > > > > > Bruce > > > > > > > > >> Thanks a lot in advance, > > >> Katu > > >> > > >> > > >> 2013/5/29 Paul Eggleton > >> >> > > >> > > >> > > >> On Wednesday 29 May 2013 16:39:48 Martin Jansa wrote: > > >> > On Wed, May 29, 2013 at 02:01:11PM +0100, Katu Txakur = wrote: > > >> > > Hi, > > >> > > I'm failing to load a kernel module named spike doing = this: > > >> > > 1) add the recipe (inherit module), based in a Makefile = with > > >> > > modules_install: > > >> > > $(MAKE) INSTALL_MOD_DIR=3Dkernel/**drivers/spike -C = $(KERNEL_SRC) > > >> M=3D$(SRC) > > >> > > modules_install > > >> > > 2) Add the package to the image with IMAGE_INSTALL +=3D = "spike" > > >> in the > > >> > > local.conf file > > >> > > 3) In the machine/mymachine.conf I've added > > >> > > > > >> > > MACHINE_ESSENTIAL_EXTRA_**RRECOMMENDS +=3D = "spike" > > >> > > module_autoload_spike =3D "spike" > > >> > > > > >> > > The driver gets added to the image and I can load it = with > > >> insmod spike, > > >> > > however, I would like to load it at boot time. > > >> > > A workaround is to create a file with the name = spike.conf and > > >> write spike > > >> > > inside. Copying that file to = /etc/modules-load.d/spike.conf > > >> > > loads the driver correctly, but I need to do it from a = recipe. > > >> > > > > >> > > Can anyone spot what am I doing wrong? > > >> > > > >> > module_autoload won't work with external module unless you > > >> inherit also > > >> > kernel-module-split > > >> > > >> Note that module.bbclass already does this, so if the = external > > >> module recipe > > >> already does "inherit module" then that is not the problem. > > >> > > >> Cheers, > > >> Paul > > >> > > >> -- > > >> > > >> Paul Eggleton > > >> Intel Open Source Technology Centre > > >> > > >> > > >> > > >> > > >> ______________________________**_________________ > > >> yocto mailing list > > >> yocto@yoctoproject.org > > >> = https://lists.yoctoproject.**org/listinfo/yocto > > >> > > >> > > > >=20 > > _______________________________________________ > > yocto mailing list > > yocto@yoctoproject.org > > https://lists.yoctoproject.org/listinfo/yocto >=20 >=20 > -- > Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com >=20 > _______________________________________________ > yocto mailing list > yocto@yoctoproject.org > https://lists.yoctoproject.org/listinfo/yocto --Apple-Mail=_FE70984D-91B2-4859-8BB2-77586D25D920 Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=iso-8859-1
On May 30, 2013, at 1:49 AM, Katu Txakur <katutxakurra@gmail.com> wrote:

Thanks again Martin,
I tried with that kernel-module-split.bbclass but although I got no errors, it didn't work :(
Can I create the file spike.conf and tell the recipe or the Makefile to copy it to /etc/modules-load.d ?
how can I do that?


Did you add the module_autoload_foo = "foo" where kernel-module-foo is the module you are interested in
to your recipe after inheriting module-split class ?
if not try that

Thanks again, I would be completely stuck without your help
Katu


2013/5/29 Martin Jansa <martin.jansa@gmail.com>
On Wed, May 29, 2013 at 04:48:58PM +0100, Katu Txakur wrote:
> Guys,
> I'm using the gumstix repo
> https://github.com/gumstix/Gumstix-YoctoProject-Repo and I don't have any
> module-split bbclass.
> The module.bbclass inherits module-base.bbclass and module_strip.bbclass,
> but the latest is empty.
> Do you think my problem could be related with that? module_strip is also
> inherited by kernel.bbclass

That looks like danny release, so you don't have this commit
http://git.openembedded.org/openembedded-core/commit/meta/classes/kernel-module-split.bbclass?id=51928b6b5ca0a46a9dcd754483a19af58b95fa18

You can backport it if you want, but without this module_autoload won't
work for external modules.

> 2013/5/29 Bruce Ashfield <bruce.ashfield@windriver.com>
>
> > On 13-05-29 11:32 AM, Katu Txakur wrote:
> >
> >> Martin, Paul, thanks for your help.
> >> Yes, the recipe does inherit module.
> >> Any other problem that you can think off?
> >>
> >
> > Note: if you are on master, Martin said "module-split", not
> > "module".
> >
> > Cheers,
> >
> > Bruce
> >
> >
> >> Thanks a lot in advance,
> >> Katu
> >>
> >>
> >> 2013/5/29 Paul Eggleton <paul.eggleton@linux.intel.com
> >> <mailto:paul.eggleton@linux.**intel.com <paul.eggleton@linux.intel.com>>>
> >>
> >>
> >>     On Wednesday 29 May 2013 16:39:48 Martin Jansa wrote:
> >>      > On Wed, May 29, 2013 at 02:01:11PM +0100, Katu Txakur wrote:
> >>      > > Hi,
> >>      > > I'm failing to load a kernel module named spike doing this:
> >>      > > 1) add the recipe (inherit module), based in a Makefile with
> >>      > > modules_install:
> >>      > > $(MAKE) INSTALL_MOD_DIR=kernel/**drivers/spike -C $(KERNEL_SRC)
> >>     M=$(SRC)
> >>      > > modules_install
> >>      > > 2) Add the package to the image with IMAGE_INSTALL += "spike"
> >>     in the
> >>      > > local.conf file
> >>      > > 3) In the machine/mymachine.conf I've added
> >>      > >
> >>      > >         MACHINE_ESSENTIAL_EXTRA_**RRECOMMENDS += "spike"
> >>      > >         module_autoload_spike = "spike"
> >>      > >
> >>      > > The driver gets added to the image and I can load it with
> >>     insmod spike,
> >>      > > however, I would like to load it at boot time.
> >>      > > A workaround is to create a file with the name spike.conf and
> >>     write spike
> >>      > > inside. Copying that file to /etc/modules-load.d/spike.conf
> >>      > > loads the driver correctly, but I need to do it from a recipe.
> >>      > >
> >>      > > Can anyone spot what am I doing wrong?
> >>      >
> >>      > module_autoload won't work with external module unless you
> >>     inherit also
> >>      > kernel-module-split
> >>
> >>     Note that module.bbclass already does this, so if the external
> >>     module recipe
> >>     already does "inherit module" then that is not the problem.
> >>
> >>     Cheers,
> >>     Paul
> >>
> >>     --
> >>
> >>     Paul Eggleton
> >>     Intel Open Source Technology Centre
> >>
> >>
> >>
> >>
> >> ______________________________**_________________
> >> yocto mailing list
> >> yocto@yoctoproject.org
> >> https://lists.yoctoproject.**org/listinfo/yocto<https://lists.yoctoproject.org/listinfo/yocto>
> >>
> >>
> >

> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


--
Martin 'JaMa' Jansa     jabber: Martin.Jansa@gmail.com

_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

--Apple-Mail=_FE70984D-91B2-4859-8BB2-77586D25D920--