mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
add resize and set bakclight and volume
This commit is contained in:
1
board/miyoo/boot/configs/.backlight.conf
Normal file
1
board/miyoo/boot/configs/.backlight.conf
Normal file
@@ -0,0 +1 @@
|
||||
9
|
||||
1
board/miyoo/boot/configs/.volume.conf
Normal file
1
board/miyoo/boot/configs/.volume.conf
Normal file
@@ -0,0 +1 @@
|
||||
7
|
||||
9
board/miyoo/boot/configs/manifest
Normal file
9
board/miyoo/boot/configs/manifest
Normal 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
|
||||
@@ -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
|
||||
|
||||
2
board/miyoo/boot/misc/bin/README.md
Normal file
2
board/miyoo/boot/misc/bin/README.md
Normal 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
|
||||
BIN
board/miyoo/boot/misc/bin/fatresize_hc
Executable file
BIN
board/miyoo/boot/misc/bin/fatresize_hc
Executable file
Binary file not shown.
@@ -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
|
||||
}
|
||||
|
||||
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user