configs/beaglebone: fix boot hang and update kernel
cover configs/beaglebone: fix boot hang and update kernel
From: Carlos Santos <[email protected]>
- 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(-)
Signature · 1 line
2.18.1
PATCH 1/2 board/beaglebone: fix boot on BeagleBone Black
From: Carlos Santos <[email protected]>
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.
--- board/beaglebone/uEnv.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
board/beaglebone/uEnv.txt +4 -1
@@ -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}
Signature · 1 line
2.18.1
PATCH 1/2 board/beaglebone: fix boot on BeagleBone Black
Hello Carlos,
Quoted 7 lines · On Sat, 2 Nov 2019 19:38:38 -0300 unixmania at gmail.com wrote:
From: Carlos Santos <[email protected]>
Commit
68b5b79b2fhas 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
0x82000000and fdtaddr to0x88000000, 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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 1/2 board/beaglebone: fix boot on BeagleBone Black
Quoted 25 lines · Thomas Petazzoni
Hello Carlos,
Quoted 7 lines · On Sat, 2 Nov 2019 19:38:38 -0300 unixmania at gmail.com wrote:
From: Carlos Santos <[email protected]>
Commit
68b5b79b2fhas 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
0x82000000and fdtaddr to0x88000000, 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.
Quoted 7 lines
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.
Signature · 1 line
Carlos Santos <[email protected]>
PATCH 1/2 board/beaglebone: fix boot on BeagleBone Black
Quoted 36 lines · Carlos Santos
Quoted 25 lines · Thomas Petazzoni
Hello Carlos,
Quoted 7 lines · On Sat, 2 Nov 2019 19:38:38 -0300 unixmania at gmail.com wrote:
From: Carlos Santos <[email protected]>
Commit
68b5b79b2fhas 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
0x82000000and fdtaddr to0x88000000, 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.
Quoted 7 lines
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
Quoted 5 lines
That's the SPL in old Beaglebone cards. I will rephrase the commit message to clarify it.
--
Carlos Santos <[email protected]>
Done: https://patchwork.ozlabs.org/patch/1192449/
Signature · 1 line
Carlos Santos <[email protected]>
PATCH 2/2 configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
In reply to unixmania at gmail.comFrom: Carlos Santos <[email protected]>
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.
--- configs/beaglebone_defconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
configs/beaglebone_defconfig +2 -2
@@ -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"
Signature · 1 line
2.18.1
PATCH 2/2 configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
Hello,
+Peter, who contributed the beagleboneai defconfig.
Quoted 10 lines · On Sat, 2 Nov 2019 19:38:39 -0300 unixmania at gmail.com wrote:
From: Carlos Santos <[email protected]>
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 <[email protected]>
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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
PATCH 2/2 configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
Quoted 14 lines · Thomas Petazzoni
Hello,
+Peter, who contributed the beagleboneai defconfig.
Quoted 6 lines · On Sat, 2 Nov 2019 19:38:39 -0300 unixmania at gmail.com wrote:
From: Carlos Santos <[email protected]>
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.
Quoted 8 lines
Quoted 4 lines
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 <[email protected]>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.
Quoted 4 lines
Also, it would be nice if we could align beagleboneai, beaglebone and
beaglebone_qt5to 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.
Signature · 1 line
Carlos Santos <[email protected]>
PATCH 2/2 configs/beaglebone: use the new BeagleBoard/BeagleBone kernel repository
Quoted 6 lines · On Fri, 8 Nov 2019 20:11:14 -0300 Carlos Santos <[email protected]> wrote:
Quoted 3 lines
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.
Quoted 7 lines
Quoted 4 lines
Also, it would be nice if we could align beagleboneai, beaglebone and
beaglebone_qt5to 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
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com