meson adjust (#4461)

* onecloud: adjust partition offset

* meson: odroidc1: special `write_uboot_platform`

* onecloud: use 24bit u-boot logo
This commit is contained in:
hzyitc
2022-11-19 15:09:07 +08:00
committed by GitHub
parent 28c6be0489
commit 18dba7985f
2 changed files with 17 additions and 9 deletions

View File

@@ -7,7 +7,11 @@ BOOTCONFIG="none"
BOOTSCRIPT="boot-onecloud.cmd:boot.cmd"
BOOTENV_FILE="onecloud.txt"
BOOTSIZE="200"
OFFSET="16"
BOOTSIZE="256"
BOOTFS_TYPE="fat"
# ROOTFS_TYPE="f2fs"
# FIXED_IMAGE_SIZE=7456
BOOT_LOGO=desktop

View File

@@ -23,6 +23,13 @@ case $BOARD in
UBOOT_TARGET_MAP=';;sd_fuse/bl1.bin.hardkernel sd_fuse/u-boot.bin'
write_uboot_platform() {
dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1
dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1
dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1
dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1
}
;;
esac
@@ -49,15 +56,12 @@ case $BRANCH in
;;
esac
write_uboot_platform() {
dd if=$1/bl1.bin.hardkernel of=$2 bs=1 count=442 conv=fsync > /dev/null 2>&1
dd if=$1/bl1.bin.hardkernel of=$2 bs=512 skip=1 seek=1 conv=fsync > /dev/null 2>&1
dd if=$1/u-boot.bin of=$2 bs=512 seek=64 conv=fsync > /dev/null 2>&1
dd if=/dev/zero of=$2 seek=1024 count=32 bs=512 conv=fsync > /dev/null 2>&1
}
family_tweaks() {
:
case $BOARD in
onecloud)
cp $SRC/packages/blobs/splash/armbian-u-boot-24.bmp $SDCARD/boot/boot.bmp
;;
esac
}
family_tweaks_bsp() {