diff --git a/board/miyoo/boot/configs/.backlight.conf b/board/miyoo/boot/configs/.backlight.conf new file mode 100644 index 00000000..f11c82a4 --- /dev/null +++ b/board/miyoo/boot/configs/.backlight.conf @@ -0,0 +1 @@ +9 \ No newline at end of file diff --git a/board/miyoo/boot/configs/.volume.conf b/board/miyoo/boot/configs/.volume.conf new file mode 100644 index 00000000..c7930257 --- /dev/null +++ b/board/miyoo/boot/configs/.volume.conf @@ -0,0 +1 @@ +7 \ No newline at end of file diff --git a/board/miyoo/boot/configs/manifest b/board/miyoo/boot/configs/manifest new file mode 100644 index 00000000..d259ab35 --- /dev/null +++ b/board/miyoo/boot/configs/manifest @@ -0,0 +1,9 @@ +! manifest +! format: each line corresponds to one file to be copied over +! from_file(as_appears_in_this_directory) to_file(relative_to_root_of_main_partition) +! to_file is optional; if missing will use from_file +.backlight.conf +.volume.conf +gmenu2x.conf gmenu2x/gmenu2x.conf +input.conf gmenu2x/input.conf +! leave this last line here diff --git a/board/miyoo/boot/firstboot b/board/miyoo/boot/firstboot index 8c80f6c9..348ebba7 100755 --- a/board/miyoo/boot/firstboot +++ b/board/miyoo/boot/firstboot @@ -13,7 +13,7 @@ swapon /dev/mmcblk0p3 | tee -a ${LOG} LOG=/dev/null BINDIR="${MOUNTDIR}/misc/bin" -FATFSCK="${BINDIR}/fsck.fat" +FATFSCK="fsck.fat" # high brightness echo '10' > /sys/devices/platform/backlight/backlight/backlight/brightness diff --git a/board/miyoo/boot/misc/bin/README.md b/board/miyoo/boot/misc/bin/README.md new file mode 100644 index 00000000..d49621d7 --- /dev/null +++ b/board/miyoo/boot/misc/bin/README.md @@ -0,0 +1,2 @@ +# some statically compiled binaries +* `fatresize_hc` is a "minimal fat resize example" using `libparted`; the source code is [here](https://github.com/flabbergast/fatresize/tree/hardcoded); compiling requires static(musl) toolchain from the above buildroot diff --git a/board/miyoo/boot/misc/bin/fatresize_hc b/board/miyoo/boot/misc/bin/fatresize_hc new file mode 100755 index 00000000..988767a4 Binary files /dev/null and b/board/miyoo/boot/misc/bin/fatresize_hc differ diff --git a/board/miyoo/genimage-sdcard.cfg b/board/miyoo/genimage-sdcard.cfg index 30a840a4..b5ae61ca 100644 --- a/board/miyoo/genimage-sdcard.cfg +++ b/board/miyoo/genimage-sdcard.cfg @@ -12,6 +12,18 @@ image bootfs.vfat { "boot/firstboot.custom.sh-OFF", "boot/normalboot.custom.sh" } + file misc/bin/fatresize_hc { + image = "boot/misc/bin/fatresize_hc" + } + file configs/manifest { + image = "boot/configs/manifest" + } + file configs/.volume.conf { + image = "boot/configs/.volume.conf" + } + file configs/.backlight.conf { + image = "boot/configs/.backlight.conf" + } } size = 8M } diff --git a/board/miyoo/scripts/genimage.sh b/board/miyoo/scripts/genimage.sh index e0687ebb..3e06a792 100755 --- a/board/miyoo/scripts/genimage.sh +++ b/board/miyoo/scripts/genimage.sh @@ -7,8 +7,8 @@ SELFDIR=`dirname \`realpath ${0}\`` #BOOT_CMD="boot.cmd" #OUTPUT_NAME="boot.scr" -cp -r board/miyoo/boot/ "${BINARIES_DIR}" -cp -r board/miyoo/main/ "${BINARIES_DIR}" +cp -r board/miyoo/boot "${BINARIES_DIR}" +cp -r board/miyoo/main "${BINARIES_DIR}" #cd "${BINARIES_DIR}" #"${MKIMAGE}" -f boot/${BOOT_CMD} ${OUTPUT_NAME} #rm boot/${BOOT_CMD}