* [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs
@ 2020-01-03 0:37 Christopher McCrory
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Christopher McCrory @ 2020-01-03 0:37 UTC (permalink / raw)
To: buildroot
Commit ada40afb324 fixed pi3-minuart-bt being changed to miniuart-bt. Older
defconfig files based on raspberrypi*_defconfigs might have to old call,
BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
Allow either argument to add the correct miniuart-bt overlay.
Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
---
board/raspberrypi/post-image.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh
index 9dbd98ef9b..e9246fa113 100755
--- a/board/raspberrypi/post-image.sh
+++ b/board/raspberrypi/post-image.sh
@@ -10,7 +10,7 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
for arg in "$@"
do
case "${arg}" in
- --add-miniuart-bt-overlay)
+ --add-miniuart-bt-overlay|--add-pi3-miniuart-bt-overlay)
if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
echo "Adding 'dtoverlay=miniuart-bt' to config.txt (fixes ttyAMA0 serial console)."
cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
--
2.18.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args
2020-01-03 0:37 [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Christopher McCrory
@ 2020-01-03 0:37 ` Christopher McCrory
2020-01-06 9:55 ` Peter Seiderer
2020-01-06 17:58 ` Yann E. MORIN
2020-01-06 9:54 ` [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Peter Seiderer
2020-01-06 18:00 ` Yann E. MORIN
2 siblings, 2 replies; 7+ messages in thread
From: Christopher McCrory @ 2020-01-03 0:37 UTC (permalink / raw)
To: buildroot
Commit ada40afb324 updated the raspberrypi*defconfigs to use
-add-miniuart-bt-overlay instead of -add-pi3-miniuart-bt-overlay.
Update raspberrypi0w_defconfig also.
Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
---
configs/raspberrypi0w_defconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configs/raspberrypi0w_defconfig b/configs/raspberrypi0w_defconfig
index ea5856e8c0..e3c747ff6f 100644
--- a/configs/raspberrypi0w_defconfig
+++ b/configs/raspberrypi0w_defconfig
@@ -29,4 +29,4 @@ BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi0w/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi0w/post-image.sh"
-BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
+BR2_ROOTFS_POST_SCRIPT_ARGS="--add-miniuart-bt-overlay"
--
2.18.1
^ permalink raw reply related [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs
2020-01-03 0:37 [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Christopher McCrory
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
@ 2020-01-06 9:54 ` Peter Seiderer
2020-01-06 18:00 ` Yann E. MORIN
2 siblings, 0 replies; 7+ messages in thread
From: Peter Seiderer @ 2020-01-06 9:54 UTC (permalink / raw)
To: buildroot
Hello Christopher,
On Fri, 3 Jan 2020 00:37:51 +0000, Christopher McCrory <chrismcc@gmail.com> wrote:
> Commit ada40afb324 fixed pi3-minuart-bt being changed to miniuart-bt. Older
> defconfig files based on raspberrypi*_defconfigs might have to old call,
> BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
> Allow either argument to add the correct miniuart-bt overlay.
>
> Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
> ---
> board/raspberrypi/post-image.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh
> index 9dbd98ef9b..e9246fa113 100755
> --- a/board/raspberrypi/post-image.sh
> +++ b/board/raspberrypi/post-image.sh
> @@ -10,7 +10,7 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
> for arg in "$@"
> do
> case "${arg}" in
> - --add-miniuart-bt-overlay)
> + --add-miniuart-bt-overlay|--add-pi3-miniuart-bt-overlay)
In favour for this one ;-), suggested for the pi3-miniuart/miniuart change
commit [1], but rejected by the maintainers [2]...
Regards
Peter
[1] http://lists.busybox.net/pipermail/buildroot/2019-December/268042.html
[2] http://lists.busybox.net/pipermail/buildroot/2019-December/268046.html
> if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
> echo "Adding 'dtoverlay=miniuart-bt' to config.txt (fixes ttyAMA0 serial console)."
> cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
@ 2020-01-06 9:55 ` Peter Seiderer
2020-01-06 17:58 ` Yann E. MORIN
1 sibling, 0 replies; 7+ messages in thread
From: Peter Seiderer @ 2020-01-06 9:55 UTC (permalink / raw)
To: buildroot
Hello Christopher,
On Fri, 3 Jan 2020 00:37:52 +0000, Christopher McCrory <chrismcc@gmail.com> wrote:
> Commit ada40afb324 updated the raspberrypi*defconfigs to use
> -add-miniuart-bt-overlay instead of -add-pi3-miniuart-bt-overlay.
> Update raspberrypi0w_defconfig also.
>
> Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
> ---
> configs/raspberrypi0w_defconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configs/raspberrypi0w_defconfig b/configs/raspberrypi0w_defconfig
> index ea5856e8c0..e3c747ff6f 100644
> --- a/configs/raspberrypi0w_defconfig
> +++ b/configs/raspberrypi0w_defconfig
> @@ -29,4 +29,4 @@ BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> # BR2_TARGET_ROOTFS_TAR is not set
> BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi0w/post-build.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi0w/post-image.sh"
> -BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="--add-miniuart-bt-overlay"
Reviewed-by: Peter Seiderer <ps.report@gmx.net>
Regards,
Peter
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
2020-01-06 9:55 ` Peter Seiderer
@ 2020-01-06 17:58 ` Yann E. MORIN
1 sibling, 0 replies; 7+ messages in thread
From: Yann E. MORIN @ 2020-01-06 17:58 UTC (permalink / raw)
To: buildroot
Christopher, All,
On 2020-01-03 00:37 +0000, Christopher McCrory spake thusly:
> Commit ada40afb324 updated the raspberrypi*defconfigs to use
> -add-miniuart-bt-overlay instead of -add-pi3-miniuart-bt-overlay.
> Update raspberrypi0w_defconfig also.
>
> Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
Applied to master, thanks.
Regards,
Yann E. MORIN.
> ---
> configs/raspberrypi0w_defconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/configs/raspberrypi0w_defconfig b/configs/raspberrypi0w_defconfig
> index ea5856e8c0..e3c747ff6f 100644
> --- a/configs/raspberrypi0w_defconfig
> +++ b/configs/raspberrypi0w_defconfig
> @@ -29,4 +29,4 @@ BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
> # BR2_TARGET_ROOTFS_TAR is not set
> BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypi0w/post-build.sh"
> BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypi0w/post-image.sh"
> -BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
> +BR2_ROOTFS_POST_SCRIPT_ARGS="--add-miniuart-bt-overlay"
> --
> 2.18.1
>
> _______________________________________________
> 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 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs
2020-01-03 0:37 [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Christopher McCrory
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
2020-01-06 9:54 ` [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Peter Seiderer
@ 2020-01-06 18:00 ` Yann E. MORIN
2020-01-06 22:12 ` Christopher McCrory
2 siblings, 1 reply; 7+ messages in thread
From: Yann E. MORIN @ 2020-01-06 18:00 UTC (permalink / raw)
To: buildroot
Christopher, All,
On 2020-01-03 00:37 +0000, Christopher McCrory spake thusly:
> Commit ada40afb324 fixed pi3-minuart-bt being changed to miniuart-bt. Older
> defconfig files based on raspberrypi*_defconfigs might have to old call,
> BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
> Allow either argument to add the correct miniuart-bt overlay.
>
> Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
As Peter noticed, we already refused such a change in the past, and I am
100% aligned with the reasoning Arnout gave back then.
Regards,
Yann E. MORIN.
> ---
> board/raspberrypi/post-image.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/board/raspberrypi/post-image.sh b/board/raspberrypi/post-image.sh
> index 9dbd98ef9b..e9246fa113 100755
> --- a/board/raspberrypi/post-image.sh
> +++ b/board/raspberrypi/post-image.sh
> @@ -10,7 +10,7 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
> for arg in "$@"
> do
> case "${arg}" in
> - --add-miniuart-bt-overlay)
> + --add-miniuart-bt-overlay|--add-pi3-miniuart-bt-overlay)
> if ! grep -qE '^dtoverlay=' "${BINARIES_DIR}/rpi-firmware/config.txt"; then
> echo "Adding 'dtoverlay=miniuart-bt' to config.txt (fixes ttyAMA0 serial console)."
> cat << __EOF__ >> "${BINARIES_DIR}/rpi-firmware/config.txt"
> --
> 2.18.1
>
> _______________________________________________
> 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 561 099 427 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs
2020-01-06 18:00 ` Yann E. MORIN
@ 2020-01-06 22:12 ` Christopher McCrory
0 siblings, 0 replies; 7+ messages in thread
From: Christopher McCrory @ 2020-01-06 22:12 UTC (permalink / raw)
To: buildroot
On Mon, Jan 6, 2020 at 10:00 AM Yann E. MORIN <yann.morin.1998@free.fr>
wrote:
> Christopher, All,
>
> On 2020-01-03 00:37 +0000, Christopher McCrory spake thusly:
> > Commit ada40afb324 fixed pi3-minuart-bt being changed to miniuart-bt.
> Older
> > defconfig files based on raspberrypi*_defconfigs might have to old call,
> > BR2_ROOTFS_POST_SCRIPT_ARGS="--add-pi3-miniuart-bt-overlay"
> > Allow either argument to add the correct miniuart-bt overlay.
> >
> > Signed-off-by: Christopher McCrory <chrismcc@gmail.com>
>
> As Peter noticed, we already refused such a change in the past, and I am
> 100% aligned with the reasoning Arnout gave back then.
>
>
I would disagree a little bit, but I'm all good with the maintainers
choices overall. I didn't see that thread originally. And I'm all good with
not adding this patch.
> Regards,
> Yann E. MORIN.
>
> > ---
> > board/raspberrypi/post-image.sh | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/board/raspberrypi/post-image.sh
> b/board/raspberrypi/post-image.sh
> > index 9dbd98ef9b..e9246fa113 100755
> > --- a/board/raspberrypi/post-image.sh
> > +++ b/board/raspberrypi/post-image.sh
> > @@ -10,7 +10,7 @@ GENIMAGE_TMP="${BUILD_DIR}/genimage.tmp"
> > for arg in "$@"
> > do
> > case "${arg}" in
> > - --add-miniuart-bt-overlay)
> > + --add-miniuart-bt-overlay|--add-pi3-miniuart-bt-overlay)
> > if ! grep -qE '^dtoverlay='
> "${BINARIES_DIR}/rpi-firmware/config.txt"; then
> > echo "Adding 'dtoverlay=miniuart-bt' to config.txt
> (fixes ttyAMA0 serial console)."
> > cat << __EOF__ >>
> "${BINARIES_DIR}/rpi-firmware/config.txt"
> > --
> > 2.18.1
> >
> > _______________________________________________
> > 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 561 099 427 `------------.-------: X AGAINST | \e/ There is
> no |
> | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v
> conspiracy. |
>
> '------------------------------^-------^------------------^--------------------'
>
--
Christopher McCrory
To the optimist, the glass is half full.
To the pessimist, the glass is half empty.
To the engineer, the glass is twice as big as it needs to be.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20200106/f79c001e/attachment.html>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2020-01-06 22:12 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-01-03 0:37 [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Christopher McCrory
2020-01-03 0:37 ` [Buildroot] [PATCH 2/2] configs/raspberrypi0w_defconfig: fix post script args Christopher McCrory
2020-01-06 9:55 ` Peter Seiderer
2020-01-06 17:58 ` Yann E. MORIN
2020-01-06 9:54 ` [Buildroot] [PATCH 1/2] board/raspberrypi/post-image.sh: support older defconfigs Peter Seiderer
2020-01-06 18:00 ` Yann E. MORIN
2020-01-06 22:12 ` Christopher McCrory
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox