Skip to content

Instantly share code, notes, and snippets.

@jonseymour
Last active October 24, 2016 17:23
Show Gist options
  • Save jonseymour/908ea09f7d1ab6dbb9fd to your computer and use it in GitHub Desktop.
Save jonseymour/908ea09f7d1ab6dbb9fd to your computer and use it in GitHub Desktop.
Factory reset message codes
ERR301: The specified '$file' does not exist.
ERR302: The specified '$file' does not have the specified checksum ('$checksum'). Actual checksum: ('$filesum').
ERR310: Failed to download '${imageurl}' to '${imagetar}'.
ERR320: The clock has a date in the past: $(date "+%Y-%m-%d %H:%M:%S").
ERR330: The download of the recovery script from '$(url url .sh)' to '$shname' has failed.
ERR331: Partition table checksum mismatch. Expected '${PARTITION_TABLE_SHA1SUM}' found '$check'.
ERR341: The required recovery archive '$tar' does not exist.
ERR401: usage: generate-env {image-name} [ {url-prefix} ]
ERR405: usage: format-partitions {confrmation-code} {block-device} p{partition#}
ERR406: The specified partition device '${partition_device}' does not exist.
ERR410: usage: partition-sha1sum {block-device-or-image}
ERR411: The partition specified by '$block_device' does not exist.
ERR415: usage progress {status-code} {message}
ERR420: usage: confirmed_action {method} {confirmation-code} args...
ERR421: The specified confirmation code '$confirmation' does not match the specified arguments '$*'.
ERR430: usage: wpa_supplicant physical
ERR441: usage: recovery-without-network {tar}.
ERR442: The specified recovery tar '$tar' does not exist.
ERR443: usage: download recovery-script
ERR460: usage: check_file {filename}
ERR461: usage: check deps
ERR465: usage: interfaces cycle
ERR466: usage tool-path {tool}
ERR470: usage mount-point {device}
ERR480: usage: require mounted {partition-device} {mountpoint}
ERR481: usage: require unmounted {partition-device}
ERR482: usage: require mounted {partition-device} [ {preferred-mount-point} ] | unmounted {partition-device} .
ERR485: usage: set image {image-dir}|prefix {url-prefix}|wpa-psk {ssid} {psk}|github {github-prefix}
ERR486: usage: set wpa-psk {ssid} {psk}
ERR490: This command cannot be run while running the sdcard image.
ERR491: This command cannot be run while running the sdcard image.
ERR492: This command cannot be run while running the sdcard image.
ERR493: usage: patch opkg|wpa [{ssid} {psk}]|nand
ERR515: Illegal attempt to write partition table to block device when NAND is not mounted.
ERR521: Failed to format '${partition_device}'.
ERR522: Failed to format '${partition_device}'.
ERR523: Failed to format '${partition_device}'.
ERR524: Failed to format '${partition_device}'.
ERR532: Failed to extract '$tar' to '$block_device$partition'.
ERR535: Unable to delete existing file: '$sha1name'.
ERR536: Unable to delete existing file: '$shname'.
ERR555: failed to download recovery script from git.
ERR561: Failed to update partition table on '/dev/${RECOVERY_SDCARD}'.
ERR563: Failed to copy '$imagesha1' to '$imagedir'.
ERR564: The required recovery archive does not exist: '$imagetar'.
ERR567: Unable to locate tool: '${tool}'
ERR571: The required command 'sfdisk' is available in PATH.
ERR591: Failed to mount '$device' on '$mountpoint'.
ERR592: Failed to unmount '$device' from '$current'.
ERR593: This command must only be run when mounted on the NAND
ERR595: Failed to set '$var'.
STATUS0010: Formatting partition ${block_device}${partition}...
STATUS0019: Formatting of '${block_device}${partition}' is complete.
STATUS0030: Loading environment from '$mountpoint/recovery.env.sh'...
STATUS0031: No environment overrides found in '$mountpoint/recovery.env.sh'...
STATUS0032: Could not mount image device.
STATUS0100: Verifying checksum of '$file'...
STATUS0199: Verification of checksum '$file' is complete.
STATUS0200: Checking required dependencies...
STATUS0299: Checking complete.
STATUS0300: Mounting '$device'...
STATUS0398: '$device' could not be mounted.
STATUS0399: '$device' is mounted.
STATUS0400: Unmounting '$device'...
STATUS0498: '$device' could not be unmounted.
STATUS0499: '$device' is unmounted.
STATUS0501: Mounting image partition.
STATUS0502: Image partition "${RECOVERY_SDCARD}p4" cannot be mounted. Reformatting...
STATUS0503: Image partition formatted. Remounting...
STATUS0504: Image mounted.
STATUS1000: Factory reset starts...
STATUS1004: Unpacking ${sha1_file} from $tar...
STATUS2000: First recovery attempt...
STATUS2001: Retrying recovery attempt ($count)...
STATUS2500: Downloading recovery script begins...
STATUS2501: Downloading ${sha1url}...
STATUS2599: Downloading of '${sha1url}' to '${sha1url}' is complete.
STATUS2600: Downloading ${shurl}...
STATUS2697: Downloading of '${shurl}' to '${shname}' is complete.
STATUS2698: Downloading of recovery script has failed.
STATUS2699: Downloading of recovery script is complete.
STATUS3050: Patching wpa_supplicant.conf...
STATUS3051: The wpa_supplicant.conf file exists.
STATUS3058: Patching wpa has failed.
STATUS3059: Patching wpa is complete...
STATUS3100: Taking wlan0 down...
STATUS3198: Taking wlan0 down has failed.
STATUS3199: Taking wlan0 down is complete.
STATUS3201: Bringing wlan0 up...
STATUS3298: Bringing wlan0 up has failed.
STATUS3299: Bringing wlan0 up is complete.
STATUS3301: Taking hci0 down...
STATUS3398: Taking hci0 down has failed.
STATUS3399: Taking hci0 down is complete.
STATUS3401: Bringing hci0 up...
STATUS3498: Bringing hci0 up failed.
STATUS3499: Bringing hci0 up is complete.
STATUS3500: Launching setup assistant to acquire network credentials...
STATUS3501: Factory setup assistant has exited successfully.
STATUS3596: factory setup assistant has failed.
STATUS3597: Waiting for wlan0 to settle...
STATUS3599: Resuming recovery...
STATUS8000: Recovery assuming network exists begins...
STATUS8001: Checking partition table...
STATUS8002: Differences found.
STATUS8003: Unmounting p4...
STATUS8004: Unmounting p3...
STATUS8005: Unmounting p2...
STATUS8006: Unmounting p1...
STATUS8007: Rewriting partition table...
STATUS8008: Checking partition table...
STATUS8009: Formatting partition p3...
STATUS8010: Formatting partition p2...
STATUS8011: Formatting partition p1...
STATUS8020: Partitioning required, but deferred until nand boot.
STATUS8030: Downloading '${imagesha1url}' to '${imagesha1}'...
STATUS8031: Checking '${imagetar}'...
STATUS8032: Validation of '${imagetar}' failed.
STATUS8033: Downloading '${imageurl}' to '${imagetar}'...
STATUS8034: Download from '${imageurl}' to '${imagetar}' failed.
STATUS8035: Validation of '${imagetar}' failed.
STATUS8038: Download from '${imagesha1url}' to '${imagesha1}' failed.
STATUS8039: Download of '${imageurl}' to '${imagetar}' is complete.
STATUS8500: Forcing boot to NAND in recovery mode...
STATUS8501: Blanking boot partition with $(boot_mb) MB of zero.
STATUS8598: The boot partition has been nuked! Good luck and see you on the other side!
STATUS8599: Rebooting into NAND...
STATUS8999: Recovery assuming network exists ends.
STATUS9000: Recovery without network commences.
STATUS9001: Ignoring checksum failure...
STATUS9100: Reimaging of data partition begins...
STATUS9199: Reimaging of data partition is complete
STATUS9200: Reimaging of root partition begins...
STATUS9299: Reimaging of root is complete.
STATUS9300: Reimaging of boot partition begins...
STATUS9399: Reimaging of boot partition ends.
STATUS9700: Manual recovery of data partition begins...
STATUS9799: Manual recovery of data partition is complete.
STATUS9800: Manual recovery of boot partition begins...
STATUS9899: Manual recovery of boot partition is complete.
STATUS9996: Recovery attempt failed...
STATUS9997: Reimaging is complete.
STATUS9998: Recovery steps complete.
STATUS9999: Recovery command ends.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment