{"id":25315912,"url":"https://github.com/codekow/openwrt-bpi-r3","last_synced_at":"2025-07-29T10:09:37.309Z","repository":{"id":240812322,"uuid":"803529481","full_name":"codekow/openwrt-bpi-r3","owner":"codekow","description":"Banana BPI R3 Image Builder","archived":false,"fork":false,"pushed_at":"2025-04-05T19:28:40.000Z","size":75,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T20:27:01.081Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codekow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-20T22:40:46.000Z","updated_at":"2025-04-05T19:28:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"3912df02-9f25-4cda-ad82-c846ec61e82a","html_url":"https://github.com/codekow/openwrt-bpi-r3","commit_stats":null,"previous_names":["codekow/bpi-r3-openwrt","codekow/openwrt-bpi-r3"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/codekow/openwrt-bpi-r3","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fopenwrt-bpi-r3","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fopenwrt-bpi-r3/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fopenwrt-bpi-r3/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fopenwrt-bpi-r3/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codekow","download_url":"https://codeload.github.com/codekow/openwrt-bpi-r3/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codekow%2Fopenwrt-bpi-r3/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267668741,"owners_count":24124967,"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","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2025-02-13T18:46:02.955Z","updated_at":"2025-07-29T10:09:37.262Z","avatar_url":"https://github.com/codekow.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BPI-R3-OpenWrt Image Builder\n\nBanana Pi BPI-R3 OpenWrt Image Builder\n\n[![Build Firmware](https://github.com/codekow/bpi-r3-openwrt/actions/workflows/bpi-r3-24.10.yml/badge.svg)](https://github.com/codekow/bpi-r3-openwrt/actions/workflows/bpi-r3-24.10.yml)\n\n## Jumper Settings\n\n```\n1 = On, High\n0 = Off, Down\nX = Secondary storage selector\n```\n\n| Selected Storage | A | B | C | D |\n|-|-|-|-|-|\n| NOR  | 0 | 0 | 0 | X |\n| NAND | 1 | 0 | 1 | X |\n| eMMC | 0 | 1 | X | 0 |\n| SD   | 1 | 1 | X | 1 |\n\n```\nA = Select boot storage\nB = Select boot storage\nC = NAND [1] or NOR [0] connected to CPU's SPI bus\nD = SD Card or eMMC connected to CPU's eMMC bus\n```\n\n## Quick Start\n\nDownload [24.10.0 SD card](https://downloads.openwrt.org/releases/24.10.0/targets/mediatek/filogic/openwrt-24.10.0-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz)\n\nWrite image to SD card\n\n```sh\nURL=https://downloads.openwrt.org/releases/24.10.0/targets/mediatek/filogic/openwrt-24.10.0-mediatek-filogic-bananapi_bpi-r3-sdcard.img.gz\n\nwget \"${URL}\"\n\nzcat openwrt-*.gz | sudo dd of=/dev/mmcblk0 bs=4k\n```\n\n```sh\n# boot from sdcard, flash nand\n# A=1, B=1, C=1, D=1\nfw_setenv bootcmd \"env default bootcmd ; saveenv ; run ubi_init ; bootmenu 0\"\nreboot\n```\n\n```sh\n# boot from sdcard, flash nor\n# A=1, B=1, C=0, D=1\nfw_setenv bootcmd \"env default bootcmd ; saveenv ; run nor_init ; bootmenu 0\"\nreboot\n```\n\n```sh\n# boot from nand, flash emmc\n# A=1, B=0, C=1, D=0\nfw_setenv bootcmd \"env default bootcmd ; saveenv ; run emmc_init ; bootmenu 0\"\nreboot\n```\n\nFix `emmc` size on 23.05.x\n\n```sh\nopkg install parted\n\n# say F to fix gpt global size\nparted /dev/mmcblk0\n\nparted /dev/mmcblk0 -- mkpart f2fs 768MiB -34s resizepart 5 768MiB resizepart 4 67.1M resizepart 3 12.6M \nreboot\n\nmount /dev/mmcblk0p66 /mnt\numount /mnt\nresize.f2fs /dev/mmcblk0p66\n# if resize.f2fs fails, a sysupgrade may fix\n```\n\nUse the rest of storage\n\n```sh\nopkg update\nopkg install uvol autopart\nuvol create userdata $(uvol free) rw\n```\n\n```\n# boot from emmc, w/ nand\n# A=0, B=1, C=1, D=0\n\n# boot from emmc, w/ nor\n# A=0, B=1, C=0, D=0\n```\n\nFix `Image check failed: Cannot open file '/etc/opkg/keys`\n\n```sh\nopkg remove ucert\n```\n\n## Build Custom Image\n\n```sh\n./setup.sh\n```\n\n## Links\n\n- [Buy - Amazon](https://www.amazon.com/gp/product/B0BDG6R41Q)\n- [Docs - Hardware Overview](https://wiki.fw-web.de/doku.php?id=en:bpi-r3:start)\n- [Docs - Install, OpenWrt](https://openwrt.org/toh/sinovoip/bananapi_bpi-r3)\n- [Docs - Install, Old](https://forum.banana-pi.org/t/banana-pi-bpi-r3-openwrt-image/13236/4)\n- [Fix - eMMC resize](https://forum.banana-pi.org/t/bpi-r3-how-to-flash-openwrt-snapshot-on-emmc/14055/5)\n- [Docs - eMMC resize advice](https://forum.banana-pi.org/t/bpi-r3-mini-how-to-extend-emmc-overlayfs/17732/43)\n- [Docs - Image Builder](https://openwrt.org/docs/guide-user/additional-software/imagebuilder#using_the_image_builder)\n- [Wiki - BPI-R3](https://wiki.banana-pi.org/Getting_Started_with_BPI-R3)\n- [Docs - Docker on OpenWrt](https://openwrt.org/docs/guide-user/virtualization/docker_host)\n- [Issue - Fan Control](https://github.com/openwrt/openwrt/pull/16962)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fopenwrt-bpi-r3","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodekow%2Fopenwrt-bpi-r3","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodekow%2Fopenwrt-bpi-r3/lists"}