add resize and set bakclight and volume

This commit is contained in:
tpietrus
2023-03-16 10:08:25 +01:00
parent e45cdf1ccd
commit 0a56e2e6cf
8 changed files with 28 additions and 3 deletions

View File

@@ -0,0 +1 @@
9

View File

@@ -0,0 +1 @@
7

View File

@@ -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

View File

@@ -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

View File

@@ -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

Binary file not shown.

View File

@@ -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
}

View File

@@ -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}