Skip to content

Commit

Permalink
force boot from sd-card without distroying the emmc-system
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle committed Apr 25, 2024
1 parent c645dce commit 74c0063
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openhd_sys_utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ if [ -f "/boot/openhd/rock-rk3566.txt" ] || [ -f "/boot/openhd/openhd/rock-rk356
fi
sudo bash /usr/local/bin/initRock.sh > /boot/debug.txt
if [ -f "/boot/openhd/clearEMMC.txt" ] || [ -f "/home/openhd/Videos/clearEMMC.txt" ] ; then
(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
whiptail --msgbox "Please reboot your system now" 10 40
sudo dd if=/dev/zero of=/dev/mmcblk1 bs=512 count=1 seek=1
whiptail --msgbox "EMMC cleared Please reboot your system now" 10 40
fi
fi

Expand Down

0 comments on commit 74c0063

Please sign in to comment.