Skip to content

Commit 92e1c6a

Browse files
zero3 settings
1 parent 8109d65 commit 92e1c6a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

additionalFiles/openhd_sys_utils.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ if [ -f "/boot/openhd/rock-rk3566.txt" ]; then
4747
fi
4848
#sudo bash /usr/local/bin/initRock.sh
4949
if [ -f "/boot/openhd/clearEMMC.txt" ] || [ -f "/home/openhd/Videos/clearEMMC.txt" ] ; then
50-
(pv -n /dev/zero | dd of=/dev/mmcblk0 bs=128M conv=notrunc,noerror) 2>&1 | whiptail --gauge "Flashing OpenHD to EMMC, please wait... (if this fails, please manually reboot)" 10 70 0
50+
(pv -n /dev/zero | dd of=/dev/mmcblk0 bs=128M conv=notrunc,noerror) 2>&1 | whiptail --gauge "Cleaning EMMC, please wait... (if this fails, please manually reboot)" 10 70 0
5151
whiptail --msgbox "Please reboot your system now" 10 40
5252
fi
5353
fi

stages/03-Preconfiguration/00-run-chroot.sh

+7
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,14 @@ if [[ "${OS}" == "radxa-debian-rock-cm3" ]]; then
7777
echo "1" > /sys/class/leds/board-led/brightness
7878
echo -e '\nexport NEWT_COLORS='\''\nroot=,black\nwindow=black,black\nborder=black,black\ntextbox=white,black\nbutton=white,black\nemptyscale=,black\nfullscale=,white\n'\'' \\\n\n(pv -n /opt/additionalFiles/emmc.img | dd of=/dev/mmcblk0 bs=128M conv=notrunc,noerror) 2>&1 | whiptail --gauge "Flashing OpenHD to EMMC, please wait..." 10 70 0\necho "please reboot or powerdown the system now"' >> /root/.bashrc
7979
echo "0" > /sys/class/leds/board-led/brightness
80+
echo "mkdir -p /media/new"
81+
echo "mount /dev/mmcblk0p1 /media/new" >> /root/.bashrc
82+
echo "cp -r /boot/openhd/* /media/new/openhd/" >> /root/.bashrc
8083
echo 'whiptail --msgbox "Please reboot your system now" 10 40' >> /root/.bashrc
84+
touch /conf/issue.txt
85+
touch /config/issue.txt
86+
echo "1" > /conf/issue.txt
87+
echo "2" > /config/issue.txt
8188
fi
8289
fi
8390

0 commit comments

Comments
 (0)