{"id":19349068,"url":"https://github.com/digineo/erx-recovery","last_synced_at":"2025-04-23T06:30:47.413Z","repository":{"id":57573071,"uuid":"323314049","full_name":"digineo/erx-recovery","owner":"digineo","description":"Ubiquiti EdgeRouter X recovery tool","archived":false,"fork":false,"pushed_at":"2022-05-31T08:39:00.000Z","size":16,"stargazers_count":20,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-02T09:22:29.249Z","etag":null,"topics":["edgerouter","flash","tftp","ubiquiti","ubnt"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/digineo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-12-21T11:19:10.000Z","updated_at":"2025-03-02T05:49:04.000Z","dependencies_parsed_at":"2022-09-17T01:23:02.648Z","dependency_job_id":null,"html_url":"https://github.com/digineo/erx-recovery","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digineo%2Ferx-recovery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digineo%2Ferx-recovery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digineo%2Ferx-recovery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/digineo%2Ferx-recovery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/digineo","download_url":"https://codeload.github.com/digineo/erx-recovery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250384706,"owners_count":21421779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["edgerouter","flash","tftp","ubiquiti","ubnt"],"created_at":"2024-11-10T04:24:34.260Z","updated_at":"2025-04-23T06:30:47.078Z","avatar_url":"https://github.com/digineo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ER-X recovery tool\n\nThis tools helps to recover broken Ubiquiti EdgeRouter X devices using a serial console and TFTP.\nIt also detects damaged flash when the kernel is not able to boot.\n\nIt has been tested under Ubuntu 20.04.\n\n## Requirements\n\n* Linux\n* Serial console attached to the EdgeRouter X.\n* `eth0` of the EdgeRouter X connected to the local machine.\n\n## Usage\n\n```\nUsage of erx-recovery:\n  -device-ip string\n    \tdevice IP address for the TFTP client, needs to be in the same network as the TFTP server (default \"172.16.3.212\")\n  -image string\n    \tpath to linux kernel image (default \"/path/to/kernel\")\n  -local-ip string\n    \tlocal IP address for the TFTP server (default \"172.16.3.210\")\n  -log string\n    \tdirectory for log files (default \"./logs\")\n  -tty string\n    \tpath to serial console (default \"/dev/ttyUSB0\")\n  -verbose\n    \tIncrease verbosity (default true)\n```\n\n## Detection of damaged flash\n\nIf important parts of the flash memory (NAND) are damaged,\nthe kernel is unable to boot. In this case you see something like this in the log file:\n\n```\nPlease choose the operation:\n   1: Load system code to SDRAM via TFTP.\n   2: Load system code then write to Flash via TFTP.\n   3: Boot system code via Flash (default).\n   4: Entr boot command line interface.\n   7: Load Boot Loader code then write to Flash via Serial.\n   9: Load Boot Loader code then write to Flash via TFTP.\n   r: Start TFTP recovery.\ndefault: 3\n 0\n\n3: System Boot system code via Flash.\n## Booting image at c0040000 ...\nBad Magic Number,53F511F6\nSearch header in next block address 460000\nBad Magic Number,578CD49B\nSearch header in next block address 480000\nBad Magic Number,D718AC07\nSearch header in next block address 4a0000\nBad Magic Number,F074335F\nSearch header in next block address 4c0000\nBad Magic Number,E761A28A\nSearch header in next block address 4e0000\nBad Magic Number,A8CE778A\nSearch header in next block address 500000\n... [many more]\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigineo%2Ferx-recovery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdigineo%2Ferx-recovery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdigineo%2Ferx-recovery/lists"}