* [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update
@ 2023-01-04 0:21 Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 1/4] configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to spl+u-boot Giulio Benetti
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Giulio Benetti @ 2023-01-04 0:21 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Jagan Teki
Hello All,
here is a patchset to fix boot of Tinker board and bump Linux/U-boot
versions.
I don't know how it happened to have this board not booting up, probably
while testing in parallel with vyasa I've skipped the last test before
sending the previous patch that bumped Linux to 5.15 and U-Boot to
2022.10. So note that even with Linux 5.15 and U-Boot 2022.10 the board
doesn't boot up and [Patch 1/3] should be backported.
Probably [Patch 4/4] should be backported too to avoid spending hours
on power supply issues. After ~1 year I've totally forgotten that 500mA
Usb port is not enough to power this board.
Best regards
Giulio
Giulio Benetti (4):
configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to
spl+u-boot
board/asus/tinker: rename label linux-next to linux in extlinux.conf
configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot
to 2022.10
board/asus/tinker: add a note to readme.txt for power supply
board/asus/tinker/extlinux.conf | 2 +-
board/asus/tinker/genimage.cfg | 11 +++++++++--
board/asus/tinker/post-build.sh | 4 ++--
board/asus/tinker/readme.txt | 5 +++++
configs/asus_tinker_rk3288_defconfig | 11 +++++------
5 files changed, 22 insertions(+), 11 deletions(-)
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 1/4] configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to spl+u-boot
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
@ 2023-01-04 0:21 ` Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 2/4] board/asus/tinker: rename label linux-next to linux in extlinux.conf Giulio Benetti
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Giulio Benetti @ 2023-01-04 0:21 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Jagan Teki
During last U-boot version bump it's not been noted that tpl was not
prepended to spl anymore preventing the board to boot, so let's copy tpl
to image folder and prepend it to u-boot-spl-dtb.bin placing it to 32K
offset, where rk3288 bootrom expects to find it. Let's also place
u-boot-dtb separated from spl at 8M offset, where spl expects it to find
it.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
board/asus/tinker/genimage.cfg | 11 +++++++++--
board/asus/tinker/post-build.sh | 4 ++--
configs/asus_tinker_rk3288_defconfig | 3 +--
3 files changed, 12 insertions(+), 6 deletions(-)
diff --git a/board/asus/tinker/genimage.cfg b/board/asus/tinker/genimage.cfg
index a4b1e8d608..fa7fd734f2 100644
--- a/board/asus/tinker/genimage.cfg
+++ b/board/asus/tinker/genimage.cfg
@@ -2,12 +2,19 @@ image sdcard.img {
hdimage {
}
- partition u-boot-spl-dtb {
+ partition u-boot-tpl-spl-dtb {
in-partition-table = "no"
- image = "u-boot-spl-dtb.img"
+ image = "u-boot-tpl-spl-dtb.img"
offset = 32K
}
+ partition u-boot-dtb {
+ in-partition-table = "no"
+ image = "u-boot-dtb.img"
+ offset = 8M
+ size = 30M
+ }
+
partition rootfs {
partition-type = 0x83
image = "rootfs.ext4"
diff --git a/board/asus/tinker/post-build.sh b/board/asus/tinker/post-build.sh
index 8108ed83ff..ffbbcdeb58 100755
--- a/board/asus/tinker/post-build.sh
+++ b/board/asus/tinker/post-build.sh
@@ -3,7 +3,7 @@
MKIMAGE=$HOST_DIR/bin/mkimage
BOARD_DIR="$(dirname $0)"
-$MKIMAGE -n rk3288 -T rksd -d $BINARIES_DIR/u-boot-spl-dtb.bin $BINARIES_DIR/u-boot-spl-dtb.img
-cat $BINARIES_DIR/u-boot-dtb.bin >> $BINARIES_DIR/u-boot-spl-dtb.img
+$MKIMAGE -n rk3288 -T rksd -d $BINARIES_DIR/u-boot-tpl.bin $BINARIES_DIR/u-boot-tpl.img
+cat $BINARIES_DIR/u-boot-tpl.img $BINARIES_DIR/u-boot-spl-dtb.bin > $BINARIES_DIR/u-boot-tpl-spl-dtb.img
install -m 0644 -D $BOARD_DIR/extlinux.conf $TARGET_DIR/boot/extlinux/extlinux.conf
diff --git a/configs/asus_tinker_rk3288_defconfig b/configs/asus_tinker_rk3288_defconfig
index 6963fa939f..02b340a7f1 100644
--- a/configs/asus_tinker_rk3288_defconfig
+++ b/configs/asus_tinker_rk3288_defconfig
@@ -17,9 +17,8 @@ BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
BR2_TARGET_UBOOT_NEEDS_PYLIBFDT=y
BR2_TARGET_UBOOT_NEEDS_OPENSSL=y
BR2_TARGET_UBOOT_FORMAT_DTB_IMG=y
-BR2_TARGET_UBOOT_FORMAT_DTB_BIN=y
BR2_TARGET_UBOOT_SPL=y
-BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl-dtb.bin"
+BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl-dtb.bin tpl/u-boot-tpl.bin"
# Kernel
BR2_LINUX_KERNEL=y
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 2/4] board/asus/tinker: rename label linux-next to linux in extlinux.conf
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 1/4] configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to spl+u-boot Giulio Benetti
@ 2023-01-04 0:21 ` Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 3/4] configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot to 2022.10 Giulio Benetti
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Giulio Benetti @ 2023-01-04 0:21 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Jagan Teki
We're not using next branch so let's rename label linux-next to linux.
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
board/asus/tinker/extlinux.conf | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/asus/tinker/extlinux.conf b/board/asus/tinker/extlinux.conf
index 136af0debd..bb96ddb893 100644
--- a/board/asus/tinker/extlinux.conf
+++ b/board/asus/tinker/extlinux.conf
@@ -1,4 +1,4 @@
-label Tinker linux-next
+label Tinker linux
kernel /boot/uImage
devicetree /boot/rk3288-tinker.dtb
append console=ttyS2,115200n8 root=/dev/mmcblk0p1 rootwait
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 3/4] configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot to 2022.10
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 1/4] configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to spl+u-boot Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 2/4] board/asus/tinker: rename label linux-next to linux in extlinux.conf Giulio Benetti
@ 2023-01-04 0:21 ` Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 4/4] board/asus/tinker: add a note to readme.txt for power supply Giulio Benetti
2023-02-10 22:34 ` [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Thomas Petazzoni via buildroot
4 siblings, 0 replies; 6+ messages in thread
From: Giulio Benetti @ 2023-01-04 0:21 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Jagan Teki
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
configs/asus_tinker_rk3288_defconfig | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/configs/asus_tinker_rk3288_defconfig b/configs/asus_tinker_rk3288_defconfig
index 02b340a7f1..40f4125880 100644
--- a/configs/asus_tinker_rk3288_defconfig
+++ b/configs/asus_tinker_rk3288_defconfig
@@ -3,14 +3,14 @@ BR2_arm=y
BR2_cortex_a17=y
BR2_ARM_FPU_NEON_VFPV4=y
-# Linux headers same as kernel, a 5.14 series
-BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_14=y
+# Linux headers same as kernel, a 6.1 series
+BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1=y
# Bootloader
BR2_TARGET_UBOOT=y
BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y
BR2_TARGET_UBOOT_CUSTOM_VERSION=y
-BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2021.10"
+BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2022.10"
BR2_TARGET_UBOOT_BOARD_DEFCONFIG="tinker-rk3288"
BR2_TARGET_UBOOT_NEEDS_DTC=y
BR2_TARGET_UBOOT_NEEDS_PYTHON3=y
@@ -23,7 +23,7 @@ BR2_TARGET_UBOOT_SPL_NAME="spl/u-boot-spl-dtb.bin tpl/u-boot-tpl.bin"
# Kernel
BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_VERSION=y
-BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="5.14.13"
+BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE="6.1.2"
BR2_LINUX_KERNEL_DEFCONFIG="multi_v7"
BR2_LINUX_KERNEL_UIMAGE=y
BR2_LINUX_KERNEL_UIMAGE_LOADADDR="0x02000000"
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Buildroot] [PATCH 4/4] board/asus/tinker: add a note to readme.txt for power supply
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
` (2 preceding siblings ...)
2023-01-04 0:21 ` [Buildroot] [PATCH 3/4] configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot to 2022.10 Giulio Benetti
@ 2023-01-04 0:21 ` Giulio Benetti
2023-02-10 22:34 ` [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Thomas Petazzoni via buildroot
4 siblings, 0 replies; 6+ messages in thread
From: Giulio Benetti @ 2023-01-04 0:21 UTC (permalink / raw)
To: buildroot; +Cc: Giulio Benetti, Jagan Teki
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
board/asus/tinker/readme.txt | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/board/asus/tinker/readme.txt b/board/asus/tinker/readme.txt
index 7372d29520..9affd6399f 100644
--- a/board/asus/tinker/readme.txt
+++ b/board/asus/tinker/readme.txt
@@ -35,3 +35,8 @@ You can write this image directly to an SD card device (i.e. /dev/xxx):
$ sudo sync
Finally, you can insert the SD card to the Tinker RK3288 board and boot it.
+
+NOTE:
+Usb power supply requires more than the standard 500mA Usb current, so
+this board must be supplied from a capable port or from an external ac/dc
+adapter. Otherwise it will hang on loading uImage forever.
--
2.34.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
` (3 preceding siblings ...)
2023-01-04 0:21 ` [Buildroot] [PATCH 4/4] board/asus/tinker: add a note to readme.txt for power supply Giulio Benetti
@ 2023-02-10 22:34 ` Thomas Petazzoni via buildroot
4 siblings, 0 replies; 6+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-02-10 22:34 UTC (permalink / raw)
To: Giulio Benetti; +Cc: Jagan Teki, buildroot
On Wed, 4 Jan 2023 01:21:09 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> Giulio Benetti (4):
> configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to
> spl+u-boot
> board/asus/tinker: rename label linux-next to linux in extlinux.conf
> configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot
> to 2022.10
> board/asus/tinker: add a note to readme.txt for power supply
Series applied with minor adjustements here and there, nothing major.
Thanks a lot!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-02-10 22:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-04 0:21 [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 1/4] configs/asus_tinker_rk3288_defconfig: fix boot by prepending tpl to spl+u-boot Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 2/4] board/asus/tinker: rename label linux-next to linux in extlinux.conf Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 3/4] configs/asus_tinker_rk3288_defconfig: bump Linux to 6.1.2 and U-boot to 2022.10 Giulio Benetti
2023-01-04 0:21 ` [Buildroot] [PATCH 4/4] board/asus/tinker: add a note to readme.txt for power supply Giulio Benetti
2023-02-10 22:34 ` [Buildroot] [PATCH 0/4] Tinker board boot fix and Linux/U-Boot update Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox