All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 0/2] configs/beaglebone: fix boot hang and update kernel
@ 2019-11-02 22:38 unixmania at gmail.com
  2019-11-02 22:38 ` [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black unixmania at gmail.com
  2019-11-02 22:38 ` [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository unixmania at gmail.com
  0 siblings, 2 replies; 9+ messages in thread
From: unixmania at gmail.com @ 2019-11-02 22:38 UTC (permalink / raw)
  To: buildroot

From: Carlos Santos <unixmania@gmail.com>

- Update U-Boot environment to prevent boot hangs
- Update the kernel to the latest release from the official BeagleBoard
  and BeagleBone kernel repository

Carlos Santos (2):
  board/beaglebone: fix boot on BeagleBone Black
  configs/beaglebone: use the new BeagleBoard/BeagleBone kernel
    repository

 board/beaglebone/uEnv.txt    | 5 ++++-
 configs/beaglebone_defconfig | 4 ++--
 2 files changed, 6 insertions(+), 3 deletions(-)

-- 
2.18.1

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

* [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black
  2019-11-02 22:38 [Buildroot] [PATCH 0/2] configs/beaglebone: fix boot hang and update kernel unixmania at gmail.com
@ 2019-11-02 22:38 ` unixmania at gmail.com
  2019-11-08 21:09   ` Thomas Petazzoni
  2019-11-02 22:38 ` [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository unixmania at gmail.com
  1 sibling, 1 reply; 9+ messages in thread
From: unixmania at gmail.com @ 2019-11-02 22:38 UTC (permalink / raw)
  To: buildroot

From: Carlos Santos <unixmania@gmail.com>

Commit 68b5b79b2f has set the getty port to the default console but left
"ttyO0" in bootargs, in the U-Boot environment. Use "ttyS0", instead.

Also set loadaddr to 0x82000000 and fdtaddr to 0x88000000, replacing the
ancient U-Boot 2013.10-dirty default values that cause system hangs.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
---
 board/beaglebone/uEnv.txt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/board/beaglebone/uEnv.txt b/board/beaglebone/uEnv.txt
index a665f20889..8fce54d87e 100644
--- a/board/beaglebone/uEnv.txt
+++ b/board/beaglebone/uEnv.txt
@@ -3,6 +3,9 @@ devtype=mmc
 bootdir=
 bootfile=zImage
 bootpartition=mmcblk0p2
+console=ttyS0,115200n8
+loadaddr=0x82000000
+fdtaddr=0x88000000
 set_mmc1=if test $board_name = A33515BB; then setenv bootpartition mmcblk1p2; fi
-set_bootargs=setenv bootargs console=ttyO0,115200n8 root=/dev/${bootpartition} rw rootfstype=ext4 rootwait
+set_bootargs=setenv bootargs console=${console} root=/dev/${bootpartition} rw rootfstype=ext4 rootwait
 uenvcmd=run set_mmc1; run set_bootargs;run loadimage;run loadfdt;printenv bootargs;bootz ${loadaddr} - ${fdtaddr}
-- 
2.18.1

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

* [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
  2019-11-02 22:38 [Buildroot] [PATCH 0/2] configs/beaglebone: fix boot hang and update kernel unixmania at gmail.com
  2019-11-02 22:38 ` [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black unixmania at gmail.com
@ 2019-11-02 22:38 ` unixmania at gmail.com
  2019-11-08 21:12   ` Thomas Petazzoni
  1 sibling, 1 reply; 9+ messages in thread
From: unixmania at gmail.com @ 2019-11-02 22:38 UTC (permalink / raw)
  To: buildroot

From: Carlos Santos <unixmania@gmail.com>

The original source URL (http://beagleboard.org/source) now redirects to
https://elinux.org/Beagleboard:BeagleBoneBlack_Rebuilding_Software_Image
which points to an official kernel repository at GitHub.

There are updated RT and non-RT kernel source trees. Use the last non-RT
release (4.19.73-ti-r29) and the omap2plus defconfig.

Signed-off-by: Carlos Santos <unixmania@gmail.com>
---
 configs/beaglebone_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configs/beaglebone_defconfig b/configs/beaglebone_defconfig
index ee97f80322..2de1bd0b32 100644
--- a/configs/beaglebone_defconfig
+++ b/configs/beaglebone_defconfig
@@ -7,8 +7,8 @@ BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/beaglebone/genimage.cfg"
 BR2_LINUX_KERNEL=y
 BR2_LINUX_KERNEL_CUSTOM_GIT=y
-BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://git.ti.com/processor-sdk/processor-sdk-linux.git"
-BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4dae378bbe721277b08699d1d88ffae12acc9b09"
+BR2_LINUX_KERNEL_CUSTOM_REPO_URL="git://github.com/beagleboard/linux.git"
+BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="4.19.73-ti-r29"
 BR2_LINUX_KERNEL_DEFCONFIG="omap2plus"
 BR2_LINUX_KERNEL_DTS_SUPPORT=y
 BR2_LINUX_KERNEL_INTREE_DTS_NAME="am335x-evm am335x-bone am335x-boneblack am335x-bonegreen am335x-evmsk am335x-boneblue"
-- 
2.18.1

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

* [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black
  2019-11-02 22:38 ` [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black unixmania at gmail.com
@ 2019-11-08 21:09   ` Thomas Petazzoni
  2019-11-08 23:05     ` Carlos Santos
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2019-11-08 21:09 UTC (permalink / raw)
  To: buildroot

Hello Carlos,

On Sat,  2 Nov 2019 19:38:38 -0300
unixmania at gmail.com wrote:

> From: Carlos Santos <unixmania@gmail.com>
> 
> Commit 68b5b79b2f has set the getty port to the default console but left
> "ttyO0" in bootargs, in the U-Boot environment. Use "ttyS0", instead.
> 
> Also set loadaddr to 0x82000000 and fdtaddr to 0x88000000, replacing the
> ancient U-Boot 2013.10-dirty default values that cause system hangs.

Where are we using U-Boot 2013.10-dirty on BeagleBone ?

$ grep UBOOT_CUSTOM_VERSION_VALUE configs/beaglebone*
configs/beagleboneai_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.04"
configs/beaglebone_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07"
configs/beaglebone_qt5_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"

And these are upstream, unpatched, versions.

Could you clarify this? Otherwise the patch looks good, of course.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
  2019-11-02 22:38 ` [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository unixmania at gmail.com
@ 2019-11-08 21:12   ` Thomas Petazzoni
  2019-11-08 23:11     ` Carlos Santos
  0 siblings, 1 reply; 9+ messages in thread
From: Thomas Petazzoni @ 2019-11-08 21:12 UTC (permalink / raw)
  To: buildroot

Hello,

+Peter, who contributed the beagleboneai defconfig.

On Sat,  2 Nov 2019 19:38:39 -0300
unixmania at gmail.com wrote:

> From: Carlos Santos <unixmania@gmail.com>
> 
> The original source URL (http://beagleboard.org/source) now redirects to
> https://elinux.org/Beagleboard:BeagleBoneBlack_Rebuilding_Software_Image
> which points to an official kernel repository at GitHub.
> 
> There are updated RT and non-RT kernel source trees. Use the last non-RT
> release (4.19.73-ti-r29) and the omap2plus defconfig.
> 
> Signed-off-by: Carlos Santos <unixmania@gmail.com>

I've applied to next... but after doing, I realized that you could have
used the github macro, like we do in beagleboneai_defconfig. Could you
send a patch for that ?

Also, it would be nice if we could align beagleboneai, beaglebone and
beaglebone_qt5 to use the same U-Boot/Linux versions, if possible. I
see that the beagleboneai is using 4.14 even though it's a much newer
platform than beaglebone.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black
  2019-11-08 21:09   ` Thomas Petazzoni
@ 2019-11-08 23:05     ` Carlos Santos
  2019-11-09 16:42       ` Carlos Santos
  0 siblings, 1 reply; 9+ messages in thread
From: Carlos Santos @ 2019-11-08 23:05 UTC (permalink / raw)
  To: buildroot

On Fri, Nov 8, 2019 at 6:09 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello Carlos,
>
> On Sat,  2 Nov 2019 19:38:38 -0300
> unixmania at gmail.com wrote:
>
> > From: Carlos Santos <unixmania@gmail.com>
> >
> > Commit 68b5b79b2f has set the getty port to the default console but left
> > "ttyO0" in bootargs, in the U-Boot environment. Use "ttyS0", instead.
> >
> > Also set loadaddr to 0x82000000 and fdtaddr to 0x88000000, replacing the
> > ancient U-Boot 2013.10-dirty default values that cause system hangs.
>
> Where are we using U-Boot 2013.10-dirty on BeagleBone ?
>
> $ grep UBOOT_CUSTOM_VERSION_VALUE configs/beaglebone*
> configs/beagleboneai_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.04"
> configs/beaglebone_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07"
> configs/beaglebone_qt5_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
>
> And these are upstream, unpatched, versions.
>
> Could you clarify this? Otherwise the patch looks good, of course.
>
> Thanks!
>
> Thomas
> --
> Thomas Petazzoni, CTO, Bootlin
> Embedded Linux and Kernel engineering
> https://bootlin.com

That's the SPL in old Beaglebone cards. I will rephrase the commit
message to clarify it.

-- 
Carlos Santos <unixmania@gmail.com>

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

* [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
  2019-11-08 21:12   ` Thomas Petazzoni
@ 2019-11-08 23:11     ` Carlos Santos
  2019-11-09 14:19       ` Thomas Petazzoni
  0 siblings, 1 reply; 9+ messages in thread
From: Carlos Santos @ 2019-11-08 23:11 UTC (permalink / raw)
  To: buildroot

On Fri, Nov 8, 2019 at 6:12 PM Thomas Petazzoni
<thomas.petazzoni@bootlin.com> wrote:
>
> Hello,
>
> +Peter, who contributed the beagleboneai defconfig.
>
> On Sat,  2 Nov 2019 19:38:39 -0300
> unixmania at gmail.com wrote:
>
> > From: Carlos Santos <unixmania@gmail.com>
> >
> > The original source URL (http://beagleboard.org/source) now redirects to
> > https://elinux.org/Beagleboard:BeagleBoneBlack_Rebuilding_Software_Image
> > which points to an official kernel repository at GitHub.
> >
> > There are updated RT and non-RT kernel source trees. Use the last non-RT
> > release (4.19.73-ti-r29) and the omap2plus defconfig.
> >
> > Signed-off-by: Carlos Santos <unixmania@gmail.com>
>
> I've applied to next... but after doing, I realized that you could have
> used the github macro, like we do in beagleboneai_defconfig. Could you
> send a patch for that ?

I kept using git download method but I can replace it by the download
or the tarbal from GitHub.

> Also, it would be nice if we could align beagleboneai, beaglebone and
> beaglebone_qt5 to use the same U-Boot/Linux versions, if possible. I
> see that the beagleboneai is using 4.14 even though it's a much newer
> platform than beaglebone.

I have been working on it but did not have much free time in the last
weeks. I will try to fix it on time for 2019.11.

-- 
Carlos Santos <unixmania@gmail.com>

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

* [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
  2019-11-08 23:11     ` Carlos Santos
@ 2019-11-09 14:19       ` Thomas Petazzoni
  0 siblings, 0 replies; 9+ messages in thread
From: Thomas Petazzoni @ 2019-11-09 14:19 UTC (permalink / raw)
  To: buildroot

On Fri, 8 Nov 2019 20:11:14 -0300
Carlos Santos <unixmania@gmail.com> wrote:

> > I've applied to next... but after doing, I realized that you could have
> > used the github macro, like we do in beagleboneai_defconfig. Could you
> > send a patch for that ?  
> 
> I kept using git download method but I can replace it by the download
> or the tarbal from GitHub.

Yes, it's nicer to use the github macro, it saves a lot of download time.

> > Also, it would be nice if we could align beagleboneai, beaglebone and
> > beaglebone_qt5 to use the same U-Boot/Linux versions, if possible. I
> > see that the beagleboneai is using 4.14 even though it's a much newer
> > platform than beaglebone.  
> 
> I have been working on it but did not have much free time in the last
> weeks. I will try to fix it on time for 2019.11.

Sure, no problem. That was really a "nice to have" comment. Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

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

* [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black
  2019-11-08 23:05     ` Carlos Santos
@ 2019-11-09 16:42       ` Carlos Santos
  0 siblings, 0 replies; 9+ messages in thread
From: Carlos Santos @ 2019-11-09 16:42 UTC (permalink / raw)
  To: buildroot

On Fri, Nov 8, 2019 at 8:05 PM Carlos Santos <unixmania@gmail.com> wrote:
>
> On Fri, Nov 8, 2019 at 6:09 PM Thomas Petazzoni
> <thomas.petazzoni@bootlin.com> wrote:
> >
> > Hello Carlos,
> >
> > On Sat,  2 Nov 2019 19:38:38 -0300
> > unixmania at gmail.com wrote:
> >
> > > From: Carlos Santos <unixmania@gmail.com>
> > >
> > > Commit 68b5b79b2f has set the getty port to the default console but left
> > > "ttyO0" in bootargs, in the U-Boot environment. Use "ttyS0", instead.
> > >
> > > Also set loadaddr to 0x82000000 and fdtaddr to 0x88000000, replacing the
> > > ancient U-Boot 2013.10-dirty default values that cause system hangs.
> >
> > Where are we using U-Boot 2013.10-dirty on BeagleBone ?
> >
> > $ grep UBOOT_CUSTOM_VERSION_VALUE configs/beaglebone*
> > configs/beagleboneai_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.04"
> > configs/beaglebone_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2019.07"
> > configs/beaglebone_qt5_defconfig:BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2016.09.01"
> >
> > And these are upstream, unpatched, versions.
> >
> > Could you clarify this? Otherwise the patch looks good, of course.
> >
> > Thanks!
> >
> > Thomas
> > --
> > Thomas Petazzoni, CTO, Bootlin
> > Embedded Linux and Kernel engineering
> > https://bootlin.com
>
> That's the SPL in old Beaglebone cards. I will rephrase the commit
> message to clarify it.
>
> --
> Carlos Santos <unixmania@gmail.com>

Done: https://patchwork.ozlabs.org/patch/1192449/

-- 
Carlos Santos <unixmania@gmail.com>

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

end of thread, other threads:[~2019-11-09 16:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-02 22:38 [Buildroot] [PATCH 0/2] configs/beaglebone: fix boot hang and update kernel unixmania at gmail.com
2019-11-02 22:38 ` [Buildroot] [PATCH 1/2] board/beaglebone: fix boot on BeagleBone Black unixmania at gmail.com
2019-11-08 21:09   ` Thomas Petazzoni
2019-11-08 23:05     ` Carlos Santos
2019-11-09 16:42       ` Carlos Santos
2019-11-02 22:38 ` [Buildroot] [PATCH 2/2] configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository unixmania at gmail.com
2019-11-08 21:12   ` Thomas Petazzoni
2019-11-08 23:11     ` Carlos Santos
2019-11-09 14:19       ` Thomas Petazzoni

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.