All of lore.kernel.org
 help / color / mirror / Atom feed
* [yocto][meta-rockchip][PATCH] Fix rk3288 bootloader
@ 2019-12-04  3:30 Joshua Watt
  2019-12-10  2:33 ` Trevor Woerner
  0 siblings, 1 reply; 2+ messages in thread
From: Joshua Watt @ 2019-12-04  3:30 UTC (permalink / raw)
  To: yocto; +Cc: twoerner, Joshua Watt

Recent versions of u-boot use a combined SPL/TPL (called idbloader.img)
in the loader1 partition, which then loads the full u-boot from the
loader2 partition. Update the GPT partition class to reflect this
change. Additionally, remove the u-boot bbappend since it is no longer
needed.

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 classes/rockchip-gpt-img.bbclass     | 6 ++----
 conf/machine/include/rk3288.inc      | 2 +-
 recipes-bsp/u-boot/u-boot_%.bbappend | 8 --------
 3 files changed, 3 insertions(+), 13 deletions(-)
 delete mode 100644 recipes-bsp/u-boot/u-boot_%.bbappend

diff --git a/classes/rockchip-gpt-img.bbclass b/classes/rockchip-gpt-img.bbclass
index 5e545bf..f40cf36 100644
--- a/classes/rockchip-gpt-img.bbclass
+++ b/classes/rockchip-gpt-img.bbclass
@@ -135,9 +135,7 @@ EOF
 
 generate_rk3288_loader1_image () {
 
-	# Burn bootloader
-	mkimage -n rk3288 -T rksd -d ${DEPLOY_DIR_IMAGE}/${SPL_BINARY} ${WORKDIR}/${UBOOT}
-	cat ${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin >>  ${WORKDIR}/${UBOOT}
-	dd if=${WORKDIR}/${UBOOT} of=${GPTIMG} conv=notrunc,fsync seek=64
+	dd if=${DEPLOY_DIR_IMAGE}/idbloader.img-${MACHINE} of=${GPTIMG} conv=notrunc,fsync seek=64
+	dd if=${DEPLOY_DIR_IMAGE}/u-boot-${MACHINE}.bin of=${GPTIMG} conv=notrunc,fsync seek=16384
 
 }
diff --git a/conf/machine/include/rk3288.inc b/conf/machine/include/rk3288.inc
index 0528e8a..08cb561 100644
--- a/conf/machine/include/rk3288.inc
+++ b/conf/machine/include/rk3288.inc
@@ -10,7 +10,7 @@ require conf/machine/include/rockchip-defaults.inc
 SERIAL_CONSOLES = "115200;ttyS2"
 
 PREFERRED_PROVIDER_virtual/bootloader ?= "u-boot"
-SPL_BINARY ?= "u-boot-spl-dtb.bin"
+SPL_BINARY ?= "idbloader.img"
 
 IMAGE_FSTYPES = "rockchip-gpt-img"
 IMAGE_CLASSES += "rockchip-gpt-img"
diff --git a/recipes-bsp/u-boot/u-boot_%.bbappend b/recipes-bsp/u-boot/u-boot_%.bbappend
deleted file mode 100644
index b9ee8af..0000000
--- a/recipes-bsp/u-boot/u-boot_%.bbappend
+++ /dev/null
@@ -1,8 +0,0 @@
-FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
-
-do_compile_append_rk3288 () {
-	# copy to default search path
-	if [ ${SPL_BINARY} ]; then
-		cp ${B}/spl/${SPL_BINARY} ${B}/
-	fi
-}
-- 
2.23.0


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

* Re: [yocto][meta-rockchip][PATCH] Fix rk3288 bootloader
  2019-12-04  3:30 [yocto][meta-rockchip][PATCH] Fix rk3288 bootloader Joshua Watt
@ 2019-12-10  2:33 ` Trevor Woerner
  0 siblings, 0 replies; 2+ messages in thread
From: Trevor Woerner @ 2019-12-10  2:33 UTC (permalink / raw)
  To: Joshua Watt; +Cc: yocto

Applied. Thank you!

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

end of thread, other threads:[~2019-12-10  2:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-04  3:30 [yocto][meta-rockchip][PATCH] Fix rk3288 bootloader Joshua Watt
2019-12-10  2:33 ` Trevor Woerner

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.