All of lore.kernel.org
 help / color / mirror / Atom feed
* /boot/ content into root filesystem?
@ 2018-06-14  3:57 Tim Hammer
  2018-06-14  6:40 ` Josef Holzmayr
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Hammer @ 2018-06-14  3:57 UTC (permalink / raw)
  To: yocto

[-- Attachment #1: Type: text/plain, Size: 1402 bytes --]

I would like to include the kernel Image and DTB files in the /boot/
directory of the root filesystem that will be installed in flash memory (
*vs.* a separate partition with the /boot/ content).



I am working with the meta-freescale layer, with MACHINE=ls1012afrdm and
core-image-minimal.



The kernel Image and DTB files required for the /boot/ directory are
created in tmp/work/.../linux-qoriq/4.14-r0/, initially stored in both
image/boot/ and package/boot/. These directories also include other
"standard" boot directory files (config, System.map, *etc.*). I figured the
best way to get the files into the root filesystem would be to add the
package to my IMAGE_INSTALL variable.

However, I could not determine a (default) package name that worked (from
the path & file names), but I did find use of KERNEL_PACKAGE_NAME (from
kernel.bbclass) in linux-qoriq_4.14.bb. So I created definitions in
linux-qoriq_4.14.bbappend:

RPROVIDES_${KERNEL_PACKAGE_NAME} = "boot-part-files"

FILES_${KERNEL_PACKAGE_NAME} += "/boot/"

That I then use in my image .conf file:

IMAGE_INSTALL += " ppfe-firmware boot-part-files"



This is working, but I was wondering if I missed another source or could
better understand the kernel.bbclass to determine the (default/correct)
package name to use in the IMAGE_INSTALL variable?

Thanks for any pointers or help!
-- 

.Tim

[-- Attachment #2: Type: text/html, Size: 4008 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /boot/ content into root filesystem?
  2018-06-14  3:57 /boot/ content into root filesystem? Tim Hammer
@ 2018-06-14  6:40 ` Josef Holzmayr
  2018-06-14 16:14   ` Tim Hammer
  0 siblings, 1 reply; 3+ messages in thread
From: Josef Holzmayr @ 2018-06-14  6:40 UTC (permalink / raw)
  To: Tim Hammer; +Cc: yocto

Hi Tim,

On Wed, Jun 13, 2018 at 11:57:10PM -0400, Tim Hammer wrote:
> I would like to include the kernel Image and DTB files in the /boot/
> directory of the root filesystem that will be installed in flash memory (
> *vs.* a separate partition with the /boot/ content).

IMAGE_INSTALL += "kernel kernel-devicetree"

should do that neatly. See also:
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel.bbclass#n548
and
https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/kernel-devicetree.bbclass#n6

Greetz
-- 
———————————————
Josef Holzmayr
Software Developer Embedded Systems

Tel: +49 8444 9204-48
Fax: +49 8444 9204-50

R-S-I Elektrotechnik GmbH & Co. KG
Woelkestrasse 11
D-85301 Schweitenkirchen
www.rsi-elektrotechnik.de
———————————————
Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
Ust-IdNr: DE 128592548 

_____________________________________________________________
Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
USt-IdNr.: DE 128592548



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: /boot/ content into root filesystem?
  2018-06-14  6:40 ` Josef Holzmayr
@ 2018-06-14 16:14   ` Tim Hammer
  0 siblings, 0 replies; 3+ messages in thread
From: Tim Hammer @ 2018-06-14 16:14 UTC (permalink / raw)
  To: Josef Holzmayr; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 2150 bytes --]

On Thu, Jun 14, 2018 at 2:40 AM, Josef Holzmayr <
holzmayr@rsi-elektrotechnik.de> wrote:

> Hi Tim,
>
> On Wed, Jun 13, 2018 at 11:57:10PM -0400, Tim Hammer wrote:
> > I would like to include the kernel Image and DTB files in the /boot/
> > directory of the root filesystem that will be installed in flash memory (
> > *vs.* a separate partition with the /boot/ content).
>
> IMAGE_INSTALL += "kernel kernel-devicetree"
>
> should do that neatly. See also:
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/
> classes/kernel.bbclass#n548
> and
> https://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/
> classes/kernel-devicetree.bbclass#n6
>
>
Thanks for the pointers! To be honest, it was still a little confusing, but
after some experimentation I figured out a few things.

 - kernel is already included in the image
    (I believe in meta-openembedded/meta-oe/recipes-core/packagegroups/
packagegroup-boot.bb
     in the RRECOMMENDS_${PN} definition)
   thus, it is not needed in my IMAGE_INSTALL extensions

 - kernel-image gets me the Image-4.14.16+gdfe1b13 kernel binary into /boot/
   this is despite not finding any recipe file(s) that puts that file
        into the FILES_${KERNEL_PACKAGE_NAME}-image variable

 - kernel-dev will get me the additional files
      (System.map-..., config-..., Module.symvers-..., etc.)
    if I need them


> Greetz
> --
> ———————————————
> Josef Holzmayr
> Software Developer Embedded Systems
>
> Tel: +49 8444 9204-48
> Fax: +49 8444 9204-50
>
> R-S-I Elektrotechnik GmbH & Co. KG
> Woelkestrasse 11
> D-85301 Schweitenkirchen
> www.rsi-elektrotechnik.de
> ———————————————
> Amtsgericht Ingolstadt – GmbH: HRB 191328 – KG: HRA 170393
> Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> Ust-IdNr: DE 128592548
>
> _____________________________________________________________
> Amtsgericht Ingolstadt - GmbH: HRB 191328 - KG: HRA 170363
> Geschäftsführer: Dr.-Ing. Michael Sorg, Dipl.-Ing. Franz Sorg
> USt-IdNr.: DE 128592548
>
>


-- 

.Tim

[-- Attachment #2: Type: text/html, Size: 4661 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-06-14 16:15 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-14  3:57 /boot/ content into root filesystem? Tim Hammer
2018-06-14  6:40 ` Josef Holzmayr
2018-06-14 16:14   ` Tim Hammer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.