├── .formatter.exs
├── .github
└── workflows
│ ├── ci.yml
│ └── reuse.yaml
├── .gitignore
├── CHANGELOG.md
├── Config.in
├── LICENSES
├── CC-BY-4.0.txt
├── CC-BY-SA-3.0.txt
├── CC0-1.0.txt
├── GPL-2.0-only.txt
└── GPL-2.0-or-later.txt
├── README.md
├── REUSE.toml
├── VERSION
├── assets
└── images
│ └── raspberry-pi-model-a-plus.png
├── cmdline.txt
├── config.txt
├── fwup-ops.conf
├── fwup.conf
├── fwup_include
├── fwup-common.conf
└── provisioning.conf
├── linux-6.6.defconfig
├── linux
└── 0001-squashfs-provide-backing_dev_info-in-order-to-disabl.patch
├── mix.exs
├── mix.lock
├── nerves_defconfig
├── post-build.sh
├── post-createfs.sh
├── ramoops.dts
└── rootfs_overlay
├── boot
└── .empty
├── etc
├── boardid.config
├── erlinit.config
└── fw_env.config
└── lib
└── firmware
└── brcm
└── brcmfmac43430-sdio.raspberrypi,model-zero-w.txt
/.formatter.exs:
--------------------------------------------------------------------------------
1 | # Used by "mix format"
2 | [
3 | inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"]
4 | ]
5 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on: [push]
4 |
5 | env:
6 | OTP_VERSION: 27.3.4
7 | ELIXIR_VERSION: 1.18.4-otp-27
8 | NERVES_BOOTSTRAP_VERSION: 1.13.1
9 |
10 | permissions:
11 | id-token: write
12 | contents: read
13 |
14 | jobs:
15 | get-br-dependencies:
16 | runs-on: ubuntu-22.04
17 | steps:
18 | - uses: actions/checkout@v4
19 | - uses: gridpoint-com/actions-nerves-system@v1
20 | - name: Get Buildroot Dependencies
21 | uses: ./.actions/get-br-dependencies
22 | with:
23 | otp-version: ${{ env.OTP_VERSION }}
24 | elixir-version: ${{ env.ELIXIR_VERSION }}
25 | nerves-bootstrap-version: ${{ env.NERVES_BOOTSTRAP_VERSION }}
26 | push-to-download-site: false
27 | download-site-url: ${{ vars.PUBLIC_S3_SITE }}
28 | download-site-bucket-uri: ${{ vars.S3_BUCKET }}
29 | aws-role: ${{ secrets.AWS_ROLE }}
30 | aws-region: ${{ vars.AWS_REGION }}
31 | build-system:
32 | needs: [get-br-dependencies]
33 | runs-on: ubuntu-22.04
34 | steps:
35 | - uses: actions/checkout@v4
36 | - uses: gridpoint-com/actions-nerves-system@v1
37 | - name: Build nerves_system
38 | uses: ./.actions/build-system
39 | with:
40 | otp-version: ${{ env.OTP_VERSION }}
41 | elixir-version: ${{ env.ELIXIR_VERSION }}
42 | nerves-bootstrap-version: ${{ env.NERVES_BOOTSTRAP_VERSION }}
43 | deploy-system:
44 | needs: [build-system]
45 | if: github.ref_type == 'tag'
46 | runs-on: ubuntu-22.04
47 | permissions:
48 | contents: write
49 | steps:
50 | - uses: actions/checkout@v4
51 | - uses: gridpoint-com/actions-nerves-system@v1
52 | - name: Deploy nerves_system
53 | uses: ./.actions/deploy-system
54 | with:
55 | github-token: ${{ secrets.GITHUB_TOKEN }}
56 |
--------------------------------------------------------------------------------
/.github/workflows/reuse.yaml:
--------------------------------------------------------------------------------
1 | # SPDX-FileCopyrightText: 2020 Free Software Foundation Europe e.V.
2 | # SPDX-License-Identifier: CC0-1.0
3 | name: REUSE Compliance Check
4 |
5 | on: [push, pull_request]
6 |
7 | jobs:
8 | test:
9 | runs-on: ubuntu-latest
10 | steps:
11 | - uses: actions/checkout@v4
12 | - name: REUSE Compliance Check
13 | uses: fsfe/reuse-action@v4
14 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # The directory Mix will write compiled artifacts to.
2 | /_build/
3 |
4 | # If you run "mix test --cover", coverage assets end up here.
5 | /cover/
6 |
7 | # The directory Mix downloads your dependencies sources to.
8 | /deps/
9 |
10 | # Where 3rd-party dependencies like ExDoc output generated docs.
11 | /doc/
12 |
13 | # Ignore .fetch files in case you like to edit your project deps locally.
14 | /.fetch
15 |
16 | # If the VM crashes, it generates a dump, let's ignore it too.
17 | erl_crash.dump
18 |
19 | # Ignore our generated files
20 | /build.log
21 | /archive.log
22 | /.nerves
23 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | # Changelog
2 |
3 | This project does NOT follow semantic versioning. The version increases as
4 | follows:
5 |
6 | 1. Major version updates are breaking updates to the build infrastructure.
7 | These should be very rare.
8 | 2. Minor version updates are made for every major Buildroot release. This
9 | may also include Erlang/OTP and Linux kernel updates. These are made four
10 | times a year shortly after the Buildroot releases.
11 | 3. Patch version updates are made for Buildroot minor releases, Erlang/OTP
12 | releases, and Linux kernel updates. They're also made to fix bugs and add
13 | features to the build infrastructure.
14 |
15 | ## v1.31.0
16 |
17 | This is a major Buildroot update.
18 |
19 | Please see the [nerves_system_br v1.31.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.31.0)
20 | for additional information if you've forked this system.
21 |
22 | * Updated dependencies
23 | * [Buildroot 2025.02.1](https://lore.kernel.org/buildroot/60b8483c-b717-41ce-a406-bceb71c3a089@rnout.be/T/)
24 |
25 | ## v1.30.1
26 |
27 | This is a security/bug fix update.
28 |
29 | * Updated dependencies
30 | * [Erlang/OTP 27.3.3](https://erlang.org/download/OTP-27.3.3.README)
31 | * [nerves_system_br v1.30.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.30.1)
32 |
33 | ## v1.30.0
34 |
35 | This is a major Buildroot update.
36 |
37 | Please see the [nerves_system_br v1.30.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.30.0)
38 | for upgrade instructions if you've forked this system.
39 |
40 | * Changes
41 | * Add REUSE compliance to help improve OSS copyright and licensing accuracy
42 | * Update Raspberry Pi libraries and firmware to latest releases
43 |
44 | * Updated dependencies
45 | * [Erlang/OTP 27.3](https://erlang.org/download/OTP-27.3.README.md)
46 | * [Buildroot 2024.11.2](https://lore.kernel.org/buildroot/87v7t3nyls.fsf@dell.be.48ers.dk/T/)
47 | * Linux 6.6.74 (Raspberry Pi 1.20250127 release)
48 | * rpicam-apps 1.5.3
49 | * rpi-libcamera v0.3.2+rpt20241119
50 | * rpi-distro-firmware-nonfree 1:20230625-2+rpt3
51 |
52 | ## v1.29.1
53 |
54 | This is a security/bug fix update.
55 |
56 | * Updated dependencies
57 | * [nerves_system_br v1.29.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.3)
58 | * [Buildroot 2024.08.3](https://lore.kernel.org/buildroot/874j3e17ek.fsf@dell.be.48ers.dk/T/)
59 | * [Erlang/OTP 27.2](https://erlang.org/download/OTP-27.2.README)
60 | * Linux 6.6.64 with the Raspberry Pi and PREEMPT_RT patches
61 | * [fwup v1.12.0](https://github.com/fwup-home/fwup/releases/tag/v1.12.0)
62 |
63 | ## v1.29.0
64 |
65 | This is a major Erlang and Buildroot update.
66 |
67 | Please see the [nerves_system_br v1.29.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.0)
68 | for upgrade instructions if you've forked this system.
69 |
70 | * Changes
71 | * Applied and enabled the Real-Time Linux patch set, PREEMPT_RT. Please see
72 | write-ups on the web for benefits and how to use. The impact of this patch
73 | shouldn't be noticeable to most Nerves users.
74 | * Switch CPU frequency governor from conservative to the more modern
75 | schedutil. See [LWN article](https://lwn.net/Articles/682391/) for details.
76 | * Include device tree for the original Raspberry Pi Compute Module. This is
77 | needed to support devices like the RevPi.
78 |
79 | * Updated dependencies
80 | * [nerves_system_br v1.29.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.1)
81 | * [Buildroot 2024.08.2](https://lore.kernel.org/buildroot/871pzex7gn.fsf@dell.be.48ers.dk/T/)
82 | * Linux 6.6.51 (Raspberry Pi stable_20241008 release)
83 |
84 | ## v1.28.1
85 |
86 | This is a security/bug fix update.
87 |
88 | * Changes
89 | * Enable QMI kernel modules to support many cellular modems without a Nerves
90 | system update
91 |
92 | * Fixes
93 | * Device tree overlays are now included for all official Raspberry Pi cameras
94 | and should load automatically
95 |
96 | * Updated dependencies
97 | * [nerves_system_br v1.28.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.3)
98 | * [Buildroot 2024.05.2](https://lore.kernel.org/buildroot/87zfpfh147.fsf@dell.be.48ers.dk/T/)
99 | * [Erlang/OTP 27.0.1](https://erlang.org/download/OTP-27.0.1.README)
100 |
101 | ## v1.28.0
102 |
103 | This is a major Erlang, Buildroot, Linux and Raspberry Pi display and camera
104 | update. Please read below and expect to spend some time on the update.
105 |
106 | Please see the [nerves_system_br v1.28.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.0)
107 | for upgrade instructions if you've forked this system.
108 |
109 | * Changes
110 | * Elixir 1.17 and Erlang/OTP 27 support
111 | * Switch from the Raspberry Pi's deprecated MMAL media support to DRM and
112 | libcamera. This is a big change if you use the display or camera that has
113 | been a long time coming. Please plan some time to make the upgrade.
114 | * Upgrade from Linux 6.1 to Linux 6.6
115 | * Reduce copy/pasted definitions in the `fwup.conf` by extracting them to
116 | `fwup_include/fwup-common.conf`. (No functional changes)
117 |
118 | * Fixes
119 | * The serial numbers returned by `Nerves.Runtime.serial_number/0` now contain
120 | the whole serial number. If you forked this system, check the
121 | `boardid.config` and `erlinit.config` for the changes and to keep the
122 | hostname the same.
123 |
124 | * Updated dependencies
125 | * Linux 6.6.31 (Raspberry Pi stable_20240529 release)
126 | * [nerves_system_br v1.28.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.1)
127 | * [Buildroot 2024.05](https://lore.kernel.org/buildroot/87bk46tjk2.fsf@dell.be.48ers.dk/T/)
128 | * [Erlang/OTP 27.0](https://erlang.org/download/OTP-27.0.README)
129 |
130 | ## v1.27.1
131 |
132 | This is a security/bug fix update.
133 |
134 | * Changes
135 | * Enable the `wpa_supplicant` option for allow wired 802.1x authentication
136 |
137 | * Package updates
138 | * [Erlang/OTP 26.2.5](https://erlang.org/download/OTP-26.2.5.README)
139 | * [Buildroot 2024.02.1](https://lore.kernel.org/buildroot/87jzlp9u5e.fsf@48ers.dk/T/)
140 |
141 | ## v1.27.0
142 |
143 | This is a major Buildroot update.
144 |
145 | Please see the [nerves_system_br v1.27.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.27.0)
146 | for upgrade instructions if you've forked this system.
147 |
148 | * Changes
149 | * The `libcamera` and `rpicam_apps` packages have been replaced with the
150 | Raspberry Pi-forked versions for better compatibility. Please see
151 | `nerves_system_br` release notes.
152 | * Add back `CONFIG_RASPBERRYPI_GPIOMEM` to support the `dht` library.
153 |
154 | * Updated dependencies
155 | * Linux 6.1.73 (Raspberry Pi 20240124 release)
156 | * [nerves_system_br v1.27.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.27.0)
157 | * [Buildroot 2024.02](https://lore.kernel.org/buildroot/87msrczp4z.fsf@48ers.dk/)
158 | * [Erlang/OTP 26.2.3](https://erlang.org/download/OTP-26.2.3.README)
159 |
160 | ## v1.26.0
161 |
162 | This is a major Buildroot update.
163 |
164 | Please see the [nerves_system_br v1.26.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.26.0)
165 | for upgrade instructions if you've forked this system.
166 |
167 | * Updated dependencies
168 | * [Erlang/OTP 26.2.2](https://erlang.org/download/OTP-26.2.2.README)
169 | * [nerves_system_br v1.26.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.26.1)
170 | * [Buildroot 2023.11.1](https://lore.kernel.org/buildroot/87cyu2k2gu.fsf@48ers.dk/T/)
171 |
172 | ## v1.25.1
173 |
174 | This is a security/bug fix update.
175 |
176 | * Changes
177 | * Synchronize configuration closer to the rpi3 options
178 |
179 | * Package updates
180 | * [Erlang/OTP 26.2.1](https://erlang.org/download/OTP-26.2.1.README)
181 | * [nerves_heart 2.3.0](https://github.com/nerves-project/nerves_heart/releases/tag/v2.3.0)
182 |
183 | ## v1.25.0
184 |
185 | This is a major Buildroot, toolchain, and Linux kernel update that also adds
186 | support for using Scenic without customizing the system.
187 |
188 | Please see [nerves_system_br v1.25.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.25.0)
189 | for upgrade instructions if you've forked this system.
190 |
191 | * New features
192 | * Add libcairo for [Scenic](https://github.com/ScenicFramework/scenic) support
193 |
194 | * Updated dependencies
195 | * Linux 6.1.63 (Raspberry Pi stable_20231123 release)
196 | * [nerves_system_br v1.25.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.25.2)
197 | * [Buildroot 2023.08.4](https://lore.kernel.org/buildroot/87o7f6t7fs.fsf@48ers.dk/T/)
198 | * [Erlang/OTP 26.1.2](https://erlang.org/download/OTP-26.1.2.README)
199 |
200 | ## v1.24.1
201 |
202 | This is a security/bug fix update.
203 |
204 | * Package updates
205 | * [nerves_system_br v1.24.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.24.1)
206 | * [Erlang/OTP 26.1.1](https://erlang.org/download/OTP-26.1.1.README)
207 | * [Buildroot 2023.05.3](https://lore.kernel.org/buildroot/87h6ngup34.fsf@48ers.dk/T/)
208 |
209 | ## v1.24.0
210 |
211 | This is a Buildroot version update that appears to mostly contain bug and
212 | security fixes. It should be a low risk upgrade from v1.23.2.
213 |
214 | * New features
215 | * Support factory reset, preventing firmware reverts. See [Nerves.Runtime.FwupOps](https://hexdocs.pm/nerves_runtime/Nerves.Runtime.FwupOps.html)
216 |
217 | * Updated dependencies
218 | * [nerves_system_br v1.24.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.24.0)
219 | * [Buildroot 2023.05.2](https://lore.kernel.org/buildroot/87ledrkrpp.fsf@48ers.dk/T/), [2023.05.1](https://lore.kernel.org/buildroot/87351m8qm4.fsf@48ers.dk/T/), [2023.05](https://lore.kernel.org/buildroot/87r0qn2c77.fsf@48ers.dk/T/)
220 | * [Erlang/OTP 26.1](https://erlang.org/download/OTP-26.1.README)
221 |
222 | ## v1.23.2
223 |
224 | * Updated dependencies
225 | * [nerves_system_br v1.23.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.3)
226 |
227 | ## v1.23.1
228 |
229 | This is a bug and security fix update. It should be a low risk upgrade.
230 |
231 | * Fixes
232 | * Fix CTRL+R over ssh
233 |
234 | * Updated dependencies
235 | * [nerves_system_br v1.23.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.2)
236 | * [Buildroot 2023.02.2](https://lore.kernel.org/buildroot/87y1je6wva.fsf@48ers.dk/T/)
237 |
238 | ## v1.23.0
239 |
240 | This is a major update that brings in Erlang/OTP 26, Buildroot 2023.02.2, Linux
241 | 5.15.84, and Raspberry Pi firmware updates.
242 |
243 | * New features
244 | * CA certificates are included for OTP 26.
245 |
246 | * Updated dependencies
247 | * [nerves_system_br v1.23.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.1)
248 | * [Buildroot 2023.02.2](https://lore.kernel.org/buildroot/87wn03ifbl.fsf@48ers.dk/T/)
249 | * [Erlang/OTP 26.0.2](https://erlang.org/download/OTP-26.0.2.README)
250 | * Linux 5.15.84 (Raspberry Pi Linux tag 1.20230106)
251 |
252 | ## v1.22.2
253 |
254 | This is a bug and security fix update. It should be a low risk upgrade from
255 | v1.22.1.
256 |
257 | * Updated dependencies
258 | * [nerves_system_br v1.22.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.5)
259 | * [Buildroot 2022.11.3](https://lore.kernel.org/buildroot/878rfuxbxx.fsf@dell.be.48ers.dk/T/)
260 |
261 | ## v1.22.1
262 |
263 | This is a bug fix and Erlang version bump from 25.2 to 25.2.3. It should be a
264 | low risk upgrade from v1.22.0.
265 |
266 | * Updated dependencies
267 | * [nerves_system_br v1.22.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.3)
268 | * [Buildroot 2022.11.1](https://lore.kernel.org/buildroot/87ilh4dvax.fsf@dell.be.48ers.dk/T/#u)
269 |
270 | ## v1.22.0
271 |
272 | This is a Buildroot version update that appears to mostly contain bug and
273 | security fixes. It should be a low risk upgrade to v1.21.2.
274 |
275 | * Updated dependencies
276 | * [nerves_system_br v1.22.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.1)
277 | * [Buildroot 2022.11](http://lists.busybox.net/pipermail/buildroot/2022-December/656980.html)
278 | * GCC 12.2
279 |
280 | ## v1.21.2
281 |
282 | * Changes
283 | * Two Buildroot patch updates and an Erlang minor version update
284 | * Nerves Heart v2.0 is now included. Nerves Heart connects the Erlang runtime
285 | to a hardware watchdog. v2.0 has numerous updates to improve information
286 | that you can get and also has more safeguards to avoid conditions that could
287 | cause a device to hang forever.
288 |
289 | * Updated dependencies
290 | * linux 5.15.78 (RPi 1.20221104)
291 | * [nerves_system_br v1.21.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.6)
292 | * [Erlang/OTP 25.2](https://erlang.org/download/OTP-25.2.README)
293 | * [Buildroot 2022.08.3](https://lore.kernel.org/buildroot/87r0x7z5cw.fsf@dell.be.48ers.dk/T/#u)
294 | * [nerves_heart v2.0.2](https://github.com/nerves-project/nerves_heart/releases/tag/v2.0.2)
295 |
296 | ## v1.21.1
297 |
298 | * Changes
299 | * Fix regression when building on x86_64 Linux where wrong toolchain was used.
300 | * Reduce first-time Linux kernel download by using tarball source
301 |
302 | * Updated dependencies
303 | * [nerves_system_br v1.21.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.2)
304 | * [Erlang/OTP 25.1.2](https://erlang.org/download/OTP-25.1.2.README)
305 |
306 | ## v1.21.0
307 |
308 | * Changes
309 | * Support aarch64 Linux builds
310 | * Add libdtc to support runtime loading of device tree overlays
311 |
312 | * Updated dependencies
313 | * [nerves_system_br v1.21.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.1)
314 | and also see [nerves_system_br v1.21.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.0)
315 | * [Buildroot 2022.08.1](http://lists.busybox.net/pipermail/buildroot/2022-October/652816.html)
316 | * [Erlang/OTP 25.1.1](https://erlang.org/download/OTP-25.1.1.README)
317 |
318 | ## v1.20.2
319 |
320 | * Updated dependencies
321 | * [nerves_system_br v1.20.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.6)
322 | * [Erlang/OTP 25.0.4](https://erlang.org/download/OTP-25.0.4.README)
323 | * [Buildroot 2022.05.2](http://lists.busybox.net/pipermail/buildroot/2022-August/650546.html)
324 | * Also see [Buildroot 2022.05.1 changes](http://lists.busybox.net/pipermail/buildroot/2022-July/647814.html)
325 |
326 | ## v1.20.1
327 |
328 | * Updated dependencies
329 | * [nerves_system_br v1.20.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.4)
330 | * [Erlang/OTP 25.0.3](https://erlang.org/download/OTP-25.0.3.README)
331 |
332 | ## v1.20.0
333 |
334 | This release updates to Buildroot 2022.05, Linux 5.15.32 (from Linux 5.10) and
335 | uses GCC 11.3 (from GCC 10.3). The Linux kernel upgrade could introduce a
336 | regression, so please verify hardware-specific functionality in your firmware.
337 |
338 | If you have cloned this repository for a custom system, please make sure that
339 | you have `CONFIG_NOP_USB_XCEIV=y` in your Linux kernel configuration.
340 |
341 | * Updated dependencies
342 | * [nerves_system_br v1.20.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.3)
343 | * [Buildroot 2022.05](http://lists.busybox.net/pipermail/buildroot/2022-June/644349.html)
344 | * [Erlang/OTP 25.0.2](https://erlang.org/download/OTP-25.0.2.README)
345 |
346 | ## v1.19.0
347 |
348 | This release updates to Buildroot 2022.02.1 and OTP 25.0. While this should be
349 | an easy update for most projects, many programs have been updated. Please review
350 | the changes in the updated dependencies for details.
351 |
352 | * Updated dependencies
353 | * [nerves_system_br v1.19.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.19.0)
354 | * [Buildroot 2022.02.1](http://lists.busybox.net/pipermail/buildroot/2022-April/640712.html). Also see [Buildroot 2022.02](http://lists.busybox.net/pipermail/buildroot/2022-March/638160.html)
355 | * [Erlang/OTP 25.0](https://erlang.org/download/OTP-25.0.README)
356 |
357 | ## v1.18.4
358 |
359 | This release bumps Erlang to 24.3.2 and should be a low risk upgrade from the
360 | previous release.
361 |
362 | * Changes
363 | * Pull in upstream Linux SquashFS patch to improve file system performance
364 |
365 | * Updated dependencies
366 | * [nerves_system_br v1.18.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.6)
367 |
368 | ## v1.18.3
369 |
370 | This is a Buildroot and Erlang bug and security fix release. It should be a low
371 | risk upgrade from the previous release.
372 |
373 | * Updated dependencies
374 | * [nerves_system_br v1.18.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.5)
375 |
376 | ## v1.18.2
377 |
378 | This is a Buildroot and Erlang bug fix release. It should be a low risk upgrade
379 | from the previous release.
380 |
381 | * Updated dependencies
382 | * [nerves_system_br v1.18.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.4)
383 |
384 | * Changes
385 | * Specify CPU-specific flags when compiling NIFs and ports. This fixes an
386 | issue where some optimizations could not be enabled in NIFs even though it
387 | should be possible to have them. E.g., ARM NEON support for CPUs that have
388 | it.
389 | * Build the Wireguard kernel driver. This is a small device driver that
390 | enables a number of VPN-based use cases.
391 |
392 | ## v1.18.1
393 |
394 | * Updated dependencies
395 | * [nerves_system_br v1.18.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.3)
396 |
397 | * Changes
398 | * The `cpufreq` directories are available again. This was a regression that
399 | would break code that manually adjusted the CPU frequency.
400 | * Programs that use OpenMP will run now. The OpenMP shared library
401 | (`libgomp.so`) was supplied by the toolchain, but not copied.
402 |
403 | ## v1.18.0
404 |
405 | This release updates to Buildroot 2021.11 and OTP 24.2. If you have made a
406 | custom system, please review the `nerves_system_br` [release
407 | notes](https://github.com/nerves-project/nerves_system_br/blob/v1.18.2/CHANGELOG.md#v1180)
408 | since Buildroot 2021.11 changed some Raspberry Pi firmware options.
409 |
410 | * Updated dependencies
411 | * [nerves_system_br v1.18.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.2)
412 | * [Buildroot 2021.11](http://lists.busybox.net/pipermail/buildroot/2021-December/629911.html)
413 | * [Erlang/OTP 24.2](https://erlang.org/download/OTP-24.2.README)
414 | * [Raspberry Pi WiFi firmware](https://github.com/RPi-Distro/firmware-nonfree/blob/bullseye/debian/changelog)
415 | * Linux 5.10.88 with Raspberry Pi patches
416 | * GCC 10.3
417 |
418 | * Improvements
419 | * Support for the `dl.nerves-project.org` backup site. Due to a GitHub outage
420 | in November, there was a 2 day period of failing builds since some packages
421 | could not be downloaded. We implemented the backup site to prevent this in
422 | the future. This update is in the `nerves_defconfig`.
423 | * Use new build ORB on CircleCI. This ORB will shorten build times to fit in
424 | CircleCI's new free tier limits. Please update if building your own systems.
425 |
426 | ## v1.17.3
427 |
428 | * Updated dependencies
429 | * [nerves_system_br v1.17.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.4)
430 | * [Buildroot 2021.08.2](http://lists.busybox.net/pipermail/buildroot/2021-November/628323.html)
431 | * [Erlang/OTP 24.1.7](https://erlang.org/download/OTP-24.1.7.README).
432 |
433 | ## v1.17.2
434 |
435 | This release updates the Linux kernel from 5.4 to 5.10 to follow the Raspberry
436 | Pi OS.
437 |
438 | * Updated dependencies
439 | * [nerves_system_br v1.17.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.3)
440 | * [Erlang/OTP 24.1.4](https://erlang.org/download/OTP-24.1.4.README).
441 | * Linux 5.10.63 with Raspberry Pi patches
442 |
443 | ## v1.17.1
444 |
445 | This is a security/bug fix patch release. It should be safe to update for
446 | everyone.
447 |
448 | * Updated dependencies
449 | * [nerves_system_br v1.17.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.1)
450 | * [Buildroot 2021.08.1](http://lists.busybox.net/pipermail/buildroot/2021-October/625642.html)
451 | * [Erlang/OTP 24.1.2](https://erlang.org/download/OTP-24.1.2.README)
452 |
453 | * Improvements
454 | * Include software versioning and licensing info (see legal-info directory in
455 | artifact)
456 | * Support use of Bluetooth when running on the Raspberry Pi Zero W.
457 |
458 | ## v1.17.0
459 |
460 | This release updates to Buildroot 2021.08 and OTP 24.1. If you have made a
461 | custom system off this one, please review the `nerves_system_br v1.17.0` release
462 | notes.
463 |
464 | * Updated dependencies
465 | * [nerves_system_br v1.17.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.0)
466 | * [Buildroot 2021.08](http://lists.busybox.net/pipermail/buildroot/2021-September/622072.html)
467 | * [Erlang/OTP 24.1](https://erlang.org/download/OTP-24.1.README)
468 |
469 | ## v1.16.2
470 |
471 | This release updates Erlang/OTP from 24.0.3 to 24.0.5 and Buildroot from 2021.05
472 | to 2021.05.1. Both of these are security/bug fix updates. This is expected to be
473 | a safe upgrade from v1.16.1 for all users.
474 |
475 | * Updated dependencies
476 | * [nerves_system_br v1.16.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.1)
477 | * [Erlang/OTP 24.0.5](https://erlang.org/download/OTP-24.0.5.README)
478 |
479 | * Improvements
480 | * Support for the Adafruit Speaker Bonnet (See PR #214 for details)
481 | * Beta support for using a `runtime.exs` script for runtime configuration.
482 | * Added a `provision` task to the `fwup.config` to enable re-provisioning a
483 | MicroSD card without changing its contents.
484 | * Adds a default `/etc/sysctl.conf` that enables use of ICMP in Erlang. This
485 | requires `nerves_runtime v0.11.5` or later to automatically load the sysctl
486 | variables. With it using `:gen_udp` to send/receive ICMP will "just work".
487 | It also makes it easier to add other sysctl variables if needed.
488 |
489 | ## v1.16.1
490 |
491 | This release updates Nerves Toolchains to v1.4.3 and OTP 24.0.3. It should be safe for everyone to apply.
492 |
493 | * Updated dependencies
494 | * [nerves_system_br v1.16.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.1)
495 | * [Erlang/OTP 24.0.3](https://erlang.org/download/OTP-24.0.3.README)
496 | * [nerves toolchains v1.4.3](https://github.com/nerves-project/toolchains/releases/tag/v1.4.3)
497 |
498 | ## v1.16.0
499 |
500 | This release updates to Buildroot 2021.05 and OTP 24.0.2. If you have made a
501 | custom system off this one, please review the `nerves_system_br v1.16.0` release
502 | notes.
503 |
504 | * Updated dependencies
505 | * [nerves_system_br v1.16.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.0)
506 | * [Buildroot 2021.05](http://lists.busybox.net/pipermail/buildroot/2021-June/311946.html)
507 | * [Erlang/OTP 24.0.2](https://erlang.org/download/OTP-24.0.2.README)
508 |
509 | * Improvements
510 | * This release now contains debug symbols and includes the Build-ID in the
511 | ELF headers. This makes it easier to get stack traces from C programs. As
512 | before, the Nerves tooling strips all symbols from firmware images, so this
513 | won't make programs bigger.
514 | * Enable compile-time `wpa_supplicant` options to support WPA3, mesh
515 | networking, WPS and autoscan.
516 |
517 | ## v1.15.1
518 |
519 | This is a security/bug fix release that updates to Buildroot 2021.02.1 and OTP
520 | 23.3.1. It should be safe for everyone to apply.
521 |
522 | * Improvements
523 | * espeak has been removed from the default install to trim 13 MB off the root
524 | filesystem
525 |
526 | * Updated dependencies
527 | * [nerves_system_br v1.15.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.15.1)
528 | * [Buildroot 2021.02](http://lists.busybox.net/pipermail/buildroot/2021-April/307970.html)
529 | * [Erlang/OTP 23.3.1](https://erlang.org/download/OTP-23.3.1.README)
530 |
531 | ## v1.15.0
532 |
533 | This release updates to Buildroot 2021.02 and OTP 23.2.7. If you have made a
534 | custom system off this one, please review the `nerves_system_br v1.15.0` release
535 | notes.
536 |
537 | The Nerves toolchain has also been updated to v1.4.2. This brings in Linux 4.14
538 | headers to enable use of cdev and eBPF. This won't affect most users.
539 |
540 | * Updated dependencies
541 | * [nerves_system_br v1.15.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.15.0)
542 | * [Buildroot 2021.02](http://lists.busybox.net/pipermail/buildroot/2021-March/305168.html)
543 | * [Erlang/OTP 23.2.7](https://erlang.org/download/OTP-23.2.7.README)
544 | * [nerves toolchains v1.4.2](https://github.com/nerves-project/toolchains/releases/tag/v1.4.2)
545 |
546 | ## v1.14.1
547 |
548 | This is a patch release for v1.14.0 which fixes the ABI spec passed for zigler.
549 |
550 | * Improvements
551 | * A few unused directories in `/etc` have been removed. These primarily were
552 | network initialization script directories that aren't used on Nerves, but
553 | were provided by default by Buildroot.
554 |
555 | ## v1.14.0
556 |
557 | This release updates to Buildroot 2020.11.2, GCC 10.2 and OTP 23.2.4.
558 |
559 | When migrating custom systems based, please be aware of the following important
560 | changes:
561 |
562 | * There's a new `getrandom` syscall that is made early in BEAM startup. This
563 | blocks the BEAM before `rngd` can be started to provide entropy. The
564 | workaround is to start `rngd` from `erlinit`. See `erlinit.config`.
565 | * Hardware float is enabled (`eabihf`). If you have pre-built binaries, you will
566 | need to compile them since previous `eabi` was used.
567 | * The GCC 10.2.0 toolchain has a different name that calls out "nerves" as the
568 | vendor and the naming is now more consistent with other toolchain providers.
569 | * Experimental support for tooling that requires more information about the
570 | target has been added. The initial support focuses on zigler.
571 |
572 | * Updated dependencies
573 | * [nerves_system_br: bump to v1.14.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.14.4)
574 | * [Buildroot 2020.11.2](http://lists.busybox.net/pipermail/buildroot/2021-January/302574.html)
575 | * [Erlang/OTP 23.2.4](https://erlang.org/download/OTP-23.2.4.README)
576 | * [Nerves toolchains 1.4.1](https://github.com/nerves-project/toolchains/releases/tag/v1.4.1)
577 |
578 | ## v1.13.3
579 |
580 | This is a bug fix release and contains no major changes.
581 |
582 | * Updated dependencies
583 | * [nerves_system_br: bump to v1.13.7](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.7)
584 | * [Erlang/OTP 23.1.5](https://erlang.org/download/OTP-23.1.5.README)
585 |
586 | * Bug fixes
587 | * Support the Raspberry Pi Zero (no W) by including its device tree files
588 | * Add WiFi Firmware configuration for RPi0W to fix kernel warning
589 |
590 | ## v1.13.2
591 |
592 | This release includes a patch release update to
593 | [Buildroot 2020.08.2](http://lists.busybox.net/pipermail/buildroot/2020-November/296830.html).
594 |
595 | * Updated dependencies
596 | * [nerves_system_br: bump to v1.13.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.5)
597 | * [erlinit 1.9.0](https://github.com/nerves-project/erlinit/releases/tag/v1.9.0)
598 |
599 | * Improvements
600 | * Switched source for built-in WiFi module firmware. This pulls in newer
601 | firmware versions that were found to fix issues on the Raspberry Pi 4. It
602 | may improve built-in WiFi on other Raspberry Pis.
603 |
604 | ## v1.13.1
605 |
606 | The main change in this release is to bump the Linux kernel to 5.4. This follows
607 | the kernel update in the Raspberry Pi OS.
608 |
609 | If you have based a custom system off of this one, please inspect the
610 | `nerves_defconfig` for WiFi firmware changes. WiFi firmware is no longer being
611 | pulled from the `rpi-wifi-firmware` since that package is out of date.
612 |
613 | * Updated dependencies
614 | * [nerves_system_br: bump to v1.13.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.4)
615 | * [Erlang/OTP 23.1.4](https://erlang.org/download/OTP-23.1.4.README)
616 | * [boardid 1.10.0](https://github.com/nerves-project/boardid/releases/tag/v1.10.0)
617 |
618 | * Improvements
619 | * Enabled reproducible builds in Buildroot to remove some timestamp and build
620 | path differences in firmware images. This helps delta firmware updates.
621 | * The memory cgroup controller is no longer enabled by default. This was an
622 | upstream change. As a result, the memory cgroup directory is no longer
623 | mounted.
624 |
625 | ## v1.13.0
626 |
627 | This release updates to [Buildroot
628 | 2020.08](http://lists.busybox.net/pipermail/buildroot/2020-September/290797.html) and OTP 23.1.1.
629 |
630 | * Updated dependencies
631 | * [nerves_system_br: bump to v1.13.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.2)
632 | * [Erlang/OTP 23.1.1](https://erlang.org/download/OTP-23.1.1.README)
633 | * [erlinit 1.8.0](https://github.com/nerves-project/erlinit/releases/tag/v1.8.0)
634 | * [nerves 1.7.0](https://github.com/nerves-project/nerves/releases/tag/v1.7.0)
635 |
636 | * New features
637 | * Added support for updating the root filesystem using firmware patches.
638 | See the [firmware patch docs](https://hexdocs.pm/nerves/experimental-features.html#content) for more information.
639 |
640 | ## v1.12.2
641 |
642 | This release updates to [Buildroot
643 | 2020.05.1](http://lists.busybox.net/pipermail/buildroot/2020-July/287824.html)
644 | and OTP 23.0.3 which are both bug fix releases.
645 |
646 | * Updated dependencies
647 | * [nerves_system_br: bump to v1.12.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.12.4)
648 | * [Erlang/OTP 23.0.3](https://erlang.org/download/OTP-23.0.3.README)
649 | * [nerves_heart v0.3.0](https://github.com/nerves-project/nerves_heart/releases/tag/v0.3.0)
650 |
651 | * New features
652 | * The `/data` directory now exists for storing application-specific data. It
653 | is currently a symlink to `/root`. Using `/data` will eventually be
654 | encouraged over `/root` even though currently there is no advantage. This
655 | change makes it possible to start migrating paths in applications and
656 | libraries.
657 |
658 | * Fixes
659 | * Fixed old references to the `-Os` compiler flag. All C/C++ code will default
660 | to using `-O2` now.
661 |
662 | ## v1.12.1
663 |
664 | * Fixes
665 | * Remove `nerves_system_linter` from hex package. This fixes mix dependency
666 | errors in projects that reference systems with different
667 | `nerves_system_linter` dependency specs.
668 |
669 | ## v1.12.0
670 |
671 | This release updates the system to use Buildroot 2020.05 and Erlang/OTP 23.
672 | Please see the respective release notes for updates and deprecations in both
673 | projects for changes that may affect your application.
674 |
675 | * New features
676 | * Support the Raspberry Pi Sense HAT's joystick
677 | * Enable WiFi mesh support in the 802.11 stack
678 |
679 | * Updated dependencies
680 | * [nerves_system_br v1.12.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.12.0)
681 | * [Erlang/OTP 23.0.2](https://erlang.org/download/OTP-23.0.2.README)
682 | * [Linux 4.19.118 (Raspberry Pi 1.2020601 tag)](https://github.com/raspberrypi/linux/tree/raspberrypi-kernel_1.20200601-1)
683 | * [Raspberry Pi firmware 1.2020601](https://github.com/raspberrypi/firmware/tree/1.20200601)
684 |
685 | ## v1.11.2
686 |
687 | * Updated dependencies
688 | * [nerves_system_br v1.11.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.4)
689 | * Erlang 22.3.4.1
690 | * fwup 1.7.0
691 |
692 | ## v1.11.1
693 |
694 | * Updated dependencies
695 | * [nerves_system_br v1.11.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.2)
696 | * Erlang 22.3.1
697 | * erlinit 1.7.0 - tty initialization support
698 | * fwup 1.6.0 - xdelta3/VCDIFF patch support
699 | * Enable unixodbc so that Erlang's odbc application can be used in projects
700 |
701 | ## v1.11.0
702 |
703 | This release updates Buildroot to 2020.02 and upgrades gcc from 8.3 to 9.2.
704 | While this is a minor version bump due to the Buildroot release update, barring
705 | advanced usage of Nerves, this is a straightforward update from v1.10.2.
706 |
707 | * Updated dependencies
708 | * [nerves_system_br v1.11.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.0)
709 | * linux 4.19.97 (raspberrypi-kernel_1.20200212-1 tag)
710 | * Erlang 22.2.8
711 |
712 | ## v1.10.2
713 |
714 | * Updated dependencies
715 | * [nerves_system_br v1.10.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.2)
716 | * Erlang 22.2.4
717 |
718 | ## v1.10.1
719 |
720 | * Enhancements
721 | * Set `expand=true` on the application data partition. This will only take
722 | effect for users running the complete task, fwup will not expand application
723 | data partitions that exist during upgrade tasks.
724 |
725 | * Updated dependencies
726 | * [nerves_system_br v1.10.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.1)
727 | * Erlang 22.2.3
728 |
729 | ## v1.10.0
730 |
731 | This release updates Buildroot to 2019.11 with security and bug fix updates
732 | across Linux packages. Enables dnsd, udhcpd and ifconfig in the default
733 | Busybox configuration to support `vintage_net` and `vintage_net_wizard`.
734 | See the `nerves_system_br` notes for details.
735 |
736 | * Updated dependencies
737 | * [nerves_system_br v1.10.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.0)
738 | * Erlang 22.1.8
739 |
740 | ## v1.9.2
741 |
742 | This release updates Buildroot to 2019.08.2 with security and bug fix updates
743 | across Linux packages. See the `nerves_system_br` notes for details.
744 | Erlang/OTP is now at 22.1.7.
745 |
746 | * Updated dependencies
747 | * [nerves_system_br v1.9.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.5)
748 |
749 | ## v1.9.1
750 |
751 | This release pulls in security and bug fix updates from `nerves_system_br`.
752 | Erlang/OTP is now at 22.1.1.
753 |
754 | * Updated dependencies
755 | * [nerves_system_br v1.9.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.4)
756 | * linux - update to the raspberrypi-kernel_1.20190925-1 tag
757 |
758 | ## v1.9.0
759 |
760 | This release updates Buildroot to 2019.08 with security and bug fix updates
761 | across Linux packages. See the `nerves_system_br` notes for details.
762 |
763 | * Updated dependencies
764 | * [nerves_system_br v1.9.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.2)
765 |
766 | * Enhancements
767 | * Support a variety of USB->UART adapters so more devices work out-of-the-box
768 |
769 | ## v1.8.2
770 |
771 | This release fixes an issue that broke display output on small LCD screens.
772 | Updating the Raspberry Pi firmware to the latest from the Raspberry Pi
773 | Foundation fixed the issue. See
774 | https://github.com/fhunleth/rpi_fb_capture/issues/2 for details.
775 |
776 | * Updated dependencies
777 | * [nerves_system_br v1.8.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.5)
778 |
779 | ## v1.8.1
780 |
781 | * Updated dependencies
782 | * [nerves_system_br v1.8.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.4)
783 | * Linux 4.19.58 with patches from the Raspberry Pi Foundation
784 |
785 | ## v1.8.0
786 |
787 | This release updates Erlang to OTP 22 and gcc from version 7.3.0 to 8.3.0.
788 | See the nerves_system_br and toolchain release notes for more information.
789 |
790 | * Enhancements
791 | * Enable source-based routing in the Linux kernel to support [vintage_net](https://github.com/nerves-networking/vintage_net)
792 |
793 | * Updated dependencies
794 | * Erlang 22.0.4
795 | * [nerves_system_br v1.8.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.2)
796 | * [nerves_toolchain_arm_unknown_linux_gnueabihf v1.2.0](https://github.com/nerves-project/toolchains/releases/tag/v1.2.0)
797 |
798 | ## v1.7.2
799 |
800 | * Bux fixes
801 | * Add TAR option `--no-same-owner` to fix errors when untarring artifacts as
802 | the root user.
803 | * Updated dependencies
804 | * [nerves_system_br v1.7.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.2)
805 |
806 | ## v1.7.1
807 |
808 | * Improvements
809 | * Bump C compiler options to `-O2` from `-Os`. This provides a small, but
810 | measurable performance improvement (500ms at boot in a trivial project
811 | tested on [nerves_system_rpi0](https://github.com/nerves-project/nerves_system_rpi0)).
812 |
813 | * Updated dependencies
814 | * [nerves_system_br v1.7.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.1)
815 |
816 | ## v1.7.0
817 |
818 | This release bumps the Linux kernel to 4.19.25. This change had an impact on how
819 | the WiFi regulatory database gets loaded into the kernel. Instead of building it
820 | into the kernel as previously done, the kernel loads it on demand. This requires
821 | that all WiFi drivers be built as kernel modules so that the database isn't
822 | loaded before the root filesystem is mounted. If you made a custom system and
823 | see boot errors about not being able to load the regulatory database, this is
824 | the problem.
825 |
826 | * Updated dependencies
827 | * [nerves_system_br v1.7.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.0)
828 | * Linux 4.19.25 with patches from the Raspberry Pi Foundation
829 |
830 | ## v1.6.3
831 |
832 | * Updated dependencies
833 | * [nerves_system_br v1.6.8](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.8)
834 | * Erlang 21.2.6
835 |
836 | ## v1.6.2
837 |
838 | * Updated dependencies
839 | * [nerves_system_br v1.6.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.6)
840 | * Erlang 21.2.4
841 | * boardid 1.5.3
842 |
843 | ## v1.6.1
844 |
845 | * Updated dependencies
846 | * [nerves_system_br v1.6.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.5)
847 | * Erlang 21.2.2
848 | * boardid 1.5.2
849 | * erlinit 1.4.9
850 | * OpenSSL 1.1.1a
851 | * Linux 4.14.89 with patches from the Raspberry Pi Foundation
852 |
853 | * Enhancements
854 | * Moved boardid config from inside erlinit.config to /etc/boardid.config
855 | * Compile gpiomem into the Linux kernel
856 | * Enable pstore, an in-memory buffer that can capture logs, kernel
857 | oops and other information when unexpected reboots. The buffer can be
858 | recovered on the next boot where it can be inspected.
859 |
860 | ## v1.6.0
861 |
862 | This pulls in a pending patch in Buildroot to update the version of
863 | OpenSSL from 1.0.2 to 1.1.0h. This fixes what appears to be issues with
864 | Erlang using OpenSSL engines. It also enables Erlang crypto algorithms
865 | such as ed25519 that have been added in recent Erlang releases.
866 |
867 | * Updated dependencies
868 | * [nerves_system_br v1.6.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.1)
869 | * Erlang 21.2
870 | * Added dependencies
871 | * wpa_passphrase
872 | * libp11 0.4.9
873 |
874 | ## v1.5.1
875 |
876 | * Updated dependencies
877 | * [nerves_system_br v1.5.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.5.3)
878 |
879 | ## v1.5.0
880 |
881 | This release updates the Linux kernel from 4.4 to 4.14.71.
882 |
883 | * Enhancements
884 | * Added Alsa utils `aplay` and `amixer` for audio support.
885 | * Added `espeak` a speech synthesizer for text to audio.
886 | * Automatically reboot if the Linux kernel panics (defaults to a 10 second
887 | delay before the reboot)
888 |
889 | * Updated dependencies
890 | * [nerves_system_br v1.5.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.5.2)
891 | * Linux 4.14.71 with patches from the Raspberry Pi Foundation
892 | * Erlang 21.0.9
893 |
894 | ## v1.4.0
895 |
896 | This release contains various updates to provisioning variables and data.
897 |
898 | **Host requirements**
899 |
900 | Building firmware using this system requires `fwup` to be updated on your
901 | host computer to at least `v1.2.5`. The target minimum version requirement
902 | has not changed from `0.15.0`.
903 |
904 | **Serial numbers**
905 |
906 | Device serial numbers are now set using `NERVES_SERIAL_NUMBER` instead of
907 | `SERIAL_NUMBER`. This is to reduce ambiguity on the source of the serial
908 | by name spacing it along side other Nerves variables. The U-Boot environment
909 | key has also changed from `serial_number` to `nerves_serial_number`. The
910 | erlinit.config has been updated to provide backwards compatibility for setting
911 | the hostname from the serial number by checking for `nerves_serial_number`
912 | and falling back to `serial_number`.
913 |
914 | **Custom provisioning**
915 |
916 | Provisioning data is applied at the time of calling the `fwup` task `complete`.
917 | The `complete` task is executed when writing the firmware to the target disk.
918 | During this time, `fwup` will include the contents of a provisioning file
919 | located at `${NERVES_SYSTEM}/images/fwup_include/provisioning.conf`. By default,
920 | this file only sets `nerves_serial_number`. You can add additional provisioning
921 | data by overriding the location of this file to include your own by setting
922 | the environment variable `NERVES_PROVISIONING`. If you override this variable
923 | you will be responsible for also setting `nerves_serial_number`.
924 |
925 | * Updated dependencies
926 | * [nerves_system_br v1.4.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.4.5)
927 |
928 | ## v1.3.0
929 |
930 | This release upgrades gcc from version 6.3.0 to 7.3.0. See the toolchain release
931 | notes for more information.
932 |
933 | * Updated dependencies
934 | * [nerves_system_br v1.4.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.4.1)
935 | * [nerves_toolchain_armv6_rpi_linux_gnueabi v1.1.0](https://github.com/nerves-project/toolchains/releases/tag/v1.1.0)
936 |
937 | ## v1.2.1
938 |
939 | * Updated dependencies
940 | * [nerves_system_br v1.3.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.3.2)
941 |
942 | ## v1.2.0
943 |
944 | This release updates Erlang to OTP 21.0
945 |
946 | * Updated dependencies
947 | * [nerves_system_br v1.3.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.3.0)
948 |
949 | ## v1.1.1
950 |
951 | This release fixes some issues and adds firmware UUID support. This support can
952 | be used to unambiguously know what's running on a device.
953 |
954 | * Updated dependencies
955 | * [nerves_system_br v1.2.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.2.2)
956 |
957 | * Bug fixes
958 | * Empty serial numbers stored in the U-Boot environment would be used instead
959 | of reverting to devices IDs built into the CPU or board.
960 | * It wasn't possible to enable QtWebEngine (needed for kiosk apps)
961 |
962 | ## v1.1.0
963 |
964 | This release adds official support for provisioning serial numbers to devices.
965 | Other information can be provisioned in a similar manner. See the README.md for
966 | details.
967 |
968 | Buildroot was also updated to 2018.05. Be sure to review the `nerves_system_br`
969 | link for the changes in the embedded Linux components.
970 |
971 | * Updated dependencies
972 | * [nerves_system_br v1.2.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.2.0)
973 |
974 | * New features
975 | * More `wpa-supplicant` features were enabled to support more WiFi use-cases
976 |
977 | ## v1.0.0
978 |
979 | * Updated dependencies
980 | * [nerves_system_br v1.0.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0)
981 | * [nerves_toolchain v1.0.0](https://github.com/nerves-project/toolchains/releases/tag/v1.0.0)
982 | * [nerves v1.0.0](https://github.com/nerves-project/nerves/releases/tag/1.0.0)
983 |
984 | ## v1.0.0-rc.0
985 |
986 | * Updated dependencies
987 | * [nerves_system_br v1.0.0-rc.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0-rc.0)
988 | * [nerves_toolchain v1.0.0-rc.0](https://github.com/nerves-project/toolchains/releases/tag/v1.0.0-rc.0)
989 | * [nerves v1.0.0-rc.0](https://github.com/nerves-project/nerves/releases/tag/1.0.0-rc.0)
990 |
991 | ## v0.20.0
992 |
993 | * Updated dependencies
994 | * [nerves_system_br v0.17.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.17.0)
995 | * [nerves_toolchain v0.13.0](https://github.com/nerves-project/toolchains/releases/tag/v0.13.0)
996 | * [nerves v0.9.0](https://github.com/nerves-project/nerves/releases/tag/v0.9.0)
997 |
998 | ## v0.19.1
999 |
1000 | * Updated dependencies
1001 | * [nerves_system_br v0.16.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.16.3)
1002 | This fixes the call to otp_build so that it always uses Buildroot's version
1003 | the autoconf tools.
1004 |
1005 | ## v0.19.0
1006 |
1007 | * Updated dependencies
1008 | * [nerves_system_br v0.16.1-2017-11](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.16.1-2017-11)
1009 |
1010 | * Enhancements
1011 | * Support for Raspberry Pi 0W
1012 | This is useful if you want to run the USB port in host mode.
1013 | nerves_system_rpi0 is biased to running it in gadget mode and lacks many
1014 | of the USB host drivers and options.
1015 | * Reboot automatically if Erlang VM exits - This is consistent with other
1016 | Nerves systems. See rootfs_overlay/etc/erlinit.config if undesired.
1017 | * Start running nerves_system_linter to check for configuration errors.
1018 | * Disable console blanking for HDMI to make it easier to capture error messages.
1019 | * Automount the boot partition readonly at `/boot`
1020 | * Support for reverting firmware.
1021 |
1022 | See [Reverting Firmware](https://hexdocs.pm/nerves_runtime/readme.html#reverting-firmware) for more info on reverting firmware.
1023 |
1024 | See [fwup-revert.conf](https://github.com/nerves-project/nerves_system_rpi/blob/master/fwup-revert.conf) for more information on how fwup handles reverting.
1025 |
1026 | ## v0.18.0
1027 |
1028 | * Updated dependencies
1029 | * [nerves_system_br v0.15.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.15.0)
1030 | * [toolchain v0.12.1](https://github.com/nerves-project/toolchains/releases/tag/v0.12.1)
1031 |
1032 | * Enhancements
1033 | * Support for nerves 0.8. Moves nerves.exs into mix.exs
1034 |
1035 | ## v0.17.1
1036 |
1037 | * Updated dependencies
1038 | * [nerves_system_br v0.14.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.14.1)
1039 |
1040 | ## v0.17.0
1041 |
1042 | * Updated dependencies
1043 | * [nerves_system_br v0.14.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.14.0)
1044 | * [Buildroot 2017.08](https://git.busybox.net/buildroot/plain/CHANGES?id=2017.08)
1045 | * [fwup 0.17.0](https://github.com/fhunleth/fwup/releases/tag/v0.17.0)
1046 | * [erlinit 1.2.0](https://github.com/nerves-project/erlinit/releases/tag/v1.2.0)
1047 | * [nbtty 0.3.0](https://github.com/fhunleth/nbtty/releases/tag/v0.3.0)
1048 |
1049 | * Enhancements
1050 | * Add global patch directory
1051 |
1052 | This is required to pull in the e2fsprogs patch that's needed now that
1053 | util-linux's uuid_generate function calls getrandom and can block
1054 | indefinitely for the urandom pool to initialize
1055 |
1056 | ## v0.16.1
1057 |
1058 | * Updated dependencies
1059 | * nerves_system_br v0.13.7
1060 |
1061 | ## v0.16.0
1062 |
1063 | This release contains an updated toolchain with Linux 4.1 Headers.
1064 | You will have to clean and compile any c/c++ code in your project and
1065 | dependencies. Failure to do so will result in an error when producing firmware.
1066 |
1067 | * nerves_system_br v0.13.5
1068 | * fwup 0.15.4
1069 |
1070 | * Nerves toolchain v0.11.0
1071 |
1072 | ## v0.15.0
1073 |
1074 | * nerves_system_br v0.13.3
1075 | * erlinit 1.1.4
1076 |
1077 | * New features
1078 | * Firmware updates verify that they're updating the right target. If the target
1079 | doesn't say that it's an `rpi` through the firmware metadata, the update
1080 | will fail.
1081 | * Added meta-misc and meta-vcs-identifier to the `fwup.conf` metadata for use
1082 | by users and for the regression test framework
1083 | * Use String.trim instead of String.strip to silence Elixir 1.5 warnings
1084 |
1085 | ## v0.14.0
1086 |
1087 | * nerves_system_br v0.13.2
1088 | * OTP 20
1089 | * erlinit 1.1.3
1090 | * fwup 0.15.3
1091 |
1092 | ## v0.13.0
1093 |
1094 | * nerves_system_br v0.12.1
1095 | * erlinit 1.1.1
1096 | * fwup 0.15.0
1097 |
1098 | * New features
1099 | * The application data partition is now `ext4`. This greatly improves its
1100 | robustness to corruption. Nerves.Runtime contains code to initialize it on
1101 | first boot.
1102 | * Firmware images now contain metadata that can be queried at runtime (see
1103 | Nerves.Runtime.KV
1104 | * Increased GPU memory to support Pi Camera V2
1105 |
1106 | ## v0.12.0
1107 |
1108 | * nerves_system_br v0.10.0
1109 | * Buildroot 2017.02
1110 | * Erlang/OTP 19.3
1111 |
1112 | * New features
1113 | * Upgraded the Linux kernel from 4.4.43 -> 4.4.50. Due to the coupling
1114 | between the Linux kernel and rpi-firmware and possibly rpi-userland, if
1115 | you have a custom system based off this, you should update your Linux
1116 | kernel as well. (see `nerves_defconfig`)
1117 |
1118 | ## v0.11.0
1119 |
1120 | * New features
1121 | * Enabled USB_SERIAL and FTDI_SIO support. Needed for connecting with Arduino to the USB ports
1122 | * Support for Nerves 0.5.0
1123 |
1124 | ## v0.10.0
1125 |
1126 | * New features
1127 | * Upgraded the Linux kernel to 4.4.43. This also removes the
1128 | call to mkknlimg which is no longer needed.
1129 | * Bump toolchain to use gcc 5.3 (previously using gcc 4.9.3)
1130 |
1131 | ## v0.9.1
1132 |
1133 | * Bug Fixes
1134 | * Loosen mistaken nerves dep on `0.4.0` to `~> 0.4.0`
1135 |
1136 | ## v0.9.0
1137 |
1138 | This version switches to using the `nerves_package` compiler. This will
1139 | consolidate overall deps and compilers.
1140 |
1141 | * Nerves.System.BR v0.8.1
1142 | * Support for distillery
1143 | * Support for nerves_package compiler
1144 |
1145 | ## v0.7.0
1146 |
1147 | When upgrading to this version, be sure to review the updates to
1148 | nerves_defconfig if you have customized this system.
1149 |
1150 | * nerves_system_br v0.7.0
1151 | * Package updates
1152 | * Buildroot 2016.08
1153 | * Linux 4.4
1154 |
1155 | ## v0.6.1
1156 |
1157 | * Package versions
1158 | * Nerves.System.BR v0.6.1
1159 |
1160 | * New features
1161 | * All Raspberry Pi-specific configuration is now in this repository
1162 | * Enabled SMP Erlang - even though the RPi Zero and Model B+ are
1163 | single core systems, some NIFs require SMP Erlang.
1164 |
1165 | ## v0.6.0
1166 |
1167 | * Nerves.System.BR v0.6.0
1168 | * Package updates
1169 | * Erlang OTP 19
1170 | * Elixir 1.3.1
1171 | * fwup 0.8.0
1172 | * erlinit 0.7.3
1173 | * bborg-overlays (pull in I2C typo fix from upstream)
1174 | * Bug fixes
1175 | * Synchronize file system kernel configs across all platforms
1176 |
1177 | ## v0.5.2
1178 |
1179 | * Enhancements
1180 | * Enabled USB Printer kernel mod. Needs to be loaded with `modprobe` to use
1181 | * Bug Fixes(raspberry pi)
1182 | * Enabled multicast in linux config for rpi/rpi2/rpi3/ev3
1183 |
1184 | ## v0.5.1
1185 |
1186 | * Nerves.System.BR v0.5.1
1187 | * Bug Fixes(nerves-env)
1188 | * Added include paths to CFLAGS and CXXFLAGS
1189 | * Pass sysroot to LDFLAGS
1190 |
1191 | ## v0.5.0
1192 |
1193 | * Nerves.System.BR v0.5.0
1194 | * New features
1195 | * WiFi drivers enabled by default on RPi2 and RPi3
1196 | * Include wireless regulatory database in Linux kernel by default
1197 | on WiFi-enabled platforms. Since kernel/rootfs are read-only and
1198 | coupled together for firmware updates, the normal CRDA/udev approach
1199 | isn't necessary.
1200 | * Upgraded the default BeagleBone Black kernel from 3.8 to 4.4.9. The
1201 | standard BBB device tree overlays are included by default even though the
1202 | upstream kernel patches no longer include them.
1203 | * Change all fwup configurations from two step upgrades to one step
1204 | upgrades. If you used the base fwup.conf files to upgrade, you no
1205 | longer need to finalize the upgrade. If not, there's no change.
1206 |
--------------------------------------------------------------------------------
/Config.in:
--------------------------------------------------------------------------------
1 | # Add project-specific packages for Buildroot here
2 | #
3 | # If these are non-proprietary, please consider contributing them back to
4 | # Nerves or Buildroot.
5 |
--------------------------------------------------------------------------------
/LICENSES/CC-BY-4.0.txt:
--------------------------------------------------------------------------------
1 | Creative Commons Attribution 4.0 International
2 |
3 | Creative Commons Corporation (“Creative Commons”) is not a law firm and does not provide legal services or legal advice. Distribution of Creative Commons public licenses does not create a lawyer-client or other relationship. Creative Commons makes its licenses and related information available on an “as-is” basis. Creative Commons gives no warranties regarding its licenses, any material licensed under their terms and conditions, or any related information. Creative Commons disclaims all liability for damages resulting from their use to the fullest extent possible.
4 |
5 | Using Creative Commons Public Licenses
6 |
7 | Creative Commons public licenses provide a standard set of terms and conditions that creators and other rights holders may use to share original works of authorship and other material subject to copyright and certain other rights specified in the public license below. The following considerations are for informational purposes only, are not exhaustive, and do not form part of our licenses.
8 |
9 | Considerations for licensors: Our public licenses are intended for use by those authorized to give the public permission to use material in ways otherwise restricted by copyright and certain other rights. Our licenses are irrevocable. Licensors should read and understand the terms and conditions of the license they choose before applying it. Licensors should also secure all rights necessary before applying our licenses so that the public can reuse the material as expected. Licensors should clearly mark any material not subject to the license. This includes other CC-licensed material, or material used under an exception or limitation to copyright. More considerations for licensors.
10 |
11 | Considerations for the public: By using one of our public licenses, a licensor grants the public permission to use the licensed material under specified terms and conditions. If the licensor’s permission is not necessary for any reason–for example, because of any applicable exception or limitation to copyright–then that use is not regulated by the license. Our licenses grant only permissions under copyright and certain other rights that a licensor has authority to grant. Use of the licensed material may still be restricted for other reasons, including because others have copyright or other rights in the material. A licensor may make special requests, such as asking that all changes be marked or described. Although not required by our licenses, you are encouraged to respect those requests where reasonable. More considerations for the public.
12 |
13 | Creative Commons Attribution 4.0 International Public License
14 |
15 | By exercising the Licensed Rights (defined below), You accept and agree to be bound by the terms and conditions of this Creative Commons Attribution 4.0 International Public License ("Public License"). To the extent this Public License may be interpreted as a contract, You are granted the Licensed Rights in consideration of Your acceptance of these terms and conditions, and the Licensor grants You such rights in consideration of benefits the Licensor receives from making the Licensed Material available under these terms and conditions.
16 |
17 | Section 1 – Definitions.
18 |
19 | a. Adapted Material means material subject to Copyright and Similar Rights that is derived from or based upon the Licensed Material and in which the Licensed Material is translated, altered, arranged, transformed, or otherwise modified in a manner requiring permission under the Copyright and Similar Rights held by the Licensor. For purposes of this Public License, where the Licensed Material is a musical work, performance, or sound recording, Adapted Material is always produced where the Licensed Material is synched in timed relation with a moving image.
20 |
21 | b. Adapter's License means the license You apply to Your Copyright and Similar Rights in Your contributions to Adapted Material in accordance with the terms and conditions of this Public License.
22 |
23 | c. Copyright and Similar Rights means copyright and/or similar rights closely related to copyright including, without limitation, performance, broadcast, sound recording, and Sui Generis Database Rights, without regard to how the rights are labeled or categorized. For purposes of this Public License, the rights specified in Section 2(b)(1)-(2) are not Copyright and Similar Rights.
24 |
25 | d. Effective Technological Measures means those measures that, in the absence of proper authority, may not be circumvented under laws fulfilling obligations under Article 11 of the WIPO Copyright Treaty adopted on December 20, 1996, and/or similar international agreements.
26 |
27 | e. Exceptions and Limitations means fair use, fair dealing, and/or any other exception or limitation to Copyright and Similar Rights that applies to Your use of the Licensed Material.
28 |
29 | f. Licensed Material means the artistic or literary work, database, or other material to which the Licensor applied this Public License.
30 |
31 | g. Licensed Rights means the rights granted to You subject to the terms and conditions of this Public License, which are limited to all Copyright and Similar Rights that apply to Your use of the Licensed Material and that the Licensor has authority to license.
32 |
33 | h. Licensor means the individual(s) or entity(ies) granting rights under this Public License.
34 |
35 | i. Share means to provide material to the public by any means or process that requires permission under the Licensed Rights, such as reproduction, public display, public performance, distribution, dissemination, communication, or importation, and to make material available to the public including in ways that members of the public may access the material from a place and at a time individually chosen by them.
36 |
37 | j. Sui Generis Database Rights means rights other than copyright resulting from Directive 96/9/EC of the European Parliament and of the Council of 11 March 1996 on the legal protection of databases, as amended and/or succeeded, as well as other essentially equivalent rights anywhere in the world.
38 |
39 | k. You means the individual or entity exercising the Licensed Rights under this Public License. Your has a corresponding meaning.
40 |
41 | Section 2 – Scope.
42 |
43 | a. License grant.
44 |
45 | 1. Subject to the terms and conditions of this Public License, the Licensor hereby grants You a worldwide, royalty-free, non-sublicensable, non-exclusive, irrevocable license to exercise the Licensed Rights in the Licensed Material to:
46 |
47 | A. reproduce and Share the Licensed Material, in whole or in part; and
48 |
49 | B. produce, reproduce, and Share Adapted Material.
50 |
51 | 2. Exceptions and Limitations. For the avoidance of doubt, where Exceptions and Limitations apply to Your use, this Public License does not apply, and You do not need to comply with its terms and conditions.
52 |
53 | 3. Term. The term of this Public License is specified in Section 6(a).
54 |
55 | 4. Media and formats; technical modifications allowed. The Licensor authorizes You to exercise the Licensed Rights in all media and formats whether now known or hereafter created, and to make technical modifications necessary to do so. The Licensor waives and/or agrees not to assert any right or authority to forbid You from making technical modifications necessary to exercise the Licensed Rights, including technical modifications necessary to circumvent Effective Technological Measures. For purposes of this Public License, simply making modifications authorized by this Section 2(a)(4) never produces Adapted Material.
56 |
57 | 5. Downstream recipients.
58 |
59 | A. Offer from the Licensor – Licensed Material. Every recipient of the Licensed Material automatically receives an offer from the Licensor to exercise the Licensed Rights under the terms and conditions of this Public License.
60 |
61 | B. No downstream restrictions. You may not offer or impose any additional or different terms or conditions on, or apply any Effective Technological Measures to, the Licensed Material if doing so restricts exercise of the Licensed Rights by any recipient of the Licensed Material.
62 |
63 | 6. No endorsement. Nothing in this Public License constitutes or may be construed as permission to assert or imply that You are, or that Your use of the Licensed Material is, connected with, or sponsored, endorsed, or granted official status by, the Licensor or others designated to receive attribution as provided in Section 3(a)(1)(A)(i).
64 |
65 | b. Other rights.
66 |
67 | 1. Moral rights, such as the right of integrity, are not licensed under this Public License, nor are publicity, privacy, and/or other similar personality rights; however, to the extent possible, the Licensor waives and/or agrees not to assert any such rights held by the Licensor to the limited extent necessary to allow You to exercise the Licensed Rights, but not otherwise.
68 |
69 | 2. Patent and trademark rights are not licensed under this Public License.
70 |
71 | 3. To the extent possible, the Licensor waives any right to collect royalties from You for the exercise of the Licensed Rights, whether directly or through a collecting society under any voluntary or waivable statutory or compulsory licensing scheme. In all other cases the Licensor expressly reserves any right to collect such royalties.
72 |
73 | Section 3 – License Conditions.
74 |
75 | Your exercise of the Licensed Rights is expressly made subject to the following conditions.
76 |
77 | a. Attribution.
78 |
79 | 1. If You Share the Licensed Material (including in modified form), You must:
80 |
81 | A. retain the following if it is supplied by the Licensor with the Licensed Material:
82 |
83 | i. identification of the creator(s) of the Licensed Material and any others designated to receive attribution, in any reasonable manner requested by the Licensor (including by pseudonym if designated);
84 |
85 | ii. a copyright notice;
86 |
87 | iii. a notice that refers to this Public License;
88 |
89 | iv. a notice that refers to the disclaimer of warranties;
90 |
91 | v. a URI or hyperlink to the Licensed Material to the extent reasonably practicable;
92 |
93 | B. indicate if You modified the Licensed Material and retain an indication of any previous modifications; and
94 |
95 | C. indicate the Licensed Material is licensed under this Public License, and include the text of, or the URI or hyperlink to, this Public License.
96 |
97 | 2. You may satisfy the conditions in Section 3(a)(1) in any reasonable manner based on the medium, means, and context in which You Share the Licensed Material. For example, it may be reasonable to satisfy the conditions by providing a URI or hyperlink to a resource that includes the required information.
98 |
99 | 3. If requested by the Licensor, You must remove any of the information required by Section 3(a)(1)(A) to the extent reasonably practicable.
100 |
101 | 4. If You Share Adapted Material You produce, the Adapter's License You apply must not prevent recipients of the Adapted Material from complying with this Public License.
102 |
103 | Section 4 – Sui Generis Database Rights.
104 |
105 | Where the Licensed Rights include Sui Generis Database Rights that apply to Your use of the Licensed Material:
106 |
107 | a. for the avoidance of doubt, Section 2(a)(1) grants You the right to extract, reuse, reproduce, and Share all or a substantial portion of the contents of the database;
108 |
109 | b. if You include all or a substantial portion of the database contents in a database in which You have Sui Generis Database Rights, then the database in which You have Sui Generis Database Rights (but not its individual contents) is Adapted Material; and
110 |
111 | c. You must comply with the conditions in Section 3(a) if You Share all or a substantial portion of the contents of the database.
112 | For the avoidance of doubt, this Section 4 supplements and does not replace Your obligations under this Public License where the Licensed Rights include other Copyright and Similar Rights.
113 |
114 | Section 5 – Disclaimer of Warranties and Limitation of Liability.
115 |
116 | a. Unless otherwise separately undertaken by the Licensor, to the extent possible, the Licensor offers the Licensed Material as-is and as-available, and makes no representations or warranties of any kind concerning the Licensed Material, whether express, implied, statutory, or other. This includes, without limitation, warranties of title, merchantability, fitness for a particular purpose, non-infringement, absence of latent or other defects, accuracy, or the presence or absence of errors, whether or not known or discoverable. Where disclaimers of warranties are not allowed in full or in part, this disclaimer may not apply to You.
117 |
118 | b. To the extent possible, in no event will the Licensor be liable to You on any legal theory (including, without limitation, negligence) or otherwise for any direct, special, indirect, incidental, consequential, punitive, exemplary, or other losses, costs, expenses, or damages arising out of this Public License or use of the Licensed Material, even if the Licensor has been advised of the possibility of such losses, costs, expenses, or damages. Where a limitation of liability is not allowed in full or in part, this limitation may not apply to You.
119 |
120 | c. The disclaimer of warranties and limitation of liability provided above shall be interpreted in a manner that, to the extent possible, most closely approximates an absolute disclaimer and waiver of all liability.
121 |
122 | Section 6 – Term and Termination.
123 |
124 | a. This Public License applies for the term of the Copyright and Similar Rights licensed here. However, if You fail to comply with this Public License, then Your rights under this Public License terminate automatically.
125 |
126 | b. Where Your right to use the Licensed Material has terminated under Section 6(a), it reinstates:
127 |
128 | 1. automatically as of the date the violation is cured, provided it is cured within 30 days of Your discovery of the violation; or
129 |
130 | 2. upon express reinstatement by the Licensor.
131 |
132 | c. For the avoidance of doubt, this Section 6(b) does not affect any right the Licensor may have to seek remedies for Your violations of this Public License.
133 |
134 | d. For the avoidance of doubt, the Licensor may also offer the Licensed Material under separate terms or conditions or stop distributing the Licensed Material at any time; however, doing so will not terminate this Public License.
135 |
136 | e. Sections 1, 5, 6, 7, and 8 survive termination of this Public License.
137 |
138 | Section 7 – Other Terms and Conditions.
139 |
140 | a. The Licensor shall not be bound by any additional or different terms or conditions communicated by You unless expressly agreed.
141 |
142 | b. Any arrangements, understandings, or agreements regarding the Licensed Material not stated herein are separate from and independent of the terms and conditions of this Public License.
143 |
144 | Section 8 – Interpretation.
145 |
146 | a. For the avoidance of doubt, this Public License does not, and shall not be interpreted to, reduce, limit, restrict, or impose conditions on any use of the Licensed Material that could lawfully be made without permission under this Public License.
147 |
148 | b. To the extent possible, if any provision of this Public License is deemed unenforceable, it shall be automatically reformed to the minimum extent necessary to make it enforceable. If the provision cannot be reformed, it shall be severed from this Public License without affecting the enforceability of the remaining terms and conditions.
149 |
150 | c. No term or condition of this Public License will be waived and no failure to comply consented to unless expressly agreed to by the Licensor.
151 |
152 | d. Nothing in this Public License constitutes or may be interpreted as a limitation upon, or waiver of, any privileges and immunities that apply to the Licensor or You, including from the legal processes of any jurisdiction or authority.
153 |
154 | Creative Commons is not a party to its public licenses. Notwithstanding, Creative Commons may elect to apply one of its public licenses to material it publishes and in those instances will be considered the “Licensor.” Except for the limited purpose of indicating that material is shared under a Creative Commons public license or as otherwise permitted by the Creative Commons policies published at creativecommons.org/policies, Creative Commons does not authorize the use of the trademark “Creative Commons” or any other trademark or logo of Creative Commons without its prior written consent including, without limitation, in connection with any unauthorized modifications to any of its public licenses or any other arrangements, understandings, or agreements concerning use of licensed material. For the avoidance of doubt, this paragraph does not form part of the public licenses.
155 |
156 | Creative Commons may be contacted at creativecommons.org.
157 |
--------------------------------------------------------------------------------
/LICENSES/CC-BY-SA-3.0.txt:
--------------------------------------------------------------------------------
1 | Creative Commons Legal Code
2 |
3 | Attribution-ShareAlike 3.0 Unported
4 |
5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6 | LEGAL SERVICES. DISTRIBUTION OF THIS LICENSE DOES NOT CREATE AN
7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9 | REGARDING THE INFORMATION PROVIDED, AND DISCLAIMS LIABILITY FOR
10 | DAMAGES RESULTING FROM ITS USE.
11 |
12 | License
13 |
14 | THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE
15 | COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY
16 | COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
17 | AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED.
18 |
19 | BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE
20 | TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY
21 | BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS
22 | CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
23 | CONDITIONS.
24 |
25 | 1. Definitions
26 |
27 | a. "Adaptation" means a work based upon the Work, or upon the Work and
28 | other pre-existing works, such as a translation, adaptation,
29 | derivative work, arrangement of music or other alterations of a
30 | literary or artistic work, or phonogram or performance and includes
31 | cinematographic adaptations or any other form in which the Work may be
32 | recast, transformed, or adapted including in any form recognizably
33 | derived from the original, except that a work that constitutes a
34 | Collection will not be considered an Adaptation for the purpose of
35 | this License. For the avoidance of doubt, where the Work is a musical
36 | work, performance or phonogram, the synchronization of the Work in
37 | timed-relation with a moving image ("synching") will be considered an
38 | Adaptation for the purpose of this License.
39 | b. "Collection" means a collection of literary or artistic works, such as
40 | encyclopedias and anthologies, or performances, phonograms or
41 | broadcasts, or other works or subject matter other than works listed
42 | in Section 1(f) below, which, by reason of the selection and
43 | arrangement of their contents, constitute intellectual creations, in
44 | which the Work is included in its entirety in unmodified form along
45 | with one or more other contributions, each constituting separate and
46 | independent works in themselves, which together are assembled into a
47 | collective whole. A work that constitutes a Collection will not be
48 | considered an Adaptation (as defined below) for the purposes of this
49 | License.
50 | c. "Creative Commons Compatible License" means a license that is listed
51 | at https://creativecommons.org/compatiblelicenses that has been
52 | approved by Creative Commons as being essentially equivalent to this
53 | License, including, at a minimum, because that license: (i) contains
54 | terms that have the same purpose, meaning and effect as the License
55 | Elements of this License; and, (ii) explicitly permits the relicensing
56 | of adaptations of works made available under that license under this
57 | License or a Creative Commons jurisdiction license with the same
58 | License Elements as this License.
59 | d. "Distribute" means to make available to the public the original and
60 | copies of the Work or Adaptation, as appropriate, through sale or
61 | other transfer of ownership.
62 | e. "License Elements" means the following high-level license attributes
63 | as selected by Licensor and indicated in the title of this License:
64 | Attribution, ShareAlike.
65 | f. "Licensor" means the individual, individuals, entity or entities that
66 | offer(s) the Work under the terms of this License.
67 | g. "Original Author" means, in the case of a literary or artistic work,
68 | the individual, individuals, entity or entities who created the Work
69 | or if no individual or entity can be identified, the publisher; and in
70 | addition (i) in the case of a performance the actors, singers,
71 | musicians, dancers, and other persons who act, sing, deliver, declaim,
72 | play in, interpret or otherwise perform literary or artistic works or
73 | expressions of folklore; (ii) in the case of a phonogram the producer
74 | being the person or legal entity who first fixes the sounds of a
75 | performance or other sounds; and, (iii) in the case of broadcasts, the
76 | organization that transmits the broadcast.
77 | h. "Work" means the literary and/or artistic work offered under the terms
78 | of this License including without limitation any production in the
79 | literary, scientific and artistic domain, whatever may be the mode or
80 | form of its expression including digital form, such as a book,
81 | pamphlet and other writing; a lecture, address, sermon or other work
82 | of the same nature; a dramatic or dramatico-musical work; a
83 | choreographic work or entertainment in dumb show; a musical
84 | composition with or without words; a cinematographic work to which are
85 | assimilated works expressed by a process analogous to cinematography;
86 | a work of drawing, painting, architecture, sculpture, engraving or
87 | lithography; a photographic work to which are assimilated works
88 | expressed by a process analogous to photography; a work of applied
89 | art; an illustration, map, plan, sketch or three-dimensional work
90 | relative to geography, topography, architecture or science; a
91 | performance; a broadcast; a phonogram; a compilation of data to the
92 | extent it is protected as a copyrightable work; or a work performed by
93 | a variety or circus performer to the extent it is not otherwise
94 | considered a literary or artistic work.
95 | i. "You" means an individual or entity exercising rights under this
96 | License who has not previously violated the terms of this License with
97 | respect to the Work, or who has received express permission from the
98 | Licensor to exercise rights under this License despite a previous
99 | violation.
100 | j. "Publicly Perform" means to perform public recitations of the Work and
101 | to communicate to the public those public recitations, by any means or
102 | process, including by wire or wireless means or public digital
103 | performances; to make available to the public Works in such a way that
104 | members of the public may access these Works from a place and at a
105 | place individually chosen by them; to perform the Work to the public
106 | by any means or process and the communication to the public of the
107 | performances of the Work, including by public digital performance; to
108 | broadcast and rebroadcast the Work by any means including signs,
109 | sounds or images.
110 | k. "Reproduce" means to make copies of the Work by any means including
111 | without limitation by sound or visual recordings and the right of
112 | fixation and reproducing fixations of the Work, including storage of a
113 | protected performance or phonogram in digital form or other electronic
114 | medium.
115 |
116 | 2. Fair Dealing Rights. Nothing in this License is intended to reduce,
117 | limit, or restrict any uses free from copyright or rights arising from
118 | limitations or exceptions that are provided for in connection with the
119 | copyright protection under copyright law or other applicable laws.
120 |
121 | 3. License Grant. Subject to the terms and conditions of this License,
122 | Licensor hereby grants You a worldwide, royalty-free, non-exclusive,
123 | perpetual (for the duration of the applicable copyright) license to
124 | exercise the rights in the Work as stated below:
125 |
126 | a. to Reproduce the Work, to incorporate the Work into one or more
127 | Collections, and to Reproduce the Work as incorporated in the
128 | Collections;
129 | b. to create and Reproduce Adaptations provided that any such Adaptation,
130 | including any translation in any medium, takes reasonable steps to
131 | clearly label, demarcate or otherwise identify that changes were made
132 | to the original Work. For example, a translation could be marked "The
133 | original work was translated from English to Spanish," or a
134 | modification could indicate "The original work has been modified.";
135 | c. to Distribute and Publicly Perform the Work including as incorporated
136 | in Collections; and,
137 | d. to Distribute and Publicly Perform Adaptations.
138 | e. For the avoidance of doubt:
139 |
140 | i. Non-waivable Compulsory License Schemes. In those jurisdictions in
141 | which the right to collect royalties through any statutory or
142 | compulsory licensing scheme cannot be waived, the Licensor
143 | reserves the exclusive right to collect such royalties for any
144 | exercise by You of the rights granted under this License;
145 | ii. Waivable Compulsory License Schemes. In those jurisdictions in
146 | which the right to collect royalties through any statutory or
147 | compulsory licensing scheme can be waived, the Licensor waives the
148 | exclusive right to collect such royalties for any exercise by You
149 | of the rights granted under this License; and,
150 | iii. Voluntary License Schemes. The Licensor waives the right to
151 | collect royalties, whether individually or, in the event that the
152 | Licensor is a member of a collecting society that administers
153 | voluntary licensing schemes, via that society, from any exercise
154 | by You of the rights granted under this License.
155 |
156 | The above rights may be exercised in all media and formats whether now
157 | known or hereafter devised. The above rights include the right to make
158 | such modifications as are technically necessary to exercise the rights in
159 | other media and formats. Subject to Section 8(f), all rights not expressly
160 | granted by Licensor are hereby reserved.
161 |
162 | 4. Restrictions. The license granted in Section 3 above is expressly made
163 | subject to and limited by the following restrictions:
164 |
165 | a. You may Distribute or Publicly Perform the Work only under the terms
166 | of this License. You must include a copy of, or the Uniform Resource
167 | Identifier (URI) for, this License with every copy of the Work You
168 | Distribute or Publicly Perform. You may not offer or impose any terms
169 | on the Work that restrict the terms of this License or the ability of
170 | the recipient of the Work to exercise the rights granted to that
171 | recipient under the terms of the License. You may not sublicense the
172 | Work. You must keep intact all notices that refer to this License and
173 | to the disclaimer of warranties with every copy of the Work You
174 | Distribute or Publicly Perform. When You Distribute or Publicly
175 | Perform the Work, You may not impose any effective technological
176 | measures on the Work that restrict the ability of a recipient of the
177 | Work from You to exercise the rights granted to that recipient under
178 | the terms of the License. This Section 4(a) applies to the Work as
179 | incorporated in a Collection, but this does not require the Collection
180 | apart from the Work itself to be made subject to the terms of this
181 | License. If You create a Collection, upon notice from any Licensor You
182 | must, to the extent practicable, remove from the Collection any credit
183 | as required by Section 4(c), as requested. If You create an
184 | Adaptation, upon notice from any Licensor You must, to the extent
185 | practicable, remove from the Adaptation any credit as required by
186 | Section 4(c), as requested.
187 | b. You may Distribute or Publicly Perform an Adaptation only under the
188 | terms of: (i) this License; (ii) a later version of this License with
189 | the same License Elements as this License; (iii) a Creative Commons
190 | jurisdiction license (either this or a later license version) that
191 | contains the same License Elements as this License (e.g.,
192 | Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible
193 | License. If you license the Adaptation under one of the licenses
194 | mentioned in (iv), you must comply with the terms of that license. If
195 | you license the Adaptation under the terms of any of the licenses
196 | mentioned in (i), (ii) or (iii) (the "Applicable License"), you must
197 | comply with the terms of the Applicable License generally and the
198 | following provisions: (I) You must include a copy of, or the URI for,
199 | the Applicable License with every copy of each Adaptation You
200 | Distribute or Publicly Perform; (II) You may not offer or impose any
201 | terms on the Adaptation that restrict the terms of the Applicable
202 | License or the ability of the recipient of the Adaptation to exercise
203 | the rights granted to that recipient under the terms of the Applicable
204 | License; (III) You must keep intact all notices that refer to the
205 | Applicable License and to the disclaimer of warranties with every copy
206 | of the Work as included in the Adaptation You Distribute or Publicly
207 | Perform; (IV) when You Distribute or Publicly Perform the Adaptation,
208 | You may not impose any effective technological measures on the
209 | Adaptation that restrict the ability of a recipient of the Adaptation
210 | from You to exercise the rights granted to that recipient under the
211 | terms of the Applicable License. This Section 4(b) applies to the
212 | Adaptation as incorporated in a Collection, but this does not require
213 | the Collection apart from the Adaptation itself to be made subject to
214 | the terms of the Applicable License.
215 | c. If You Distribute, or Publicly Perform the Work or any Adaptations or
216 | Collections, You must, unless a request has been made pursuant to
217 | Section 4(a), keep intact all copyright notices for the Work and
218 | provide, reasonable to the medium or means You are utilizing: (i) the
219 | name of the Original Author (or pseudonym, if applicable) if supplied,
220 | and/or if the Original Author and/or Licensor designate another party
221 | or parties (e.g., a sponsor institute, publishing entity, journal) for
222 | attribution ("Attribution Parties") in Licensor's copyright notice,
223 | terms of service or by other reasonable means, the name of such party
224 | or parties; (ii) the title of the Work if supplied; (iii) to the
225 | extent reasonably practicable, the URI, if any, that Licensor
226 | specifies to be associated with the Work, unless such URI does not
227 | refer to the copyright notice or licensing information for the Work;
228 | and (iv) , consistent with Ssection 3(b), in the case of an
229 | Adaptation, a credit identifying the use of the Work in the Adaptation
230 | (e.g., "French translation of the Work by Original Author," or
231 | "Screenplay based on original Work by Original Author"). The credit
232 | required by this Section 4(c) may be implemented in any reasonable
233 | manner; provided, however, that in the case of a Adaptation or
234 | Collection, at a minimum such credit will appear, if a credit for all
235 | contributing authors of the Adaptation or Collection appears, then as
236 | part of these credits and in a manner at least as prominent as the
237 | credits for the other contributing authors. For the avoidance of
238 | doubt, You may only use the credit required by this Section for the
239 | purpose of attribution in the manner set out above and, by exercising
240 | Your rights under this License, You may not implicitly or explicitly
241 | assert or imply any connection with, sponsorship or endorsement by the
242 | Original Author, Licensor and/or Attribution Parties, as appropriate,
243 | of You or Your use of the Work, without the separate, express prior
244 | written permission of the Original Author, Licensor and/or Attribution
245 | Parties.
246 | d. Except as otherwise agreed in writing by the Licensor or as may be
247 | otherwise permitted by applicable law, if You Reproduce, Distribute or
248 | Publicly Perform the Work either by itself or as part of any
249 | Adaptations or Collections, You must not distort, mutilate, modify or
250 | take other derogatory action in relation to the Work which would be
251 | prejudicial to the Original Author's honor or reputation. Licensor
252 | agrees that in those jurisdictions (e.g. Japan), in which any exercise
253 | of the right granted in Section 3(b) of this License (the right to
254 | make Adaptations) would be deemed to be a distortion, mutilation,
255 | modification or other derogatory action prejudicial to the Original
256 | Author's honor and reputation, the Licensor will waive or not assert,
257 | as appropriate, this Section, to the fullest extent permitted by the
258 | applicable national law, to enable You to reasonably exercise Your
259 | right under Section 3(b) of this License (right to make Adaptations)
260 | but not otherwise.
261 |
262 | 5. Representations, Warranties and Disclaimer
263 |
264 | UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR
265 | OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY
266 | KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE,
267 | INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
268 | FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF
269 | LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS,
270 | WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION
271 | OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.
272 |
273 | 6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE
274 | LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR
275 | ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES
276 | ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS
277 | BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
278 |
279 | 7. Termination
280 |
281 | a. This License and the rights granted hereunder will terminate
282 | automatically upon any breach by You of the terms of this License.
283 | Individuals or entities who have received Adaptations or Collections
284 | from You under this License, however, will not have their licenses
285 | terminated provided such individuals or entities remain in full
286 | compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
287 | survive any termination of this License.
288 | b. Subject to the above terms and conditions, the license granted here is
289 | perpetual (for the duration of the applicable copyright in the Work).
290 | Notwithstanding the above, Licensor reserves the right to release the
291 | Work under different license terms or to stop distributing the Work at
292 | any time; provided, however that any such election will not serve to
293 | withdraw this License (or any other license that has been, or is
294 | required to be, granted under the terms of this License), and this
295 | License will continue in full force and effect unless terminated as
296 | stated above.
297 |
298 | 8. Miscellaneous
299 |
300 | a. Each time You Distribute or Publicly Perform the Work or a Collection,
301 | the Licensor offers to the recipient a license to the Work on the same
302 | terms and conditions as the license granted to You under this License.
303 | b. Each time You Distribute or Publicly Perform an Adaptation, Licensor
304 | offers to the recipient a license to the original Work on the same
305 | terms and conditions as the license granted to You under this License.
306 | c. If any provision of this License is invalid or unenforceable under
307 | applicable law, it shall not affect the validity or enforceability of
308 | the remainder of the terms of this License, and without further action
309 | by the parties to this agreement, such provision shall be reformed to
310 | the minimum extent necessary to make such provision valid and
311 | enforceable.
312 | d. No term or provision of this License shall be deemed waived and no
313 | breach consented to unless such waiver or consent shall be in writing
314 | and signed by the party to be charged with such waiver or consent.
315 | e. This License constitutes the entire agreement between the parties with
316 | respect to the Work licensed here. There are no understandings,
317 | agreements or representations with respect to the Work not specified
318 | here. Licensor shall not be bound by any additional provisions that
319 | may appear in any communication from You. This License may not be
320 | modified without the mutual written agreement of the Licensor and You.
321 | f. The rights granted under, and the subject matter referenced, in this
322 | License were drafted utilizing the terminology of the Berne Convention
323 | for the Protection of Literary and Artistic Works (as amended on
324 | September 28, 1979), the Rome Convention of 1961, the WIPO Copyright
325 | Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996
326 | and the Universal Copyright Convention (as revised on July 24, 1971).
327 | These rights and subject matter take effect in the relevant
328 | jurisdiction in which the License terms are sought to be enforced
329 | according to the corresponding provisions of the implementation of
330 | those treaty provisions in the applicable national law. If the
331 | standard suite of rights granted under applicable copyright law
332 | includes additional rights not granted under this License, such
333 | additional rights are deemed to be included in the License; this
334 | License is not intended to restrict the license of any rights under
335 | applicable law.
336 |
337 |
338 | Creative Commons Notice
339 |
340 | Creative Commons is not a party to this License, and makes no warranty
341 | whatsoever in connection with the Work. Creative Commons will not be
342 | liable to You or any party on any legal theory for any damages
343 | whatsoever, including without limitation any general, special,
344 | incidental or consequential damages arising in connection to this
345 | license. Notwithstanding the foregoing two (2) sentences, if Creative
346 | Commons has expressly identified itself as the Licensor hereunder, it
347 | shall have all rights and obligations of Licensor.
348 |
349 | Except for the limited purpose of indicating to the public that the
350 | Work is licensed under the CCPL, Creative Commons does not authorize
351 | the use by either party of the trademark "Creative Commons" or any
352 | related trademark or logo of Creative Commons without the prior
353 | written consent of Creative Commons. Any permitted use will be in
354 | compliance with Creative Commons' then-current trademark usage
355 | guidelines, as may be published on its website or otherwise made
356 | available upon request from time to time. For the avoidance of doubt,
357 | this trademark restriction does not form part of the License.
358 |
359 | Creative Commons may be contacted at https://creativecommons.org/.
360 |
--------------------------------------------------------------------------------
/LICENSES/CC0-1.0.txt:
--------------------------------------------------------------------------------
1 | Creative Commons Legal Code
2 |
3 | CC0 1.0 Universal
4 |
5 | CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
6 | LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
7 | ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
8 | INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
9 | REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
10 | PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
11 | THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
12 | HEREUNDER.
13 |
14 | Statement of Purpose
15 |
16 | The laws of most jurisdictions throughout the world automatically confer
17 | exclusive Copyright and Related Rights (defined below) upon the creator
18 | and subsequent owner(s) (each and all, an "owner") of an original work of
19 | authorship and/or a database (each, a "Work").
20 |
21 | Certain owners wish to permanently relinquish those rights to a Work for
22 | the purpose of contributing to a commons of creative, cultural and
23 | scientific works ("Commons") that the public can reliably and without fear
24 | of later claims of infringement build upon, modify, incorporate in other
25 | works, reuse and redistribute as freely as possible in any form whatsoever
26 | and for any purposes, including without limitation commercial purposes.
27 | These owners may contribute to the Commons to promote the ideal of a free
28 | culture and the further production of creative, cultural and scientific
29 | works, or to gain reputation or greater distribution for their Work in
30 | part through the use and efforts of others.
31 |
32 | For these and/or other purposes and motivations, and without any
33 | expectation of additional consideration or compensation, the person
34 | associating CC0 with a Work (the "Affirmer"), to the extent that he or she
35 | is an owner of Copyright and Related Rights in the Work, voluntarily
36 | elects to apply CC0 to the Work and publicly distribute the Work under its
37 | terms, with knowledge of his or her Copyright and Related Rights in the
38 | Work and the meaning and intended legal effect of CC0 on those rights.
39 |
40 | 1. Copyright and Related Rights. A Work made available under CC0 may be
41 | protected by copyright and related or neighboring rights ("Copyright and
42 | Related Rights"). Copyright and Related Rights include, but are not
43 | limited to, the following:
44 |
45 | i. the right to reproduce, adapt, distribute, perform, display,
46 | communicate, and translate a Work;
47 | ii. moral rights retained by the original author(s) and/or performer(s);
48 | iii. publicity and privacy rights pertaining to a person's image or
49 | likeness depicted in a Work;
50 | iv. rights protecting against unfair competition in regards to a Work,
51 | subject to the limitations in paragraph 4(a), below;
52 | v. rights protecting the extraction, dissemination, use and reuse of data
53 | in a Work;
54 | vi. database rights (such as those arising under Directive 96/9/EC of the
55 | European Parliament and of the Council of 11 March 1996 on the legal
56 | protection of databases, and under any national implementation
57 | thereof, including any amended or successor version of such
58 | directive); and
59 | vii. other similar, equivalent or corresponding rights throughout the
60 | world based on applicable law or treaty, and any national
61 | implementations thereof.
62 |
63 | 2. Waiver. To the greatest extent permitted by, but not in contravention
64 | of, applicable law, Affirmer hereby overtly, fully, permanently,
65 | irrevocably and unconditionally waives, abandons, and surrenders all of
66 | Affirmer's Copyright and Related Rights and associated claims and causes
67 | of action, whether now known or unknown (including existing as well as
68 | future claims and causes of action), in the Work (i) in all territories
69 | worldwide, (ii) for the maximum duration provided by applicable law or
70 | treaty (including future time extensions), (iii) in any current or future
71 | medium and for any number of copies, and (iv) for any purpose whatsoever,
72 | including without limitation commercial, advertising or promotional
73 | purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
74 | member of the public at large and to the detriment of Affirmer's heirs and
75 | successors, fully intending that such Waiver shall not be subject to
76 | revocation, rescission, cancellation, termination, or any other legal or
77 | equitable action to disrupt the quiet enjoyment of the Work by the public
78 | as contemplated by Affirmer's express Statement of Purpose.
79 |
80 | 3. Public License Fallback. Should any part of the Waiver for any reason
81 | be judged legally invalid or ineffective under applicable law, then the
82 | Waiver shall be preserved to the maximum extent permitted taking into
83 | account Affirmer's express Statement of Purpose. In addition, to the
84 | extent the Waiver is so judged Affirmer hereby grants to each affected
85 | person a royalty-free, non transferable, non sublicensable, non exclusive,
86 | irrevocable and unconditional license to exercise Affirmer's Copyright and
87 | Related Rights in the Work (i) in all territories worldwide, (ii) for the
88 | maximum duration provided by applicable law or treaty (including future
89 | time extensions), (iii) in any current or future medium and for any number
90 | of copies, and (iv) for any purpose whatsoever, including without
91 | limitation commercial, advertising or promotional purposes (the
92 | "License"). The License shall be deemed effective as of the date CC0 was
93 | applied by Affirmer to the Work. Should any part of the License for any
94 | reason be judged legally invalid or ineffective under applicable law, such
95 | partial invalidity or ineffectiveness shall not invalidate the remainder
96 | of the License, and in such case Affirmer hereby affirms that he or she
97 | will not (i) exercise any of his or her remaining Copyright and Related
98 | Rights in the Work or (ii) assert any associated claims and causes of
99 | action with respect to the Work, in either case contrary to Affirmer's
100 | express Statement of Purpose.
101 |
102 | 4. Limitations and Disclaimers.
103 |
104 | a. No trademark or patent rights held by Affirmer are waived, abandoned,
105 | surrendered, licensed or otherwise affected by this document.
106 | b. Affirmer offers the Work as-is and makes no representations or
107 | warranties of any kind concerning the Work, express, implied,
108 | statutory or otherwise, including without limitation warranties of
109 | title, merchantability, fitness for a particular purpose, non
110 | infringement, or the absence of latent or other defects, accuracy, or
111 | the present or absence of errors, whether or not discoverable, all to
112 | the greatest extent permissible under applicable law.
113 | c. Affirmer disclaims responsibility for clearing rights of other persons
114 | that may apply to the Work or any use thereof, including without
115 | limitation any person's Copyright and Related Rights in the Work.
116 | Further, Affirmer disclaims responsibility for obtaining any necessary
117 | consents, permissions or other rights required for any use of the
118 | Work.
119 | d. Affirmer understands and acknowledges that Creative Commons is not a
120 | party to this document and has no duty or obligation with respect to
121 | this CC0 or use of the Work.
122 |
--------------------------------------------------------------------------------
/LICENSES/GPL-2.0-only.txt:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
6 |
7 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
12 |
13 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
14 |
15 | To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
16 |
17 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
18 |
19 | We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
20 |
21 | Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
22 |
23 | Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
24 |
25 | The precise terms and conditions for copying, distribution and modification follow.
26 |
27 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
28 |
29 | 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
30 |
31 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
32 |
33 | 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
34 |
35 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
36 |
37 | 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
38 |
39 | a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
40 |
41 | b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
42 |
43 | c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
44 |
45 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
46 |
47 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
48 |
49 | In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
50 |
51 | 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
52 |
53 | a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
54 |
55 | b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
56 |
57 | c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
58 |
59 | The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
60 |
61 | If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
62 |
63 | 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
64 |
65 | 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
66 |
67 | 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
68 |
69 | 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
70 |
71 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
72 |
73 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
74 |
75 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
76 |
77 | 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
78 |
79 | 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
80 |
81 | Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
82 |
83 | 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
84 |
85 | NO WARRANTY
86 |
87 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
88 |
89 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
90 |
91 | END OF TERMS AND CONDITIONS
92 |
93 | How to Apply These Terms to Your New Programs
94 |
95 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
96 |
97 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
98 |
99 | one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
100 |
101 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
102 |
103 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
104 |
105 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
106 |
107 | If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
108 |
109 | Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
110 |
111 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
112 |
113 | You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
114 |
115 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
116 |
117 | signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
118 |
--------------------------------------------------------------------------------
/LICENSES/GPL-2.0-or-later.txt:
--------------------------------------------------------------------------------
1 | GNU GENERAL PUBLIC LICENSE
2 | Version 2, June 1991
3 |
4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc.
5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
6 |
7 | Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
8 |
9 | Preamble
10 |
11 | The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Lesser General Public License instead.) You can apply it to your programs, too.
12 |
13 | When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.
14 |
15 | To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.
16 |
17 | For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.
18 |
19 | We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.
20 |
21 | Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.
22 |
23 | Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.
24 |
25 | The precise terms and conditions for copying, distribution and modification follow.
26 |
27 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
28 |
29 | 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".
30 |
31 | Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.
32 |
33 | 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.
34 |
35 | You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.
36 |
37 | 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:
38 |
39 | a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.
40 |
41 | b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.
42 |
43 | c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)
44 |
45 | These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.
46 |
47 | Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.
48 |
49 | In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.
50 |
51 | 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:
52 |
53 | a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
54 |
55 | b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,
56 |
57 | c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)
58 |
59 | The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.
60 |
61 | If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.
62 |
63 | 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.
64 |
65 | 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.
66 |
67 | 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.
68 |
69 | 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.
70 |
71 | If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.
72 |
73 | It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.
74 |
75 | This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.
76 |
77 | 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.
78 |
79 | 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.
80 |
81 | Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.
82 |
83 | 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.
84 |
85 | NO WARRANTY
86 |
87 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
88 |
89 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
90 |
91 | END OF TERMS AND CONDITIONS
92 |
93 | How to Apply These Terms to Your New Programs
94 |
95 | If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
96 |
97 | To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
98 |
99 | one line to give the program's name and an idea of what it does. Copyright (C) yyyy name of author
100 |
101 | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
102 |
103 | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
104 |
105 | You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Also add information on how to contact you by electronic and paper mail.
106 |
107 | If the program is interactive, make it output a short notice like this when it starts in an interactive mode:
108 |
109 | Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details.
110 |
111 | The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program.
112 |
113 | You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names:
114 |
115 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker.
116 |
117 | signature of Ty Coon, 1 April 1989 Ty Coon, President of Vice
118 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Raspberry Pi Model Zero, A+, B, and B+
2 |
3 | [](https://hex.pm/packages/nerves_system_rpi)
4 | [](https://github.com/nerves-project/nerves_system_rpi/actions/workflows/ci.yml)
5 | [](https://api.reuse.software/info/github.com/nerves-project/nerves_system_rpi)
6 |
7 | This is the base Nerves System configuration for the Raspberry Pi A+, B,
8 | and B+. It will also work with the Raspberry Pi Zero, but usually
9 | [nerves_system_rpi0](https://github.com/nerves-project/nerves_system_rpi0) is
10 | preferable since it configures the USB port so that it can be plugged into
11 | a computer. This is very convenient for powering and debugging the Pi Zero.
12 | If you want to use the Raspberry Pi Zero's USB port in "host" mode (e.g.,
13 | to attach a USB Flash drive or other peripheral), then this repository
14 | works and may be more appropriate.
15 |
16 | This is not the configuration for the Raspberry Pi 2 or 3.
17 |
18 | 
19 |
[Image credit](#fritzing)
20 |
21 | | Feature | Description |
22 | | -------------------- | ------------------------------- |
23 | | CPU | 700 MHz ARM1176JZF-S for A+, B, and B+, 1 GHz ARM1176JZF-S for the Zero |
24 | | Memory | 256 MB for rev 1 boards, 512 MB for rev 2 and the Zero |
25 | | Storage | MicroSD |
26 | | Linux kernel | 6.1 w/ Raspberry Pi patches |
27 | | IEx terminal | HDMI and USB keyboard (can be changed to UART) |
28 | | GPIO, I2C, SPI | Yes - [Elixir Circuits](https://github.com/elixir-circuits) |
29 | | ADC | No |
30 | | PWM | Yes, but no Elixir support |
31 | | UART | 1 available - `ttyAMA0` |
32 | | Camera | Yes - via rpi-userland |
33 | | Ethernet | Yes (only on the B and B+) |
34 | | WiFi | RPi 0W or some USB WiFi dongles |
35 | | Bluetooth | [Supported on the Pi Zero W](#bluetooth) |
36 | | Audio | HDMI/Stereo out |
37 |
38 | ## Using
39 |
40 | The most common way of using this Nerves System is create a project with `mix
41 | nerves.new` and to export `MIX_TARGET=rpi`. See the [Getting started
42 | guide](https://hexdocs.pm/nerves/getting-started.html#creating-a-new-nerves-app)
43 | for more information.
44 |
45 | If you need custom modifications to this system for your device, clone this
46 | repository and update as described in [Making custom
47 | systems](https://hexdocs.pm/nerves/customizing-systems.html).
48 |
49 | ## Supported USB WiFi devices
50 |
51 | The base image includes drivers and firmware for Ralink RT53xx
52 | (`rt2800usb` driver) and RealTek RTL8712U (`r8712u` driver) devices.
53 |
54 | We are still working out which subset of all possible WiFi dongles to
55 | support in our images. At some point, we may have the option to support
56 | all dongles and selectively install modules at packaging time, but until
57 | then, these drivers and their associated firmware blobs add significantly
58 | to Nerves release images.
59 |
60 | If you are unsure what driver your WiFi dongle requires, run Raspbian and
61 | configure WiFi for your device. At a shell prompt, run `lsmod` to see which
62 | drivers are loaded. Running `dmesg` may also give a clue. When using `dmesg`,
63 | reinsert the USB dongle to generate new log messages if you don't see them.
64 |
65 | ## Bluetooth
66 |
67 | [BlueHeronTransportUART](https://github.com/blue-heron/blue_heron_transport_uart)
68 | supports bluetooth on the Pi Zero W using `ttyS0`.
69 | See details
70 | [here](https://github.com/nerves-project/nerves_system_rpi0/issues/224#issuecomment-913799838).
71 |
72 | ## Audio
73 |
74 | The Raspberry Pi has many options for audio output. This system supports the
75 | HDMI and stereo audio jack output. The Linux ALSA drivers are used for audio
76 | output.
77 |
78 | The general Raspberry Pi audio documentation mostly applies to Nerves. For
79 | example, to force audio out the HDMI port, run:
80 |
81 | ```elixir
82 | cmd("amixer cset numid=3 2")
83 | ```
84 |
85 | Change the last argument to `amixer` to `1` to output to the stereo output jack.
86 |
87 | ## Provisioning devices
88 |
89 | This system supports storing provisioning information in a small key-value store
90 | outside of any filesystem. Provisioning is an optional step and reasonable
91 | defaults are provided if this is missing.
92 |
93 | Provisioning information can be queried using the Nerves.Runtime KV store's
94 | [`Nerves.Runtime.KV.get/1`](https://hexdocs.pm/nerves_runtime/Nerves.Runtime.KV.html#get/1)
95 | function.
96 |
97 | Keys used by this system are:
98 |
99 | Key | Example Value | Description
100 | :--------------------- | :---------------- | :----------
101 | `nerves_serial_number` | `"12345678"` | By default, this string is used to create unique hostnames and Erlang node names. If unset, it defaults to part of the Raspberry Pi's device ID.
102 |
103 | The normal procedure would be to set these keys once in manufacturing or before
104 | deployment and then leave them alone.
105 |
106 | For example, to provision a serial number on a running device, run the following
107 | and reboot:
108 |
109 | ```elixir
110 | iex> cmd("fw_setenv nerves_serial_number 12345678")
111 | ```
112 |
113 | This system supports setting the serial number offline. To do this, set the
114 | `NERVES_SERIAL_NUMBER` environment variable when burning the firmware. If you're
115 | programming MicroSD cards using `fwup`, the commandline is:
116 |
117 | ```sh
118 | sudo NERVES_SERIAL_NUMBER=12345678 fwup path_to_firmware.fw
119 | ```
120 |
121 | Serial numbers are stored on the MicroSD card so if the MicroSD card is
122 | replaced, the serial number will need to be reprogrammed. The numbers are stored
123 | in a U-boot environment block. This is a special region that is separate from
124 | the application partition so reformatting the application partition will not
125 | lose the serial number or any other data stored in this block.
126 |
127 | Additional key value pairs can be provisioned by overriding the default
128 | provisioning.conf file location by setting the environment variable
129 | `NERVES_PROVISIONING=/path/to/provisioning.conf`. The default provisioning.conf
130 | will set the `nerves_serial_number`, if you override the location to this file,
131 | you will be responsible for setting this yourself.
132 |
133 | ## Linux kernel and RPi firmware/userland
134 |
135 | There's a subtle coupling between the `nerves_system_br` version and the Linux
136 | kernel version used here. `nerves_system_br` provides the versions of
137 | `rpi-userland` and `rpi-firmware` that get installed. I prefer to match them to
138 | the Linux kernel to avoid any issues. Unfortunately, none of these are tagged by
139 | the Raspberry Pi Foundation so I either attempt to match what's in Raspbian or
140 | take versions of the repositories that have similar commit times.
141 |
142 | [Image credit](#fritzing): This image is from the [Fritzing](http://fritzing.org/home/) parts library.
143 |
--------------------------------------------------------------------------------
/REUSE.toml:
--------------------------------------------------------------------------------
1 | version = 1
2 |
3 | [[annotations]]
4 | path = [
5 | ".formatter.exs",
6 | ".github/workflows/ci.yml",
7 | ".gitignore",
8 | "CHANGELOG.md",
9 | "NOTICE",
10 | "REUSE.toml",
11 | "mix.exs",
12 | "mix.lock",
13 | "VERSION"
14 | ]
15 | precedence = "aggregate"
16 | SPDX-FileCopyrightText = "None"
17 | SPDX-License-Identifier = "CC0-1.0"
18 |
19 | [[annotations]]
20 | path = [
21 | "README.md"
22 | ]
23 | precedence = "aggregate"
24 | SPDX-FileCopyrightText = "2016 Frank Hunleth"
25 | SPDX-License-Identifier = "CC-BY-4.0"
26 |
27 | # Buildroot derived or related files
28 | [[annotations]]
29 | path = [
30 | "Config.in",
31 | "package/**",
32 | "external.mk",
33 | "nerves_defconfig",
34 | "post-build.sh",
35 | "post-createfs.sh"
36 | ]
37 | precedence = "aggregate"
38 | SPDX-FileCopyrightText = "The Buildroot developers "
39 | SPDX-License-Identifier = "GPL-2.0-or-later"
40 |
41 | # Linux kernel derived or related files
42 | [[annotations]]
43 | path = [
44 | "linux/*",
45 | "rootfs_overlay/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt",
46 | "linux-6.6.defconfig",
47 | "ramoops.dts"
48 | ]
49 | precedence = "override"
50 | SPDX-FileCopyrightText = "Various"
51 | SPDX-License-Identifier = "GPL-2.0-only"
52 |
53 | # Fwup config files
54 | [[annotations]]
55 | path = [
56 | "fwup-ops.conf",
57 | "fwup.conf",
58 | "fwup_include/*"
59 | ]
60 | precedence = "aggregate"
61 | SPDX-FileCopyrightText = "None"
62 | SPDX-License-Identifier = "CC0-1.0"
63 |
64 | # Various config files
65 | [[annotations]]
66 | path = [
67 | "busybox.fragment",
68 | "cmdline.txt",
69 | "config.txt",
70 | "rootfs_overlay/etc/boardid.config",
71 | "rootfs_overlay/etc/erlinit.config",
72 | "rootfs_overlay/etc/fw_env.config"
73 | ]
74 | precedence = "aggregate"
75 | SPDX-FileCopyrightText = "None"
76 | SPDX-License-Identifier = "CC0-1.0"
77 |
78 | # https://github.com/fritzing/fritzing-parts/blob/develop/core/Raspberry_Pi_Zero_1.fzp
79 | [[annotations]]
80 | path = [
81 | "assets/images/raspberry-pi-model-a-plus.png"
82 | ]
83 | precedence = "aggregate"
84 | SPDX-FileCopyrightText = "Fabian Althaus"
85 | SPDX-License-Identifier = "CC-BY-SA-3.0"
86 |
--------------------------------------------------------------------------------
/VERSION:
--------------------------------------------------------------------------------
1 | 1.31.0
2 |
--------------------------------------------------------------------------------
/assets/images/raspberry-pi-model-a-plus.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerves-project/nerves_system_rpi/24e50f541ebf4958ba2f00d9f47c050ef130b24a/assets/images/raspberry-pi-model-a-plus.png
--------------------------------------------------------------------------------
/cmdline.txt:
--------------------------------------------------------------------------------
1 | # NOTES:
2 | # 1. Kernel messages are output to HDMI and the UART pins by default.
3 | # 2. serial0 is magically replaced with ttyAMA0 or ttyS0 depending on the
4 | # serial port configuration in config.txt.
5 | # 3. To remove the kernel messages going to HDMI, remove
6 | # "console=tty1 fbcon=scrollback:1024k consoleblank=0"
7 | # 4. If you're experimenting with kernel commandline parameters, it's easist
8 | # to modify this file on the MicroSD card via your development computer. To
9 | # make changes permanent, you'll need to override the fwup.conf.
10 | # 5. See https://www.raspberrypi.org/documentation/configuration/cmdline-txt.md
11 | root=/dev/mmcblk0p2 rootwait console=serial0,115200 console=tty1 fbcon=scrollback:1024k consoleblank=0
12 |
--------------------------------------------------------------------------------
/config.txt:
--------------------------------------------------------------------------------
1 | # Default Nerves RPi config.txt
2 | #
3 | # It's possible to override this file by using a custom fwup.conf
4 | # configuration to pull in a replacement.
5 | #
6 | # Useful links:
7 | # https://www.raspberrypi.org/documentation/configuration/config-txt/README.md
8 | # https://www.raspberrypi.org/documentation/configuration/device-tree.md
9 | # https://github.com/raspberrypi/documentation/blob/master/configuration/device-tree.md
10 | # https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README
11 |
12 | kernel=zImage
13 |
14 | # Disable the boot rainbow
15 | disable_splash=1
16 |
17 | # This, along with the Raspberry Pi "x" firmware is needed for the camera
18 | # to work. The Raspberry Pi "x" firmware is selected via the Buildroot
19 | # configuration. See Target packages->Hardware handling->Firmware.
20 | gpu_mem=192
21 |
22 | # Enable I2C, SPI, and audio
23 | dtparam=i2c_arm=on
24 | dtparam=spi=on
25 | dtparam=audio=on
26 |
27 | # Automatically load overlays for detected cameras
28 | camera_auto_detect=1
29 |
30 | # Comment this in or modify to enable OneWire
31 | # NOTE: check that the overlay that you specify is in the boot partition or
32 | # this won't work.
33 | #dtoverlay=w1-gpio-pullup,gpiopin=4
34 |
35 | # The ramoops overlay works with the pstore driver to preserve crash
36 | # information across reboots in DRAM
37 | dtoverlay=ramoops
38 |
39 | # Enable the UART via GPIOs 14 and 15 (ttyAMA0) on the RPi0 W.
40 | # See https://www.raspberrypi.org/documentation/configuration/uart.md.
41 | enable_uart=1
42 | dtoverlay=miniuart-bt
43 | # Set the GPU frequency so that the MiniUART (/dev/ttyS0) can be used for
44 | # Bluetooth. This has a small performance impact. See
45 | # https://www.raspberrypi.org/documentation/computers/config_txt.html#overclocking.
46 | core_freq=250
47 |
48 |
--------------------------------------------------------------------------------
/fwup-ops.conf:
--------------------------------------------------------------------------------
1 | # Post-installation firmware operations for the Raspberry Pi
2 | #
3 | # Tasks include:
4 | #
5 | # * `factory-reset` - Clear out the writable filesystem and any other writable
6 | # areas so that they can be re-initialized on the next boot.
7 | # * `prevent-revert` - Prevent `revert` from working until the next firmware
8 | # * `revert` - Revert to the previous firmware if it's still available
9 | # * `validate` - Mark this firmware as a good update.
10 | # * `status` - Print out which partition is active (`a` or `b`)
11 | #
12 | # To use:
13 | #
14 | # 1. Run `fwup -c -f fwup-ops.conf -o ops.fw` and copy ops.fw to
15 | # the device. This is done automatically as part of the Nerves system
16 | # build process. The file is stored in `/usr/share/fwup/ops.fw`.
17 | # 2. On the device, run `fwup -t -d /dev/rootdisk0 --enable-trim /usr/share/fwup/ops.fw`.
18 | # 3. Reboot after running `revert` or `factory-reset`.
19 | #
20 | # It is critical that this is kept in sync with the main fwup.conf.
21 |
22 | require-fwup-version="1.0.0"
23 |
24 | include("${NERVES_SDK_IMAGES:-.}/fwup_include/fwup-common.conf")
25 |
26 | mbr mbr-a {
27 | partition 0 {
28 | block-offset = ${BOOT_A_PART_OFFSET}
29 | block-count = ${BOOT_A_PART_COUNT}
30 | type = 0xc # FAT32
31 | boot = true
32 | }
33 | partition 1 {
34 | block-offset = ${ROOTFS_A_PART_OFFSET}
35 | block-count = ${ROOTFS_A_PART_COUNT}
36 | type = 0x83 # Linux
37 | }
38 | partition 2 {
39 | block-offset = ${APP_PART_OFFSET}
40 | block-count = ${APP_PART_COUNT}
41 | type = 0x83 # Linux
42 | expand = true
43 | }
44 | # partition 3 is unused
45 | }
46 |
47 | mbr mbr-b {
48 | partition 0 {
49 | block-offset = ${BOOT_B_PART_OFFSET}
50 | block-count = ${BOOT_B_PART_COUNT}
51 | type = 0xc # FAT32
52 | boot = true
53 | }
54 | partition 1 {
55 | block-offset = ${ROOTFS_B_PART_OFFSET}
56 | block-count = ${ROOTFS_B_PART_COUNT}
57 | type = 0x83 # Linux
58 | }
59 | partition 2 {
60 | block-offset = ${APP_PART_OFFSET}
61 | block-count = ${APP_PART_COUNT}
62 | type = 0x83 # Linux
63 | expand = true
64 | }
65 | # partition 3 is unused
66 | }
67 |
68 | # Location where installed firmware information is stored.
69 | # While this is called "u-boot", u-boot isn't involved in this
70 | # setup. It just provides a convenient key/value store format.
71 | uboot-environment uboot-env {
72 | block-offset = ${UBOOT_ENV_OFFSET}
73 | block-count = ${UBOOT_ENV_COUNT}
74 | }
75 |
76 | ##
77 | # factory-reset
78 | ##
79 | task factory-reset {
80 | on-init {
81 | info("Erasing all writable data")
82 | # Trim may not work on MicroSD card, so don't rely on it
83 | trim(${APP_PART_OFFSET}, ${APP_PART_COUNT})
84 | raw_memset(${APP_PART_OFFSET}, 256, 0xff)
85 | }
86 | }
87 |
88 | ##
89 | # prevent-revert
90 | #
91 | # Pass `--enable-trim` to also clear out the partition that no longer should be used.
92 | ##
93 | task prevent-revert.a {
94 | # Check that we're running on B
95 | require-partition-offset(0, ${BOOT_B_PART_OFFSET})
96 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
97 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
98 |
99 | on-init {
100 | info("Preventing reverts to partition A")
101 | # Remove U-Boot variables that fwup uses to allow reverting images
102 | uboot_unsetenv(uboot-env, "a.nerves_fw_platform")
103 | uboot_unsetenv(uboot-env, "a.nerves_fw_architecture")
104 | # Clear out the old image using TRIM. This requires --enable-trim
105 | trim(${ROOTFS_A_PART_OFFSET}, ${ROOTFS_A_PART_COUNT})
106 | trim(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
107 | }
108 | }
109 | task prevent-revert.b {
110 | # Check that we're running on A
111 | require-partition-offset(0, ${BOOT_A_PART_OFFSET})
112 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
113 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
114 |
115 | on-init {
116 | info("Preventing reverts to partition B")
117 | # Remove U-Boot variables that fwup uses to allow reverting images
118 | uboot_unsetenv(uboot-env, "b.nerves_fw_platform")
119 | uboot_unsetenv(uboot-env, "b.nerves_fw_architecture")
120 | # Clear out the image using TRIM. This requires --enable-trim
121 | trim(${ROOTFS_B_PART_OFFSET}, ${ROOTFS_B_PART_COUNT})
122 | trim(${BOOT_B_PART_OFFSET}, ${BOOT_B_PART_COUNT})
123 | }
124 | }
125 | task prevent-revert.fail {
126 | on-init {
127 | error("Error detecting active partition")
128 | }
129 | }
130 |
131 | ##
132 | # revert
133 | ##
134 | task revert.a {
135 | # This task reverts to the A partition, so check that we're running on B
136 | require-partition-offset(0, ${BOOT_B_PART_OFFSET})
137 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
138 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
139 |
140 | # Verify that partition A has the expected platform/architecture
141 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
142 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
143 |
144 | on-init {
145 | info("Reverting to partition A")
146 |
147 | # Switch over
148 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
149 | mbr_write(mbr-a)
150 | }
151 | }
152 |
153 | task revert.b {
154 | # This task reverts to the B partition, so check that we're running on A
155 | require-partition-offset(0, ${BOOT_A_PART_OFFSET})
156 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
157 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
158 |
159 | # Verify that partition B has the expected platform/architecture
160 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
161 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
162 |
163 | on-init {
164 | info("Reverting to partition B")
165 |
166 | # Switch over
167 | uboot_setenv(uboot-env, "nerves_fw_active", "b")
168 | mbr_write(mbr-b)
169 | }
170 | }
171 |
172 | task revert.unexpected.a {
173 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
174 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
175 | on-init {
176 | # Case where A is good, and the desire is to go to B.
177 | error("It doesn't look like there's anything to revert to in partition B.")
178 | }
179 | }
180 | task revert.unexpected.b {
181 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
182 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
183 | on-init {
184 | # Case where B is good, and the desire is to go to A.
185 | error("It doesn't look like there's anything to revert to in partition A.")
186 | }
187 | }
188 |
189 | task revert.wrongplatform {
190 | on-init {
191 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
192 | }
193 | }
194 |
195 | ##
196 | # status
197 | #
198 | # Run "fwup /usr/share/fwup/ops.fw -t status -d /dev/rootdisk0 -q -U" to check the status.
199 | ##
200 | task status.aa {
201 | require-path-at-offset("/", ${ROOTFS_A_PART_OFFSET})
202 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
203 | on-init { info("a") }
204 | }
205 | task status.ab {
206 | require-path-at-offset("/", ${ROOTFS_A_PART_OFFSET})
207 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
208 | on-init { info("a->b") }
209 | }
210 | task status.bb {
211 | require-path-at-offset("/", ${ROOTFS_B_PART_OFFSET})
212 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
213 | on-init { info("b") }
214 | }
215 | task status.ba {
216 | require-path-at-offset("/", ${ROOTFS_B_PART_OFFSET})
217 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
218 | on-init { info("b->a") }
219 | }
220 | task status.fail {
221 | on-init { error("fail") }
222 | }
223 |
224 | ##
225 | # validate
226 | #
227 | # The fwup configuration for this device always validates, so this doesn't do anything.
228 | ##
229 | task validate {
230 | on-init {
231 | info("Validate")
232 | uboot_setenv(uboot-env, "nerves_fw_validated", "1")
233 | }
234 | }
235 |
--------------------------------------------------------------------------------
/fwup.conf:
--------------------------------------------------------------------------------
1 | # Firmware configuration file for the Raspberry Pi
2 |
3 | require-fwup-version="0.15.0" # For the trim() call
4 |
5 | include("${NERVES_SDK_IMAGES:-.}/fwup_include/fwup-common.conf")
6 |
7 | # File resources are listed in the order that they are included in the .fw file
8 | # This is important, since this is the order that they're written on a firmware
9 | # update due to the event driven nature of the update system.
10 | file-resource bootcode.bin {
11 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/bootcode.bin"
12 | }
13 | file-resource fixup.dat {
14 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/fixup_x.dat"
15 | }
16 | file-resource start.elf {
17 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/start_x.elf"
18 | }
19 | file-resource config.txt {
20 | host-path = "${NERVES_SYSTEM}/images/config.txt"
21 | }
22 | file-resource cmdline.txt {
23 | host-path = "${NERVES_SYSTEM}/images/cmdline.txt"
24 | }
25 | file-resource zImage {
26 | host-path = "${NERVES_SYSTEM}/images/zImage"
27 | }
28 | file-resource bcm2708-rpi-zero-w.dtb {
29 | host-path = "${NERVES_SYSTEM}/images/bcm2708-rpi-zero-w.dtb"
30 | }
31 | file-resource bcm2708-rpi-zero.dtb {
32 | host-path = "${NERVES_SYSTEM}/images/bcm2708-rpi-zero.dtb"
33 | }
34 | file-resource bcm2708-rpi-b.dtb {
35 | host-path = "${NERVES_SYSTEM}/images/bcm2708-rpi-b.dtb"
36 | }
37 | file-resource bcm2708-rpi-b-plus.dtb {
38 | host-path = "${NERVES_SYSTEM}/images/bcm2708-rpi-b-plus.dtb"
39 | }
40 | file-resource bcm2708-rpi-cm.dtb {
41 | host-path = "${NERVES_SYSTEM}/images/bcm2708-rpi-cm.dtb"
42 | }
43 | file-resource w1-gpio-pullup.dtbo {
44 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/w1-gpio-pullup.dtbo"
45 | }
46 | file-resource miniuart-bt.dtbo {
47 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/miniuart-bt.dtbo"
48 | }
49 | file-resource ramoops.dtbo {
50 | host-path = "${NERVES_SYSTEM}/images/ramoops.dtb"
51 | }
52 | file-resource imx219.dtbo {
53 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx219.dtbo"
54 | }
55 | file-resource imx296.dtbo {
56 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx296.dtbo"
57 | }
58 | file-resource imx477.dtbo {
59 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx477.dtbo"
60 | }
61 | file-resource imx708.dtbo {
62 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx708.dtbo"
63 | }
64 | file-resource ov5647.dtbo {
65 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/ov5647.dtbo"
66 | }
67 | file-resource i2c-mux.dtbo {
68 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/i2c-mux.dtbo"
69 | }
70 | file-resource tc358743.dtbo {
71 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/tc358743.dtbo"
72 | }
73 |
74 | file-resource rootfs.img {
75 | host-path = ${ROOTFS}
76 |
77 | # Error out if the rootfs size exceeds the partition size
78 | assert-size-lte = ${ROOTFS_A_PART_COUNT}
79 | }
80 |
81 | mbr mbr-a {
82 | partition 0 {
83 | block-offset = ${BOOT_A_PART_OFFSET}
84 | block-count = ${BOOT_A_PART_COUNT}
85 | type = 0xc # FAT32
86 | boot = true
87 | }
88 | partition 1 {
89 | block-offset = ${ROOTFS_A_PART_OFFSET}
90 | block-count = ${ROOTFS_A_PART_COUNT}
91 | type = 0x83 # Linux
92 | }
93 | partition 2 {
94 | block-offset = ${APP_PART_OFFSET}
95 | block-count = ${APP_PART_COUNT}
96 | type = 0x83 # Linux
97 | expand = true
98 | }
99 | # partition 3 is unused
100 | }
101 |
102 | mbr mbr-b {
103 | partition 0 {
104 | block-offset = ${BOOT_B_PART_OFFSET}
105 | block-count = ${BOOT_B_PART_COUNT}
106 | type = 0xc # FAT32
107 | boot = true
108 | }
109 | partition 1 {
110 | block-offset = ${ROOTFS_B_PART_OFFSET}
111 | block-count = ${ROOTFS_B_PART_COUNT}
112 | type = 0x83 # Linux
113 | }
114 | partition 2 {
115 | block-offset = ${APP_PART_OFFSET}
116 | block-count = ${APP_PART_COUNT}
117 | type = 0x83 # Linux
118 | expand = true
119 | }
120 | # partition 3 is unused
121 | }
122 |
123 | # Location where installed firmware information is stored.
124 | # While this is called "u-boot", u-boot isn't involved in this
125 | # setup. It just provides a convenient key/value store format.
126 | uboot-environment uboot-env {
127 | block-offset = ${UBOOT_ENV_OFFSET}
128 | block-count = ${UBOOT_ENV_COUNT}
129 | }
130 |
131 | # This firmware task writes everything to the destination media
132 | task complete {
133 | # Only match if not mounted
134 | require-unmounted-destination = true
135 |
136 | on-init {
137 | mbr_write(mbr-a)
138 |
139 | fat_mkfs(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
140 | fat_setlabel(${BOOT_A_PART_OFFSET}, "BOOT-A")
141 | fat_mkdir(${BOOT_A_PART_OFFSET}, "overlays")
142 |
143 | uboot_clearenv(uboot-env)
144 |
145 | include("${NERVES_PROVISIONING}")
146 |
147 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
148 | uboot_setenv(uboot-env, "nerves_fw_devpath", ${NERVES_FW_DEVPATH})
149 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
150 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
151 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
152 | uboot_setenv(uboot-env, "a.nerves_fw_product", ${NERVES_FW_PRODUCT})
153 | uboot_setenv(uboot-env, "a.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
154 | uboot_setenv(uboot-env, "a.nerves_fw_version", ${NERVES_FW_VERSION})
155 | uboot_setenv(uboot-env, "a.nerves_fw_platform", ${NERVES_FW_PLATFORM})
156 | uboot_setenv(uboot-env, "a.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
157 | uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
158 | uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
159 | uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
160 | uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
161 | }
162 |
163 | on-resource config.txt { fat_write(${BOOT_A_PART_OFFSET}, "config.txt") }
164 | on-resource cmdline.txt { fat_write(${BOOT_A_PART_OFFSET}, "cmdline.txt") }
165 | on-resource bootcode.bin { fat_write(${BOOT_A_PART_OFFSET}, "bootcode.bin") }
166 | on-resource start.elf { fat_write(${BOOT_A_PART_OFFSET}, "start.elf") }
167 | on-resource fixup.dat { fat_write(${BOOT_A_PART_OFFSET}, "fixup.dat") }
168 | on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
169 | on-resource bcm2708-rpi-zero-w.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-zero-w.dtb") }
170 | on-resource bcm2708-rpi-zero.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-zero.dtb") }
171 | on-resource bcm2708-rpi-b.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-b.dtb") }
172 | on-resource bcm2708-rpi-b-plus.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-b-plus.dtb") }
173 | on-resource bcm2708-rpi-cm.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-cm.dtb") }
174 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
175 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
176 | on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }
177 | on-resource imx219.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx219.dtbo") }
178 | on-resource imx296.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx296.dtbo") }
179 | on-resource imx477.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx477.dtbo") }
180 | on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
181 | on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
182 | on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
183 | on-resource tc358743.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/tc358743.dtbo") }
184 |
185 | on-resource rootfs.img {
186 | # write to the first rootfs partition
187 | raw_write(${ROOTFS_A_PART_OFFSET})
188 | }
189 |
190 | on-finish {
191 | # Clear out any old data in the B partition that might be mistaken for
192 | # a file system. This is mostly to avoid confusion in humans when
193 | # reprogramming SDCards with unknown contents.
194 | raw_memset(${BOOT_B_PART_OFFSET}, 256, 0xff)
195 | raw_memset(${ROOTFS_B_PART_OFFSET}, 256, 0xff)
196 |
197 | # Invalidate the application data partition so that it is guaranteed to
198 | # trigger the corrupt filesystem detection code on first boot and get
199 | # formatted. If this isn't done and an old SDCard is reused, the
200 | # application data could be in a weird state.
201 | raw_memset(${APP_PART_OFFSET}, 256, 0xff)
202 | }
203 | }
204 |
205 | task upgrade.a {
206 | # This task upgrades the A partition
207 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
208 |
209 | # Verify the expected platform/architecture
210 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
211 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
212 |
213 | on-init {
214 | info("Upgrading partition A")
215 |
216 | # Clear some firmware information just in case this update gets
217 | # interrupted midway. If this partition was bootable, it's not going to
218 | # be soon.
219 | uboot_unsetenv(uboot-env, "a.nerves_fw_version")
220 | uboot_unsetenv(uboot-env, "a.nerves_fw_platform")
221 | uboot_unsetenv(uboot-env, "a.nerves_fw_architecture")
222 | uboot_unsetenv(uboot-env, "a.nerves_fw_uuid")
223 |
224 | # Reset the previous contents of the A boot partition
225 | fat_mkfs(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
226 | fat_setlabel(${BOOT_A_PART_OFFSET}, "BOOT-A")
227 | fat_mkdir(${BOOT_A_PART_OFFSET}, "overlays")
228 |
229 | # Indicate that the entire partition can be cleared
230 | trim(${ROOTFS_A_PART_OFFSET}, ${ROOTFS_A_PART_COUNT})
231 | }
232 |
233 | # Write the new boot partition files and rootfs. The MBR still points
234 | # to the B partition, so an error or power failure during this part
235 | # won't hurt anything.
236 | on-resource config.txt { fat_write(${BOOT_A_PART_OFFSET}, "config.txt") }
237 | on-resource cmdline.txt { fat_write(${BOOT_A_PART_OFFSET}, "cmdline.txt") }
238 | on-resource bootcode.bin { fat_write(${BOOT_A_PART_OFFSET}, "bootcode.bin") }
239 | on-resource start.elf { fat_write(${BOOT_A_PART_OFFSET}, "start.elf") }
240 | on-resource fixup.dat { fat_write(${BOOT_A_PART_OFFSET}, "fixup.dat") }
241 | on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
242 | on-resource bcm2708-rpi-zero-w.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-zero-w.dtb") }
243 | on-resource bcm2708-rpi-zero.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-zero.dtb") }
244 | on-resource bcm2708-rpi-b.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-b.dtb") }
245 | on-resource bcm2708-rpi-b-plus.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-b-plus.dtb") }
246 | on-resource bcm2708-rpi-cm.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2708-rpi-cm.dtb") }
247 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
248 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
249 | on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }
250 | on-resource imx219.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx219.dtbo") }
251 | on-resource imx296.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx296.dtbo") }
252 | on-resource imx477.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx477.dtbo") }
253 | on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
254 | on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
255 | on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
256 | on-resource tc358743.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/tc358743.dtbo") }
257 |
258 | on-resource rootfs.img {
259 | delta-source-raw-offset=${ROOTFS_B_PART_OFFSET}
260 | delta-source-raw-count=${ROOTFS_B_PART_COUNT}
261 | raw_write(${ROOTFS_A_PART_OFFSET})
262 | }
263 |
264 | on-finish {
265 | # Update firmware metadata
266 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
267 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
268 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
269 | uboot_setenv(uboot-env, "a.nerves_fw_product", ${NERVES_FW_PRODUCT})
270 | uboot_setenv(uboot-env, "a.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
271 | uboot_setenv(uboot-env, "a.nerves_fw_version", ${NERVES_FW_VERSION})
272 | uboot_setenv(uboot-env, "a.nerves_fw_platform", ${NERVES_FW_PLATFORM})
273 | uboot_setenv(uboot-env, "a.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
274 | uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
275 | uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
276 | uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
277 | uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
278 |
279 | # Switch over to boot the new firmware
280 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
281 | mbr_write(mbr-a)
282 | }
283 |
284 | on-error {
285 | }
286 | }
287 |
288 | task upgrade.b {
289 | # This task upgrades the B partition
290 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
291 |
292 | # Verify the expected platform/architecture
293 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
294 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
295 |
296 | on-init {
297 | info("Upgrading partition B")
298 |
299 | # Clear some firmware information just in case this update gets
300 | # interrupted midway.
301 | uboot_unsetenv(uboot-env, "b.nerves_fw_version")
302 | uboot_unsetenv(uboot-env, "b.nerves_fw_platform")
303 | uboot_unsetenv(uboot-env, "b.nerves_fw_architecture")
304 | uboot_unsetenv(uboot-env, "b.nerves_fw_uuid")
305 |
306 | # Reset the previous contents of the B boot partition
307 | fat_mkfs(${BOOT_B_PART_OFFSET}, ${BOOT_B_PART_COUNT})
308 | fat_setlabel(${BOOT_B_PART_OFFSET}, "BOOT-B")
309 | fat_mkdir(${BOOT_B_PART_OFFSET}, "overlays")
310 |
311 | trim(${ROOTFS_B_PART_OFFSET}, ${ROOTFS_B_PART_COUNT})
312 | }
313 |
314 | # Write the new boot partition files and rootfs. The MBR still points
315 | # to the A partition, so an error or power failure during this part
316 | # won't hurt anything.
317 | on-resource config.txt { fat_write(${BOOT_B_PART_OFFSET}, "config.txt") }
318 | on-resource cmdline.txt { fat_write(${BOOT_B_PART_OFFSET}, "cmdline.txt") }
319 | on-resource bootcode.bin { fat_write(${BOOT_B_PART_OFFSET}, "bootcode.bin") }
320 | on-resource start.elf { fat_write(${BOOT_B_PART_OFFSET}, "start.elf") }
321 | on-resource fixup.dat { fat_write(${BOOT_B_PART_OFFSET}, "fixup.dat") }
322 | on-resource zImage { fat_write(${BOOT_B_PART_OFFSET}, "zImage") }
323 | on-resource bcm2708-rpi-zero-w.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2708-rpi-zero-w.dtb") }
324 | on-resource bcm2708-rpi-zero.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2708-rpi-zero.dtb") }
325 | on-resource bcm2708-rpi-b.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2708-rpi-b.dtb") }
326 | on-resource bcm2708-rpi-b-plus.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2708-rpi-b-plus.dtb") }
327 | on-resource bcm2708-rpi-cm.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2708-rpi-cm.dtb") }
328 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
329 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
330 | on-resource ramoops.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ramoops.dtbo") }
331 | on-resource imx219.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx219.dtbo") }
332 | on-resource imx296.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx296.dtbo") }
333 | on-resource imx477.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx477.dtbo") }
334 | on-resource imx708.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx708.dtbo") }
335 | on-resource ov5647.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ov5647.dtbo") }
336 | on-resource i2c-mux.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
337 | on-resource tc358743.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/tc358743.dtbo") }
338 |
339 | on-resource rootfs.img {
340 | delta-source-raw-offset=${ROOTFS_A_PART_OFFSET}
341 | delta-source-raw-count=${ROOTFS_A_PART_COUNT}
342 | raw_write(${ROOTFS_B_PART_OFFSET})
343 | }
344 |
345 | on-finish {
346 | # Update firmware metadata
347 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
348 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
349 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
350 | uboot_setenv(uboot-env, "b.nerves_fw_product", ${NERVES_FW_PRODUCT})
351 | uboot_setenv(uboot-env, "b.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
352 | uboot_setenv(uboot-env, "b.nerves_fw_version", ${NERVES_FW_VERSION})
353 | uboot_setenv(uboot-env, "b.nerves_fw_platform", ${NERVES_FW_PLATFORM})
354 | uboot_setenv(uboot-env, "b.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
355 | uboot_setenv(uboot-env, "b.nerves_fw_author", ${NERVES_FW_AUTHOR})
356 | uboot_setenv(uboot-env, "b.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
357 | uboot_setenv(uboot-env, "b.nerves_fw_misc", ${NERVES_FW_MISC})
358 | uboot_setenv(uboot-env, "b.nerves_fw_uuid", "\${FWUP_META_UUID}")
359 |
360 | # Switch over to boot the new firmware
361 | uboot_setenv(uboot-env, "nerves_fw_active", "b")
362 | mbr_write(mbr-b)
363 | }
364 |
365 | on-error {
366 | }
367 | }
368 |
369 | task upgrade.unexpected {
370 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
371 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
372 | on-init {
373 | error("Please check the media being upgraded. It doesn't look like either the A or B partitions are active.")
374 | }
375 | }
376 |
377 | task upgrade.wrongplatform {
378 | on-init {
379 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
380 | }
381 | }
382 |
383 | task provision {
384 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
385 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
386 | on-init {
387 | include("${NERVES_PROVISIONING}")
388 | }
389 | }
390 | task provision.wrongplatform {
391 | on-init {
392 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
393 | }
394 | }
395 |
--------------------------------------------------------------------------------
/fwup_include/fwup-common.conf:
--------------------------------------------------------------------------------
1 | #
2 | # Firmware metadata
3 | #
4 |
5 | # All of these can be overriden using environment variables of the same name.
6 | #
7 | # Run 'fwup -m' to query values in a .fw file.
8 | # Use 'fw_printenv' to query values on the target.
9 | #
10 | # These are used by Nerves libraries to introspect.
11 | define(NERVES_FW_PRODUCT, "Nerves Firmware")
12 | define(NERVES_FW_DESCRIPTION, "")
13 | define(NERVES_FW_VERSION, "${NERVES_SDK_VERSION}")
14 | define(NERVES_FW_PLATFORM, "rpi")
15 | define(NERVES_FW_ARCHITECTURE, "arm")
16 | define(NERVES_FW_AUTHOR, "The Nerves Team")
17 |
18 | define(NERVES_FW_DEVPATH, "/dev/mmcblk0")
19 | define(NERVES_FW_APPLICATION_PART0_DEVPATH, "/dev/mmcblk0p3") # Linux part number is 1-based
20 | define(NERVES_FW_APPLICATION_PART0_FSTYPE, "ext4")
21 | define(NERVES_FW_APPLICATION_PART0_TARGET, "/root")
22 | define(NERVES_PROVISIONING, "${NERVES_SYSTEM}/images/fwup_include/provisioning.conf")
23 |
24 | # Default paths if not specified via the commandline
25 | define(ROOTFS, "${NERVES_SYSTEM}/images/rootfs.squashfs")
26 |
27 | # This configuration file will create an image that has an MBR and the
28 | # following 3 partitions:
29 | #
30 | # +----------------------------+
31 | # | MBR |
32 | # +----------------------------+
33 | # | Firmware configuration data|
34 | # | (formatted as uboot env) |
35 | # +----------------------------+
36 | # | p0*: Boot A (FAT32) |
37 | # | zImage, bootcode.bin, |
38 | # | config.txt, etc. |
39 | # +----------------------------+
40 | # | p0*: Boot B (FAT32) |
41 | # +----------------------------+
42 | # | p1*: Rootfs A (squashfs) |
43 | # +----------------------------+
44 | # | p1*: Rootfs B (squashfs) |
45 | # +----------------------------+
46 | # | p2: Application (ext4) |
47 | # +----------------------------+
48 | #
49 | # The p0/p1 partition points to whichever of configurations A or B that is
50 | # active.
51 | #
52 | # The image is sized to be less than 1 GB so that it fits on nearly any SDCard
53 | # around. If you have a larger SDCard and need more space, feel free to bump
54 | # the partition sizes below.
55 |
56 | # The Raspberry Pi is incredibly picky on the partition sizes and in ways that
57 | # I don't understand. Test changes one at a time to make sure that they boot.
58 | # (Sizes are in 512 byte blocks)
59 | define(UBOOT_ENV_OFFSET, 16)
60 | define(UBOOT_ENV_COUNT, 16) # 8 KB
61 |
62 | define(BOOT_A_PART_OFFSET, 63)
63 | define(BOOT_A_PART_COUNT, 38630)
64 | define-eval(BOOT_B_PART_OFFSET, "${BOOT_A_PART_OFFSET} + ${BOOT_A_PART_COUNT}")
65 | define(BOOT_B_PART_COUNT, ${BOOT_A_PART_COUNT})
66 |
67 | # Let the rootfs have room to grow up to 128 MiB and align it to the nearest 1
68 | # MB boundary
69 | define(ROOTFS_A_PART_OFFSET, 77324)
70 | define(ROOTFS_A_PART_COUNT, 289044)
71 | define-eval(ROOTFS_B_PART_OFFSET, "${ROOTFS_A_PART_OFFSET} + ${ROOTFS_A_PART_COUNT}")
72 | define(ROOTFS_B_PART_COUNT, ${ROOTFS_A_PART_COUNT})
73 |
74 | # Application partition. This partition can occupy all of the remaining space.
75 | # Size it to fit the destination.
76 | define-eval(APP_PART_OFFSET, "${ROOTFS_B_PART_OFFSET} + ${ROOTFS_B_PART_COUNT}")
77 | define(APP_PART_COUNT, 1048576)
78 |
79 | # Firmware archive metadata
80 | meta-product = ${NERVES_FW_PRODUCT}
81 | meta-description = ${NERVES_FW_DESCRIPTION}
82 | meta-version = ${NERVES_FW_VERSION}
83 | meta-platform = ${NERVES_FW_PLATFORM}
84 | meta-architecture = ${NERVES_FW_ARCHITECTURE}
85 | meta-author = ${NERVES_FW_AUTHOR}
86 | meta-vcs-identifier = ${NERVES_FW_VCS_IDENTIFIER}
87 | meta-misc = ${NERVES_FW_MISC}
88 |
--------------------------------------------------------------------------------
/fwup_include/provisioning.conf:
--------------------------------------------------------------------------------
1 | # Support setting device serial numbers when creating MicroSD cards.
2 | # Note that the '$' is escaped so that environment variable replacement
3 | # happens at "burn" time rather than at firmware creation time. No
4 | # serial numbers are stored in the .fw file. If left blank, the device
5 | # will default to a built-in ID.
6 | uboot_setenv(uboot-env, "nerves_serial_number", "\${NERVES_SERIAL_NUMBER}")
7 |
--------------------------------------------------------------------------------
/linux-6.6.defconfig:
--------------------------------------------------------------------------------
1 | # CONFIG_LOCALVERSION_AUTO is not set
2 | CONFIG_KERNEL_XZ=y
3 | CONFIG_SYSVIPC=y
4 | CONFIG_POSIX_MQUEUE=y
5 | CONFIG_NO_HZ=y
6 | CONFIG_HIGH_RES_TIMERS=y
7 | CONFIG_PREEMPT_RT=y
8 | CONFIG_IKCONFIG=y
9 | CONFIG_IKCONFIG_PROC=y
10 | CONFIG_MEMCG=y
11 | CONFIG_BLK_CGROUP=y
12 | CONFIG_RT_GROUP_SCHED=y
13 | CONFIG_CGROUP_PIDS=y
14 | CONFIG_CGROUP_FREEZER=y
15 | CONFIG_CGROUP_DEVICE=y
16 | CONFIG_CGROUP_CPUACCT=y
17 | CONFIG_NAMESPACES=y
18 | # CONFIG_UTS_NS is not set
19 | # CONFIG_IPC_NS is not set
20 | # CONFIG_PID_NS is not set
21 | # CONFIG_NET_NS is not set
22 | CONFIG_SCHED_AUTOGROUP=y
23 | CONFIG_EXPERT=y
24 | # CONFIG_PERF_EVENTS is not set
25 | CONFIG_PROFILING=y
26 | CONFIG_ARCH_MULTI_V6=y
27 | # CONFIG_ARCH_MULTI_V7 is not set
28 | CONFIG_ARCH_BCM=y
29 | CONFIG_ARCH_BCM2835=y
30 | # CONFIG_CACHE_L2X0 is not set
31 | # CONFIG_CPU_SW_DOMAIN_PAN is not set
32 | CONFIG_UACCESS_WITH_MEMCPY=y
33 | # CONFIG_ATAGS is not set
34 | CONFIG_CMDLINE="console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
35 | CONFIG_CPU_FREQ=y
36 | CONFIG_CPU_FREQ_STAT=y
37 | CONFIG_CPU_FREQ_GOV_POWERSAVE=y
38 | CONFIG_CPU_FREQ_GOV_USERSPACE=y
39 | CONFIG_CPU_FREQ_GOV_ONDEMAND=y
40 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
41 | CONFIG_CPUFREQ_DT=y
42 | CONFIG_ARM_RASPBERRYPI_CPUFREQ=y
43 | CONFIG_VFP=y
44 | # CONFIG_SUSPEND is not set
45 | CONFIG_PM=y
46 | CONFIG_MODULES=y
47 | CONFIG_MODULE_UNLOAD=y
48 | CONFIG_MODVERSIONS=y
49 | CONFIG_PARTITION_ADVANCED=y
50 | # CONFIG_EFI_PARTITION is not set
51 | # CONFIG_MQ_IOSCHED_DEADLINE is not set
52 | # CONFIG_MQ_IOSCHED_KYBER is not set
53 | CONFIG_SLAB_FREELIST_RANDOM=y
54 | # CONFIG_COMPAT_BRK is not set
55 | CONFIG_CMA=y
56 | CONFIG_NET=y
57 | CONFIG_PACKET=y
58 | CONFIG_UNIX=y
59 | CONFIG_INET=y
60 | CONFIG_IP_MULTICAST=y
61 | CONFIG_IP_ADVANCED_ROUTER=y
62 | CONFIG_IP_MULTIPLE_TABLES=y
63 | # CONFIG_INET_DIAG is not set
64 | # CONFIG_IPV6_SIT is not set
65 | CONFIG_BRIDGE=m
66 | CONFIG_CFG80211=m
67 | CONFIG_MAC80211=m
68 | CONFIG_MAC80211_MESH=y
69 | CONFIG_RFKILL=y
70 | CONFIG_DEVTMPFS=y
71 | CONFIG_DEVTMPFS_MOUNT=y
72 | CONFIG_CONNECTOR=m
73 | CONFIG_RASPBERRYPI_FIRMWARE=y
74 | CONFIG_OF_CONFIGFS=y
75 | CONFIG_BLK_DEV_LOOP=y
76 | CONFIG_BLK_DEV_RAM=y
77 | CONFIG_EEPROM_AT24=m
78 | CONFIG_SCSI=y
79 | # CONFIG_SCSI_PROC_FS is not set
80 | CONFIG_BLK_DEV_SD=y
81 | CONFIG_CHR_DEV_SG=m
82 | CONFIG_NETDEVICES=y
83 | CONFIG_WIREGUARD=m
84 | CONFIG_TUN=m
85 | # CONFIG_NET_VENDOR_AMAZON is not set
86 | # CONFIG_NET_VENDOR_ARC is not set
87 | # CONFIG_NET_VENDOR_BROADCOM is not set
88 | # CONFIG_NET_VENDOR_CIRRUS is not set
89 | # CONFIG_NET_VENDOR_EZCHIP is not set
90 | # CONFIG_NET_VENDOR_FARADAY is not set
91 | # CONFIG_NET_VENDOR_HISILICON is not set
92 | # CONFIG_NET_VENDOR_INTEL is not set
93 | # CONFIG_NET_VENDOR_MARVELL is not set
94 | # CONFIG_NET_VENDOR_MICREL is not set
95 | # CONFIG_NET_VENDOR_MICROCHIP is not set
96 | # CONFIG_NET_VENDOR_NATSEMI is not set
97 | # CONFIG_NET_VENDOR_NETRONOME is not set
98 | # CONFIG_NET_VENDOR_QUALCOMM is not set
99 | # CONFIG_NET_VENDOR_RENESAS is not set
100 | # CONFIG_NET_VENDOR_ROCKER is not set
101 | # CONFIG_NET_VENDOR_SAMSUNG is not set
102 | # CONFIG_NET_VENDOR_SEEQ is not set
103 | # CONFIG_NET_VENDOR_SMSC is not set
104 | # CONFIG_NET_VENDOR_STMICRO is not set
105 | # CONFIG_NET_VENDOR_SYNOPSYS is not set
106 | # CONFIG_NET_VENDOR_VIA is not set
107 | # CONFIG_NET_VENDOR_WIZNET is not set
108 | CONFIG_USB_USBNET=y
109 | # CONFIG_USB_NET_AX8817X is not set
110 | # CONFIG_USB_NET_AX88179_178A is not set
111 | CONFIG_USB_NET_CDCETHER=m
112 | CONFIG_USB_NET_CDC_NCM=m
113 | CONFIG_USB_NET_SMSC95XX=y
114 | # CONFIG_USB_NET_NET1080 is not set
115 | # CONFIG_USB_NET_CDC_SUBSET is not set
116 | # CONFIG_USB_NET_ZAURUS is not set
117 | CONFIG_USB_NET_QMI_WWAN=m
118 | # CONFIG_WLAN_VENDOR_ADMTEK is not set
119 | # CONFIG_WLAN_VENDOR_ATH is not set
120 | # CONFIG_WLAN_VENDOR_ATMEL is not set
121 | CONFIG_BRCMFMAC=m
122 | # CONFIG_WLAN_VENDOR_CISCO is not set
123 | # CONFIG_WLAN_VENDOR_INTEL is not set
124 | # CONFIG_WLAN_VENDOR_INTERSIL is not set
125 | # CONFIG_WLAN_VENDOR_MARVELL is not set
126 | # CONFIG_WLAN_VENDOR_MEDIATEK is not set
127 | CONFIG_RT2X00=m
128 | CONFIG_RT2800USB=m
129 | CONFIG_RT2800USB_RT53XX=y
130 | # CONFIG_WLAN_VENDOR_REALTEK is not set
131 | # CONFIG_WLAN_VENDOR_RSI is not set
132 | # CONFIG_WLAN_VENDOR_ST is not set
133 | # CONFIG_WLAN_VENDOR_TI is not set
134 | # CONFIG_WLAN_VENDOR_ZYDAS is not set
135 | # CONFIG_INPUT_LEDS is not set
136 | CONFIG_INPUT_FF_MEMLESS=y
137 | # CONFIG_INPUT_KEYBOARD is not set
138 | # CONFIG_INPUT_MOUSE is not set
139 | CONFIG_INPUT_JOYSTICK=y
140 | CONFIG_INPUT_TOUCHSCREEN=y
141 | CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
142 | CONFIG_INPUT_MISC=y
143 | CONFIG_INPUT_AD714X=m
144 | # CONFIG_SERIO is not set
145 | CONFIG_BRCM_CHAR_DRIVERS=y
146 | CONFIG_BCM_VCIO=y
147 | # CONFIG_LEGACY_PTYS is not set
148 | CONFIG_SERIAL_8250=y
149 | # CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
150 | CONFIG_SERIAL_8250_CONSOLE=y
151 | CONFIG_SERIAL_8250_NR_UARTS=1
152 | CONFIG_SERIAL_8250_RUNTIME_UARTS=0
153 | CONFIG_SERIAL_8250_EXTENDED=y
154 | CONFIG_SERIAL_8250_SHARE_IRQ=y
155 | CONFIG_SERIAL_8250_BCM2835AUX=y
156 | CONFIG_SERIAL_OF_PLATFORM=y
157 | CONFIG_SERIAL_AMBA_PL011=y
158 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
159 | CONFIG_HW_RANDOM=y
160 | CONFIG_I2C=y
161 | CONFIG_I2C_CHARDEV=y
162 | CONFIG_I2C_MUX_PINCTRL=m
163 | CONFIG_I2C_BCM2708=y
164 | CONFIG_I2C_BCM2835=y
165 | CONFIG_SPI=y
166 | CONFIG_SPI_BCM2835=y
167 | CONFIG_SPI_BCM2835AUX=y
168 | CONFIG_SPI_SPIDEV=y
169 | # CONFIG_PTP_1588_CLOCK is not set
170 | CONFIG_GPIO_BCM_VIRT=y
171 | CONFIG_W1=m
172 | CONFIG_W1_MASTER_GPIO=m
173 | CONFIG_W1_SLAVE_THERM=m
174 | CONFIG_POWER_RESET=y
175 | CONFIG_POWER_RESET_GPIO=y
176 | CONFIG_POWER_SUPPLY=y
177 | # CONFIG_HWMON is not set
178 | CONFIG_THERMAL=y
179 | CONFIG_BCM2835_THERMAL=y
180 | CONFIG_WATCHDOG=y
181 | CONFIG_WATCHDOG_NOWAYOUT=y
182 | CONFIG_BCM2835_WDT=y
183 | CONFIG_BCMA=m
184 | CONFIG_REGULATOR=y
185 | CONFIG_REGULATOR_FIXED_VOLTAGE=y
186 | CONFIG_REGULATOR_AD5398=m
187 | CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=m
188 | CONFIG_MEDIA_SUPPORT=m
189 | CONFIG_MEDIA_SUPPORT_FILTER=y
190 | CONFIG_MEDIA_CAMERA_SUPPORT=y
191 | CONFIG_MEDIA_PLATFORM_SUPPORT=y
192 | CONFIG_V4L_PLATFORM_DRIVERS=y
193 | CONFIG_VIDEO_BCM2835_UNICAM=m
194 | CONFIG_VIDEO_RASPBERRYPI_PISP_BE=m
195 | CONFIG_VIDEO_IMX219=m
196 | CONFIG_VIDEO_IMX296=m
197 | CONFIG_VIDEO_IMX477=m
198 | CONFIG_VIDEO_IMX708=m
199 | CONFIG_VIDEO_OV5647=m
200 | CONFIG_VIDEO_AD5398=m
201 | CONFIG_VIDEO_DW9807_VCM=m
202 | CONFIG_DRM=m
203 | CONFIG_DRM_LOAD_EDID_FIRMWARE=y
204 | CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
205 | CONFIG_DRM_VC4=m
206 | CONFIG_DRM_VC4_HDMI_CEC=y
207 | CONFIG_TINYDRM_REPAPER=m
208 | CONFIG_FB=y
209 | CONFIG_FB_BCM2708=y
210 | CONFIG_FB_RPISENSE=m
211 | CONFIG_BACKLIGHT_CLASS_DEVICE=m
212 | CONFIG_BACKLIGHT_RPI=m
213 | CONFIG_LOGO=y
214 | # CONFIG_LOGO_LINUX_MONO is not set
215 | # CONFIG_LOGO_LINUX_VGA16 is not set
216 | CONFIG_SOUND=y
217 | CONFIG_SND=m
218 | # CONFIG_SND_SUPPORT_OLD_API is not set
219 | CONFIG_SND_SEQUENCER=m
220 | CONFIG_SND_ALOOP=m
221 | CONFIG_SND_SOC=m
222 | CONFIG_SND_BCM2835_SOC_I2S=m
223 | CONFIG_SND_BCM2708_SOC_GOOGLEVOICEHAT_SOUNDCARD=m
224 | CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC=m
225 | CONFIG_SND_SIMPLE_CARD=m
226 | CONFIG_HIDRAW=y
227 | CONFIG_HID_APPLE=m
228 | CONFIG_HID_PID=y
229 | CONFIG_USB_HIDDEV=y
230 | CONFIG_USB=y
231 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
232 | CONFIG_USB_DWCOTG=y
233 | CONFIG_USB_ACM=y
234 | CONFIG_USB_STORAGE=y
235 | CONFIG_USB_SERIAL=y
236 | CONFIG_USB_SERIAL_CH341=y
237 | CONFIG_USB_SERIAL_CP210X=y
238 | CONFIG_USB_SERIAL_FTDI_SIO=y
239 | CONFIG_USB_SERIAL_PL2303=m
240 | CONFIG_USB_SERIAL_OPTION=m
241 | CONFIG_NOP_USB_XCEIV=y
242 | CONFIG_MMC=y
243 | CONFIG_MMC_BLOCK_MINORS=32
244 | CONFIG_MMC_BCM2835_MMC=y
245 | CONFIG_MMC_BCM2835_DMA=y
246 | CONFIG_MMC_BCM2835_SDHOST=y
247 | CONFIG_MMC_SDHCI=y
248 | CONFIG_MMC_SDHCI_PLTFM=y
249 | CONFIG_NEW_LEDS=y
250 | CONFIG_LEDS_CLASS=y
251 | CONFIG_LEDS_GPIO=y
252 | CONFIG_LEDS_TRIGGERS=y
253 | CONFIG_LEDS_TRIGGER_TIMER=y
254 | CONFIG_LEDS_TRIGGER_ONESHOT=y
255 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y
256 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y
257 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
258 | CONFIG_LEDS_TRIGGER_TRANSIENT=y
259 | CONFIG_LEDS_TRIGGER_INPUT=y
260 | CONFIG_LEDS_TRIGGER_PANIC=y
261 | CONFIG_LEDS_TRIGGER_PATTERN=y
262 | CONFIG_RTC_CLASS=y
263 | # CONFIG_RTC_HCTOSYS is not set
264 | CONFIG_DMADEVICES=y
265 | CONFIG_DMA_BCM2835=y
266 | CONFIG_DMA_BCM2708=y
267 | CONFIG_DMABUF_HEAPS=y
268 | CONFIG_DMABUF_HEAPS_SYSTEM=y
269 | CONFIG_DMABUF_HEAPS_CMA=y
270 | CONFIG_STAGING=y
271 | CONFIG_R8712U=m
272 | CONFIG_STAGING_MEDIA=y
273 | CONFIG_BCM2835_VCHIQ=y
274 | CONFIG_SND_BCM2835=m
275 | CONFIG_VIDEO_BCM2835=m
276 | CONFIG_VIDEO_CODEC_BCM2835=m
277 | CONFIG_VIDEO_ISP_BCM2835=m
278 | CONFIG_CLK_RASPBERRYPI=y
279 | CONFIG_MAILBOX=y
280 | CONFIG_BCM2835_MBOX=y
281 | # CONFIG_IOMMU_SUPPORT is not set
282 | CONFIG_RASPBERRYPI_POWER=y
283 | CONFIG_PWM=y
284 | CONFIG_PWM_BCM2835=m
285 | CONFIG_PWM_RASPBERRYPI_POE=m
286 | CONFIG_EXT4_FS=y
287 | CONFIG_FANOTIFY=y
288 | CONFIG_VFAT_FS=y
289 | CONFIG_TMPFS=y
290 | CONFIG_SQUASHFS=y
291 | CONFIG_SQUASHFS_FILE_DIRECT=y
292 | CONFIG_SQUASHFS_COMPILE_DECOMP_MULTI_PERCPU=y
293 | CONFIG_PSTORE=y
294 | CONFIG_PSTORE_CONSOLE=y
295 | CONFIG_PSTORE_PMSG=y
296 | CONFIG_PSTORE_RAM=y
297 | # CONFIG_NETWORK_FILESYSTEMS is not set
298 | CONFIG_NLS_DEFAULT="utf8"
299 | CONFIG_NLS_CODEPAGE_437=y
300 | CONFIG_NLS_CODEPAGE_850=y
301 | CONFIG_NLS_ASCII=y
302 | CONFIG_NLS_ISO8859_1=y
303 | CONFIG_NLS_UTF8=y
304 | # CONFIG_CRYPTO_HW is not set
305 | CONFIG_DMA_CMA=y
306 | CONFIG_CMA_SIZE_MBYTES=5
307 | CONFIG_PRINTK_TIME=y
308 | CONFIG_PANIC_TIMEOUT=10
309 | # CONFIG_FTRACE is not set
310 |
--------------------------------------------------------------------------------
/linux/0001-squashfs-provide-backing_dev_info-in-order-to-disabl.patch:
--------------------------------------------------------------------------------
1 | From 9eec1d897139e5de287af5d559a02b811b844d82 Mon Sep 17 00:00:00 2001
2 | From: Zheng Liang
3 | Date: Fri, 14 Jan 2022 14:03:31 -0800
4 | Subject: [PATCH] squashfs: provide backing_dev_info in order to disable
5 | read-ahead
6 |
7 | Commit c1f6925e1091 ("mm: put readahead pages in cache earlier") causes
8 | the read performance of squashfs to deteriorate.Through testing, we find
9 | that the performance will be back by closing the readahead of squashfs.
10 |
11 | So we want to learn the way of ubifs, provides backing_dev_info and
12 | disable read-ahead
13 |
14 | We tested the following data by fio.
15 | squashfs image blocksize=128K
16 | test command:
17 |
18 | fio --name basic --bs=? --filename="/mnt/test_file" --rw=? --iodepth=1 --ioengine=psync --runtime=200 --time_based
19 |
20 | turn on squashfs readahead in 5.10 kernel
21 | bs(k) read/randread MB/s
22 | 4 randread 271
23 | 128 randread 231
24 | 1024 randread 246
25 | 4 read 310
26 | 128 read 245
27 | 1024 read 247
28 |
29 | turn off squashfs readahead in 5.10 kernel
30 | bs(k) read/randread MB/s
31 | 4 randread 293
32 | 128 randread 330
33 | 1024 randread 363
34 | 4 read 338
35 | 128 read 360
36 | 1024 read 365
37 |
38 | turn on squashfs readahead and revert the
39 | commit c1f6925e1091("mm: put readahead
40 | pages in cache earlier") in 5.10 kernel
41 | bs(k) read/randread MB/s
42 | 4 randread 289
43 | 128 randread 306
44 | 1024 randread 335
45 | 4 read 337
46 | 128 read 336
47 | 1024 read 338
48 |
49 | Link: https://lkml.kernel.org/r/20211116113141.1391026-1-zhengliang6@huawei.com
50 | Signed-off-by: Zheng Liang
51 | Reviewed-by: Phillip Lougher
52 | Cc: Zhang Yi
53 | Cc: Hou Tao
54 | Cc: Miao Xie
55 | Signed-off-by: Andrew Morton
56 | Signed-off-by: Linus Torvalds
57 | ---
58 | fs/squashfs/super.c | 33 +++++++++++++++++++++++++++++++++
59 | 1 file changed, 33 insertions(+)
60 |
61 | diff --git a/fs/squashfs/super.c b/fs/squashfs/super.c
62 | index bb44ff4c5cc6..b1b556dbce12 100644
63 | --- a/fs/squashfs/super.c
64 | +++ b/fs/squashfs/super.c
65 | @@ -29,6 +29,7 @@
66 | #include
67 | #include
68 | #include
69 | +#include
70 |
71 | #include "squashfs_fs.h"
72 | #include "squashfs_fs_sb.h"
73 | @@ -112,6 +113,24 @@ static const struct squashfs_decompressor *supported_squashfs_filesystem(
74 | return decompressor;
75 | }
76 |
77 | +static int squashfs_bdi_init(struct super_block *sb)
78 | +{
79 | + int err;
80 | + unsigned int major = MAJOR(sb->s_dev);
81 | + unsigned int minor = MINOR(sb->s_dev);
82 | +
83 | + bdi_put(sb->s_bdi);
84 | + sb->s_bdi = &noop_backing_dev_info;
85 | +
86 | + err = super_setup_bdi_name(sb, "squashfs_%u_%u", major, minor);
87 | + if (err)
88 | + return err;
89 | +
90 | + sb->s_bdi->ra_pages = 0;
91 | + sb->s_bdi->io_pages = 0;
92 | +
93 | + return 0;
94 | +}
95 |
96 | static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
97 | {
98 | @@ -127,6 +146,20 @@ static int squashfs_fill_super(struct super_block *sb, struct fs_context *fc)
99 |
100 | TRACE("Entered squashfs_fill_superblock\n");
101 |
102 | + /*
103 | + * squashfs provides 'backing_dev_info' in order to disable read-ahead. For
104 | + * squashfs, I/O is not deferred, it is done immediately in readpage,
105 | + * which means the user would always have to wait their own I/O. So the effect
106 | + * of readahead is very weak for squashfs. squashfs_bdi_init will set
107 | + * sb->s_bdi->ra_pages and sb->s_bdi->io_pages to 0 and close readahead for
108 | + * squashfs.
109 | + */
110 | + err = squashfs_bdi_init(sb);
111 | + if (err) {
112 | + errorf(fc, "squashfs init bdi failed");
113 | + return err;
114 | + }
115 | +
116 | sb->s_fs_info = kzalloc(sizeof(*msblk), GFP_KERNEL);
117 | if (sb->s_fs_info == NULL) {
118 | ERROR("Failed to allocate squashfs_sb_info\n");
119 | --
120 | 2.25.1
121 |
122 |
--------------------------------------------------------------------------------
/mix.exs:
--------------------------------------------------------------------------------
1 | defmodule NervesSystemRpi.MixProject do
2 | use Mix.Project
3 |
4 | @github_organization "nerves-project"
5 | @app :nerves_system_rpi
6 | @source_url "https://github.com/#{@github_organization}/#{@app}"
7 | @version Path.join(__DIR__, "VERSION")
8 | |> File.read!()
9 | |> String.trim()
10 |
11 | def project do
12 | [
13 | app: @app,
14 | version: @version,
15 | # Because we're using OTP 27, we need to enforce Elixir 1.17 or later.
16 | elixir: "~> 1.17",
17 | compilers: Mix.compilers() ++ [:nerves_package],
18 | nerves_package: nerves_package(),
19 | description: description(),
20 | package: package(),
21 | deps: deps(),
22 | aliases: [loadconfig: [&bootstrap/1]],
23 | docs: docs(),
24 | preferred_cli_env: %{
25 | docs: :docs,
26 | "hex.build": :docs,
27 | "hex.publish": :docs
28 | }
29 | ]
30 | end
31 |
32 | def application do
33 | []
34 | end
35 |
36 | defp bootstrap(args) do
37 | set_target()
38 | Application.start(:nerves_bootstrap)
39 | Mix.Task.run("loadconfig", args)
40 | end
41 |
42 | defp nerves_package do
43 | [
44 | type: :system,
45 | artifact_sites: [
46 | {:github_releases, "#{@github_organization}/#{@app}"}
47 | ],
48 | build_runner_opts: build_runner_opts(),
49 | platform: Nerves.System.BR,
50 | platform_config: [
51 | defconfig: "nerves_defconfig"
52 | ],
53 | # The :env key is an optional experimental feature for adding environment
54 | # variables to the crosscompile environment. These are intended for
55 | # llvm-based tooling that may need more precise processor information.
56 | env: [
57 | {"TARGET_ARCH", "arm"},
58 | {"TARGET_CPU", "arm1176jzf_s"},
59 | {"TARGET_OS", "linux"},
60 | {"TARGET_ABI", "gnueabihf"},
61 | {"TARGET_GCC_FLAGS",
62 | "-mabi=aapcs-linux -mfpu=vfp -marm -fstack-protector-strong -mfloat-abi=hard -mcpu=arm1176jzf-s -fPIE -pie -Wl,-z,now -Wl,-z,relro"}
63 | ],
64 | checksum: package_files()
65 | ]
66 | end
67 |
68 | defp deps do
69 | [
70 | {:nerves, "~> 1.11", runtime: false},
71 | {:nerves_system_br, "1.31.1", runtime: false},
72 | {:nerves_toolchain_armv6_nerves_linux_gnueabihf, "~> 13.2.0", runtime: false},
73 | {:nerves_system_linter, "~> 0.4", only: [:dev, :test], runtime: false},
74 | {:ex_doc, "~> 0.22", only: :docs, runtime: false}
75 | ]
76 | end
77 |
78 | defp description do
79 | """
80 | Nerves System - Raspberry Pi A+ / B+ / B
81 | """
82 | end
83 |
84 | defp docs do
85 | [
86 | extras: ["README.md", "CHANGELOG.md"],
87 | main: "readme",
88 | assets: %{"assets" => "./assets"},
89 | source_ref: "v#{@version}",
90 | source_url: @source_url,
91 | skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
92 | ]
93 | end
94 |
95 | defp package do
96 | [
97 | files: package_files(),
98 | licenses: ["GPL-2.0-only", "GPL-2.0-or-later"],
99 | links: %{
100 | "GitHub" => @source_url,
101 | "REUSE Compliance" =>
102 | "https://api.reuse.software/info/github.com/nerves-project/nerves_system_rpi"
103 | }
104 | ]
105 | end
106 |
107 | defp package_files do
108 | [
109 | "fwup_include",
110 | "rootfs_overlay",
111 | "CHANGELOG.md",
112 | "cmdline.txt",
113 | "config.txt",
114 | "fwup-ops.conf",
115 | "fwup.conf",
116 | "LICENSES/*",
117 | "linux-6.6.defconfig",
118 | "mix.exs",
119 | "nerves_defconfig",
120 | "post-build.sh",
121 | "post-createfs.sh",
122 | "ramoops.dts",
123 | "README.md",
124 | "REUSE.toml",
125 | "VERSION"
126 | ]
127 | end
128 |
129 | defp build_runner_opts() do
130 | # Download source files first to get download errors right away.
131 | [make_args: primary_site() ++ ["source", "all", "legal-info"]]
132 | end
133 |
134 | defp primary_site() do
135 | case System.get_env("BR2_PRIMARY_SITE") do
136 | nil -> []
137 | primary_site -> ["BR2_PRIMARY_SITE=#{primary_site}"]
138 | end
139 | end
140 |
141 | defp set_target() do
142 | if function_exported?(Mix, :target, 1) do
143 | apply(Mix, :target, [:target])
144 | else
145 | System.put_env("MIX_TARGET", "target")
146 | end
147 | end
148 | end
149 |
--------------------------------------------------------------------------------
/mix.lock:
--------------------------------------------------------------------------------
1 | %{
2 | "castore": {:hex, :castore, "1.0.14", "4582dd7d630b48cf5e1ca8d3d42494db51e406b7ba704e81fbd401866366896a", [:mix], [], "hexpm", "7bc1b65249d31701393edaaac18ec8398d8974d52c647b7904d01b964137b9f4"},
3 | "earmark_parser": {:hex, :earmark_parser, "1.4.44", "f20830dd6b5c77afe2b063777ddbbff09f9759396500cdbe7523efd58d7a339c", [:mix], [], "hexpm", "4778ac752b4701a5599215f7030989c989ffdc4f6df457c5f36938cc2d2a2750"},
4 | "elixir_make": {:hex, :elixir_make, "0.9.0", "6484b3cd8c0cee58f09f05ecaf1a140a8c97670671a6a0e7ab4dc326c3109726", [:mix], [], "hexpm", "db23d4fd8b757462ad02f8aa73431a426fe6671c80b200d9710caf3d1dd0ffdb"},
5 | "ex_doc": {:hex, :ex_doc, "0.38.2", "504d25eef296b4dec3b8e33e810bc8b5344d565998cd83914ffe1b8503737c02", [:mix], [{:earmark_parser, "~> 1.4.44", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.0", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14 or ~> 1.0", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1 or ~> 1.0", [hex: :makeup_erlang, repo: "hexpm", optional: false]}, {:makeup_html, ">= 0.1.0", [hex: :makeup_html, repo: "hexpm", optional: true]}], "hexpm", "732f2d972e42c116a70802f9898c51b54916e542cc50968ac6980512ec90f42b"},
6 | "jason": {:hex, :jason, "1.4.4", "b9226785a9aa77b6857ca22832cffa5d5011a667207eb2a0ad56adb5db443b8a", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "c5eb0cab91f094599f94d55bc63409236a8ec69a21a67814529e8d5f6cc90b3b"},
7 | "makeup": {:hex, :makeup, "1.2.1", "e90ac1c65589ef354378def3ba19d401e739ee7ee06fb47f94c687016e3713d1", [:mix], [{:nimble_parsec, "~> 1.4", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "d36484867b0bae0fea568d10131197a4c2e47056a6fbe84922bf6ba71c8d17ce"},
8 | "makeup_elixir": {:hex, :makeup_elixir, "1.0.1", "e928a4f984e795e41e3abd27bfc09f51db16ab8ba1aebdba2b3a575437efafc2", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "7284900d412a3e5cfd97fdaed4f5ed389b8f2b4cb49efc0eb3bd10e2febf9507"},
9 | "makeup_erlang": {:hex, :makeup_erlang, "1.0.2", "03e1804074b3aa64d5fad7aa64601ed0fb395337b982d9bcf04029d68d51b6a7", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "af33ff7ef368d5893e4a267933e7744e46ce3cf1f61e2dccf53a111ed3aa3727"},
10 | "nerves": {:hex, :nerves, "1.11.3", "437aa0a961ff8583e7f377342662495cdb90af42a473ae4d76449917bd12c386", [:make, :mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "ef2076e0c0cb2c95421d12fd9069942c0ad73f3c77c0d6bb2cfb18972dacf675"},
11 | "nerves_system_br": {:hex, :nerves_system_br, "1.31.1", "bc08c99ddaa08350f288f1e2f96a9b207fa262c8c5a16da0fad2159b74872587", [:mix], [], "hexpm", "ae9007e3252b9c80cf62c8fa284d4dc79d5a3a9b16e2d14133ca92f188683024"},
12 | "nerves_system_linter": {:hex, :nerves_system_linter, "0.4.0", "81e9a6f5018fe5fb67d7b43a04dca36156f62b55b5554eb2fa3964d3889d09cd", [:mix], [], "hexpm", "b5bd8480ce7a6317f4601ff41fd2f594bdf76aff0bdf6dcfac571c3fa1ec5f82"},
13 | "nerves_toolchain_armv6_nerves_linux_gnueabihf": {:hex, :nerves_toolchain_armv6_nerves_linux_gnueabihf, "13.2.0", "d7a9a53cc53a99f6bbe13e872b793c84344b5cb2ec5220dc12217cba9a59ddae", [:mix], [{:nerves, "~> 1.0", [hex: :nerves, repo: "hexpm", optional: false]}, {:nerves_toolchain_ctng, "~> 1.10.0", [hex: :nerves_toolchain_ctng, repo: "hexpm", optional: false]}], "hexpm", "97791d351485d4114e992db7814766563892a55c9d22a2ebcc43b3c1247f2b62"},
14 | "nerves_toolchain_ctng": {:hex, :nerves_toolchain_ctng, "1.10.0", "c6b35377a0b7a93633a8673a788f1580fe1fa06083374b0e4df36da65828d2ef", [:mix], [{:nerves, "~> 1.0", [hex: :nerves, repo: "hexpm", optional: false]}], "hexpm", "e4ae1a2b84de3502ecac195765819be0ce2834eb276553163a7c03133f1760f1"},
15 | "nimble_parsec": {:hex, :nimble_parsec, "1.4.2", "8efba0122db06df95bfaa78f791344a89352ba04baedd3849593bfce4d0dc1c6", [:mix], [], "hexpm", "4b21398942dda052b403bbe1da991ccd03a053668d147d53fb8c4e0efe09c973"},
16 | }
17 |
--------------------------------------------------------------------------------
/nerves_defconfig:
--------------------------------------------------------------------------------
1 | BR2_arm=y
2 | BR2_arm1176jzf_s=y
3 | BR2_TOOLCHAIN_EXTERNAL=y
4 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
5 | BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
6 | BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/nerves-project/toolchains/releases/download/v13.2.0/nerves_toolchain_armv6_nerves_linux_gnueabihf-linux_${shell uname -m}-13.2.0-363664F.tar.xz"
7 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv6-nerves-linux-gnueabihf"
8 | BR2_TOOLCHAIN_EXTERNAL_GCC_13=y
9 | BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_4=y
10 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
11 | # BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
12 | BR2_TOOLCHAIN_EXTERNAL_CXX=y
13 | BR2_TOOLCHAIN_EXTERNAL_FORTRAN=y
14 | BR2_TOOLCHAIN_EXTERNAL_OPENMP=y
15 | BR2_TAR_OPTIONS="--no-same-owner"
16 | BR2_BACKUP_SITE="http://dl.nerves-project.org"
17 | BR2_ENABLE_DEBUG=y
18 | BR2_GLOBAL_PATCH_DIR="${BR2_EXTERNAL_NERVES_PATH}/patches"
19 | BR2_REPRODUCIBLE=y
20 | BR2_ROOTFS_SKELETON_CUSTOM=y
21 | BR2_ROOTFS_SKELETON_CUSTOM_PATH="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/skeleton"
22 | BR2_INIT_NONE=y
23 | BR2_ROOTFS_DEVICE_TABLE="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/device_table.txt"
24 | BR2_ENABLE_LOCALE_WHITELIST="locale-archive"
25 | BR2_GENERATE_LOCALE="en_US.UTF-8"
26 | BR2_ROOTFS_OVERLAY="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/rootfs_overlay ${NERVES_DEFCONFIG_DIR}/rootfs_overlay"
27 | BR2_ROOTFS_POST_BUILD_SCRIPT="${NERVES_DEFCONFIG_DIR}/post-build.sh ${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/post-build.sh"
28 | BR2_ROOTFS_POST_IMAGE_SCRIPT="${NERVES_DEFCONFIG_DIR}/post-createfs.sh"
29 | BR2_LINUX_KERNEL=y
30 | BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
31 | BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/refs/tags/stable_20250127.tar.gz"
32 | BR2_LINUX_KERNEL_PATCH="http://cdn.kernel.org/pub/linux/kernel/projects/rt/6.6/patch-6.6.74-rt48.patch.gz ${NERVES_DEFCONFIG_DIR}/linux"
33 | BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
34 | BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="${NERVES_DEFCONFIG_DIR}/linux-6.6.defconfig"
35 | BR2_LINUX_KERNEL_XZ=y
36 | BR2_LINUX_KERNEL_DTS_SUPPORT=y
37 | BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2708-rpi-zero-w broadcom/bcm2708-rpi-zero broadcom/bcm2708-rpi-b broadcom/bcm2708-rpi-b-plus broadcom/bcm2708-rpi-cm"
38 | BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="${NERVES_DEFCONFIG_DIR}/ramoops.dts"
39 | BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
40 | BR2_PACKAGE_BUSYBOX_CONFIG="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/busybox.config"
41 | BR2_PACKAGE_ALSA_UTILS=y
42 | # BR2_PACKAGE_ALSA_UTILS_ALSAMIXER is not set
43 | BR2_PACKAGE_ALSA_UTILS_AMIXER=y
44 | BR2_PACKAGE_ALSA_UTILS_APLAY=y
45 | BR2_PACKAGE_E2FSPROGS=y
46 | # BR2_PACKAGE_E2FSPROGS_FSCK is not set
47 | BR2_PACKAGE_LINUX_FIRMWARE=y
48 | BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y
49 | BR2_PACKAGE_LINUX_FIRMWARE_RTL_81XX=y
50 | BR2_PACKAGE_LINUX_FIRMWARE_RTL_87XX=y
51 | BR2_PACKAGE_RPI_FIRMWARE=y
52 | BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_VERSION="1.20250127"
53 | BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
54 | BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X=y
55 | BR2_PACKAGE_PIGPIO=y
56 | # BR2_PACKAGE_RNG_TOOLS_JITTERENTROPY_LIBRARY is not set
57 | # BR2_PACKAGE_ALSA_LIB_RAWMIDI is not set
58 | # BR2_PACKAGE_ALSA_LIB_HWDEP is not set
59 | # BR2_PACKAGE_ALSA_LIB_SEQ is not set
60 | # BR2_PACKAGE_ALSA_LIB_ALISP is not set
61 | # BR2_PACKAGE_ALSA_LIB_OLD_SYMBOLS is not set
62 | BR2_PACKAGE_CA_CERTIFICATES=y
63 | BR2_PACKAGE_LIBP11=y
64 | BR2_PACKAGE_UNIXODBC=y
65 | BR2_PACKAGE_CAIRO=y
66 | BR2_PACKAGE_DTC=y
67 | BR2_PACKAGE_LIBMNL=y
68 | BR2_PACKAGE_WIRELESS_REGDB=y
69 | BR2_PACKAGE_WPA_SUPPLICANT=y
70 | BR2_PACKAGE_WPA_SUPPLICANT_WIRED=y
71 | BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
72 | BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING=y
73 | BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
74 | BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT=y
75 | BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
76 | BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
77 | BR2_PACKAGE_WPA_SUPPLICANT_WPA3=y
78 | BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=y
79 | # BR2_TARGET_ROOTFS_TAR is not set
80 | BR2_NERVES_SYSTEM_NAME="nerves_system_rpi"
81 | BR2_NERVES_ADDITIONAL_IMAGE_FILES="${NERVES_DEFCONFIG_DIR}/fwup.conf ${NERVES_DEFCONFIG_DIR}/cmdline.txt ${NERVES_DEFCONFIG_DIR}/config.txt"
82 | BR2_PACKAGE_NBTTY=y
83 | BR2_PACKAGE_NERVES_CONFIG=y
84 | BR2_PACKAGE_RPICAM_APPS=y
85 | BR2_PACKAGE_RPI_DISTRO_FIRMWARE_NONFREE=y
86 |
--------------------------------------------------------------------------------
/post-build.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | # Create the fwup ops script to handling MicroSD/eMMC operations at runtime
6 | # NOTE: revert.fw is the previous, more limited version of this. ops.fw is
7 | # backwards compatible.
8 | mkdir -p $TARGET_DIR/usr/share/fwup
9 | $HOST_DIR/usr/bin/fwup -c -f $NERVES_DEFCONFIG_DIR/fwup-ops.conf -o $TARGET_DIR/usr/share/fwup/ops.fw
10 | ln -sf ops.fw $TARGET_DIR/usr/share/fwup/revert.fw
11 |
12 | # Copy the fwup includes to the images dir
13 | cp -rf $NERVES_DEFCONFIG_DIR/fwup_include $BINARIES_DIR
14 |
--------------------------------------------------------------------------------
/post-createfs.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | set -e
4 |
5 | FWUP_CONFIG=$NERVES_DEFCONFIG_DIR/fwup.conf
6 |
7 | # Run the common post-image processing for nerves
8 | $BR2_EXTERNAL_NERVES_PATH/board/nerves-common/post-createfs.sh $TARGET_DIR $FWUP_CONFIG
9 |
--------------------------------------------------------------------------------
/ramoops.dts:
--------------------------------------------------------------------------------
1 | /dts-v1/;
2 | /plugin/;
3 |
4 | /{
5 | compatible = "brcm,bcm2835";
6 |
7 | fragment@0 {
8 | target = <&rmem>;
9 | __overlay__ {
10 | /* See arch/arm/boot/dts/bcm283x.dtsi for rmem definition. */
11 | #address-cells = <1>;
12 | #size-cells = <1>;
13 | ranges;
14 |
15 | ramoops: ramoops@b000000 {
16 | compatible = "ramoops";
17 | reg = <0x0b000000 0x100000>; /* 1 MB */
18 | ecc-size = <16>;
19 | record-size = <0x20000>; /* 128kB */
20 | console-size = <0x20000>;
21 | ftrace-size = <0>;
22 | pmsg-size = <0x20000>;
23 | };
24 | };
25 | };
26 | };
27 |
--------------------------------------------------------------------------------
/rootfs_overlay/boot/.empty:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerves-project/nerves_system_rpi/24e50f541ebf4958ba2f00d9f47c050ef130b24a/rootfs_overlay/boot/.empty
--------------------------------------------------------------------------------
/rootfs_overlay/etc/boardid.config:
--------------------------------------------------------------------------------
1 | # boardid.config
2 |
3 | # Please consider using an ATECCx08 or NervesKey rather than storing serial
4 | # numbers in U-Boot environment blocks. Override this file in your project's
5 | # rootfs_overlay directory and uncomment the following line if you go this
6 | # route:
7 | # -b nerves_key -f /dev/i2c-1
8 |
9 | # Uncomment to use the Raspberry Pi's preprogrammed WiFi MAC address as the
10 | # serial number.
11 | # -b rpi_wlan0
12 |
13 | # Read the serial number from the U-boot environment block. The variable
14 | # "nerves_serial_number" is the desired variable to use. "serial_number" is
15 | # checked as a backup.
16 | -b uboot_env -u nerves_serial_number
17 | -b uboot_env -u serial_number
18 |
19 | # Default: use the the RPi's unique ID as the serial number.
20 | -b rpi
21 |
--------------------------------------------------------------------------------
/rootfs_overlay/etc/erlinit.config:
--------------------------------------------------------------------------------
1 | # Additional configuration for erlinit
2 | #
3 | # To override the settings in this file, see
4 | # https://hexdocs.pm/nerves/advanced-configuration.html#overriding-erlinit-config-from-mix-config.
5 | #
6 |
7 | # Turn on the debug prints
8 | #-v
9 |
10 | # Specify where erlinit should send the IEx prompt. Only one may be enabled at
11 | # a time.
12 | # -c ttyAMA0 # UART pins on the GPIO connector
13 | -c tty1 # HDMI output
14 |
15 | # If more than one tty are available, always warn if the user is looking at the
16 | # wrong one.
17 | --warn-unused-tty
18 |
19 | # Use nbtty to improve terminal handling on serial ports. It's a noop on HDMI.
20 | -s "/usr/bin/nbtty"
21 |
22 | # There's a call to getrandom(2) when loading the crypto NIF. Currently, it's
23 | # loaded before nerves_runtime can start rngd and provide sufficient entropy to
24 | # the kernel. This means genrandom(2) blocks the BEAM, and it can block the it
25 | # sufficiently long to trigger a hardware watchdog to reboot. The workaround is
26 | # to start rngd here.
27 | --pre-run-exec /usr/sbin/rngd
28 |
29 | # Specify the user and group IDs for the Erlang VM
30 | #--uid 100
31 | #--gid 200
32 |
33 | # Uncomment to ensure that the system clock is set to at least the Nerves
34 | # System's build date/time. If you enable this, you'll still need to use NTP or
35 | # another mechanism to set the clock, but it won't be decades off.
36 | #--update-clock
37 |
38 | # Uncomment to hang the board rather than rebooting when Erlang exits
39 | # NOTE: Do not enable on production boards
40 | #--hang-on-exit
41 |
42 | # Change the graceful shutdown time. If 10 seconds isn't long enough between
43 | # calling "poweroff", "reboot", or "halt" and :init.stop/0 stopping all OTP
44 | # applications, enable this option with a new timeout in milliseconds.
45 | #--graceful-shutdown-timeout 15000
46 |
47 | # Optionally run a program if the Erlang VM exits
48 | #--run-on-exit /bin/sh
49 |
50 | # Enable UTF-8 filename handling in Erlang and custom inet configuration
51 | -e LANG=en_US.UTF-8;LANGUAGE=en;ERL_INETRC=/etc/erl_inetrc
52 |
53 | # Enable crash dumps (set ERL_CRASH_DUMP_SECONDS=0 to disable)
54 | -e ERL_CRASH_DUMP=/root/erl_crash.dump;ERL_CRASH_DUMP_SECONDS=5
55 |
56 | # Mount the application partition (run "man fstab" for field names)
57 | # NOTE: This must match the location in the fwup.conf. If it doesn't the system
58 | # will probably still work fine, but you won't get shell history since
59 | # shoehorn/nerves_runtime can't mount the application filesystem before
60 | # the history is loaded. If this mount fails due to corruption, etc.,
61 | # nerves_runtime will auto-format it. Your applications will need to handle
62 | # initializing any expected files and folders.
63 | -m /dev/mmcblk0p1:/boot:vfat:ro,nodev,noexec,nosuid:
64 | -m /dev/mmcblk0p3:/root:ext4:nodev:
65 | -m pstore:/sys/fs/pstore:pstore:nodev,noexec,nosuid:
66 |
67 | # Erlang release search path
68 | -r /srv/erlang
69 |
70 | # Assign a hostname of the form "nerves-".
71 | # See /etc/boardid.config for locating the serial number.
72 | -d /usr/bin/boardid
73 | -n nerves-%-.4s
74 |
75 | # If using shoehorn (https://github.com/nerves-project/shoehorn), start the
76 | # shoehorn OTP release up first. If shoehorn isn't around, erlinit fails back
77 | # to the main OTP release.
78 | --boot shoehorn
79 |
--------------------------------------------------------------------------------
/rootfs_overlay/etc/fw_env.config:
--------------------------------------------------------------------------------
1 | # fw_printenv and fw_setenv configuration
2 | #
3 | # This is only used for storing firmware metadata on this platform. I.e. you
4 | # don't need to use the U-Boot bootloader if you're not already using it.
5 | #
6 | # See fwup.conf for offset and size
7 |
8 | # Device name Device offset Env. size Flash sector size Number of sectors
9 | /dev/mmcblk0 0x2000 0x2000 0x200 16
10 |
11 |
--------------------------------------------------------------------------------
/rootfs_overlay/lib/firmware/brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt:
--------------------------------------------------------------------------------
1 | # SPDX-License-Identifier: GPL-2.0+
2 | # (C) Copyright 2018 Raspberry Pi (Trading) Ltd.
3 | # NVRAM config file for the BCM43430 WiFi/BT chip as found on the
4 | # Raspberry Pi Zero W
5 | aa2g=1
6 | ag0=255
7 | AvVmid_c0=0x0,0xc8
8 | boardflags=0x00404201
9 | boardflags3=0x08000000
10 | boardnum=22
11 | boardrev=0x1202
12 | boardtype=0x0726
13 | btc_mode=1
14 | btc_params1=0x7530
15 | btc_params8=0x4e20
16 | cckbw202gpo=0
17 | cckpwroffset0=5
18 | ccode=ALL
19 | # cldo_pwm is not set
20 | deadman_to=0xffffffff
21 | devid=0x43e2
22 | extpagain2g=0
23 | il0macaddr=00:90:4c:c5:12:38
24 | legofdmbw202gpo=0x66111111
25 | macaddr=00:90:4c:c5:12:38
26 | manfid=0x2d0
27 | maxp2ga0=84
28 | mcsbw202gpo=0x77711111
29 | muxenab=0x1
30 | nocrc=1
31 | ofdmdigfilttype=18
32 | ofdmdigfilttypebe=18
33 | pa0itssit=0x20
34 | pa2ga0=-168,7161,-820
35 | pacalidx2g=32
36 | papdendidx=61
37 | papdepsoffset=-36
38 | papdmode=1
39 | papdvalidtest=1
40 | prodid=0x0726
41 | propbw202gpo=0xdd
42 | spurconfig=0x3
43 | sromrev=11
44 | txpwrbckof=6
45 | vendid=0x14e4
46 | wl0id=0x431b
47 | xtalfreq=37400
48 |
--------------------------------------------------------------------------------