{"id":17694612,"url":"https://github.com/bailuk/starfive-recipe","last_synced_at":"2026-07-17T04:31:40.170Z","repository":{"id":154191270,"uuid":"630481394","full_name":"bailuk/starfive-recipe","owner":"bailuk","description":"Scripts and recipe to build a Debian image for starfive based devices","archived":false,"fork":false,"pushed_at":"2023-04-24T18:47:56.000Z","size":38,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T01:16:07.258Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bailuk.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-20T13:26:21.000Z","updated_at":"2023-04-24T12:45:15.000Z","dependencies_parsed_at":null,"dependency_job_id":"5bab9a97-7a6f-49f5-821d-53805677cbc2","html_url":"https://github.com/bailuk/starfive-recipe","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bailuk/starfive-recipe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fstarfive-recipe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fstarfive-recipe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fstarfive-recipe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fstarfive-recipe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bailuk","download_url":"https://codeload.github.com/bailuk/starfive-recipe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bailuk%2Fstarfive-recipe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35567765,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"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":"2024-10-24T13:49:16.398Z","updated_at":"2026-07-17T04:31:40.134Z","avatar_url":"https://github.com/bailuk.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# starfive-recipe\n\nScripts and recipe to build a Debian image for [starfive](https://www.starfivetech.com/en) based devices.\n\n- Build kernel from source (directly or inside container)\n- Build image using a [debos](https://github.com/go-debos/debos) recipe\n- Tested with VisionFive2 board.\n\n# Build image\n\n## Step 1: Build kernel\n\nOutput from this step will be kernel Debian packages in directory `kernel/`\n\n### Variant A: Build kernel using a build container\n\n```bash\ncd kernel\n./build-image.sh                  # Builds debian based build image with all dependencies to build a riscv64 kernel\n./build-kernel-using-container.sh # Clones or updates kernel source repository and builds kernel\n```\n\n### Variant B: Build kernel directly\n\nFirst install dependencies to build a riscv64 kernel. See [kernel/Dockerfile](kernel/Dockerfile)\n\n```bash\ncd kernel\n./buld-kernel.sh # Clones or updates kernel source repository and builds kernel\n```\n\n## Step 2: Configure image\n\nEdit [image/build.sh](image/build.sh) to pass arguments to debos recipe [image/starfive.yaml](image/starfive.yaml).\n\nAdd custom files:\n- Add files to `image/overlays/user-home` (file system overlay for `/home/default-user/`)\n- Add files to `image/overlays/system-custom` (file system overlay for `/`\n\nTo enable ssh with private key: pass `-t ssh:true` and\nadd key to `image/overlays/user-home/.ssh/authorized_keys`.\nIf `authorized_keys` exists, password login from ssh will be disabled.\n\n## Step 3: Build image\n\nThis will build an image by running debos inside the official debos container.\n\nThe user running this script needs permission for accessing `/dev/kvm`.\nSee [debos projekt](https://github.com/go-debos/debos) for more information.\n\n```bash\ncd image\n./build.sh\n```\n\nOutput of this step is an image file: `starfive.img`\n\n## Step 4: Install and test image\n\n```bash\n# Write image to microSD card\ndd if=starfive.img of=/dev/your-microsd-card-device\n```\n\nThen boot from microSD card. Preferably with USB to TTL module connected.\n\n▮\n\n# Credits\n\nBased on:\n- [Mobian-team/mobian-recipes](https://salsa.debian.org/Mobian-team/mobian-recipes)\n- [thomasdstewart/starfive-visionfive2](https://github.com/thomasdstewart/starfive-visionfive2)\n\n# Useful resources\n\n- [Waveshare WIKI](https://www.waveshare.com/wiki/VisionFive2)\n- [Pratham Patel's Blog -  Review of the VisionFive 2](https://blog.thefossguy.com/posts/visionfive-2-initial-review/)\n- [StarFive VisionFive 2 Debian SSD Boot Guide](https://jamesachambers.com/starfive-visionfive-2-debian-ssd-boot-guide/)\n- [VisionFive 2 Quick Start Guide](https://doc-en.rvspace.org/VisionFive2/PDF/VisionFive2_QSG.pdf)\n- [starfive-tech on github](https://github.com/starfive-tech)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fstarfive-recipe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbailuk%2Fstarfive-recipe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbailuk%2Fstarfive-recipe/lists"}