Skip to content

Instantly share code, notes, and snippets.

Created June 16, 2017 14:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save anonymous/be83240a535767d877e1be0cd9998c9d to your computer and use it in GitHub Desktop.
# 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