From: Trevor Woerner <twoerner@gmail.com>
To: Greg Wilson-Lindberg <GWilson@sakuraus.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: add kernel modules & dtbo's for Raspberry Pi3
Date: Thu, 21 Dec 2017 07:30:20 -0500 [thread overview]
Message-ID: <20171221123020.GA29794@linux-uys3> (raw)
In-Reply-To: <246f195bf41b44dbaa3d46cdfde44e82@sakuraus.com>
On Wed 2017-12-20 @ 11:40:50 PM, Greg Wilson-Lindberg wrote:
> I'm building an image for the Raspberry Pi 3 and I'm trying to add some
> modules to the kernel and I need to add some device tree overlays. The
> modules and overlays are part of the kernel, just not built by default.
>
> For the kernel modules I've added a linux-raspberrypi_4.4.bbappend file in
> the path .../recipes-bsp/linux. The file consists of:
>
> # Scribe additions to Kernel configuration
>
> FILESEXTRAPATHS_prepend += "$(THISDIR)/files"
> SRC_URI += "file://Scribe.cfg"
>
> Whether I use "+=" or ":=" as suggested in "Embedded Linux Systems withe
> the Yocto Project", I get an error that "file://0001-fix-dtbo-rules.patch"
> cannot be found. I don't get this error if my .bbappend file is not being
> used.
You're missing a colon at the end of the path definition, and you should use
the ':=' operator:
FILESEXTRAPATHS_prepend := "$(THISDIR)/files:"
The path you're introducing is getting added to a bunch of other paths, and
therefore needs the separator. The := operator causes your change to this
variable to be immediately expanded by bitbake, which is what you want.
> Also, if there are any quick tips on how to add dtbo's to the kernel build I
> would appreciate them.
If you look through the raspberry pi kernel sources
($TMPDIR/work/raspberrypi3-*/linux-raspberrypi/${VERSION}/linux-raspberrypi3-standard-build/source)
at
arch/arm/boot/dts/overlays
and find an overlay you like (e.g. spi1-3cs-overlay.dts) then to have it added
to your image and applied at boot time:
1. edit local.conf to add it to the kernel's device tree (but add it as a dtbo
without the "-overlay"):
KERNEL_DEVICETREE_append = " overlays/spi1-3cs.dtbo"
2. extend rpi-config to include it in the image's config.txt file:
rpi-config_%.bbappend:
do_deploy_append() {
echo "dtoverlay=spi1-3cs" >>${DEPLOYDIR}/bcm2835-bootfiles/config.txt"
}
next prev parent reply other threads:[~2017-12-21 12:30 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-20 23:40 add kernel modules & dtbo's for Raspberry Pi3 Greg Wilson-Lindberg
2017-12-21 12:30 ` Trevor Woerner [this message]
2017-12-22 0:07 ` Greg Wilson-Lindberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171221123020.GA29794@linux-uys3 \
--to=twoerner@gmail.com \
--cc=GWilson@sakuraus.com \
--cc=yocto@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.