mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Use miyoo video driver to get driver name and parameters for modprobe (#73)
This commit is contained in:
@@ -34,8 +34,7 @@ umtprd >> "${LOGS}" 2>&1 &
|
|||||||
## automatically from rootfs/lib/modules/VERSION
|
## automatically from rootfs/lib/modules/VERSION
|
||||||
# The uEnv.txt is autogenerated by u-boot from HW which outputs
|
# The uEnv.txt is autogenerated by u-boot from HW which outputs
|
||||||
## environmental variables needed for ID of screen type
|
## environmental variables needed for ID of screen type
|
||||||
video=`cat ${BOOTDIR}/uEnv.txt |grep -a "CONSOLE_VIDEO" | cut -d "=" -f 2 | cut -d "." -f 1`
|
video=`cat /sys/kernel/miyoo_video/miyoo_video`
|
||||||
params=`cat ${BOOTDIR}/uEnv.txt |grep -a "CONSOLE_PARAMETERS" | cut -d "=" -f 2-`
|
|
||||||
|
|
||||||
BACKLIGHT=$(cat ${HOME}/.backlight.conf)
|
BACKLIGHT=$(cat ${HOME}/.backlight.conf)
|
||||||
|
|
||||||
@@ -63,7 +62,7 @@ else
|
|||||||
#FLIP & INVERT options.cfg setting
|
#FLIP & INVERT options.cfg setting
|
||||||
export flip=$(grep -o FLIP=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
|
export flip=$(grep -o FLIP=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
|
||||||
export invert=$(grep -o INVERT=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
|
export invert=$(grep -o INVERT=[0-1] "${HOME}/options.cfg" | tr '[:upper:]' '[:lower:]')
|
||||||
modprobe $video $params $flip $invert
|
modprobe $video $flip $invert
|
||||||
else
|
else
|
||||||
(cd "${BOOTDIR}" && sh modules.custom.sh ) >> "${LOGS}" 2>&1
|
(cd "${BOOTDIR}" && sh modules.custom.sh ) >> "${LOGS}" 2>&1
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user