mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
[FIRSTBOOT] add missing GC9306/5 detected- 1'block
inline with firstboot procedure diagram
This commit is contained in:
@@ -204,6 +204,9 @@ if ! $FOUND_CONSOLE && ! $FOUND_CONSOLE_AUTO && $CONSOLE_DETECTED; then
|
|||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
elif (grep -q "$DETECTED_2" "${MOUNTDIR}/uEnv.txt"); then
|
||||||
|
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_2" 0 0
|
||||||
|
echo "CONSOLE_VARIANT=m3" > ${MOUNTDIR}/console.cfg
|
||||||
elif (grep -q "$DETECTED_3" "${MOUNTDIR}/uEnv.txt"); then
|
elif (grep -q "$DETECTED_3" "${MOUNTDIR}/uEnv.txt"); then
|
||||||
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_3" 0 0
|
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_3" 0 0
|
||||||
# Test_Image-prompt if proper "invert" colors parameter was loaded:
|
# Test_Image-prompt if proper "invert" colors parameter was loaded:
|
||||||
@@ -226,7 +229,6 @@ if ! $FOUND_CONSOLE && ! $FOUND_CONSOLE_AUTO && $CONSOLE_DETECTED; then
|
|||||||
safe_reboot_func
|
safe_reboot_func
|
||||||
fi
|
fi
|
||||||
# look in II Test block for following DETECTED versions as these imply devices_auto_ID variants:
|
# look in II Test block for following DETECTED versions as these imply devices_auto_ID variants:
|
||||||
## DETECTED_2 - xyc/m3
|
|
||||||
## DETECTED_4 - bittboy
|
## DETECTED_4 - bittboy
|
||||||
## DETECTED_5 - bittboy3/2
|
## DETECTED_5 - bittboy3/2
|
||||||
elif (grep -q "$DETECTED_6" "${MOUNTDIR}/uEnv.txt"); then
|
elif (grep -q "$DETECTED_6" "${MOUNTDIR}/uEnv.txt"); then
|
||||||
@@ -309,7 +311,7 @@ if ! $FOUND_CONSOLE && $FOUND_CONSOLE_AUTO && $CONSOLE_DETECTED; then
|
|||||||
if (grep -q "$DETECTED_5" "${MOUNTDIR}/uEnv.txt"); then
|
if (grep -q "$DETECTED_5" "${MOUNTDIR}/uEnv.txt"); then
|
||||||
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_5" 0 0
|
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_5" 0 0
|
||||||
elif (grep -q "$DETECTED_2" "${MOUNTDIR}/uEnv.txt"); then
|
elif (grep -q "$DETECTED_2" "${MOUNTDIR}/uEnv.txt"); then
|
||||||
dialog --timeout 3 --msgbox "Auto-Detected $DETECTED_2" 0 0
|
dialog --timeout 4 --msgbox "Correcting $DETECTED_2 - wait for further instructions" 0 0
|
||||||
fi
|
fi
|
||||||
test_keyboard_func(){
|
test_keyboard_func(){
|
||||||
dialog --ok-label NO --cancel-label YES --stdout --title " Test Keyboard" \
|
dialog --ok-label NO --cancel-label YES --stdout --title " Test Keyboard" \
|
||||||
@@ -326,6 +328,7 @@ if ! $FOUND_CONSOLE && $FOUND_CONSOLE_AUTO && $CONSOLE_DETECTED; then
|
|||||||
echo "CONSOLE_VARIANT=bittboy3.5" > ${MOUNTDIR}/console.cfg
|
echo "CONSOLE_VARIANT=bittboy3.5" > ${MOUNTDIR}/console.cfg
|
||||||
elif test "$CONSOLE_VARIANT" == "bittboy2"; then
|
elif test "$CONSOLE_VARIANT" == "bittboy2"; then
|
||||||
echo "CONSOLE_VARIANT=bittboy2x_v2" > ${MOUNTDIR}/console.cfg
|
echo "CONSOLE_VARIANT=bittboy2x_v2" > ${MOUNTDIR}/console.cfg
|
||||||
|
#TODO: add Test_Image inverted colors after adding it in gc9306fb kernel code
|
||||||
elif test "$CONSOLE_VARIANT" == "xyc"; then
|
elif test "$CONSOLE_VARIANT" == "xyc"; then
|
||||||
echo "CONSOLE_VARIANT=xyc_gc9306" > ${MOUNTDIR}/console.cfg
|
echo "CONSOLE_VARIANT=xyc_gc9306" > ${MOUNTDIR}/console.cfg
|
||||||
elif test "$CONSOLE_VARIANT" == "m3"; then
|
elif test "$CONSOLE_VARIANT" == "m3"; then
|
||||||
|
Reference in New Issue
Block a user