Created
June 16, 2017 14:26
Star
You must be signed in to star a gist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Poplar USB flash drive recovery script | |
# Created jeudi 8 juin 2017, 14:05:21 (UTC+0200) | |
# | |
# Root file system built from: | |
# linaro-stretch-developer-20170602-64.tar.gz | |
usb start | |
fatload usb 0:1 0x08000000 mbr.gz | |
unzip 0x08000000 0x10000000 0x00000200 | |
mmc write 0x10000000 0x00000000 0x00000001 | |
echo | |
fatload usb 0:1 0x08000000 partition1.1-of-1.gz | |
unzip 0x08000000 0x10000000 0x003ffe00 | |
mmc write 0x10000000 0x00000001 0x00001fff | |
echo | |
fatload usb 0:1 0x08000000 partition2.1-of-1.gz | |
unzip 0x08000000 0x10000000 0x08000000 | |
mmc write 0x10000000 0x00002000 0x00040000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.1-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x00042000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.2-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x000c2000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.3-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x00142000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.4-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x001c2000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.5-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x00242000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.6-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x002c2000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.7-of-8.gz | |
unzip 0x08000000 0x10000000 0x10000000 | |
mmc write 0x10000000 0x00342000 0x00080000 | |
echo | |
fatload usb 0:1 0x08000000 partition3.8-of-8.gz | |
unzip 0x08000000 0x10000000 0x07bffe00 | |
mmc write 0x10000000 0x003c2000 0x0003dfff | |
echo | |
echo ============== INSTALLATION IS DONE =============== | |
echo (Please remove the USB stick and reset your board) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment