{"id":19666168,"url":"https://github.com/aboehm/ap105-flash","last_synced_at":"2025-02-27T04:16:15.671Z","repository":{"id":85698458,"uuid":"501839807","full_name":"aboehm/ap105-flash","owner":"aboehm","description":"uboot flash tool for Aruba AP-105. Mirror of https://gitlab.dezentrale.space/freifunk-leipzig/ap105-flash","archived":false,"fork":false,"pushed_at":"2022-06-10T12:35:25.000Z","size":91,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-10T02:40:13.915Z","etag":null,"topics":["flash","freifunk","freifunk-leipzig"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aboehm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-06-09T23:35:44.000Z","updated_at":"2024-10-31T19:54:55.000Z","dependencies_parsed_at":"2023-03-13T06:25:43.325Z","dependency_job_id":null,"html_url":"https://github.com/aboehm/ap105-flash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboehm%2Fap105-flash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboehm%2Fap105-flash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboehm%2Fap105-flash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aboehm%2Fap105-flash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aboehm","download_url":"https://codeload.github.com/aboehm/ap105-flash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240976195,"owners_count":19887439,"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":["flash","freifunk","freifunk-leipzig"],"created_at":"2024-11-11T16:26:36.338Z","updated_at":"2025-02-27T04:16:15.645Z","avatar_url":"https://github.com/aboehm.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flash Tool for Aruba AP-105\n\nTool to exchange Aruba AP-105 boot loader stored on a MX25L12835 flash chip with uboot for flashing OpenWRT with an RaspberryPi.\n\n## Prepare\n\nRequirements:\n\n- RaspberryPi\n- Programming clip SOIC16/SOP16 and cabling\n- [Raspbian](https://www.raspberrypi.com/software/)\n- [enabled SPI interface](https://codingworld.io/spi-aktivieren-am-raspberry-pi/)\n- [`flashrom`](https://www.flashrom.org/Flashrom) tool\n\nConfigure SPI on the RaspberryPi:\n\n```\nsudo raspi-config\n# Select Interfacing Options\n# Select SPI \n# Select Yes\n# Select Ok\n# Leave with finish or ESC\n```\n\nTo install `flashrom`:\n\n```\nsudo apt-get install flashrom\n```\n\nConnect the AP105 Flash chip. The red status LED on AP105 must glow\n\n```\n        *-------------------------------------*\n        |                                     |\n        |          ------|MX25L12835------    |\n        |         |                       |   |\n        |   *-----|1 HOLD#/SIO3    CLK 16 |---|----*\n        |   *-----|2 VCC       SI/SIO0 15 |---*    |\n        |   |     |3 RESET#               |        |\n        |   |     |4                      |        |\n        |   |     |5                      |        |\n        |   |     |6                      |        |\n        |   |  *--|7 CS#           GND 10 |------* |\n        | *-|-----|8 SO/SIO1     WP#/SIO2 |-*    | |\n        | | |  |   -----------------------  |    | |\n        | | |  |                            |    | | \n        | | *-------------------------------*    | |\n        | | |  |                                 | |\n        | | |  *-------------------------------* | |\n        | | |                                  | | |\n        | | |    --------|RaspberryPi|-------  | | |\n        | | |   | 1                         2| | | |\n        | | |   | 3                         4| | | |\n        | | |   | 5                         6| | | |\n        | | |   | 7                         8| | | |\n        | | |   | 9                        10| | | |\n        | | |   |11                        12| | | |\n        | | |   |13                        14| | | |\n        | | |   |15                        16| | | |\n        | | *---|17 +3V3                   18| | | |\n        | *-----|19 MOSI/GPIO              20| | | |\n        *-------|21 MISO/GPIO              22| | | |\n          *-----|23 SCLK/GPIO  GPIO 8/CE0# 24|-* | |\n          | *---|25 GND                    26|   | |\n          | |   |27                        28|   | |\n          | |   |29                        30|   | |\n          | |   |31                        32|   | |\n          | |   |33                        34|   | |\n          | |   |35                        36|   | |\n          | |   |37                        38|   | |\n          | |   |39                        40|   | |\n          | |    ----------------------------    | |\n          | |                                    | |\n          | *------------------------------------* |\n          *----------------------------------------*\n```\n\n## Usage\n\n```\nap105-flash \u003cSERIAL NUMBER\u003e\n```\n\nThe flash will be secured into files:\n\n- `AP105-\u003cSERIAL NUMBER\u003e-dump0.rom`\n- `AP105-\u003cSERIAL NUMBER\u003e-dump1.rom`\n\nThe `AP105-\u003cSERIAL_NUMBER\u003e-dump0.rom` will be patched with uboot binary `uboot.bin` and the file `AP105-\u003cSERIAL NUMBER\u003e-patch.rom` will be created.\n\nAfter a confirmation the patched file will be flashed to the device.\n\n## Known problems\n\n### Chip isn't detected by flashrom\n\n- Check the wiring\n- Ensure the RaspberryPi have enough power like a power supply with 5V/2A\n- Ensure the red LED is illuminated on the AP105\n- Reduce the SPI speed to 1000 kHz (default 16500 kHz)\n\n```\nSPEED=1000 ap105-flash \u003cSERIAL NUMBER\u003e\n```\n\n### flashrom fails during erase\n\n- Check power supply\n- Reduce the SPI speed like described above\n\n## Sources\n\n- [git repository for uboot loader @chunkey](https://github.com/chunkeey/u-boot-ap105/releases)\n- [OpenWRT device page](https://openwrt.org/toh/aruba/ap-105)\n- [Datasheet MX25L12835](https://pdf1.alldatasheet.com/datasheet-pdf/view/575542/MCNIX/MX25L12835E.html)\n- [RaspberryPi ASCII Art](http://weyprecht.de/2015/11/30/raspberry-pi-ascii-art/)\n- [flashrom page for RaspberryPi](https://www.flashrom.org/RaspberryPi)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboehm%2Fap105-flash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faboehm%2Fap105-flash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faboehm%2Fap105-flash/lists"}