* Re: Newbie Question regarding custom layer and populate_rootfs
2016-05-20 6:44 Newbie Question regarding custom layer and populate_rootfs public-hk
@ 2016-05-20 5:25 ` Stephan Roslen
2016-05-23 19:17 ` public-hk
0 siblings, 1 reply; 3+ messages in thread
From: Stephan Roslen @ 2016-05-20 5:25 UTC (permalink / raw)
To: yocto
On Fr, 2016-05-20 at 08:44 +0200, public-hk@iks.rwth-aachen.de wrote:
> Hi all,
Hi Hauke,
nice to meet somebody familiar here. :)
> So here are the questions:
> 1) Why my version of the psplash executable - even though it was built -
> is not installed in the root fs?
Did you manually build your splash recipe (bitbake psplash-myproject)?
This does not include it in an image yet. It must be added to image
features either manually or through a dependency.
The psplash-raspberry package seems to be included in the dependencies
here
https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/conf/machine/include/rpi-base.inc#n51 - maybe there is a chance to override this in your local.conf
The cleanest way might be to include this in an own machine definition
and override it afterwards.
> 2) I have been able to review the logs from build steps and almost
> everything related to the package creation in tmp/work subfolder of my
> build project. But how can I see which packages are installed during the
> populate_rootfs step? There seems to be no dedicated log file.
There is a rather complex conglomerate of piped commands here, which
does this: https://community.freescale.com/docs/DOC-94953
Regards,
Stephan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Newbie Question regarding custom layer and populate_rootfs
@ 2016-05-20 6:44 public-hk
2016-05-20 5:25 ` Stephan Roslen
0 siblings, 1 reply; 3+ messages in thread
From: public-hk @ 2016-05-20 6:44 UTC (permalink / raw)
To: yocto
Hi all,
I have recently started to use Yocto. I also figured out a lot y myself
already. However, there is one problem I just can not solve. Sorry if
this is a dumb question..
My purpose is to create a customized distro for the Raspberry 2 which I
managed to get up and running. Yesterday, I tried to create a customized
splash image on bootup. That can be done via the psplash tool.
The current image that I create incorporates a recipe from the layer
meta-raspberry/recipes-core/psplash which adds a bbappend File and a
corresponding header which origins back to PNG file. This rule is
responsible for the typical bootup screen.
I myself created another layer meta-myproject and added a copy of the
same subfolder meta-myproject/recipes-core/psplash with ANOTHER header
file originating from ANOTHER image file. Also, I copied the
configuration file from meta-raspberry/conf to meta-myproject/conf (with
some minor adaptations) and added my new layer meta-myproject to the
bblayers-conf file in my main build folder.
Once running bitbake, I see that the psplash rules given in the
meta-raspberry layer causes a psplash-raspberry to be created. And due
to my new layer meta-myproject another version is created named
psplash-myproject. That all to be reviewd in tmp/work subfolder of my
build folder. So, that all worked out rather well.
If I afterwards run the step to create the root file system
(populate_rootfs), only the psplash-raspberry package seems to be
installed: There is only
/usr/bin/psplash-raspberry but there is no /usr/bin/psplash-myproject.
Copying the psplash-myproject binary to the raspberry manually and
setting up everything allows to display my image.
I also tried to deactivate the original recipe from
meta-raspberry/recipes-core/psplash by using BBMASK. This, however leads
to an error message during bitbake complaining that the RDEPENDENCY
psplash-raspberry can not be resoved.
So here are the questions:
1) Why my version of the psplash executable - even though it was built -
is not installed in the root fs?
2) I have been able to review the logs from build steps and almost
everything related to the package creation in tmp/work subfolder of my
build project. But how can I see which packages are installed during the
populate_rootfs step? There seems to be no dedicated log file.
I'd appreciate any assistance.
Thank you and best regards
Hauke
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Newbie Question regarding custom layer and populate_rootfs
2016-05-20 5:25 ` Stephan Roslen
@ 2016-05-23 19:17 ` public-hk
0 siblings, 0 replies; 3+ messages in thread
From: public-hk @ 2016-05-23 19:17 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 1574 bytes --]
Hi Stephan, hi Herrie,
thank you for your replies to my question.
>> So here are the questions:
>> 1) Why my version of the psplash executable - even though it was built -
>> is not installed in the root fs?
> Did you manually build your splash recipe (bitbake psplash-myproject)?
> This does not include it in an image yet. It must be added to image
> features either manually or through a dependency.
> The psplash-raspberry package seems to be included in the dependencies
> here
> https://git.yoctoproject.org/cgit/cgit.cgi/meta-raspberrypi/tree/conf/machine/include/rpi-base.inc#n51 - maybe there is a chance to override this in your local.conf
> The cleanest way might be to include this in an own machine definition
> and override it afterwards.
I have finally added a machine raspberry2p which includes the original
raspberrypi2 machine definition - and then defines another SPLASH reference.
That worked.
>
>> 2) I have been able to review the logs from build steps and almost
>> everything related to the package creation in tmp/work subfolder of my
>> build project. But how can I see which packages are installed during the
>> populate_rootfs step? There seems to be no dedicated log file.
> There is a rather complex conglomerate of piped commands here, which
> does this: https://community.freescale.com/docs/DOC-94953
What helped my a lot were the commands
bitbake-layers show-layers and
bitbake -g </image>/ && emacs pn-depends.dot
That reference is a really valuable link!
Thank you and best regards
Hauke
[-- Attachment #2: Type: text/html, Size: 2560 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-23 17:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-20 6:44 Newbie Question regarding custom layer and populate_rootfs public-hk
2016-05-20 5:25 ` Stephan Roslen
2016-05-23 19:17 ` public-hk
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.