{"id":21083658,"url":"https://github.com/initdc/rootfs-tools","last_synced_at":"2025-10-14T07:42:40.999Z","repository":{"id":64985136,"uuid":"494039418","full_name":"initdc/rootfs-tools","owner":"initdc","description":"build workflow for rootfs images","archived":false,"fork":false,"pushed_at":"2023-02-27T05:47:48.000Z","size":46123,"stargazers_count":15,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-16T09:46:06.283Z","etag":null,"topics":["chroot","edison","licheerv","mount","rootfs","ubuntu","visionfive"],"latest_commit_sha":null,"homepage":"https://github.com/initdc/rootfs","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/initdc.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,"zenodo":null}},"created_at":"2022-05-19T11:17:51.000Z","updated_at":"2024-12-04T03:39:34.000Z","dependencies_parsed_at":"2025-05-16T09:49:59.710Z","dependency_job_id":null,"html_url":"https://github.com/initdc/rootfs-tools","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/initdc/rootfs-tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Frootfs-tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Frootfs-tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Frootfs-tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Frootfs-tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/initdc","download_url":"https://codeload.github.com/initdc/rootfs-tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/initdc%2Frootfs-tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018217,"owners_count":26086308,"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-10-14T02:00:06.444Z","response_time":60,"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":["chroot","edison","licheerv","mount","rootfs","ubuntu","visionfive"],"created_at":"2024-11-19T20:19:17.508Z","updated_at":"2025-10-14T07:42:40.979Z","avatar_url":"https://github.com/initdc.png","language":"Python","readme":"# rootfs-tools\n\n\u003e build workflow for rootfs images\n\n## Prepare\n\n```\nsudo apt update\nsudo apt install $(cat dep.txt)\n\nsudo systemctl enable --now libvirtd\n```\n\nref: https://wiki.gentoo.org/wiki/RISC-V_Qemu_setup\n\n## Run\n\n```\nsudo ruby main.rb\n```\n\nBut it may be not fit to you, just run `CMD` in the scripts.\n\n## More\n\n### why qemu?\n\n`qemu-user-static` for cross-arch chroot supporting,\n\nlike you need `qemu-aarch64` runing an `aarch64` binary on x86_64 host.\n\n### Guide\n\n- Image\n\n  Build which kind of disk image (single partition or combined image) deps the devkit needs.\n\n  You can just edit the origin disk image if disk space is ok.\n\n  Otherwise you may need create a new blank image by `dd`.\n\n  Combined image aslo can be created by `dd`, you just need load disk layout file by `fdisk`.\n\n- Porting\n\n  Porting linux distro, you need the `kernel` `firmware` `fstab` etc, so backup them first of all.\n\n  Then copy the prebuilt linux distro `root` files.\n\n  After file operation, you may need some configuration, like user password, extra software.\n\n  Then flash it, boot it, debug it, re-edit someting...\n\n## Wishing\n\nIt's pretty easy task after this tool handling some **dirty work**, so have fun!\n\n## Sponsors\n\n[\u003cimg alt=\"CNRV\" src=\"https://assets-1.vercel.app/CNRV_200.png\" \nwidth=\"100px\"\u003e](https://riscv.org/blog-chinese/2022/11/cnrv-devboard-hacks/)\n[\u003cimg alt=\"Your Logo\" src=\"https://assets-1.vercel.app/your-logo.svg\" width=\"100px\"\u003e](#sponsors)\n[\u003cimg alt=\"Your Logo\" src=\"https://assets-1.vercel.app/your-logo.svg\" width=\"100px\"\u003e](#sponsors)\n\n[\u003cimg alt=\"Your Logo\" src=\"https://assets-1.vercel.app/your-logo.svg\" width=\"100px\"\u003e](#sponsors)\n[\u003cimg alt=\"Your Logo\" src=\"https://assets-1.vercel.app/your-logo.svg\" width=\"100px\"\u003e](#sponsors)\n[\u003cimg alt=\"Your Logo\" src=\"https://assets-1.vercel.app/your-logo.svg\" width=\"100px\"\u003e](#sponsors)\n\n## License\n\nMPL-2.0\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Frootfs-tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finitdc%2Frootfs-tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finitdc%2Frootfs-tools/lists"}