{"id":35126158,"url":"https://github.com/pisto/rpi-build","last_synced_at":"2026-04-29T03:01:45.856Z","repository":{"id":76814367,"uuid":"576761650","full_name":"pisto/rpi-build","owner":"pisto","description":"Docker-based pipeline for a Raspberry Pi rootfs image","archived":false,"fork":false,"pushed_at":"2024-07-16T18:57:28.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-07-16T23:03:13.028Z","etag":null,"topics":["docker","embedded","iot","raspberry"],"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/pisto.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":"2022-12-10T22:24:32.000Z","updated_at":"2024-07-16T18:57:32.000Z","dependencies_parsed_at":"2024-07-16T22:51:03.832Z","dependency_job_id":"3ef422d0-e694-4020-a41d-bc9b26a03230","html_url":"https://github.com/pisto/rpi-build","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pisto/rpi-build","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pisto%2Frpi-build","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pisto%2Frpi-build/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pisto%2Frpi-build/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pisto%2Frpi-build/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pisto","download_url":"https://codeload.github.com/pisto/rpi-build/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pisto%2Frpi-build/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32408446,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T02:37:21.628Z","status":"ssl_error","status_checked_at":"2026-04-29T02:36:50.947Z","response_time":110,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["docker","embedded","iot","raspberry"],"created_at":"2025-12-28T02:43:57.226Z","updated_at":"2026-04-29T03:01:45.851Z","avatar_url":"https://github.com/pisto.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Memorycard initialization\n\nThis folder contains the Raspberry Pi SD card initialization. The image is based on [Arch Linux ARM](https://archlinuxarm.org/), plus [raspi-overlayroot](https://github.com/nils-werner/raspi-overlayroot).\n\n## Requirements\n\n```\nqemu-user-static-arm  # may be qemu-user-static in some distro\npodman\nsudo\nwget\n```\n\nThe image build script uses podman, but regular Docker versions may work.\n\nMake sure to initialize ad update the raspi-overlay git submodule:\n```bash\ngit submodule update --init\n```\n\n## Building the base image\n\nThe build script [`build-rpi-armv7`](./build-rpi-armv7) creates the image `localhost/archlinuxarm/rpi-armv7:latest` in podman. The base of the image is the tarball of the Arch Linux ARM project for Raspberry Pi devices, which defaults to [http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz](http://os.archlinuxarm.org/os/). You can control the address of the tarball with the `AARCH_URL` environment variable.\n\nThe build is bound to a specific hash of the tarball. The build script will fail if the downloaded tarball md5 hash does not match [ArchLinuxARM-rpi-armv7-latest.tar.gz.md5](./ArchLinuxARM-rpi-armv7-latest.tar.gz.md5), which might happen if you run this script in the future. If you intend to run update the base tarball, first replace the md5 checksum file:\n```bash\nwget -O ArchLinuxARM-rpi-armv7-latest.tar.gz.md5 http://os.archlinuxarm.org/os/ArchLinuxARM-rpi-armv7-latest.tar.gz.md5\n# possibly commit it\n```\n\nThe image runs with a read-only root filesystem, with a writable in-memory overlay (see project [raspi-overlayroot](https://github.com/nils-werner/raspi-overlayroot) for details).\n\nThe script leaves in podman the imported base tarball. The import is deterministic, and so is the image hash. The image tag is `localhost/archlinuxarm/rpi-armv7-import:\"${date}\"`, where `${date}` is the timestamp (YYYY-MM-DD) contained in the gzip header of the tarball.\n\n## Copying to a SD card\n\nYour SD card device should be defined with the `MEMORY_CARD_DEVICE` environment variable:\n```bash\nexport MEMORY_CARD_DEVICE=/dev/mmcblk0\n```\nThe [`sd-format`](./sd-format), [`sd-mount`](./sd-mount), [`sd-umount`](./sd-umount) scripts make use of this variable to reference the memory card.\n\nUse the `sd-format` script **ERASES ALL CONTENT** of your memory card and replaces it with the content of the image `localhost/archlinuxarm/rpi-armv7:latest`, with the proper 2-partitions layout for Raspberry Pi devices. It will delete and lock the password for the root and alarm user, and initialize the machine-id and ssh host keys. If you have the public part of your ssh key in the standard path (`~/.ssh/id_rsa.pub`), it will use it to allow you to login to the device.\n\nUse the `sd-mount` script to mount your memory card in the `mounts/${device}` directory. Use the `sd-umount` script to unmount (and flush) the device.\n\n## Modifying the SD card installation\n\nUse the [`sd-exec`](./sd-exec) script to login as root inside the mounted SD partitions. You can perform for example updates in this way.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpisto%2Frpi-build","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpisto%2Frpi-build","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpisto%2Frpi-build/lists"}