From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/2] rpi-firmware: allow disabling installation of binary DTBs
Date: Fri, 19 Jun 2015 22:30:06 +0200 [thread overview]
Message-ID: <20150619203006.GC3638@free.fr> (raw)
In-Reply-To: <1430579415-22802-1-git-send-email-bos@je-eigen-domein.nl>
floris, All,
On 2015-05-02 17:10 +0200, Floris Bos spake thusly:
> The binary .dtb files are not suitable for everyone as they are
> kernel version specific.
> Reintroduces BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS option.
I am revisitng this one now that I have a little tiny bit of time.
Indeed, using the DTBs from rpi-firmware is not working with linux 3.19
or 4.0, although they do work with 3.18.
> Signed-off-by: Floris Bos <bos@je-eigen-domein.nl>
> ---
> package/rpi-firmware/Config.in | 10 ++++++++++
> package/rpi-firmware/rpi-firmware.mk | 2 ++
> 2 files changed, 12 insertions(+)
>
> diff --git a/package/rpi-firmware/Config.in b/package/rpi-firmware/Config.in
> index cd45be4..2de26e3 100644
> --- a/package/rpi-firmware/Config.in
> +++ b/package/rpi-firmware/Config.in
> @@ -45,4 +45,14 @@ config BR2_PACKAGE_RPI_FIRMWARE_BOOT
> default "_x" if BR2_PACKAGE_RPI_FIRMWARE_X
> default "_cd" if BR2_PACKAGE_RPI_FIRMWARE_CD
>
> +config BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS
> + bool "Install Device Tree Blobs (DTBs)"
> + default "y"
> + help
> + Say 'y' here if you want to install the binary DTB files which
> + are suitable for a rpi-3.18.y branch Linux kernel.
> +
> + Say 'n' here if you intend to compile the device tree files
> + from kernel source instead.
I would rephrase that as:
If you are using a Linux kernel <= 3.18, you should say 'y' here.
If you are using a Linux kernel >= 3.19, you should say 'n' here,
and enable BR2_LINUX_KERNEL_DTS_SUPPORT to let the kernel build
the DTB.
> +
> endif # BR2_PACKAGE_RPI_FIRMWARE
> diff --git a/package/rpi-firmware/rpi-firmware.mk b/package/rpi-firmware/rpi-firmware.mk
> index cbcf790..9cccb38 100644
> --- a/package/rpi-firmware/rpi-firmware.mk
> +++ b/package/rpi-firmware/rpi-firmware.mk
> @@ -13,6 +13,7 @@ RPI_FIRMWARE_INSTALL_IMAGES = YES
>
> RPI_FIRMWARE_DEPENDENCIES += host-rpi-firmware
>
> +ifeq ($(BR2_PACKAGE_RPI_FIRMWARE_INSTALL_DTBS),y)
> define RPI_FIRMWARE_INSTALL_DTB
> $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b.dtb
> $(INSTALL) -D -m 0644 $(@D)/boot/bcm2708-rpi-b-plus.dtb $(BINARIES_DIR)/rpi-firmware/bcm2708-rpi-b-plus.dtb
> @@ -21,6 +22,7 @@ define RPI_FIRMWARE_INSTALL_DTB
> $(INSTALL) -D -m 0644 $${ovldtb} $(BINARIES_DIR)/rpi-firmware/overlays/$${ovldtb##*/} || exit 1; \
> done
> endef
> +endif
I'd put the overlays out of the conditional block, because they are
*not* built by the Linux kernel.
Also, I think we'd want an option to enable/disable installign the
overlays.
I'll take your patch here and repsin a bit later tonight.
Thanks! :-)
Regards,
Yann E. MORIN.
> define RPI_FIRMWARE_INSTALL_IMAGES_CMDS
> $(INSTALL) -D -m 0644 $(@D)/boot/bootcode.bin $(BINARIES_DIR)/rpi-firmware/bootcode.bin
> --
> 2.1.4
>
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
next prev parent reply other threads:[~2015-06-19 20:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-02 15:10 [Buildroot] [PATCH 1/2] rpi-firmware: allow disabling installation of binary DTBs Floris Bos
2015-05-02 15:10 ` [Buildroot] [PATCH 2/2] rpi-firmware: modify settings for Pi 2 Floris Bos
2015-05-02 15:56 ` Yann E. MORIN
2015-05-02 17:17 ` Thomas Petazzoni
2015-05-02 15:10 ` [Buildroot] [PATCH v2] php.ini: set date.timezone Floris Bos
2015-05-02 15:43 ` Arnout Vandecappelle
2015-05-02 17:18 ` Thomas Petazzoni
2015-05-02 17:22 ` Floris Bos
2015-05-02 18:54 ` Thomas Petazzoni
2015-06-19 20:30 ` Yann E. MORIN [this message]
2015-06-19 20:52 ` [Buildroot] [PATCH 1/2] rpi-firmware: allow disabling installation of binary DTBs Floris Bos
2015-06-19 21:07 ` Yann E. MORIN
2015-06-19 22:47 ` Yann E. MORIN
2015-06-28 22:35 ` Yann E. MORIN
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=20150619203006.GC3638@free.fr \
--to=yann.morin.1998@free.fr \
--cc=buildroot@busybox.net \
/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.