mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[BOARD] add modules.custom.sh in BOOT partition (#35)
* add modules.custom script * refactor MODULES_CUSTOM scripting in main (disabled by default)
This commit is contained in:
9
board/miyoo/boot/modules.custom.sh
Normal file
9
board/miyoo/boot/modules.custom.sh
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# Leave one line uncommented to load expected video driver
|
||||||
|
#
|
||||||
|
modprobe r61520fb flip=1
|
||||||
|
#modprobe r61520fb debug=1
|
||||||
|
#modprobe st7789sfb lowcurrent=1 tefix=0
|
||||||
|
#modprobe st7789sTEfb
|
||||||
|
#modprobe rm68090fb
|
||||||
|
#modprobe gc9306fb
|
||||||
|
#modprobe hx8347dfb
|
||||||
@@ -10,6 +10,7 @@ image bootfs.vfat {
|
|||||||
"boot/console.cfg",
|
"boot/console.cfg",
|
||||||
"boot/firstboot",
|
"boot/firstboot",
|
||||||
"boot/firstboot.custom.sh-OFF",
|
"boot/firstboot.custom.sh-OFF",
|
||||||
|
"boot/modules.custom.sh",
|
||||||
"boot/normalboot.custom.sh"
|
"boot/normalboot.custom.sh"
|
||||||
}
|
}
|
||||||
file configs/manifest {
|
file configs/manifest {
|
||||||
|
|||||||
@@ -70,9 +70,7 @@ gadget-ms /dev/mmcblk0p1 /dev/mmcblk0p4 >> "${LOGS}" 2>&1
|
|||||||
mv ${HOME}/.backlight.bak ${HOME}/.backlight.conf
|
mv ${HOME}/.backlight.bak ${HOME}/.backlight.conf
|
||||||
fi
|
fi
|
||||||
# MODULES_CUSTOM scripting
|
# MODULES_CUSTOM scripting
|
||||||
if ((test -r "${BOOTDIR}/modules.custom.sh") && !(grep -q MODULES_CUSTOM\=\0 "${HOME}/options.cfg")); then
|
if (!(test -r "${BOOTDIR}/modules.custom.sh") || !(grep -q MODULES_CUSTOM\=\1 "${HOME}/options.cfg")); then
|
||||||
(cd "${BOOTDIR}" && sh modules.custom.sh ) >> "${LOGS}" 2>&1
|
|
||||||
else
|
|
||||||
# Load video module read from uEnv.txt & defined by variant in console.cfg
|
# Load video module read from uEnv.txt & defined by variant in console.cfg
|
||||||
if (grep -q FLIP\=\1 "${HOME}/options.cfg"); then
|
if (grep -q FLIP\=\1 "${HOME}/options.cfg"); then
|
||||||
modprobe $video $params flip=1
|
modprobe $video $params flip=1
|
||||||
@@ -81,6 +79,8 @@ gadget-ms /dev/mmcblk0p1 /dev/mmcblk0p4 >> "${LOGS}" 2>&1
|
|||||||
else
|
else
|
||||||
modprobe $video $params
|
modprobe $video $params
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
(cd "${BOOTDIR}" && sh modules.custom.sh ) >> "${LOGS}" 2>&1
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user