aboutsummaryrefslogtreecommitdiffstats
path: root/classes
diff options
context:
space:
mode:
authorJoshua Watt <jpewhacker@gmail.com>2019-12-03 21:30:34 -0600
committerTrevor Woerner <twoerner@gmail.com>2019-12-09 21:32:23 -0500
commit295b58facfb37b84b1e2d871dd4822d8c171dbbd (patch)
treef23de747153ddc3aa0721cc4c4fc8a7db55fe7bf /classes
parent59408a8b23b2ce4289ef62fd31857c3e29a21886 (diff)
downloadmeta-rockchip-295b58facfb37b84b1e2d871dd4822d8c171dbbd.tar.gz
meta-rockchip-295b58facfb37b84b1e2d871dd4822d8c171dbbd.tar.bz2
meta-rockchip-295b58facfb37b84b1e2d871dd4822d8c171dbbd.zip
Fix rk3288 bootloader
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>
Diffstat (limited to 'classes')
-rw-r--r--classes/rockchip-gpt-img.bbclass6
1 files changed, 2 insertions, 4 deletions
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
}