{"id":16655508,"url":"https://github.com/aaronrenner/nerves_system_rpi0_zbar","last_synced_at":"2025-03-12T18:41:59.905Z","repository":{"id":138358592,"uuid":"124491180","full_name":"aaronrenner/nerves_system_rpi0_zbar","owner":"aaronrenner","description":null,"archived":false,"fork":false,"pushed_at":"2018-03-09T07:15:29.000Z","size":2884,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-19T11:32:01.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aaronrenner.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2018-03-09T05:16:19.000Z","updated_at":"2022-12-07T21:27:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"1a004b09-4c0a-4189-ad52-09ee5571b5d1","html_url":"https://github.com/aaronrenner/nerves_system_rpi0_zbar","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fnerves_system_rpi0_zbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fnerves_system_rpi0_zbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fnerves_system_rpi0_zbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aaronrenner%2Fnerves_system_rpi0_zbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aaronrenner","download_url":"https://codeload.github.com/aaronrenner/nerves_system_rpi0_zbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243276293,"owners_count":20265321,"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":[],"created_at":"2024-10-12T09:53:16.260Z","updated_at":"2025-03-12T18:41:59.899Z","avatar_url":"https://github.com/aaronrenner.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Raspberry Pi Model Zero\n[![CircleCI](https://circleci.com/gh/nerves-project/nerves_system_rpi0.svg?style=svg)](https://circleci.com/gh/nerves-project/nerves_system_rpi0)\n[![Hex version](https://img.shields.io/hexpm/v/nerves_system_rpi0.svg \"Hex version\")](https://hex.pm/packages/nerves_system_rpi0)\n\nThis is the base Nerves System configuration for the Raspberry Pi Zero and\nRaspberry Pi Zero W.\n\nIf you are *not* interested in [Gadget Mode](http://www.linux-usb.org/gadget/) it might be worth checking out [nerves_system_rpi](https://github.com/nerves-project/nerves_system_rpi).\nThat image configures the USB port in host mode by default and\nis probably more appropriate for your setup.\n\n![Fritzing Raspberry Pi Zero image](assets/images/raspberry-pi-model-zero.png)\n\u003cbr\u003e\u003csup\u003e[Image credit](#fritzing)\u003c/sup\u003e\n\n| Feature              | Description                     |\n| -------------------- | ------------------------------- |\n| CPU                  | 1 GHz ARM1176JZF-S              |\n| Memory               | 512 MB                          |\n| Storage              | MicroSD                         |\n| Linux kernel         | 4.4 w/ Raspberry Pi patches     |\n| IEx terminal         | OTG USB serial port (`ttyGS0`). Can be changed to HDMI or UART. |\n| GPIO, I2C, SPI       | Yes - Elixir ALE                |\n| ADC                  | No                              |\n| PWM                  | Yes, but no Elixir support      |\n| UART                 | 1 available - `ttyAMA0`         |\n| Camera               | Yes - via rpi-userland          |\n| Ethernet             | Yes - via OTG USB port          |\n| WiFi                 | Supported on the Pi Zero W      |\n| Bluetooth            | Not supported yet               |\n\n## Console and kernel message configuration\n\nThe goal of this image is to use the OTG port for console access. If you're\ndebugging the boot process, you'll want to use the Raspberry Pi's UART pins on\nthe GPIO connector or the HDMI output. This is enabled by updating the\n`cmdline.txt` file. This may be overrided with a custom `fwup.conf` file if\nyou don't want to rebuild this system. Add the following to your `cmdline.txt`:\n\n```\nconsole=ttyAMA0,115200 console=tty1 ...\n```\n\nIf you'd like the IEx prompt to come out the UART pins (`ttyAMA0`) or HDMI\n(`tty1`), then modify `rootfs_overlay/etc/erlinit.config` as well.\n\n## Supported OTG USB modes\n\nThe base image activates the `dwc2` overlay, which allows the Pi Zero to appear as a\ndevice (aka gadget mode). When plugged into a host computer via the OTG port, the Pi\nZero will appear as a composite Ethernet and serial device. The virtual serial\nport provides access to the IEx prompt and the Ethernet device can be used for\nfirmware updates, Erlang distribution, and anything else running over IP.\n\n## Supported WiFi devices\n\nThe base image includes drivers for the onboard Raspberry Pi Zero W wifi module\n(`brcmfmac` driver). Due to the USB port being placed in gadget mode, this\nsystem does not support USB WiFi adapters.\n\n## Linux kernel and RPi firmware/userland\n\nThere's a subtle coupling between the `nerves_system_br` version and the Linux\nkernel version used here. `nerves_system_br` provides the versions of\n`rpi-userland` and `rpi-firmware` that get installed. I prefer to match them to\nthe Linux kernel to avoid any issues. Unfortunately, none of these are tagged\nby the Raspberry Pi Foundation so I either attempt to match what's in Raspbian\nor take versions of the repositories that have similar commit times.\n\n## Installation\n\nIf you're new to Nerves, check out the\n[nerves_init_gadget](https://github.com/fhunleth/nerves_init_gadget) project for\ncreating a starter project for the Raspberry Pi Zero or Zero W. It will get you\nstarted with the basics like bringing up the virtual Ethernet interface,\ninitializing the application partition, and enabling ssh-based firmware updates.\n\n[Image credit](#fritzing): This image is from the [Fritzing](http://fritzing.org/home/) parts library.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Fnerves_system_rpi0_zbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faaronrenner%2Fnerves_system_rpi0_zbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faaronrenner%2Fnerves_system_rpi0_zbar/lists"}