├── .formatter.exs
├── .github
├── CODEOWNERS
└── workflows
│ ├── ci.yml
│ └── reuse.yaml
├── .gitignore
├── CHANGELOG.md
├── 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-3-model-b.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
/.formatter.exs:
--------------------------------------------------------------------------------
1 | # Used by "mix format"
2 | [
3 | inputs: ["mix.exs", "{config,lib,test}/**/*.{ex,exs}"]
4 | ]
5 |
--------------------------------------------------------------------------------
/.github/CODEOWNERS:
--------------------------------------------------------------------------------
1 | # Default PR assignments to the core-team
2 | * @nerves-project/core-team
3 |
--------------------------------------------------------------------------------
/.github/workflows/ci.yml:
--------------------------------------------------------------------------------
1 | name: CI
2 |
3 | on: [push]
4 |
5 | env:
6 | OTP_VERSION: 27.3.4.2
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: true
27 | download-site-bucket-uri: ${{ vars.DOWNLOAD_SITE_BUCKET_URI }}
28 | aws-role: ${{ secrets.AWS_ROLE }}
29 | aws-region: ${{ vars.AWS_REGION }}
30 | build-system:
31 | needs: [get-br-dependencies]
32 | runs-on: ubuntu-22.04
33 | steps:
34 | - uses: actions/checkout@v4
35 | - uses: gridpoint-com/actions-nerves-system@v1
36 | - name: Build nerves_system
37 | uses: ./.actions/build-system
38 | with:
39 | otp-version: ${{ env.OTP_VERSION }}
40 | elixir-version: ${{ env.ELIXIR_VERSION }}
41 | nerves-bootstrap-version: ${{ env.NERVES_BOOTSTRAP_VERSION }}
42 | deploy-system:
43 | needs: [build-system]
44 | if: github.ref_type == 'tag'
45 | runs-on: ubuntu-22.04
46 | permissions:
47 | contents: write
48 | steps:
49 | - uses: actions/checkout@v4
50 | - uses: gridpoint-com/actions-nerves-system@v1
51 | - name: Deploy nerves_system
52 | uses: ./.actions/deploy-system
53 | with:
54 | github-token: ${{ secrets.GITHUB_TOKEN }}
55 |
--------------------------------------------------------------------------------
/.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.4
16 |
17 | * Changes
18 | * Synchronize and fix Raspberry Pi camera settings
19 |
20 | ## v1.31.3
21 |
22 | This is an important security/bug fix that addresses Erlang CVEs for the ssh
23 | module (see Erlang release notes).
24 |
25 | * Package updates
26 | * [nerves_system_br v1.31.7](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.31.7). Also
27 | see [nerves_system_br v1.31.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.31.6)
28 |
29 | * Important derived package updates
30 | * [Erlang/OTP 27.3.4.3](https://erlang.org/download/OTP-27.3.4.3.README.md)
31 | * [Buildroot 2025.02.6](https://lore.kernel.org/buildroot/b051d400-debc-4269-975a-b2992eed8d61@rnout.be/T/)
32 |
33 | ## v1.31.2
34 |
35 | This is a security/bug fix release.
36 |
37 | * Package updates
38 | * [nerves_system_br v1.31.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.31.5)
39 |
40 | * Important derived package updates
41 | * [Erlang/OTP 27.3.4.2](https://erlang.org/download/OTP-27.3.4.2.README.md)
42 | * [fwup 1.13.2](https://github.com/fwup-home/fwup/releases/tag/v1.13.2)
43 |
44 | ## v1.31.1
45 |
46 | This is a security/bug fix release.
47 |
48 | * Changes
49 | * Disabled `PREEMPT_RT` due to reports of instability on 32-bit Raspberry Pis.
50 |
51 | * Package updates
52 | * [Erlang/OTP 27.3.4.1](https://erlang.org/download/OTP-27.3.4.1.README.md)
53 | * [Buildroot 2025.02.3 (fixed 2025.02.2)](https://lore.kernel.org/buildroot/49d039c0-8121-4a91-8a69-889376f85c71@rnout.be/T/)
54 | * Raspberry Pi WiFi firmware 1:20240709-2~bpo12+1+rpt3
55 | * [rpi-libcamera v0.5.0+rpt20250429](https://github.com/raspberrypi/libcamera/releases/tag/v0.5.0%2Brpt20250429)
56 | * rpicam-apps 1.7.0
57 | * [erlinit 1.14.3](https://github.com/nerves-project/erlinit/releases/tag/v1.14.3)
58 | * [fwup 1.13.0](https://github.com/fwup-home/fwup/releases/tag/v1.13.0)
59 |
60 | ## v1.31.0
61 |
62 | This is a major Buildroot update.
63 |
64 | Please see the [nerves_system_br v1.31.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.31.0)
65 | for additional information if you've forked this system.
66 |
67 | * Updated dependencies
68 | * [Buildroot 2025.02.1](https://lore.kernel.org/buildroot/60b8483c-b717-41ce-a406-bceb71c3a089@rnout.be/T/)
69 |
70 | ## v1.30.1
71 |
72 | This is a security/bug fix update.
73 |
74 | * Updated dependencies
75 | * [Erlang/OTP 27.3.3](https://erlang.org/download/OTP-27.3.3.README)
76 | * [nerves_system_br v1.30.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.30.1)
77 |
78 | ## v1.30.0
79 |
80 | This is a major Buildroot update.
81 |
82 | Please see the [nerves_system_br v1.30.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.30.0)
83 | for upgrade instructions if you've forked this system.
84 |
85 | * Changes
86 | * Add REUSE compliance to help improve OSS copyright and licensing accuracy
87 | * Update Raspberry Pi libraries and firmware to latest releases
88 |
89 | * Updated dependencies
90 | * [Erlang/OTP 27.3](https://erlang.org/download/OTP-27.3.README.md)
91 | * [Buildroot 2024.11.2](https://lore.kernel.org/buildroot/87v7t3nyls.fsf@dell.be.48ers.dk/T/)
92 | * Linux 6.6.74 (Raspberry Pi 1.20250127 release)
93 | * rpicam-apps 1.5.3
94 | * rpi-libcamera v0.3.2+rpt20241119
95 | * rpi-distro-firmware-nonfree 1:20230625-2+rpt3
96 |
97 | ## v1.29.1
98 |
99 | This is a security/bug fix update.
100 |
101 | * Updated dependencies
102 | * [nerves_system_br v1.29.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.3)
103 | * [Buildroot 2024.08.3](https://lore.kernel.org/buildroot/874j3e17ek.fsf@dell.be.48ers.dk/T/)
104 | * [Erlang/OTP 27.2](https://erlang.org/download/OTP-27.2.README)
105 | * Linux 6.6.64 with the Raspberry Pi and PREEMPT_RT patches
106 | * [fwup v1.12.0](https://github.com/fwup-home/fwup/releases/tag/v1.12.0)
107 |
108 | ## v1.29.0
109 |
110 | This is a major Erlang and Buildroot update.
111 |
112 | Please see the [nerves_system_br v1.29.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.0)
113 | for upgrade instructions if you've forked this system.
114 |
115 | * Changes
116 | * Applied and enabled the Real-Time Linux patch set, PREEMPT_RT. Please see
117 | write-ups on the web for benefits and how to use. The impact of this patch
118 | shouldn't be noticeable to most Nerves users.
119 | * Switch CPU frequency governor from conservative to the more modern
120 | schedutil. See [LWN article](https://lwn.net/Articles/682391/) for details.
121 | * Enable ARM NEON support for packages that can take advantage of it.
122 | * Enable dtc commandline programs to support dynamic device tree loading at
123 | runtime
124 |
125 | * Updated dependencies
126 | * [nerves_system_br v1.29.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.29.1)
127 | * [Buildroot 2024.08.2](https://lore.kernel.org/buildroot/871pzex7gn.fsf@dell.be.48ers.dk/T/)
128 | * Linux 6.6.51 (Raspberry Pi stable_20241008 release)
129 |
130 | ## v1.28.1
131 |
132 | This is a security/bug fix update.
133 |
134 | * Changes
135 | * Enable QMI kernel modules to support many cellular modems without a Nerves
136 | system update
137 |
138 | * Fixes
139 | * Device tree overlays are now included for all official Raspberry Pi cameras
140 | and should load automatically
141 |
142 | * Updated dependencies
143 | * [nerves_system_br v1.28.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.3)
144 | * [Buildroot 2024.05.2](https://lore.kernel.org/buildroot/87zfpfh147.fsf@dell.be.48ers.dk/T/)
145 | * [Erlang/OTP 27.0.1](https://erlang.org/download/OTP-27.0.1.README)
146 |
147 | ## v1.28.0
148 |
149 | This is a major Erlang, Buildroot, Linux and Raspberry Pi display and camera
150 | update. Please read below and expect to spend some time on the update.
151 |
152 | Please see the [nerves_system_br v1.28.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.0)
153 | for upgrade instructions if you've forked this system.
154 |
155 | * Changes
156 | * Elixir 1.17 and Erlang/OTP 27 support
157 | * Switch from the Raspberry Pi's deprecated MMAL media support to DRM and
158 | libcamera. This is a big change if you use the display or camera that has
159 | been a long time coming. Please plan some time to make the upgrade.
160 | * Upgrade from Linux 6.1 to Linux 6.6
161 | * Reduce copy/pasted definitions in the `fwup.conf` by extracting them to
162 | `fwup_include/fwup-common.conf`. (No functional changes)
163 |
164 | * Fixes
165 | * The serial numbers returned by `Nerves.Runtime.serial_number/0` now contain
166 | the whole serial number. If you forked this system, check the
167 | `boardid.config` and `erlinit.config` for the changes and to keep the
168 | hostname the same.
169 |
170 | * Updated dependencies
171 | * Linux 6.6.31 (Raspberry Pi stable_20240529 release)
172 | * [nerves_system_br v1.28.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.28.1)
173 | * [Buildroot 2024.05](https://lore.kernel.org/buildroot/87bk46tjk2.fsf@dell.be.48ers.dk/T/)
174 | * [Erlang/OTP 27.0](https://erlang.org/download/OTP-27.0.README)
175 |
176 | ## v1.27.1
177 |
178 | This is a security/bug fix update.
179 |
180 | * Changes
181 | * Enable the `wpa_supplicant` option for allow wired 802.1x authentication
182 |
183 | * Package updates
184 | * [Erlang/OTP 26.2.5](https://erlang.org/download/OTP-26.2.5.README)
185 | * [Buildroot 2024.02.1](https://lore.kernel.org/buildroot/87jzlp9u5e.fsf@48ers.dk/T/)
186 |
187 | ## v1.27.0
188 |
189 | This is a major Buildroot update.
190 |
191 | Please see the [nerves_system_br v1.27.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.27.0)
192 | for upgrade instructions if you've forked this system.
193 |
194 | * Changes
195 | * The `libcamera` and `rpicam_apps` packages have been replaced with the
196 | Raspberry Pi-forked versions for better compatibility. Please see
197 | `nerves_system_br` release notes.
198 |
199 | * Updated dependencies
200 | * Linux 6.1.73 (Raspberry Pi 20240124 release)
201 | * [nerves_system_br v1.27.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.27.0)
202 | * [Buildroot 2024.02](https://lore.kernel.org/buildroot/87msrczp4z.fsf@48ers.dk/)
203 | * [Erlang/OTP 26.2.3](https://erlang.org/download/OTP-26.2.3.README)
204 |
205 | ## v1.26.0
206 |
207 | This is a major Buildroot update.
208 |
209 | Please see the [nerves_system_br v1.26.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.26.0)
210 | for upgrade instructions if you've forked this system.
211 |
212 | * Updated dependencies
213 | * [Erlang/OTP 26.2.2](https://erlang.org/download/OTP-26.2.2.README)
214 | * [nerves_system_br v1.26.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.26.1)
215 | * [Buildroot 2023.11.1](https://lore.kernel.org/buildroot/87cyu2k2gu.fsf@48ers.dk/T/)
216 |
217 | ## v1.25.2
218 |
219 | This is a security/bug fix update.
220 |
221 | * Package updates
222 | * [Erlang/OTP 26.2.1](https://erlang.org/download/OTP-26.2.1.README)
223 | * [nerves_heart 2.3.0](https://github.com/nerves-project/nerves_heart/releases/tag/v2.3.0)
224 |
225 | ## v1.25.1
226 |
227 | This fixes an accidental regression in 1.25.0 with the Linux 6.1 update. The
228 | Linux configuration wasn't updated correctly and it didn't work. This release
229 | has the fixed configuration.
230 |
231 | ## v1.25.0
232 |
233 | This is a major Buildroot, toolchain, and Linux kernel update that also adds
234 | support for using Scenic without customizing the system.
235 |
236 | Please see [nerves_system_br v1.25.0 release notes](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.25.0)
237 | for upgrade instructions if you've forked this system.
238 |
239 | * New features
240 | * Add libcairo for [Scenic](https://github.com/ScenicFramework/scenic) support
241 |
242 | * Updated dependencies
243 | * Linux 6.1.63 (Raspberry Pi stable_20231123 release)
244 | * [nerves_system_br v1.25.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.25.2)
245 | * [Buildroot 2023.08.4](https://lore.kernel.org/buildroot/87o7f6t7fs.fsf@48ers.dk/T/)
246 | * [Erlang/OTP 26.1.2](https://erlang.org/download/OTP-26.1.2.README)
247 |
248 | ## v1.24.1
249 |
250 | This is a security/bug fix update.
251 |
252 | * Package updates
253 | * [nerves_system_br v1.24.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.24.1)
254 | * [Erlang/OTP 26.1.1](https://erlang.org/download/OTP-26.1.1.README)
255 | * [Buildroot 2023.05.3](https://lore.kernel.org/buildroot/87h6ngup34.fsf@48ers.dk/T/)
256 |
257 | ## v1.24.0
258 |
259 | This is a Buildroot version update that appears to mostly contain bug and
260 | security fixes. It should be a low risk upgrade from v1.23.2.
261 |
262 | * New features
263 | * Support factory reset, preventing firmware reverts. See [Nerves.Runtime.FwupOps](https://hexdocs.pm/nerves_runtime/Nerves.Runtime.FwupOps.html)
264 |
265 | * Updated dependencies
266 | * [nerves_system_br v1.24.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.24.0)
267 | * [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/)
268 | * [Erlang/OTP 26.1](https://erlang.org/download/OTP-26.1.README)
269 |
270 | ## v1.23.2
271 |
272 | * Updated dependencies
273 | * [nerves_system_br v1.23.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.3)
274 |
275 | ## v1.23.1
276 |
277 | This is a bug and security fix update. It should be a low risk upgrade.
278 |
279 | * Fixes
280 | * Fix CTRL+R over ssh
281 |
282 | * Updated dependencies
283 | * [nerves_system_br v1.23.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.2)
284 | * [Buildroot 2023.02.2](https://lore.kernel.org/buildroot/87y1je6wva.fsf@48ers.dk/T/)
285 |
286 | ## v1.23.0
287 |
288 | This is a major update that brings in Erlang/OTP 26, Buildroot 2023.02.2, Linux
289 | 5.15.84, and Raspberry Pi firmware updates.
290 |
291 | * New features
292 | * CA certificates are included for OTP 26.
293 |
294 | * Updated dependencies
295 | * [nerves_system_br v1.23.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.23.1)
296 | * [Buildroot 2023.02.2](https://lore.kernel.org/buildroot/87wn03ifbl.fsf@48ers.dk/T/)
297 | * [Erlang/OTP 26.0.2](https://erlang.org/download/OTP-26.0.2.README)
298 | * Linux 5.15.84 (Raspberry Pi Linux tag 1.20230106)
299 |
300 | ## v1.22.2
301 |
302 | This is a bug and security fix update. It should be a low risk upgrade from
303 | v1.22.1.
304 |
305 | * Changes
306 | * Change FPU mode to fp-armv8. This mode enables additional instructions that
307 | are needed for Tensorflow Lite.
308 |
309 | * Updated dependencies
310 | * [nerves_system_br v1.22.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.5)
311 | * [Buildroot 2022.11.3](https://lore.kernel.org/buildroot/878rfuxbxx.fsf@dell.be.48ers.dk/T/)
312 |
313 | ## v1.22.1
314 |
315 | This is a bug fix and Erlang version bump from 25.2 to 25.2.3. It should be a
316 | low risk upgrade from v1.22.0.
317 |
318 | * Updated dependencies
319 | * [nerves_system_br v1.22.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.3)
320 | * [Buildroot 2022.11.1](https://lore.kernel.org/buildroot/87ilh4dvax.fsf@dell.be.48ers.dk/T/#u)
321 |
322 | ## v1.22.0
323 |
324 | This is a Buildroot version update that appears to mostly contain bug and
325 | security fixes. It should be a low risk upgrade to v1.21.2.
326 |
327 | * Updated dependencies
328 | * [nerves_system_br v1.22.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.22.1)
329 | * [Buildroot 2022.11](http://lists.busybox.net/pipermail/buildroot/2022-December/656980.html)
330 | * GCC 12.2
331 |
332 | ## v1.21.2
333 |
334 | * Changes
335 | * Two Buildroot patch updates and an Erlang minor version update
336 | * Nerves Heart v2.0 is now included. Nerves Heart connects the Erlang runtime
337 | to a hardware watchdog. v2.0 has numerous updates to improve information
338 | that you can get and also has more safeguards to avoid conditions that could
339 | cause a device to hang forever.
340 |
341 | * Updated dependencies
342 | * linux 5.15.78 (RPi 1.20221104)
343 | * [nerves_system_br v1.21.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.6)
344 | * [Erlang/OTP 25.2](https://erlang.org/download/OTP-25.2.README)
345 | * [Buildroot 2022.08.3](https://lore.kernel.org/buildroot/87r0x7z5cw.fsf@dell.be.48ers.dk/T/#u)
346 | * [nerves_heart v2.0.2](https://github.com/nerves-project/nerves_heart/releases/tag/v2.0.2)
347 |
348 | ## v1.21.1
349 |
350 | * Changes
351 | * Reduce first-time Linux kernel download by using tarball source
352 |
353 | * Updated dependencies
354 | * [nerves_system_br v1.21.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.2)
355 | * [Erlang/OTP 25.1.2](https://erlang.org/download/OTP-25.1.2.README)
356 |
357 | ## v1.21.0
358 |
359 | * Changes
360 | * Support aarch64 Linux builds
361 | * Add libdtc to support runtime loading of device tree overlays
362 |
363 | * Updated dependencies
364 | * [nerves_system_br v1.21.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.1)
365 | and also see [nerves_system_br v1.21.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.21.0)
366 | * [Buildroot 2022.08.1](http://lists.busybox.net/pipermail/buildroot/2022-October/652816.html)
367 | * [Erlang/OTP 25.1.1](https://erlang.org/download/OTP-25.1.1.README)
368 |
369 | ## v1.20.2
370 |
371 | * Updated dependencies
372 | * [nerves_system_br v1.20.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.6)
373 | * [Erlang/OTP 25.0.4](https://erlang.org/download/OTP-25.0.4.README)
374 | * [Buildroot 2022.05.2](http://lists.busybox.net/pipermail/buildroot/2022-August/650546.html)
375 | * Also see [Buildroot 2022.05.1 changes](http://lists.busybox.net/pipermail/buildroot/2022-July/647814.html)
376 |
377 | ## v1.20.1
378 |
379 | * Updated dependencies
380 | * [nerves_system_br v1.20.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.4)
381 | * [Erlang/OTP 25.0.3](https://erlang.org/download/OTP-25.0.3.README)
382 |
383 | ## v1.20.0
384 |
385 | This release updates to Buildroot 2022.05, Linux 5.15.32 (from Linux 5.10) and
386 | uses GCC 11.3 (from GCC 10.3). The Linux kernel upgrade could introduce a
387 | regression, so please verify hardware-specific functionality in your firmware.
388 |
389 | If you have cloned this repository for a custom system, please make sure that
390 | you have `CONFIG_NOP_USB_XCEIV=y` in your Linux kernel configuration.
391 |
392 | * Updated dependencies
393 | * [nerves_system_br v1.20.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.20.3)
394 | * [Buildroot 2022.05](http://lists.busybox.net/pipermail/buildroot/2022-June/644349.html)
395 | * [Erlang/OTP 25.0.2](https://erlang.org/download/OTP-25.0.2.README)
396 |
397 | ## v1.19.0
398 |
399 | This release updates to Buildroot 2022.02.1 and OTP 25.0. While this should be
400 | an easy update for most projects, many programs have been updated. Please review
401 | the changes in the updated dependencies for details.
402 |
403 | * Updated dependencies
404 | * [nerves_system_br v1.19.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.19.0)
405 | * [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)
406 | * [Erlang/OTP 25.0](https://erlang.org/download/OTP-25.0.README)
407 |
408 | ## v1.18.4
409 |
410 | This release bumps Erlang to 24.3.2 and should be a low risk upgrade from the
411 | previous release.
412 |
413 | * Changes
414 | * Pull in upstream Linux SquashFS patch to improve file system performance
415 |
416 | * Updated dependencies
417 | * [nerves_system_br v1.18.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.6)
418 |
419 | ## v1.18.3
420 |
421 | This is a Buildroot and Erlang bug and security fix release. It should be a low
422 | risk upgrade from the previous release.
423 |
424 | * Updated dependencies
425 | * [nerves_system_br v1.18.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.5)
426 |
427 | ## v1.18.2
428 |
429 | This is a Buildroot and Erlang bug fix release. It should be a low risk upgrade
430 | from the previous release.
431 |
432 | * Updated dependencies
433 | * [nerves_system_br v1.18.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.4)
434 |
435 | * Changes
436 | * Specify CPU-specific flags when compiling NIFs and ports. This fixes an
437 | issue where some optimizations could not be enabled in NIFs even though it
438 | should be possible to have them. E.g., ARM NEON support for CPUs that have
439 | it.
440 | * Build the Wireguard kernel driver. This is a small device driver that
441 | enables a number of VPN-based use cases.
442 |
443 | ## v1.18.1
444 |
445 | * Updated dependencies
446 | * [nerves_system_br v1.18.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.3)
447 |
448 | * Changes
449 | * The `cpufreq` directories are available again. This was a regression that
450 | would break code that manually adjusted the CPU frequency.
451 | * Programs that use OpenMP will run now. The OpenMP shared library
452 | (`libgomp.so`) was supplied by the toolchain, but not copied.
453 |
454 | ## v1.18.0
455 |
456 | This release updates to Buildroot 2021.11 and OTP 24.2. If you have made a
457 | custom system, please review the `nerves_system_br` [release
458 | notes](https://github.com/nerves-project/nerves_system_br/blob/v1.18.2/CHANGELOG.md#v1180)
459 | since Buildroot 2021.11 changed some Raspberry Pi firmware options.
460 |
461 | * Updated dependencies
462 | * [nerves_system_br v1.18.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.18.2)
463 | * [Buildroot 2021.11](http://lists.busybox.net/pipermail/buildroot/2021-December/629911.html)
464 | * [Erlang/OTP 24.2](https://erlang.org/download/OTP-24.2.README)
465 | * [Raspberry Pi WiFi firmware](https://github.com/RPi-Distro/firmware-nonfree/blob/bullseye/debian/changelog)
466 | * Linux 5.10.88 with Raspberry Pi patches
467 | * GCC 10.3
468 |
469 | * Improvements
470 | * Support for the `dl.nerves-project.org` backup site. Due to a GitHub outage
471 | in November, there was a 2 day period of failing builds since some packages
472 | could not be downloaded. We implemented the backup site to prevent this in
473 | the future. This update is in the `nerves_defconfig`.
474 | * Use new build ORB on CircleCI. This ORB will shorten build times to fit in
475 | CircleCI's new free tier limits. Please update if building your own systems.
476 |
477 | ## v1.17.4
478 |
479 | * Updated dependencies
480 | * [nerves_system_br v1.17.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.4)
481 | * [Buildroot 2021.08.2](http://lists.busybox.net/pipermail/buildroot/2021-November/628323.html)
482 | * [Erlang/OTP 24.1.7](https://erlang.org/download/OTP-24.1.7.README).
483 |
484 | ## v1.17.3
485 |
486 | This release updates the Linux kernel from 5.4 to 5.10 to follow the Raspberry
487 | Pi OS.
488 |
489 | * Updated dependencies
490 | * [nerves_system_br v1.17.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.3)
491 | * [Erlang/OTP 24.1.4](https://erlang.org/download/OTP-24.1.4.README).
492 | * Linux 5.10.63 with Raspberry Pi patches
493 |
494 | ## v1.17.2
495 |
496 | This is a security/bug fix patch release. It should be safe to update for
497 | everyone.
498 |
499 | * Updated dependencies
500 | * [nerves_system_br v1.17.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.1)
501 | * [Buildroot 2021.08.1](http://lists.busybox.net/pipermail/buildroot/2021-October/625642.html)
502 | * [Erlang/OTP 24.1.2](https://erlang.org/download/OTP-24.1.2.README)
503 |
504 | * Improvements
505 | * Include software versioning and licensing info (see legal-info directory in
506 | artifact)
507 |
508 | ## v1.17.1
509 |
510 | This release makes it possible to use Bluetooth (via ttyS0).
511 |
512 | * Changes
513 | * Force the GPU frequency (core_freq) to ensure that the MiniUART works. This makes
514 | it possible to use BlueHeron or other Bluetooth libraries.
515 | * Re-add the RPi 7" Touchscreen backlight drivers. Thanks to Jason Axelson for catching
516 | this and adding the drivers back.
517 |
518 | ## v1.17.0
519 |
520 | This release updates to Buildroot 2021.08 and OTP 24.1. If you have made a
521 | custom system off this one, please review the `nerves_system_br v1.17.0` release
522 | notes.
523 |
524 | * Updated dependencies
525 | * [nerves_system_br v1.17.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.17.0)
526 | * [Buildroot 2021.08](http://lists.busybox.net/pipermail/buildroot/2021-September/622072.html)
527 | * [Erlang/OTP 24.1](https://erlang.org/download/OTP-24.1.README)
528 |
529 | ## v1.16.2
530 |
531 | This release updates Erlang/OTP from 24.0.3 to 24.0.5 and Buildroot from 2021.05
532 | to 2021.05.1. Both of these are security/bug fix updates. This is expected to be
533 | a safe upgrade from v1.16.1 for all users.
534 |
535 | * Updated dependencies
536 | * [nerves_system_br v1.16.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.1)
537 | * [Erlang/OTP 24.0.5](https://erlang.org/download/OTP-24.0.5.README)
538 |
539 | * Improvements
540 | * Beta support for using a `runtime.exs` script for runtime configuration.
541 | * Added a `provision` task to the `fwup.config` to enable re-provisioning a
542 | MicroSD card without changing its contents.
543 | * Adds a default `/etc/sysctl.conf` that enables use of ICMP in Erlang. This
544 | requires `nerves_runtime v0.11.5` or later to automatically load the sysctl
545 | variables. With it using `:gen_udp` to send/receive ICMP will "just work".
546 | It also makes it easier to add other sysctl variables if needed.
547 |
548 | ## v1.16.1
549 |
550 | This release updates Nerves Toolchains to v1.4.3 and OTP 24.0.3. It should be safe for everyone to apply.
551 |
552 | * Updated dependencies
553 | * [nerves_system_br v1.16.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.1)
554 | * [Erlang/OTP 24.0.3](https://erlang.org/download/OTP-24.0.3.README)
555 | * [nerves toolchains v1.4.3](https://github.com/nerves-project/toolchains/releases/tag/v1.4.3)
556 |
557 | ## v1.16.0
558 |
559 | This release updates to Buildroot 2021.05 and OTP 24.0.2. If you have made a
560 | custom system off this one, please review the `nerves_system_br v1.16.0` release
561 | notes.
562 |
563 | * Updated dependencies
564 | * [nerves_system_br v1.16.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.16.0)
565 | * [Buildroot 2021.05](http://lists.busybox.net/pipermail/buildroot/2021-June/311946.html)
566 | * [Erlang/OTP 24.0.2](https://erlang.org/download/OTP-24.0.2.README)
567 |
568 | * Improvements
569 | * This release now contains debug symbols and includes the Build-ID in the
570 | ELF headers. This makes it easier to get stack traces from C programs. As
571 | before, the Nerves tooling strips all symbols from firmware images, so this
572 | won't make programs bigger.
573 | * Enable compile-time `wpa_supplicant` options to support WPA3, mesh
574 | networking, WPS and autoscan.
575 |
576 | ## v1.15.1
577 |
578 | This is a security/bug fix release that updates to Buildroot 2021.02.1 and OTP
579 | 23.3.1. It should be safe for everyone to apply.
580 |
581 | * Improvements
582 | * espeak has been removed from the default install to trim 13 MB off the root
583 | filesystem
584 |
585 | * Updated dependencies
586 | * [nerves_system_br v1.15.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.15.1)
587 | * [Buildroot 2021.02](http://lists.busybox.net/pipermail/buildroot/2021-April/307970.html)
588 | * [Erlang/OTP 23.3.1](https://erlang.org/download/OTP-23.3.1.README)
589 |
590 | ## v1.15.0
591 |
592 | This release updates to Buildroot 2021.02 and OTP 23.2.7. If you have made a
593 | custom system off this one, please review the `nerves_system_br v1.15.0` release
594 | notes.
595 |
596 | The Nerves toolchain has also been updated to v1.4.2. This brings in Linux 4.14
597 | headers to enable use of cdev and eBPF. This won't affect most users.
598 |
599 | * Updated dependencies
600 | * [nerves_system_br v1.15.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.15.0)
601 | * [Buildroot 2021.02](http://lists.busybox.net/pipermail/buildroot/2021-March/305168.html)
602 | * [Erlang/OTP 23.2.7](https://erlang.org/download/OTP-23.2.7.README)
603 | * [nerves toolchains v1.4.2](https://github.com/nerves-project/toolchains/releases/tag/v1.4.2)
604 |
605 | ## v1.14.0
606 |
607 | This release updates to Buildroot 2020.11.2, GCC 10.2 and OTP 23.2.4.
608 |
609 | When migrating custom systems based on this one, please be aware of the
610 | following important changes:
611 |
612 | * There's a new `getrandom` syscall that is made early in BEAM startup. This has
613 | the potential to block the BEAM before Nerves can start `rngd` to provide
614 | entropy. We have not seen this issue here, but have updated `erlinit.config`
615 | for the time being as a precaution.
616 | * The GCC 10.2.0 toolchain has a different name that calls out "nerves" as the
617 | vendor and the naming is now more consistent with other toolchain providers.
618 | * Experimental support for tooling that requires more information about the
619 | target has been added. The initial support focuses on zigler.
620 |
621 | If you're upgrading from a release before v1.13.3, please see the release notes
622 | for the versions below as well.
623 |
624 | * Updated dependencies
625 | * [nerves_system_br: bump to v1.14.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.14.4)
626 | * [Buildroot 2020.11.2](http://lists.busybox.net/pipermail/buildroot/2021-January/302574.html)
627 | * [Erlang/OTP 23.2.4](https://erlang.org/download/OTP-23.2.4.README)
628 | * [Nerves toolchains 1.4.1](https://github.com/nerves-project/toolchains/releases/tag/v1.4.1)
629 |
630 | ## v1.13.3
631 |
632 | This is a bug fix release and contains no major changes.
633 |
634 | * Updated dependencies
635 | * [nerves_system_br: bump to v1.13.7](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.7)
636 | * [Erlang/OTP 23.1.5](https://erlang.org/download/OTP-23.1.5.README)
637 |
638 | ## v1.13.2
639 |
640 | This release includes a patch release update to
641 | [Buildroot 2020.08.2](http://lists.busybox.net/pipermail/buildroot/2020-November/296830.html).
642 |
643 | * Updated dependencies
644 | * [nerves_system_br: bump to v1.13.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.5)
645 | * [erlinit 1.9.0](https://github.com/nerves-project/erlinit/releases/tag/v1.9.0)
646 |
647 | * Improvements
648 | * Switched source for built-in WiFi module firmware. This pulls in newer
649 | firmware versions that were found to fix issues on the Raspberry Pi 4. It
650 | may improve built-in WiFi on other Raspberry Pis.
651 |
652 | ## v1.13.1
653 |
654 | The main change in this release is to bump the Linux kernel to 5.4. This follows
655 | the kernel update in the Raspberry Pi OS.
656 |
657 | If you have based a custom system off of this one, please inspect the
658 | `nerves_defconfig` for WiFi firmware changes. WiFi firmware is no longer being
659 | pulled from the `rpi-wifi-firmware` since that package is out of date.
660 |
661 | Additionally, the upstream Raspberry Pi kernel changed the
662 | `pi3-miniuart-bt.dtbo` overlay's name to `miniuart-bt.dtbo`. The easy fix is to
663 | do a global search for `pi3-miniuart-bt` and replace it with `miniuart-bt`.
664 |
665 | * Updated dependencies
666 | * [nerves_system_br: bump to v1.13.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.4)
667 | * [Erlang/OTP 23.1.4](https://erlang.org/download/OTP-23.1.4.README)
668 | * [boardid 1.10.0](https://github.com/nerves-project/boardid/releases/tag/v1.10.0)
669 |
670 | * Improvements
671 | * Enabled reproducible builds in Buildroot to remove some timestamp and build
672 | path differences in firmware images. This helps delta firmware updates.
673 | * The memory cgroup controller is no longer enabled by default. This was an
674 | upstream change. As a result, the memory cgroup directory is no longer
675 | mounted.
676 |
677 | ## v1.13.0
678 |
679 | This release updates to [Buildroot
680 | 2020.08](http://lists.busybox.net/pipermail/buildroot/2020-September/290797.html) and OTP 23.1.1.
681 |
682 | * Updated dependencies
683 | * [nerves_system_br: bump to v1.13.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.13.2)
684 | * [Erlang/OTP 23.1.1](https://erlang.org/download/OTP-23.1.1.README)
685 | * [erlinit 1.8.0](https://github.com/nerves-project/erlinit/releases/tag/v1.8.0)
686 | * [nerves 1.7.0](https://github.com/nerves-project/nerves/releases/tag/v1.7.0)
687 |
688 | * New features
689 | * Added support for updating the root filesystem using firmware patches.
690 | See the [firmware patch docs](https://hexdocs.pm/nerves/experimental-features.html#content) for more information.
691 |
692 | ## v1.12.2
693 |
694 | This release updates to [Buildroot
695 | 2020.05.1](http://lists.busybox.net/pipermail/buildroot/2020-July/287824.html)
696 | and OTP 23.0.3 which are both bug fix releases.
697 |
698 | * Updated dependencies
699 | * [nerves_system_br: bump to v1.12.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.12.4)
700 | * [Erlang/OTP 23.0.3](https://erlang.org/download/OTP-23.0.3.README)
701 | * [nerves_heart v0.3.0](https://github.com/nerves-project/nerves_heart/releases/tag/v0.3.0)
702 |
703 | * New features
704 | * The `/data` directory now exists for storing application-specific data. It
705 | is currently a symlink to `/root`. Using `/data` will eventually be
706 | encouraged over `/root` even though currently there is no advantage. This
707 | change makes it possible to start migrating paths in applications and
708 | libraries.
709 |
710 | * Fixes
711 | * Fixed old references to the `-Os` compiler flag. All C/C++ code will default
712 | to using `-O2` now.
713 |
714 | ## v1.12.1
715 |
716 | * Fixes
717 | * Remove `nerves_system_linter` from hex package. This fixes mix dependency
718 | errors in projects that reference systems with different
719 | `nerves_system_linter` dependency specs.
720 |
721 | ## v1.12.0
722 |
723 | This release updates the system to use Buildroot 2020.05 and Erlang/OTP 23.
724 | Please see the respective release notes for updates and deprecations in both
725 | projects for changes that may affect your application.
726 |
727 | * New features
728 | * Support the Raspberry Pi Sense HAT's joystick
729 | * Enable WiFi mesh support in the 802.11 stack
730 |
731 | * Updated dependencies
732 | * [nerves_system_br v1.12.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.12.0)
733 | * [Erlang/OTP 23.0.2](https://erlang.org/download/OTP-23.0.2.README)
734 | * [Linux 4.19.118 (Raspberry Pi 1.2020601 tag)](https://github.com/raspberrypi/linux/tree/raspberrypi-kernel_1.20200601-1)
735 | * [Raspberry Pi firmware 1.2020601](https://github.com/raspberrypi/firmware/tree/1.20200601)
736 |
737 | ## v1.11.2
738 |
739 | * Updated dependencies
740 | * [nerves_system_br v1.11.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.4)
741 | * Erlang 22.3.4.1
742 | * fwup 1.7.0
743 |
744 | ## v1.11.1
745 |
746 | * Updated dependencies
747 | * [nerves_system_br v1.11.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.2)
748 | * Erlang 22.3.1
749 | * erlinit 1.7.0 - tty initialization support
750 | * fwup 1.6.0 - xdelta3/VCDIFF patch support
751 | * Enable unixodbc so that Erlang's odbc application can be used in projects
752 |
753 | ## v1.11.0
754 |
755 | This release updates Buildroot to 2020.02 and upgrades gcc from 8.3 to 9.2.
756 | While this is a minor version bump due to the Buildroot release update, barring
757 | advanced usage of Nerves, this is a straightforward update from v1.10.2.
758 |
759 | * Updated dependencies
760 | * [nerves_system_br v1.11.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.11.0)
761 | * linux 4.19.97 (raspberrypi-kernel_1.20200212-1 tag)
762 | * Erlang 22.2.8
763 |
764 | ## v1.10.2
765 |
766 | * Updated dependencies
767 | * [nerves_system_br v1.10.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.2)
768 | * Erlang 22.2.4
769 |
770 | ## v1.10.1
771 |
772 | * Enhancements
773 | * Set `expand=true` on the application data partition. This will only take
774 | effect for users running the complete task, fwup will not expand application
775 | data partitions that exist during upgrade tasks.
776 |
777 | * Updated dependencies
778 | * [nerves_system_br v1.10.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.1)
779 | * Erlang 22.2.3
780 |
781 | ## v1.10.0
782 |
783 | This release updates Buildroot to 2019.11 with security and bug fix updates
784 | across Linux packages. Enables dnsd, udhcpd and ifconfig in the default
785 | Busybox configuration to support `vintage_net` and `vintage_net_wizard`.
786 | See the `nerves_system_br` notes for details.
787 |
788 | * Updated dependencies
789 | * [nerves_system_br v1.10.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.10.0)
790 | * Erlang 22.1.8
791 |
792 | ## v1.9.2
793 |
794 | This release updates Buildroot to 2019.08.2 with security and bug fix updates
795 | across Linux packages. See the `nerves_system_br` notes for details.
796 | Erlang/OTP is now at 22.1.7.
797 |
798 | * Updated dependencies
799 | * [nerves_system_br v1.9.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.5)
800 |
801 | ## v1.9.1
802 |
803 | This release pulls in security and bug fix updates from `nerves_system_br`.
804 | Erlang/OTP is now at 22.1.1.
805 |
806 | * Updated dependencies
807 | * [nerves_system_br v1.9.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.4)
808 | * linux - update to the raspberrypi-kernel_1.20190925-1 tag
809 |
810 | ## v1.9.0
811 |
812 | This release updates Buildroot to 2019.08 with security and bug fix updates
813 | across Linux packages. See the `nerves_system_br` notes for details.
814 |
815 | * Updated dependencies
816 | * [nerves_system_br v1.9.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.9.2)
817 |
818 | * Enhancements
819 | * Support a variety of USB->UART adapters so more devices work out-of-the-box
820 |
821 | ## v1.8.2
822 |
823 | This release fixes an issue that broke display output on small LCD screens.
824 | Updating the Raspberry Pi firmware to the latest from the Raspberry Pi
825 | Foundation fixed the issue. See
826 | https://github.com/fhunleth/rpi_fb_capture/issues/2 for details.
827 |
828 | * Updated dependencies
829 | * [nerves_system_br v1.8.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.5)
830 |
831 | ## v1.8.1
832 |
833 | * Updated dependencies
834 | * [nerves_system_br v1.8.4](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.4)
835 | * Linux 4.19.58 with patches from the Raspberry Pi Foundation
836 |
837 | ## v1.8.0
838 |
839 | This release
840 |
841 | This release updates Erlang to OTP 22 and gcc from version 7.3.0 to 8.3.0.
842 | See the nerves_system_br and toolchain release notes for more information.
843 |
844 | * Enhancements
845 | * Enable source-based routing in the Linux kernel to support [vintage_net](https://github.com/nerves-networking/vintage_net)
846 |
847 | * Updated dependencies
848 | * Erlang 22.0.4
849 | * [nerves_system_br v1.8.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.8.2)
850 | * [nerves_toolchain_arm_unknown_linux_gnueabihf v1.2.0](https://github.com/nerves-project/toolchains/releases/tag/v1.2.0)
851 |
852 | ## v1.7.2
853 |
854 | * Bux fixes
855 | * Add TAR option `--no-same-owner` to fix errors when untarring artifacts as
856 | the root user.
857 | * Updated dependencies
858 | * [nerves_system_br v1.7.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.2)
859 |
860 | ## v1.7.1
861 |
862 | * Bug fixes
863 | * Re-enabled Raspberry Pi Foundation display backlight driver.
864 |
865 | * Improvements
866 | * Bump C compiler options to `-O2` from `-Os`. This provides a small, but
867 | measurable performance improvement (500ms at boot in a trivial project
868 | tested on [nerves_system_rpi0](https://github.com/nerves-project/nerves_system_rpi0)).
869 |
870 | * Updated dependencies
871 | * [nerves_system_br v1.7.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.1)
872 |
873 | ## v1.7.0
874 |
875 | This release bumps the Linux kernel to 4.19.25. This change had an impact on how
876 | the WiFi regulatory database gets loaded into the kernel. Instead of building it
877 | into the kernel as previously done, the kernel loads it on demand. This requires
878 | that all WiFi drivers be built as kernel modules so that the database isn't
879 | loaded before the root filesystem is mounted. If you made a custom system and
880 | see boot errors about not being able to load the regulatory database, this is
881 | the problem.
882 |
883 | * Updated dependencies
884 | * [nerves_system_br v1.7.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.7.0)
885 | * Linux 4.19.25 with patches from the Raspberry Pi Foundation
886 |
887 | ## v1.6.3
888 |
889 | * Updated dependencies
890 | * [nerves_system_br v1.6.8](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.8)
891 | * Erlang 21.2.6
892 |
893 | ## v1.6.2
894 |
895 | * Updated dependencies
896 | * [nerves_system_br v1.6.6](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.6)
897 | * Erlang 21.2.4
898 | * boardid 1.5.3
899 |
900 | ## v1.6.1
901 |
902 | * Updated dependencies
903 | * [nerves_system_br v1.6.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.5)
904 | * Erlang 21.2.2
905 | * boardid 1.5.2
906 | * erlinit 1.4.9
907 | * OpenSSL 1.1.1a
908 | * Linux 4.14.89 with patches from the Raspberry Pi Foundation
909 |
910 | * Enhancements
911 | * Moved boardid config from inside erlinit.config to /etc/boardid.config
912 | * Compile gpiomem into the Linux kernel
913 | * Enable pstore, an in-memory buffer that can capture logs, kernel
914 | oops and other information when unexpected reboots. The buffer can be
915 | recovered on the next boot where it can be inspected.
916 |
917 | ## v1.6.0
918 |
919 | This pulls in a pending patch in Buildroot to update the version of
920 | OpenSSL from 1.0.2 to 1.1.0h. This fixes what appears to be issues with
921 | Erlang using OpenSSL engines. It also enables Erlang crypto algorithms
922 | such as ed25519 that have been added in recent Erlang releases.
923 |
924 | * Updated dependencies
925 | * [nerves_system_br v1.6.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.6.1)
926 | * Erlang 21.2
927 | * Added dependencies
928 | * wpa_passphrase
929 | * libp11 0.4.9
930 |
931 | ## v1.5.1
932 |
933 | * Enhancements
934 | * Enable configuration for the Raspberry Pi 7" touchscreen display by default.
935 | * Updated dependencies
936 | * [nerves_system_br v1.5.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.5.3)
937 |
938 | ## v1.5.0
939 |
940 | This release updates the Linux kernel from 4.4/4.9 to 4.14.71.
941 |
942 | * Enhancements
943 | * Added Alsa utils `aplay` and `amixer` for audio support.
944 | * Added `espeak` a speech synthesizer for text to audio.
945 | * Automatically reboot if the Linux kernel panics (defaults to a 10 second
946 | delay before the reboot)
947 |
948 | * Updated dependencies
949 | * [nerves_system_br v1.5.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.5.2)
950 | * Linux 4.14.71 with patches from the Raspberry Pi Foundation
951 | * Erlang 21.0.9
952 |
953 | ## v1.4.1
954 |
955 | * Bug fixes
956 | * Trim Linux module list to remove warnings on OSX builds. This makes a few
957 | other changes to the module list to remove some difficult to use modules on
958 | Nerves projects.
959 |
960 | ## v1.4.0
961 |
962 | This release contains various updates to provisioning variables and data.
963 |
964 | **Host requirements**
965 |
966 | Building firmware using this system requires `fwup` to be updated on your
967 | host computer to at least `v1.2.5`. The target minimum version requirement
968 | has not changed from `0.15.0`.
969 |
970 | **Serial numbers**
971 |
972 | Device serial numbers are now set using `NERVES_SERIAL_NUMBER` instead of
973 | `SERIAL_NUMBER`. This is to reduce ambiguity on the source of the serial
974 | by name spacing it along side other Nerves variables. The U-Boot environment
975 | key has also changed from `serial_number` to `nerves_serial_number`. The
976 | erlinit.config has been updated to provide backwards compatibility for setting
977 | the hostname from the serial number by checking for `nerves_serial_number`
978 | and falling back to `serial_number`.
979 |
980 | **Custom provisioning**
981 |
982 | Provisioning data is applied at the time of calling the `fwup` task `complete`.
983 | The `complete` task is executed when writing the firmware to the target disk.
984 | During this time, `fwup` will include the contents of a provisioning file
985 | located at `${NERVES_SYSTEM}/images/fwup_include/provisioning.conf`. By default,
986 | this file only sets `nerves_serial_number`. You can add additional provisioning
987 | data by overriding the location of this file to include your own by setting
988 | the environment variable `NERVES_PROVISIONING`. If you override this variable
989 | you will be responsible for also setting `nerves_serial_number`.
990 |
991 | * Updated dependencies
992 | * [nerves_system_br v1.4.5](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.4.5)
993 |
994 | ## v1.3.0
995 |
996 | This release upgrades gcc from version 6.3.0 to 7.3.0. See the toolchain release
997 | notes for more information.
998 |
999 | * Updated dependencies
1000 | * [nerves_system_br v1.4.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.4.1)
1001 | * [nerves_toolchain_arm_unknown_linux_gnueabihf v1.1.0](https://github.com/nerves-project/toolchains/releases/tag/v1.1.0)
1002 |
1003 | ## v1.2.1
1004 |
1005 | * Bug Fixes
1006 | * Fix Raspberry Pi 3 B+ support by adding missing dtb file.
1007 |
1008 | * Updated dependencies
1009 | * [nerves_system_br v1.3.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.3.2)
1010 |
1011 | ## v1.2.0
1012 |
1013 | This release updates Erlang to OTP 21.0
1014 |
1015 | * Updated dependencies
1016 | * [nerves_system_br v1.3.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.3.0)
1017 |
1018 | ## v1.1.1
1019 |
1020 | This release fixes some issues and adds firmware UUID support. This support can
1021 | be used to unambiguously know what's running on a device.
1022 |
1023 | * Updated dependencies
1024 | * [nerves_system_br v1.2.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.2.2)
1025 |
1026 | * Bug fixes
1027 | * Empty serial numbers stored in the U-Boot environment would be used instead
1028 | of reverting to devices IDs built into the CPU or board.
1029 | * It wasn't possible to enable QtWebEngine (needed for kiosk apps)
1030 |
1031 | ## v1.1.0
1032 |
1033 | This release adds official support for provisioning serial numbers to devices.
1034 | Other information can be provisioned in a similar manner. See the README.md for
1035 | details.
1036 |
1037 | Buildroot was also updated to 2018.05. Be sure to review the `nerves_system_br`
1038 | link for the changes in the embedded Linux components.
1039 |
1040 | * Updated dependencies
1041 | * [nerves_system_br v1.2.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.2.0)
1042 |
1043 | * New features
1044 | * More `wpa-supplicant` features were enabled to support more WiFi use-cases
1045 |
1046 | ## v1.0.0
1047 |
1048 | This release is nearly identical to rc.2 except with the deps bump to 1.0 and
1049 | the serial port on the GPIO pins is assigned to "dev/ttyAMA0" like all
1050 | other RPi systems.
1051 |
1052 | * Updated dependencies
1053 | * [nerves_system_br v1.0.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0)
1054 | * [nerves_toolchain v1.0.0](https://github.com/nerves-project/toolchains/releases/tag/v1.0.0)
1055 | * [nerves v1.0.0](https://github.com/nerves-project/nerves/releases/tag/1.0.0)
1056 |
1057 | ## v1.0.0-rc.2
1058 |
1059 | Upgraded the Linux kernel from 4.4 -> 4.9. Due to the coupling
1060 | between the Linux kernel and rpi-firmware and possibly rpi-userland, if
1061 | you have a custom system based off this, you should update your Linux
1062 | kernel as well. (see `nerves_defconfig`)
1063 |
1064 | * Enhancements
1065 | * Support for Raspberry Pi 3 B+
1066 |
1067 | * Updated dependencies
1068 | * [nerves_system_br v1.0.0-rc.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0-rc.3)
1069 |
1070 | ## v1.0.0-rc.1
1071 |
1072 | This release contains updates to Erlang and heart from `nerves_system_br` and
1073 | mostly cosmetic changes to this project. The trivial `.fw` files are no longer
1074 | created by CI scripts. If you've forked this project and are building systems
1075 | using CI, make sure to update your publish scripts.
1076 |
1077 | * Updated dependencies
1078 | * [nerves_system_br v1.0.0-rc.2](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0-rc.2)
1079 |
1080 | ## v1.0.0-rc.0
1081 |
1082 | * Updated dependencies
1083 | * [nerves_system_br v1.0.0-rc.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v1.0.0-rc.0)
1084 | * [nerves_toolchain v1.0.0-rc.0](https://github.com/nerves-project/toolchains/releases/tag/v1.0.0-rc.0)
1085 | * [nerves v1.0.0-rc.0](https://github.com/nerves-project/nerves/releases/tag/1.0.0-rc.0)
1086 |
1087 | ## v0.20.0
1088 |
1089 | * Updated dependencies
1090 | * [nerves_system_br v0.17.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.17.0)
1091 | * [nerves_toolchain v0.13.0](https://github.com/nerves-project/toolchains/releases/tag/v0.13.0)
1092 | * [nerves v0.9.0](https://github.com/nerves-project/nerves/releases/tag/v0.9.0)
1093 |
1094 | ## v0.19.1
1095 |
1096 | * Updated dependencies
1097 | * [nerves_system_br v0.16.3](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.16.3)
1098 | This fixes the call to otp_build so that it always uses Buildroot's version
1099 | the autoconf tools.
1100 |
1101 | ## v0.19.0
1102 |
1103 | * Updated dependencies
1104 | * [nerves_system_br v0.16.1-2017-11](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.16.1-2017-11)
1105 |
1106 | * Enhancements
1107 | * Reboot automatically if Erlang VM exits - This is consistent with other
1108 | Nerves systems. See rootfs_overlay/etc/erlinit.config if undesired.
1109 | * Start running nerves_system_linter to check for configuration errors.
1110 | * Disable console blanking for HDMI to make it easier to capture error messages.
1111 | * Automount the boot partition readonly at `/boot`
1112 | * Support for reverting firmware.
1113 |
1114 | See [Reverting Firmware](https://hexdocs.pm/nerves_runtime/readme.html#reverting-firmware) for more info on reverting firmware.
1115 |
1116 | 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.
1117 |
1118 | ## v0.18.0
1119 |
1120 | * Updated dependencies
1121 | * [nerves_system_br v0.15.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.15.0)
1122 | * [toolchain v0.12.1](https://github.com/nerves-project/toolchains/releases/tag/v0.12.1)
1123 |
1124 | * Enhancements
1125 | * Support for nerves 0.8. Moves nerves.exs into mix.exs
1126 | * Support for the Raspberry Pi Compute Module
1127 | * Select ARM Cortex A53 as CPU for Buildroot
1128 |
1129 | ## v0.17.1
1130 |
1131 | * Updated dependencies
1132 | * [nerves_system_br v0.14.1](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.14.1)
1133 |
1134 | ## v0.17.0
1135 |
1136 | * Updated dependencies
1137 | * [nerves_system_br v0.14.0](https://github.com/nerves-project/nerves_system_br/releases/tag/v0.14.0)
1138 | * [Buildroot 2017.08](https://git.busybox.net/buildroot/plain/CHANGES?id=2017.08)
1139 | * [fwup 0.17.0](https://github.com/fhunleth/fwup/releases/tag/v0.17.0)
1140 | * [erlinit 1.2.0](https://github.com/nerves-project/erlinit/releases/tag/v1.2.0)
1141 | * [nbtty 0.3.0](https://github.com/fhunleth/nbtty/releases/tag/v0.3.0)
1142 |
1143 | * Enhancements
1144 | * Add global patch directory
1145 |
1146 | This is required to pull in the e2fsprogs patch that's needed now that
1147 | util-linux's uuid_generate function calls getrandom and can block
1148 | indefinitely for the urandom pool to initialize
1149 |
1150 | ## v0.16.1
1151 |
1152 | * Updated dependencies
1153 | * nerves_system_br v0.13.7
1154 |
1155 | ## v0.16.0
1156 |
1157 | This release contains an updated toolchain with Linux 4.1 Headers.
1158 | You will have to clean and compile any c/c++ code in your project and
1159 | dependencies. Failure to do so will result in an error when producing firmware.
1160 |
1161 | * nerves_system_br v0.13.5
1162 | * fwup 0.15.4
1163 |
1164 | * Nerves toolchain v0.11.0
1165 |
1166 | ## v0.15.0
1167 |
1168 | * nerves_system_br v0.13.3
1169 | * erlinit 1.1.4
1170 |
1171 | * New features
1172 | * Firmware updates verify that they're updating the right target. If the target
1173 | doesn't say that it's an `rpi3` through the firmware metadata, the update
1174 | will fail.
1175 | * Added meta-misc and meta-vcs-identifier to the `fwup.conf` metadata for use
1176 | by users and for the regression test framework
1177 | * Use String.trim instead of String.strip to silence Elixir 1.5 warnings
1178 |
1179 | ## v0.14.0
1180 |
1181 | * nerves_system_br v0.13.2
1182 | * OTP 20
1183 | * erlinit 1.1.3
1184 | * fwup 0.15.3
1185 |
1186 | ## v0.13.0
1187 |
1188 | * nerves_system_br v0.12.1
1189 | * erlinit 1.1.1
1190 | * fwup 0.15.0
1191 |
1192 | * New features
1193 | * The application data partition is now `ext4`. This greatly improves its
1194 | robustness to corruption. Nerves.Runtime contains code to initialize it on
1195 | first boot.
1196 | * Firmware images now contain metadata that can be queried at runtime (see
1197 | Nerves.Runtime.KV
1198 | * Increased GPU memory to support Pi Camera V2
1199 |
1200 | ## v0.12.0
1201 |
1202 | * nerves_system_br v0.10.0
1203 | * Buildroot 2017.02
1204 | * Erlang/OTP 19.3
1205 |
1206 | * New features
1207 | * Upgraded the Linux kernel from 4.4.43 -> 4.4.50. Due to the coupling
1208 | between the Linux kernel and rpi-firmware and possibly rpi-userland, if
1209 | you have a custom system based off this, you should update your Linux
1210 | kernel as well. (see `nerves_defconfig`)
1211 |
1212 | ## v0.11.0
1213 |
1214 | * New features
1215 | * Enabled USB_SERIAL and FTDI_SIO support. Needed for connecting with Arduino to the USB ports
1216 | * Support for Nerves 0.5.0
1217 |
1218 | ## v0.10.0
1219 |
1220 | * New features
1221 | * Upgraded the Linux kernel to 4.4.43. This also removes the
1222 | call to mkknlimg which is no longer needed.
1223 | * Bump toolchain to use gcc 5.3 (previously using gcc 4.9.3)
1224 | * Bug Fixes
1225 | * brcmfmac is being compiled as a module. This means that in order to use wifi you will need to `modprobe brcmfmac`. This addresses an issue where the module would not initialize properly on some boards.
1226 |
1227 | ## v0.9.1
1228 |
1229 | * Bug Fixes
1230 | * Fixed issues with wifi not starting on some devices
1231 |
1232 | ## v0.9.0
1233 |
1234 | This version switches to using the `nerves_package` compiler. This will
1235 | consolidate overall deps and compilers.
1236 |
1237 | * Nerves.System.BR v0.8.1
1238 | * Support for distillery
1239 | * Support for nerves_package compiler
1240 |
1241 | ## v0.7.0
1242 |
1243 | When upgrading to this version, be sure to review the updates to
1244 | nerves_defconfig if you have customized this system.
1245 |
1246 | * nerves_system_br v0.6.2
1247 | * Package updates
1248 | * Buildroot 2016.08
1249 | * Linux 4.4
1250 |
1251 | ## v0.6.1
1252 |
1253 | * Package versions
1254 | * Nerves.System.BR v0.6.1
1255 |
1256 | * New features
1257 | * All Raspberry Pi 3-specific configuration is now in this repository
1258 |
1259 | ## v0.6.0
1260 |
1261 | * Nerves.System.BR v0.6.0
1262 | * Package updates
1263 | * Erlang OTP 19
1264 | * Elixir 1.3.1
1265 | * fwup 0.8.0
1266 | * erlinit 0.7.3
1267 | * bborg-overlays (pull in I2C typo fix from upstream)
1268 | * Bug fixes
1269 | * Synchronize file system kernel configs across all platforms
1270 |
1271 | ## v0.5.2
1272 |
1273 | * Enhancements
1274 | * Enabled USB Printer kernel mod. Needs to be loaded with `modprobe` to use
1275 | * Bug Fixes(raspberry pi)
1276 | * Enabled multicast in linux config
1277 |
1278 | ## v0.5.1
1279 |
1280 | * Nerves.System.BR v0.5.1
1281 | * Bug Fixes(nerves-env)
1282 | * Added include paths to CFLAGS and CXXFLAGS
1283 | * Pass sysroot to LDFLAGS
1284 |
1285 | ## v0.5.0
1286 |
1287 | * Nerves.System.BR v0.5.0
1288 | * New features
1289 | * WiFi drivers enabled by default on RPi2 and RPi3
1290 | * Include wireless regulatory database in Linux kernel by default
1291 | on WiFi-enabled platforms. Since kernel/rootfs are read-only and
1292 | coupled together for firmware updates, the normal CRDA/udev approach
1293 | isn't necessary.
1294 | * Upgraded the default BeagleBone Black kernel from 3.8 to 4.4.9. The
1295 | standard BBB device tree overlays are included by default even though the
1296 | upstream kernel patches no longer include them.
1297 | * Change all fwup configurations from two step upgrades to one step
1298 | upgrades. If you used the base fwup.conf files to upgrade, you no
1299 | longer need to finalize the upgrade. If not, there's no change.
1300 |
1301 | ## v0.4.1
1302 |
1303 | * Nerves.System.BR v0.4.1
1304 | * Bug fixes
1305 | * syslinux fails to boot when compiled on some gcc 5 systems
1306 | * Fixed regression when booting off eMMC on the BBB
1307 |
1308 | * Package updates
1309 | * Erlang 18.3
1310 | * Elixir 1.2.5
1311 |
--------------------------------------------------------------------------------
/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 3 Model B / B+
2 |
3 | [](https://hex.pm/packages/nerves_system_rpi3)
4 | [](https://github.com/nerves-project/nerves_system_rpi3/actions/workflows/ci.yml)
5 | [](https://api.reuse.software/info/github.com/nerves-project/nerves_system_rpi3)
6 |
7 | This is the base Nerves System configuration for the Raspberry Pi 3 Model B.
8 |
9 | 
10 |
[Image credit](#fritzing)
11 |
12 | | Feature | Description |
13 | | -------------------- | ----------------------------------------------------------- |
14 | | CPU | 1.2 GHz quad-core Cortex-A53 (ARMv8) |
15 | | Memory | 1 GB DRAM |
16 | | Storage | MicroSD |
17 | | Linux kernel | 6.1 w/ Raspberry Pi patches |
18 | | IEx terminal | HDMI and USB keyboard (can be changed to UART) |
19 | | GPIO, I2C, SPI | Yes - [Elixir Circuits](https://github.com/elixir-circuits) |
20 | | ADC | No |
21 | | PWM | Yes, but no Elixir support |
22 | | UART | 1 available - `ttyAMA0` |
23 | | Display | HDMI or 7" RPi Touchscreen |
24 | | Camera | Yes - via rpi-userland |
25 | | Ethernet | Yes |
26 | | WiFi | Yes |
27 | | Bluetooth | [See Bluetooth](#bluetooth) |
28 | | Audio | HDMI/Stereo out |
29 |
30 | ## Using
31 |
32 | The most common way of using this Nerves System is create a project with `mix
33 | nerves.new` and to export `MIX_TARGET=rpi3`. See the [Getting started
34 | guide](https://hexdocs.pm/nerves/getting-started.html#creating-a-new-nerves-app)
35 | for more information.
36 |
37 | If you need custom modifications to this system for your device, clone this
38 | repository and update as described in [Making custom
39 | systems](https://hexdocs.pm/nerves/customizing-systems.html).
40 |
41 | ## Supported WiFi devices
42 |
43 | The base image includes drivers for the onboard Raspberry Pi 3 wifi module
44 | (`brcmfmac` driver).
45 |
46 | ## Bluetooth
47 |
48 | [BlueHeronTransportUART](https://github.com/blue-heron/blue_heron_transport_uart)
49 | supports bluetooth on the Pi 3A using `ttyS0`. The details are similar to the [RPi Zero W]
50 | (https://github.com/nerves-project/nerves_system_rpi0/issues/224#issuecomment-913799838).
51 |
52 | ## Audio
53 |
54 | The Raspberry Pi has many options for audio output. This system supports the
55 | HDMI and stereo audio jack output. The Linux ALSA drivers are used for audio
56 | output.
57 |
58 | The general Raspberry Pi audio documentation mostly applies to Nerves. For
59 | example, to force audio out the HDMI port, run:
60 |
61 | ```elixir
62 | cmd("amixer cset numid=3 2")
63 | ```
64 |
65 | Change the last argument to `amixer` to `1` to output to the stereo output jack.
66 |
67 | ## Linux's preempt_rt patches
68 |
69 | If you need better real-time performance from the Linux kernel, the `preempt_rt`
70 | patch set may help. Be aware that we do not test with the patches so this may
71 | not work. To enable it, make a custom system using this one as a base and add
72 | the following to the `nerves_defconfig`:
73 |
74 | ```text
75 | BR2_LINUX_KERNEL_PATCH="http://cdn.kernel.org/pub/linux/kernel/projects/rt/4.19/patch-4.19.25-rt16.patch.xz"
76 | ```
77 |
78 | Please verify the patch version since these instructions may be out-of-date.
79 |
80 | Next, update the Linux configuration to use it. Review the Nerves documentation
81 | for running `make linux-menuconfig` and enable `PREEMPT_RT_FULL`. Alternately,
82 | make the following change to the Linux configuration:
83 |
84 | ```text
85 | -CONFIG_PREEMPT=y
86 | +CONFIG_PREEMPT_RT_FULL=y
87 | ```
88 |
89 | Build the system and you should now have a preempt_rt kernel.
90 |
91 | ## Provisioning devices
92 |
93 | This system supports storing provisioning information in a small key-value store
94 | outside of any filesystem. Provisioning is an optional step and reasonable
95 | defaults are provided if this is missing.
96 |
97 | Provisioning information can be queried using the Nerves.Runtime KV store's
98 | [`Nerves.Runtime.KV.get/1`](https://hexdocs.pm/nerves_runtime/Nerves.Runtime.KV.html#get/1)
99 | function.
100 |
101 | Keys used by this system are:
102 |
103 | Key | Example Value | Description
104 | :--------------------- | :---------------- | :----------
105 | `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.
106 |
107 | The normal procedure would be to set these keys once in manufacturing or before
108 | deployment and then leave them alone.
109 |
110 | For example, to provision a serial number on a running device, run the following
111 | and reboot:
112 |
113 | ```elixir
114 | iex> cmd("fw_setenv nerves_serial_number 12345678")
115 | ```
116 |
117 | This system supports setting the serial number offline. To do this, set the
118 | `NERVES_SERIAL_NUMBER` environment variable when burning the firmware. If you're
119 | programming MicroSD cards using `fwup`, the commandline is:
120 |
121 | ```sh
122 | sudo NERVES_SERIAL_NUMBER=12345678 fwup path_to_firmware.fw
123 | ```
124 |
125 | Serial numbers are stored on the MicroSD card so if the MicroSD card is
126 | replaced, the serial number will need to be reprogrammed. The numbers are stored
127 | in a U-boot environment block. This is a special region that is separate from
128 | the application partition so reformatting the application partition will not
129 | lose the serial number or any other data stored in this block.
130 |
131 | Additional key value pairs can be provisioned by overriding the default
132 | provisioning.conf file location by setting the environment variable
133 | `NERVES_PROVISIONING=/path/to/provisioning.conf`. The default provisioning.conf
134 | will set the `nerves_serial_number`, if you override the location to this file,
135 | you will be responsible for setting this yourself.
136 |
137 | ## Linux kernel and RPi firmware/userland
138 |
139 | There's a subtle coupling between the `nerves_system_br` version and the Linux
140 | kernel version used here. `nerves_system_br` provides the versions of
141 | `rpi-userland` and `rpi-firmware` that get installed. I prefer to match them to
142 | the Linux kernel to avoid any issues. Unfortunately, none of these are tagged by
143 | the Raspberry Pi Foundation so I either attempt to match what's in Raspbian or
144 | take versions of the repositories that have similar commit times.
145 |
146 | ## Linux kernel configuration
147 |
148 | The Linux kernel compiled for Nerves is a stripped down version of the default
149 | Raspberry Pi Linux kernel. This is done to remove unnecessary features, select
150 | some Nerves-specific features, and to save space. To reproduce the kernel
151 | configuration found here, do the following (this is somewhat tedious):
152 |
153 | 1. Start with `arch/arm/configs/bcmrpi_defconfig`. This is the kernel
154 | configuration used in the official Raspberry Pi images.
155 | 1. Turn off all filesystems except for `ext4`, `squashfs`, `tmpfs`, `proc`,
156 | `sysfs`, and `vfat`. Squashfs only needs ZLIB support.
157 | 1. `vfat` needs to default to `utf8`. Enable native language support for
158 | `ascii`, `utf-8`, `ISO 8859-1`, codepage 437, and codepage 850.
159 | 1. Disable all network drivers and wireless LAN drivers except for Broadcom
160 | FullMAC WLAN.
161 | 1. Disable PPP and SLIP
162 | 1. Disable the WiFi drivers in the Staging drivers menus
163 | 1. Disable TV, AM/FM, Media USB adapters, DVB Frontends and Remote controller
164 | support in the Multimedia support menus.
165 | 1. Go to `Device Drivers->Sound card support`. Disable `USB sound devices` in
166 | ALSA. Disable `Open Sound System`.
167 | 1. Go to `Device Drivers->Graphics support`. Disable `DisplayLink`
168 | 1. In `Kernel Features`, select `Preemptible Kernel (Low-Latency Desktop)`,
169 | disable the memory allocator for compressed pages.
170 | 1. In `Userspace binary formats`, disable support for MISC binaries.
171 | 1. In `Networking support`, disable Amateur Radio support, CAN bus subsystem,
172 | IrDA subsystem, Bluetooth, WiMAX, Plan 9, and NFC. (TBD - this may be too
173 | harsh, please open issues if you're using any of these and it's the only
174 | reason for you to create a custom system.)
175 | 1. In `Networking options`, disable IPsec, SCTP, Asynchronous Transfer Mode,
176 | 802.1d Ethernet Bridging, L2TP, VLAN, Appletalk, 6LoWPAN, 802.15.4, DNS
177 | Resolver, B.A.T.M.A.N, Open vSwitch, MPLS, and the Packet Generator in Network
178 | testing.
179 | 1. In `Networking support->Wireless`, enable "use statically compiled regulatory
180 | rules database". Build in `cfg80211` and `mac80211`. Turn off `mac80211` mesh
181 | networking and LED triggers. Turn off `cfg80211` wireless extensions
182 | compatibility.
183 | 1. In `Kernel hacking`, disable KGDB, and Magic SysRq key.
184 | 1. In Device Drivers, disable MTD support. In Block devices, disable everything
185 | but Loopback and RAM block device. Disable RAID and LVM.
186 | 1. In `Enable the block layer`, deselect everything but the PC BIOS partition
187 | type (i.e., no Mac partition support, etc.).
188 | 1. In `Enable loadable module support`, select "Trim unused exported kernel
189 | symbols". NOTE: If you're having trouble with an out-of-tree kernel module
190 | build, try deslecting this!!
191 | 1. In `General Setup`, turn off `initramfs/initfd` support, Kernel .config
192 | support, OProfile.
193 | 1. In `Device Drivers -> I2C -> Hardware Bus Support` compile the module into
194 | the kernel and disable everything but `BCM2708 BSC` support.
195 | 1. In `Device Drivers -> SPI` compile in the BCM2835 SPI controller and User
196 | mode SPI device driver support.
197 | 1. In `Device Drivers -> Staging` disable `Support for small TFT LCD modules`
198 | 1. In `Device Drivers -> Dallas's 1-wire support`, disable everything but the
199 | GPIO 1-Wire master and the thermometer slave. (NOTE: Why is the thermometer
200 | compiled in? This seems historical.)
201 | 1. Disable `Hardware Monitoring support`, `Sonics Silicon Backplane support`
202 | 1. In `Device Drivers -> Character devices -> Serial drivers`, disable 8250 and
203 | SC16IS7xx support. Disable the RAW driver.
204 | 1. In `Networking support->Network options`, disable `IP: kernel level
205 | autoconfiguration`
206 | 1. In `Networking support->Network options->TCP: advanced congestion control`
207 | disable everything except for `CUBIC TCP`.
208 | 1. Disable `Real Time Clock`.
209 | 1. Disable everything in `Cryptographic API` and `Library routines` that can be
210 | disabled. Sometimes you need to make multiple passes.
211 | 1. Disable EEPROM 93CX6 support, PPS support, all GPIO expanders, Speakup core,
212 | Media staging drivers, STMicroelectronics STMPE, anything "Wolfson".
213 | 1. Disable most ALSA for SoC audio support and codecs. NOTE: We probably should
214 | support a few, but I have no clue which ones are most relevant and there are
215 | tons of device drivers in the list.
216 | 1. Disable IIO and UIO.
217 | 1. Disable NXP PCA9685 PWM driver
218 |
219 | [Image credit](#fritzing): This image is from the [Fritzing](http://fritzing.org/home/) parts library.
220 |
--------------------------------------------------------------------------------
/REUSE.toml:
--------------------------------------------------------------------------------
1 | version = 1
2 |
3 | [[annotations]]
4 | path = [
5 | ".formatter.exs",
6 | ".github/CODEOWNERS",
7 | ".github/workflows/ci.yml",
8 | ".gitignore",
9 | "CHANGELOG.md",
10 | "NOTICE",
11 | "REUSE.toml",
12 | "mix.exs",
13 | "mix.lock",
14 | "VERSION"
15 | ]
16 | precedence = "aggregate"
17 | SPDX-FileCopyrightText = "None"
18 | SPDX-License-Identifier = "CC0-1.0"
19 |
20 | [[annotations]]
21 | path = [
22 | "README.md"
23 | ]
24 | precedence = "aggregate"
25 | SPDX-FileCopyrightText = "2016 Frank Hunleth"
26 | SPDX-License-Identifier = "CC-BY-4.0"
27 |
28 | # Buildroot derived or related files
29 | [[annotations]]
30 | path = [
31 | "Config.in",
32 | "package/**",
33 | "external.mk",
34 | "nerves_defconfig",
35 | "post-build.sh",
36 | "post-createfs.sh"
37 | ]
38 | precedence = "aggregate"
39 | SPDX-FileCopyrightText = "The Buildroot developers "
40 | SPDX-License-Identifier = "GPL-2.0-or-later"
41 |
42 | # Linux kernel derived or related files
43 | [[annotations]]
44 | path = [
45 | "linux/*",
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%20Pi%203.fzp
79 | [[annotations]]
80 | path = [
81 | "assets/images/raspberry-pi-3-model-b.png"
82 | ]
83 | precedence = "aggregate"
84 | SPDX-FileCopyrightText = "Anudit Nagar"
85 | SPDX-License-Identifier = "CC-BY-SA-3.0"
86 |
--------------------------------------------------------------------------------
/VERSION:
--------------------------------------------------------------------------------
1 | 1.31.4
2 |
--------------------------------------------------------------------------------
/assets/images/raspberry-pi-3-model-b.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/nerves-project/nerves_system_rpi3/c119823bde3e3863b0c27daf68c6a612222321a4/assets/images/raspberry-pi-3-model-b.png
--------------------------------------------------------------------------------
/cmdline.txt:
--------------------------------------------------------------------------------
1 | # NOTES:
2 | # 1. serial0 is magically replaced to the right thing by the RPi bootloader.
3 | # /dev/serial0 won't exist unless you make it, so don't expected it in
4 | # userland.
5 | # 2. If not using HDMI, remove console=tty1 and consoleblank=0
6 | # 3. quiet skips printing kernel messages to the output and significantly
7 | # shortens boot time
8 | console=tty1 console=serial0,115200 fbcon=scrollback:1024k root=/dev/mmcblk0p2 rootwait consoleblank=0 quiet
9 |
--------------------------------------------------------------------------------
/config.txt:
--------------------------------------------------------------------------------
1 | # Default Nerves RPi 3 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 | # Enable drivers for the Raspberry Pi 7" Touchscreen
31 | #
32 | # This makes it possible to run Scenic out of the box with the popular
33 | # Raspberry Pi 7" Touchscreen. It appears to be harmless for non-touchscreen
34 | # users, but if not, let us know!
35 | dtoverlay=rpi-ft5406
36 | dtoverlay=rpi-backlight
37 |
38 | # Comment this in or modify to enable OneWire
39 | # NOTE: check that the overlay that you specify is in the boot partition or
40 | # this won't work.
41 | #dtoverlay=w1-gpio-pullup,gpiopin=4
42 |
43 | # The ramoops overlay works with the pstore driver to preserve crash
44 | # information across reboots in DRAM
45 | dtoverlay=ramoops
46 |
47 | # Enable the UART (/dev/ttyAMA0) on the RPi3.
48 | enable_uart=1
49 | dtoverlay=miniuart-bt
50 | # Set the GPU frequency so that the MiniUART (/dev/ttyS0) can be used for
51 | # Bluetooth. This has a small performance impact. See
52 | # https://www.raspberrypi.org/documentation/computers/config_txt.html#overclocking.
53 | core_freq=250
54 |
--------------------------------------------------------------------------------
/fwup-ops.conf:
--------------------------------------------------------------------------------
1 | # Post-installation firmware operations for the Raspberry Pi 3
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 | require-fwup-version="1.0.0"
21 |
22 | include("${NERVES_SDK_IMAGES:-.}/fwup_include/fwup-common.conf")
23 |
24 | mbr mbr-a {
25 | partition 0 {
26 | block-offset = ${BOOT_A_PART_OFFSET}
27 | block-count = ${BOOT_A_PART_COUNT}
28 | type = 0xc # FAT32
29 | boot = true
30 | }
31 | partition 1 {
32 | block-offset = ${ROOTFS_A_PART_OFFSET}
33 | block-count = ${ROOTFS_A_PART_COUNT}
34 | type = 0x83 # Linux
35 | }
36 | partition 2 {
37 | block-offset = ${APP_PART_OFFSET}
38 | block-count = ${APP_PART_COUNT}
39 | type = 0x83 # Linux
40 | expand = true
41 | }
42 | # partition 3 is unused
43 | }
44 |
45 | mbr mbr-b {
46 | partition 0 {
47 | block-offset = ${BOOT_B_PART_OFFSET}
48 | block-count = ${BOOT_B_PART_COUNT}
49 | type = 0xc # FAT32
50 | boot = true
51 | }
52 | partition 1 {
53 | block-offset = ${ROOTFS_B_PART_OFFSET}
54 | block-count = ${ROOTFS_B_PART_COUNT}
55 | type = 0x83 # Linux
56 | }
57 | partition 2 {
58 | block-offset = ${APP_PART_OFFSET}
59 | block-count = ${APP_PART_COUNT}
60 | type = 0x83 # Linux
61 | expand = true
62 | }
63 | # partition 3 is unused
64 | }
65 |
66 | # Location where installed firmware information is stored.
67 | # While this is called "u-boot", u-boot isn't involved in this
68 | # setup. It just provides a convenient key/value store format.
69 | uboot-environment uboot-env {
70 | block-offset = ${UBOOT_ENV_OFFSET}
71 | block-count = ${UBOOT_ENV_COUNT}
72 | }
73 |
74 | ##
75 | # factory-reset
76 | ##
77 | task factory-reset {
78 | on-init {
79 | info("Erasing all writable data")
80 | # This requires --enable-trim
81 | # Trim may not work on MicroSD card, so don't rely on it
82 | trim(${APP_PART_OFFSET}, ${APP_PART_COUNT})
83 | raw_memset(${APP_PART_OFFSET}, 256, 0xff)
84 | }
85 | }
86 |
87 | ##
88 | # prevent-revert
89 | #
90 | # Pass `--enable-trim` to also clear out the partition that no longer should be used.
91 | ##
92 | task prevent-revert.a {
93 | # Check that we're running on B
94 | require-partition-offset(0, ${BOOT_B_PART_OFFSET})
95 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
96 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
97 |
98 | on-init {
99 | info("Preventing reverts to partition A")
100 | # Remove U-Boot variables that fwup uses to allow reverting images
101 | uboot_unsetenv(uboot-env, "a.nerves_fw_platform")
102 | uboot_unsetenv(uboot-env, "a.nerves_fw_architecture")
103 | # Clear out the old image using TRIM. This requires --enable-trim
104 | trim(${ROOTFS_A_PART_OFFSET}, ${ROOTFS_A_PART_COUNT})
105 | trim(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
106 | }
107 | }
108 | task prevent-revert.b {
109 | # Check that we're running on A
110 | require-partition-offset(0, ${BOOT_A_PART_OFFSET})
111 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
112 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
113 |
114 | on-init {
115 | info("Preventing reverts to partition B")
116 | # Remove U-Boot variables that fwup uses to allow reverting images
117 | uboot_unsetenv(uboot-env, "b.nerves_fw_platform")
118 | uboot_unsetenv(uboot-env, "b.nerves_fw_architecture")
119 | # Clear out the image using TRIM. This requires --enable-trim
120 | trim(${ROOTFS_B_PART_OFFSET}, ${ROOTFS_B_PART_COUNT})
121 | trim(${BOOT_B_PART_OFFSET}, ${BOOT_B_PART_COUNT})
122 | }
123 | }
124 | task prevent-revert.fail {
125 | on-init {
126 | error("Error detecting active partition")
127 | }
128 | }
129 |
130 | ##
131 | # revert
132 | ##
133 | task revert.a {
134 | # This task reverts to the A partition, so check that we're running on B
135 | require-partition-offset(0, ${BOOT_B_PART_OFFSET})
136 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
137 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
138 |
139 | # Verify that partition A has the expected platform/architecture
140 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
141 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
142 |
143 | on-init {
144 | info("Reverting to partition A")
145 |
146 | # Switch over
147 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
148 | mbr_write(mbr-a)
149 | }
150 | }
151 |
152 | task revert.b {
153 | # This task reverts to the B partition, so check that we're running on A
154 | require-partition-offset(0, ${BOOT_A_PART_OFFSET})
155 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
156 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
157 |
158 | # Verify that partition B has the expected platform/architecture
159 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
160 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
161 |
162 | on-init {
163 | info("Reverting to partition B")
164 |
165 | # Switch over
166 | uboot_setenv(uboot-env, "nerves_fw_active", "b")
167 | mbr_write(mbr-b)
168 | }
169 | }
170 |
171 | task revert.unexpected.a {
172 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
173 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
174 | on-init {
175 | # Case where A is good, and the desire is to go to B.
176 | error("It doesn't look like there's anything to revert to in partition B.")
177 | }
178 | }
179 | task revert.unexpected.b {
180 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
181 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
182 | on-init {
183 | # Case where B is good, and the desire is to go to A.
184 | error("It doesn't look like there's anything to revert to in partition A.")
185 | }
186 | }
187 |
188 | task revert.wrongplatform {
189 | on-init {
190 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
191 | }
192 | }
193 |
194 | ##
195 | # status
196 | #
197 | # Run "fwup /usr/share/fwup/ops.fw -t status -d /dev/rootdisk0 -q -U" to check the status.
198 | ##
199 | task status.aa {
200 | require-path-at-offset("/", ${ROOTFS_A_PART_OFFSET})
201 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
202 | on-init { info("a") }
203 | }
204 | task status.ab {
205 | require-path-at-offset("/", ${ROOTFS_A_PART_OFFSET})
206 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
207 | on-init { info("a->b") }
208 | }
209 | task status.bb {
210 | require-path-at-offset("/", ${ROOTFS_B_PART_OFFSET})
211 | require-uboot-variable(uboot-env, "nerves_fw_active", "b")
212 | on-init { info("b") }
213 | }
214 | task status.ba {
215 | require-path-at-offset("/", ${ROOTFS_B_PART_OFFSET})
216 | require-uboot-variable(uboot-env, "nerves_fw_active", "a")
217 | on-init { info("b->a") }
218 | }
219 | task status.fail {
220 | on-init { error("fail") }
221 | }
222 |
223 | ##
224 | # validate
225 | #
226 | # The fwup configuration for this device always validates, so this doesn't do anything.
227 | ##
228 | task validate {
229 | on-init {
230 | info("Validate")
231 | uboot_setenv(uboot-env, "nerves_fw_validated", "1")
232 | }
233 | }
234 |
--------------------------------------------------------------------------------
/fwup.conf:
--------------------------------------------------------------------------------
1 | # Firmware configuration file for the Raspberry Pi 3
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 bcm2710-rpi-3-b.dtb {
29 | host-path = "${NERVES_SYSTEM}/images/bcm2710-rpi-3-b.dtb"
30 | }
31 | file-resource bcm2710-rpi-3-b-plus.dtb {
32 | host-path = "${NERVES_SYSTEM}/images/bcm2710-rpi-3-b-plus.dtb"
33 | }
34 | file-resource overlay_map.dtb {
35 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/overlay_map.dtb"
36 | }
37 | file-resource rpi-ft5406.dtbo {
38 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/rpi-ft5406.dtbo"
39 | }
40 | file-resource rpi-backlight.dtbo {
41 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/rpi-backlight.dtbo"
42 | }
43 | file-resource bcm2710-rpi-cm3.dtb {
44 | host-path = "${NERVES_SYSTEM}/images/bcm2710-rpi-cm3.dtb"
45 | }
46 | file-resource bcm2710-rpi-zero-2-w.dtb {
47 | host-path = "${NERVES_SYSTEM}/images/bcm2710-rpi-zero-2-w.dtb"
48 | }
49 | file-resource w1-gpio-pullup.dtbo {
50 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/w1-gpio-pullup.dtbo"
51 | }
52 | file-resource miniuart-bt.dtbo {
53 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/miniuart-bt.dtbo"
54 | }
55 | file-resource vc4-kms-v3d.dtbo {
56 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/vc4-kms-v3d.dtbo"
57 | }
58 | file-resource vc4-kms-dsi-7inch.dtbo {
59 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/vc4-kms-dsi-7inch.dtbo"
60 | }
61 | file-resource vc4-kms-dsi-ili9881-7inch.dtbo { host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/vc4-kms-dsi-ili9881-7inch.dtbo" }
62 | file-resource ramoops.dtbo {
63 | host-path = "${NERVES_SYSTEM}/images/ramoops.dtb"
64 | }
65 | file-resource imx219.dtbo {
66 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx219.dtbo"
67 | }
68 | file-resource imx296.dtbo {
69 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx296.dtbo"
70 | }
71 | file-resource imx477.dtbo {
72 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx477.dtbo"
73 | }
74 | file-resource imx708.dtbo {
75 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/imx708.dtbo"
76 | }
77 | file-resource ov5647.dtbo {
78 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/ov5647.dtbo"
79 | }
80 | file-resource i2c-mux.dtbo {
81 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/i2c-mux.dtbo"
82 | }
83 | file-resource tc358743.dtbo {
84 | host-path = "${NERVES_SYSTEM}/images/rpi-firmware/overlays/tc358743.dtbo"
85 | }
86 |
87 | file-resource rootfs.img {
88 | host-path = ${ROOTFS}
89 |
90 | # Error out if the rootfs size exceeds the partition size
91 | assert-size-lte = ${ROOTFS_A_PART_COUNT}
92 | }
93 |
94 | mbr mbr-a {
95 | partition 0 {
96 | block-offset = ${BOOT_A_PART_OFFSET}
97 | block-count = ${BOOT_A_PART_COUNT}
98 | type = 0xc # FAT32
99 | boot = true
100 | }
101 | partition 1 {
102 | block-offset = ${ROOTFS_A_PART_OFFSET}
103 | block-count = ${ROOTFS_A_PART_COUNT}
104 | type = 0x83 # Linux
105 | }
106 | partition 2 {
107 | block-offset = ${APP_PART_OFFSET}
108 | block-count = ${APP_PART_COUNT}
109 | type = 0x83 # Linux
110 | expand = true
111 | }
112 | # partition 3 is unused
113 | }
114 |
115 | mbr mbr-b {
116 | partition 0 {
117 | block-offset = ${BOOT_B_PART_OFFSET}
118 | block-count = ${BOOT_B_PART_COUNT}
119 | type = 0xc # FAT32
120 | boot = true
121 | }
122 | partition 1 {
123 | block-offset = ${ROOTFS_B_PART_OFFSET}
124 | block-count = ${ROOTFS_B_PART_COUNT}
125 | type = 0x83 # Linux
126 | }
127 | partition 2 {
128 | block-offset = ${APP_PART_OFFSET}
129 | block-count = ${APP_PART_COUNT}
130 | type = 0x83 # Linux
131 | expand = true
132 | }
133 | # partition 3 is unused
134 | }
135 |
136 | # Location where installed firmware information is stored.
137 | # While this is called "u-boot", u-boot isn't involved in this
138 | # setup. It just provides a convenient key/value store format.
139 | uboot-environment uboot-env {
140 | block-offset = ${UBOOT_ENV_OFFSET}
141 | block-count = ${UBOOT_ENV_COUNT}
142 | }
143 |
144 | # This firmware task writes everything to the destination media
145 | task complete {
146 | # Only match if not mounted
147 | require-unmounted-destination = true
148 |
149 | on-init {
150 | mbr_write(mbr-a)
151 |
152 | fat_mkfs(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
153 | fat_setlabel(${BOOT_A_PART_OFFSET}, "BOOT-A")
154 | fat_mkdir(${BOOT_A_PART_OFFSET}, "overlays")
155 |
156 | uboot_clearenv(uboot-env)
157 |
158 | include("${NERVES_PROVISIONING}")
159 |
160 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
161 | uboot_setenv(uboot-env, "nerves_fw_devpath", ${NERVES_FW_DEVPATH})
162 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
163 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
164 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
165 | uboot_setenv(uboot-env, "a.nerves_fw_product", ${NERVES_FW_PRODUCT})
166 | uboot_setenv(uboot-env, "a.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
167 | uboot_setenv(uboot-env, "a.nerves_fw_version", ${NERVES_FW_VERSION})
168 | uboot_setenv(uboot-env, "a.nerves_fw_platform", ${NERVES_FW_PLATFORM})
169 | uboot_setenv(uboot-env, "a.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
170 | uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
171 | uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
172 | uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
173 | uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
174 | }
175 |
176 | on-resource config.txt { fat_write(${BOOT_A_PART_OFFSET}, "config.txt") }
177 | on-resource cmdline.txt { fat_write(${BOOT_A_PART_OFFSET}, "cmdline.txt") }
178 | on-resource bootcode.bin { fat_write(${BOOT_A_PART_OFFSET}, "bootcode.bin") }
179 | on-resource start.elf { fat_write(${BOOT_A_PART_OFFSET}, "start.elf") }
180 | on-resource fixup.dat { fat_write(${BOOT_A_PART_OFFSET}, "fixup.dat") }
181 | on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
182 | on-resource bcm2710-rpi-3-b.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-3-b.dtb") }
183 | on-resource bcm2710-rpi-3-b-plus.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-3-b-plus.dtb") }
184 | on-resource bcm2710-rpi-cm3.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-cm3.dtb") }
185 | on-resource bcm2710-rpi-zero-2-w.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-zero-2-w.dtb") }
186 | on-resource overlay_map.dtb { fat_write(${BOOT_A_PART_OFFSET}, "overlays/overlay_map.dtb") }
187 | on-resource rpi-ft5406.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/rpi-ft5406.dtbo") }
188 | on-resource rpi-backlight.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/rpi-backlight.dtbo") }
189 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
190 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
191 | on-resource vc4-kms-v3d.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-v3d.dtbo") }
192 | on-resource vc4-kms-dsi-7inch.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-dsi-7inch.dtbo") }
193 | on-resource vc4-kms-dsi-ili9881-7inch.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-dsi-ili9881-7inch.dtbo") }
194 | on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }
195 | on-resource imx219.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx219.dtbo") }
196 | on-resource imx296.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx296.dtbo") }
197 | on-resource imx477.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx477.dtbo") }
198 | on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
199 | on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
200 | on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
201 | on-resource tc358743.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/tc358743.dtbo") }
202 |
203 | on-resource rootfs.img {
204 | # write to the first rootfs partition
205 | raw_write(${ROOTFS_A_PART_OFFSET})
206 | }
207 |
208 | on-finish {
209 | # Clear out any old data in the B partition that might be mistaken for
210 | # a file system. This is mostly to avoid confusion in humans when
211 | # reprogramming SDCards with unknown contents.
212 | raw_memset(${BOOT_B_PART_OFFSET}, 256, 0xff)
213 | raw_memset(${ROOTFS_B_PART_OFFSET}, 256, 0xff)
214 |
215 | # Invalidate the application data partition so that it is guaranteed to
216 | # trigger the corrupt filesystem detection code on first boot and get
217 | # formatted. If this isn't done and an old SDCard is reused, the
218 | # application data could be in a weird state.
219 | raw_memset(${APP_PART_OFFSET}, 256, 0xff)
220 | }
221 | }
222 |
223 | task upgrade.a {
224 | # This task upgrades the A partition
225 | require-partition-offset(1, ${ROOTFS_B_PART_OFFSET})
226 |
227 | # Verify the expected platform/architecture
228 | require-uboot-variable(uboot-env, "b.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
229 | require-uboot-variable(uboot-env, "b.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
230 |
231 | on-init {
232 | info("Upgrading partition A")
233 |
234 | # Clear some firmware information just in case this update gets
235 | # interrupted midway. If this partition was bootable, it's not going to
236 | # be soon.
237 | uboot_unsetenv(uboot-env, "a.nerves_fw_version")
238 | uboot_unsetenv(uboot-env, "a.nerves_fw_platform")
239 | uboot_unsetenv(uboot-env, "a.nerves_fw_architecture")
240 | uboot_unsetenv(uboot-env, "a.nerves_fw_uuid")
241 |
242 | # Reset the previous contents of the A boot partition
243 | fat_mkfs(${BOOT_A_PART_OFFSET}, ${BOOT_A_PART_COUNT})
244 | fat_setlabel(${BOOT_A_PART_OFFSET}, "BOOT-A")
245 | fat_mkdir(${BOOT_A_PART_OFFSET}, "overlays")
246 |
247 | # Indicate that the entire partition can be cleared
248 | trim(${ROOTFS_A_PART_OFFSET}, ${ROOTFS_A_PART_COUNT})
249 | }
250 |
251 | # Write the new boot partition files and rootfs. The MBR still points
252 | # to the B partition, so an error or power failure during this part
253 | # won't hurt anything.
254 | on-resource config.txt { fat_write(${BOOT_A_PART_OFFSET}, "config.txt") }
255 | on-resource cmdline.txt { fat_write(${BOOT_A_PART_OFFSET}, "cmdline.txt") }
256 | on-resource bootcode.bin { fat_write(${BOOT_A_PART_OFFSET}, "bootcode.bin") }
257 | on-resource start.elf { fat_write(${BOOT_A_PART_OFFSET}, "start.elf") }
258 | on-resource fixup.dat { fat_write(${BOOT_A_PART_OFFSET}, "fixup.dat") }
259 | on-resource zImage { fat_write(${BOOT_A_PART_OFFSET}, "zImage") }
260 | on-resource bcm2710-rpi-3-b.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-3-b.dtb") }
261 | on-resource bcm2710-rpi-3-b-plus.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-3-b-plus.dtb") }
262 | on-resource bcm2710-rpi-cm3.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-cm3.dtb") }
263 | on-resource bcm2710-rpi-zero-2-w.dtb { fat_write(${BOOT_A_PART_OFFSET}, "bcm2710-rpi-zero-2-w.dtb") }
264 | on-resource overlay_map.dtb { fat_write(${BOOT_A_PART_OFFSET}, "overlays/overlay_map.dtb") }
265 | on-resource rpi-ft5406.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/rpi-ft5406.dtbo") }
266 | on-resource rpi-backlight.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/rpi-backlight.dtbo") }
267 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
268 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
269 | on-resource vc4-kms-v3d.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-v3d.dtbo") }
270 | on-resource vc4-kms-dsi-7inch.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-dsi-7inch.dtbo") }
271 | on-resource vc4-kms-dsi-ili9881-7inch.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/vc4-kms-dsi-ili9881-7inch.dtbo") }
272 | on-resource ramoops.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ramoops.dtbo") }
273 | on-resource imx219.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx219.dtbo") }
274 | on-resource imx296.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx296.dtbo") }
275 | on-resource imx477.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx477.dtbo") }
276 | on-resource imx708.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/imx708.dtbo") }
277 | on-resource ov5647.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/ov5647.dtbo") }
278 | on-resource i2c-mux.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
279 | on-resource tc358743.dtbo { fat_write(${BOOT_A_PART_OFFSET}, "overlays/tc358743.dtbo") }
280 |
281 | on-resource rootfs.img {
282 | delta-source-raw-offset=${ROOTFS_B_PART_OFFSET}
283 | delta-source-raw-count=${ROOTFS_B_PART_COUNT}
284 | raw_write(${ROOTFS_A_PART_OFFSET})
285 | }
286 |
287 | on-finish {
288 | # Update firmware metadata
289 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
290 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
291 | uboot_setenv(uboot-env, "a.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
292 | uboot_setenv(uboot-env, "a.nerves_fw_product", ${NERVES_FW_PRODUCT})
293 | uboot_setenv(uboot-env, "a.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
294 | uboot_setenv(uboot-env, "a.nerves_fw_version", ${NERVES_FW_VERSION})
295 | uboot_setenv(uboot-env, "a.nerves_fw_platform", ${NERVES_FW_PLATFORM})
296 | uboot_setenv(uboot-env, "a.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
297 | uboot_setenv(uboot-env, "a.nerves_fw_author", ${NERVES_FW_AUTHOR})
298 | uboot_setenv(uboot-env, "a.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
299 | uboot_setenv(uboot-env, "a.nerves_fw_misc", ${NERVES_FW_MISC})
300 | uboot_setenv(uboot-env, "a.nerves_fw_uuid", "\${FWUP_META_UUID}")
301 |
302 | # Switch over to boot the new firmware
303 | uboot_setenv(uboot-env, "nerves_fw_active", "a")
304 | mbr_write(mbr-a)
305 | }
306 |
307 | on-error {
308 | }
309 | }
310 |
311 | task upgrade.b {
312 | # This task upgrades the B partition
313 | require-partition-offset(1, ${ROOTFS_A_PART_OFFSET})
314 |
315 | # Verify the expected platform/architecture
316 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
317 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
318 |
319 | on-init {
320 | info("Upgrading partition B")
321 |
322 | # Clear some firmware information just in case this update gets
323 | # interrupted midway.
324 | uboot_unsetenv(uboot-env, "b.nerves_fw_version")
325 | uboot_unsetenv(uboot-env, "b.nerves_fw_platform")
326 | uboot_unsetenv(uboot-env, "b.nerves_fw_architecture")
327 | uboot_unsetenv(uboot-env, "b.nerves_fw_uuid")
328 |
329 | # Reset the previous contents of the B boot partition
330 | fat_mkfs(${BOOT_B_PART_OFFSET}, ${BOOT_B_PART_COUNT})
331 | fat_setlabel(${BOOT_B_PART_OFFSET}, "BOOT-B")
332 | fat_mkdir(${BOOT_B_PART_OFFSET}, "overlays")
333 |
334 | trim(${ROOTFS_B_PART_OFFSET}, ${ROOTFS_B_PART_COUNT})
335 | }
336 |
337 | # Write the new boot partition files and rootfs. The MBR still points
338 | # to the A partition, so an error or power failure during this part
339 | # won't hurt anything.
340 | on-resource config.txt { fat_write(${BOOT_B_PART_OFFSET}, "config.txt") }
341 | on-resource cmdline.txt { fat_write(${BOOT_B_PART_OFFSET}, "cmdline.txt") }
342 | on-resource bootcode.bin { fat_write(${BOOT_B_PART_OFFSET}, "bootcode.bin") }
343 | on-resource start.elf { fat_write(${BOOT_B_PART_OFFSET}, "start.elf") }
344 | on-resource fixup.dat { fat_write(${BOOT_B_PART_OFFSET}, "fixup.dat") }
345 | on-resource zImage { fat_write(${BOOT_B_PART_OFFSET}, "zImage") }
346 | on-resource bcm2710-rpi-3-b.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2710-rpi-3-b.dtb") }
347 | on-resource bcm2710-rpi-3-b-plus.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2710-rpi-3-b-plus.dtb") }
348 | on-resource bcm2710-rpi-cm3.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2710-rpi-cm3.dtb") }
349 | on-resource bcm2710-rpi-zero-2-w.dtb { fat_write(${BOOT_B_PART_OFFSET}, "bcm2710-rpi-zero-2-w.dtb") }
350 | on-resource overlay_map.dtb { fat_write(${BOOT_B_PART_OFFSET}, "overlays/overlay_map.dtb") }
351 | on-resource rpi-ft5406.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/rpi-ft5406.dtbo") }
352 | on-resource rpi-backlight.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/rpi-backlight.dtbo") }
353 | on-resource w1-gpio-pullup.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/w1-gpio-pullup.dtbo") }
354 | on-resource miniuart-bt.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/miniuart-bt.dtbo") }
355 | on-resource vc4-kms-v3d.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/vc4-kms-v3d.dtbo") }
356 | on-resource vc4-kms-dsi-7inch.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/vc4-kms-dsi-7inch.dtbo") }
357 | on-resource vc4-kms-dsi-ili9881-7inch.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/vc4-kms-dsi-ili9881-7inch.dtbo") }
358 | on-resource ramoops.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ramoops.dtbo") }
359 | on-resource imx219.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx219.dtbo") }
360 | on-resource imx296.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx296.dtbo") }
361 | on-resource imx477.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx477.dtbo") }
362 | on-resource imx708.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/imx708.dtbo") }
363 | on-resource ov5647.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/ov5647.dtbo") }
364 | on-resource i2c-mux.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/i2c-mux.dtbo") }
365 | on-resource tc358743.dtbo { fat_write(${BOOT_B_PART_OFFSET}, "overlays/tc358743.dtbo") }
366 |
367 | on-resource rootfs.img {
368 | delta-source-raw-offset=${ROOTFS_A_PART_OFFSET}
369 | delta-source-raw-count=${ROOTFS_A_PART_COUNT}
370 | raw_write(${ROOTFS_B_PART_OFFSET})
371 | }
372 |
373 | on-finish {
374 | # Update firmware metadata
375 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_devpath", ${NERVES_FW_APPLICATION_PART0_DEVPATH})
376 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_fstype", ${NERVES_FW_APPLICATION_PART0_FSTYPE})
377 | uboot_setenv(uboot-env, "b.nerves_fw_application_part0_target", ${NERVES_FW_APPLICATION_PART0_TARGET})
378 | uboot_setenv(uboot-env, "b.nerves_fw_product", ${NERVES_FW_PRODUCT})
379 | uboot_setenv(uboot-env, "b.nerves_fw_description", ${NERVES_FW_DESCRIPTION})
380 | uboot_setenv(uboot-env, "b.nerves_fw_version", ${NERVES_FW_VERSION})
381 | uboot_setenv(uboot-env, "b.nerves_fw_platform", ${NERVES_FW_PLATFORM})
382 | uboot_setenv(uboot-env, "b.nerves_fw_architecture", ${NERVES_FW_ARCHITECTURE})
383 | uboot_setenv(uboot-env, "b.nerves_fw_author", ${NERVES_FW_AUTHOR})
384 | uboot_setenv(uboot-env, "b.nerves_fw_vcs_identifier", ${NERVES_FW_VCS_IDENTIFIER})
385 | uboot_setenv(uboot-env, "b.nerves_fw_misc", ${NERVES_FW_MISC})
386 | uboot_setenv(uboot-env, "b.nerves_fw_uuid", "\${FWUP_META_UUID}")
387 |
388 | # Switch over to boot the new firmware
389 | uboot_setenv(uboot-env, "nerves_fw_active", "b")
390 | mbr_write(mbr-b)
391 | }
392 |
393 | on-error {
394 | }
395 | }
396 |
397 | task upgrade.unexpected {
398 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
399 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
400 | on-init {
401 | error("Please check the media being upgraded. It doesn't look like either the A or B partitions are active.")
402 | }
403 | }
404 |
405 | task upgrade.wrongplatform {
406 | on-init {
407 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
408 | }
409 | }
410 |
411 | task provision {
412 | require-uboot-variable(uboot-env, "a.nerves_fw_platform", "${NERVES_FW_PLATFORM}")
413 | require-uboot-variable(uboot-env, "a.nerves_fw_architecture", "${NERVES_FW_ARCHITECTURE}")
414 | on-init {
415 | include("${NERVES_PROVISIONING}")
416 | }
417 | }
418 | task provision.wrongplatform {
419 | on-init {
420 | error("Expecting platform=${NERVES_FW_PLATFORM} and architecture=${NERVES_FW_ARCHITECTURE}")
421 | }
422 | }
423 |
--------------------------------------------------------------------------------
/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, "rpi3")
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="-v7"
2 | # CONFIG_LOCALVERSION_AUTO is not set
3 | CONFIG_KERNEL_XZ=y
4 | CONFIG_SYSVIPC=y
5 | CONFIG_POSIX_MQUEUE=y
6 | CONFIG_NO_HZ=y
7 | CONFIG_HIGH_RES_TIMERS=y
8 | CONFIG_PREEMPT=y
9 | CONFIG_IKCONFIG=y
10 | CONFIG_IKCONFIG_PROC=y
11 | CONFIG_MEMCG=y
12 | CONFIG_BLK_CGROUP=y
13 | CONFIG_RT_GROUP_SCHED=y
14 | CONFIG_CGROUP_PIDS=y
15 | CONFIG_CGROUP_FREEZER=y
16 | CONFIG_CPUSETS=y
17 | CONFIG_CGROUP_DEVICE=y
18 | CONFIG_CGROUP_CPUACCT=y
19 | CONFIG_NAMESPACES=y
20 | CONFIG_USER_NS=y
21 | CONFIG_SCHED_AUTOGROUP=y
22 | CONFIG_EXPERT=y
23 | CONFIG_PROFILING=y
24 | CONFIG_ARCH_BCM=y
25 | CONFIG_ARCH_BCM2835=y
26 | # CONFIG_CACHE_L2X0 is not set
27 | CONFIG_SMP=y
28 | CONFIG_VMSPLIT_2G=y
29 | # CONFIG_CPU_SW_DOMAIN_PAN is not set
30 | CONFIG_UACCESS_WITH_MEMCPY=y
31 | # CONFIG_ATAGS is not set
32 | CONFIG_CMDLINE="console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait"
33 | CONFIG_CPU_FREQ=y
34 | CONFIG_CPU_FREQ_STAT=y
35 | CONFIG_CPU_FREQ_GOV_POWERSAVE=y
36 | CONFIG_CPU_FREQ_GOV_USERSPACE=y
37 | CONFIG_CPU_FREQ_GOV_ONDEMAND=y
38 | CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y
39 | CONFIG_CPUFREQ_DT=y
40 | CONFIG_ARM_RASPBERRYPI_CPUFREQ=y
41 | CONFIG_VFP=y
42 | CONFIG_NEON=y
43 | CONFIG_KERNEL_MODE_NEON=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_NETFILTER=y
66 | CONFIG_NF_CONNTRACK=m
67 | CONFIG_NF_CONNTRACK_EVENTS=y
68 | CONFIG_NF_CONNTRACK_TIMESTAMP=y
69 | # CONFIG_NF_CT_PROTO_DCCP is not set
70 | # CONFIG_NF_CT_PROTO_SCTP is not set
71 | # CONFIG_NF_CT_PROTO_UDPLITE is not set
72 | CONFIG_NF_CT_NETLINK=m
73 | CONFIG_NETFILTER_XT_TARGET_CHECKSUM=m
74 | CONFIG_NETFILTER_XT_TARGET_CLASSIFY=m
75 | CONFIG_NETFILTER_XT_TARGET_CONNMARK=m
76 | CONFIG_NETFILTER_XT_TARGET_IDLETIMER=m
77 | CONFIG_NETFILTER_XT_TARGET_LOG=m
78 | CONFIG_NETFILTER_XT_TARGET_MARK=m
79 | CONFIG_NETFILTER_XT_TARGET_NFLOG=m
80 | CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
81 | CONFIG_NETFILTER_XT_TARGET_TRACE=m
82 | CONFIG_NETFILTER_XT_TARGET_TCPMSS=m
83 | CONFIG_NETFILTER_XT_TARGET_TCPOPTSTRIP=m
84 | CONFIG_NETFILTER_XT_MATCH_ADDRTYPE=m
85 | CONFIG_NETFILTER_XT_MATCH_BPF=m
86 | CONFIG_NETFILTER_XT_MATCH_COMMENT=m
87 | CONFIG_NETFILTER_XT_MATCH_CONNBYTES=m
88 | CONFIG_NETFILTER_XT_MATCH_CONNLABEL=m
89 | CONFIG_NETFILTER_XT_MATCH_CONNLIMIT=m
90 | CONFIG_NETFILTER_XT_MATCH_CONNMARK=m
91 | CONFIG_NETFILTER_XT_MATCH_CONNTRACK=m
92 | CONFIG_NETFILTER_XT_MATCH_HASHLIMIT=m
93 | CONFIG_NETFILTER_XT_MATCH_HELPER=m
94 | CONFIG_NETFILTER_XT_MATCH_IPRANGE=m
95 | CONFIG_NETFILTER_XT_MATCH_LIMIT=m
96 | CONFIG_NETFILTER_XT_MATCH_MAC=m
97 | CONFIG_NETFILTER_XT_MATCH_MULTIPORT=m
98 | CONFIG_NETFILTER_XT_MATCH_OWNER=m
99 | CONFIG_NETFILTER_XT_MATCH_PKTTYPE=m
100 | CONFIG_NETFILTER_XT_MATCH_RECENT=m
101 | CONFIG_NETFILTER_XT_MATCH_STATE=m
102 | CONFIG_NETFILTER_XT_MATCH_STATISTIC=m
103 | CONFIG_NETFILTER_XT_MATCH_STRING=m
104 | CONFIG_NETFILTER_XT_MATCH_TIME=m
105 | CONFIG_NETFILTER_XT_MATCH_U32=m
106 | CONFIG_IP_NF_IPTABLES=m
107 | CONFIG_IP_NF_MATCH_RPFILTER=m
108 | CONFIG_IP_NF_MATCH_TTL=m
109 | CONFIG_IP_NF_FILTER=m
110 | CONFIG_IP_NF_TARGET_REJECT=m
111 | CONFIG_IP_NF_NAT=m
112 | CONFIG_IP_NF_TARGET_MASQUERADE=m
113 | CONFIG_IP_NF_TARGET_NETMAP=m
114 | CONFIG_IP_NF_TARGET_REDIRECT=m
115 | CONFIG_IP_NF_MANGLE=m
116 | CONFIG_IP_NF_RAW=m
117 | CONFIG_IP_NF_ARPTABLES=m
118 | CONFIG_IP_NF_ARPFILTER=m
119 | CONFIG_IP_NF_ARP_MANGLE=m
120 | CONFIG_BRIDGE=m
121 | CONFIG_CFG80211=m
122 | CONFIG_MAC80211=m
123 | CONFIG_MAC80211_MESH=y
124 | CONFIG_RFKILL=y
125 | CONFIG_DEVTMPFS=y
126 | CONFIG_DEVTMPFS_MOUNT=y
127 | CONFIG_RASPBERRYPI_FIRMWARE=y
128 | CONFIG_OF_CONFIGFS=y
129 | CONFIG_BLK_DEV_LOOP=y
130 | CONFIG_BLK_DEV_RAM=y
131 | CONFIG_EEPROM_AT24=m
132 | CONFIG_SCSI=y
133 | # CONFIG_SCSI_PROC_FS is not set
134 | CONFIG_BLK_DEV_SD=y
135 | CONFIG_CHR_DEV_SG=m
136 | CONFIG_NETDEVICES=y
137 | CONFIG_WIREGUARD=m
138 | CONFIG_TUN=m
139 | # CONFIG_NET_VENDOR_AMAZON is not set
140 | # CONFIG_NET_VENDOR_ARC is not set
141 | # CONFIG_NET_VENDOR_BROADCOM is not set
142 | # CONFIG_NET_VENDOR_CIRRUS is not set
143 | # CONFIG_NET_VENDOR_EZCHIP is not set
144 | # CONFIG_NET_VENDOR_FARADAY is not set
145 | # CONFIG_NET_VENDOR_HISILICON is not set
146 | # CONFIG_NET_VENDOR_INTEL is not set
147 | # CONFIG_NET_VENDOR_MARVELL is not set
148 | # CONFIG_NET_VENDOR_MICREL is not set
149 | # CONFIG_NET_VENDOR_MICROCHIP is not set
150 | # CONFIG_NET_VENDOR_NATSEMI is not set
151 | # CONFIG_NET_VENDOR_NETRONOME is not set
152 | # CONFIG_NET_VENDOR_QUALCOMM is not set
153 | # CONFIG_NET_VENDOR_RENESAS is not set
154 | # CONFIG_NET_VENDOR_ROCKER is not set
155 | # CONFIG_NET_VENDOR_SAMSUNG is not set
156 | # CONFIG_NET_VENDOR_SEEQ is not set
157 | # CONFIG_NET_VENDOR_SMSC is not set
158 | # CONFIG_NET_VENDOR_STMICRO is not set
159 | # CONFIG_NET_VENDOR_SYNOPSYS is not set
160 | # CONFIG_NET_VENDOR_VIA is not set
161 | # CONFIG_NET_VENDOR_WIZNET is not set
162 | CONFIG_USB_LAN78XX=y
163 | CONFIG_USB_USBNET=y
164 | # CONFIG_USB_NET_AX8817X is not set
165 | # CONFIG_USB_NET_AX88179_178A is not set
166 | # CONFIG_USB_NET_CDCETHER is not set
167 | # CONFIG_USB_NET_CDC_NCM is not set
168 | CONFIG_USB_NET_SMSC95XX=y
169 | # CONFIG_USB_NET_NET1080 is not set
170 | # CONFIG_USB_NET_CDC_SUBSET is not set
171 | # CONFIG_USB_NET_ZAURUS is not set
172 | CONFIG_USB_NET_QMI_WWAN=m
173 | CONFIG_BRCMFMAC=m
174 | # CONFIG_RTL_CARDS is not set
175 | # CONFIG_INPUT_LEDS is not set
176 | CONFIG_INPUT_EVDEV=y
177 | # CONFIG_INPUT_KEYBOARD is not set
178 | # CONFIG_INPUT_MOUSE is not set
179 | CONFIG_INPUT_JOYSTICK=y
180 | CONFIG_INPUT_TOUCHSCREEN=y
181 | CONFIG_TOUCHSCREEN_EDT_FT5X06=m
182 | CONFIG_TOUCHSCREEN_RASPBERRYPI_FW=m
183 | CONFIG_INPUT_MISC=y
184 | CONFIG_INPUT_AD714X=m
185 | # CONFIG_SERIO is not set
186 | CONFIG_BRCM_CHAR_DRIVERS=y
187 | CONFIG_BCM_VCIO=y
188 | # CONFIG_LEGACY_PTYS is not set
189 | CONFIG_SERIAL_8250=y
190 | # CONFIG_SERIAL_8250_DEPRECATED_OPTIONS is not set
191 | CONFIG_SERIAL_8250_CONSOLE=y
192 | CONFIG_SERIAL_8250_NR_UARTS=1
193 | CONFIG_SERIAL_8250_RUNTIME_UARTS=0
194 | CONFIG_SERIAL_8250_EXTENDED=y
195 | CONFIG_SERIAL_8250_SHARE_IRQ=y
196 | CONFIG_SERIAL_8250_BCM2835AUX=y
197 | CONFIG_SERIAL_OF_PLATFORM=y
198 | CONFIG_SERIAL_AMBA_PL011=y
199 | CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
200 | CONFIG_HW_RANDOM=y
201 | CONFIG_RASPBERRYPI_GPIOMEM=m
202 | CONFIG_I2C=y
203 | CONFIG_I2C_CHARDEV=y
204 | CONFIG_I2C_MUX_PINCTRL=m
205 | CONFIG_I2C_BCM2708=y
206 | CONFIG_I2C_BCM2835=y
207 | CONFIG_SPI=y
208 | CONFIG_SPI_BCM2835=y
209 | CONFIG_SPI_BCM2835AUX=y
210 | CONFIG_SPI_SPIDEV=y
211 | CONFIG_GPIO_BCM_VIRT=y
212 | CONFIG_W1=m
213 | CONFIG_W1_MASTER_GPIO=m
214 | CONFIG_W1_SLAVE_THERM=m
215 | CONFIG_POWER_RESET=y
216 | CONFIG_POWER_RESET_GPIO=y
217 | CONFIG_POWER_SUPPLY=y
218 | # CONFIG_HWMON is not set
219 | CONFIG_THERMAL=y
220 | CONFIG_BCM2835_THERMAL=y
221 | CONFIG_WATCHDOG=y
222 | CONFIG_WATCHDOG_NOWAYOUT=y
223 | CONFIG_BCM2835_WDT=y
224 | CONFIG_BCMA=m
225 | CONFIG_MFD_RASPBERRYPI_POE_HAT=m
226 | CONFIG_REGULATOR=y
227 | CONFIG_REGULATOR_FIXED_VOLTAGE=m
228 | CONFIG_REGULATOR_AD5398=m
229 | CONFIG_REGULATOR_RASPBERRYPI_TOUCHSCREEN_ATTINY=m
230 | CONFIG_MEDIA_SUPPORT=m
231 | CONFIG_MEDIA_SUPPORT_FILTER=y
232 | CONFIG_MEDIA_CAMERA_SUPPORT=y
233 | CONFIG_MEDIA_PLATFORM_SUPPORT=y
234 | CONFIG_MEDIA_USB_SUPPORT=y
235 | CONFIG_V4L_PLATFORM_DRIVERS=y
236 | CONFIG_VIDEO_BCM2835_UNICAM=m
237 | CONFIG_VIDEO_RASPBERRYPI_PISP_BE=m
238 | CONFIG_VIDEO_IMX219=m
239 | CONFIG_VIDEO_IMX296=m
240 | CONFIG_VIDEO_IMX477=m
241 | CONFIG_VIDEO_IMX708=m
242 | CONFIG_VIDEO_OV5647=m
243 | CONFIG_VIDEO_AD5398=m
244 | CONFIG_VIDEO_DW9807_VCM=m
245 | CONFIG_AUXDISPLAY=y
246 | CONFIG_DRM=m
247 | CONFIG_DRM_LOAD_EDID_FIRMWARE=y
248 | CONFIG_DRM_PANEL_RASPBERRYPI_TOUCHSCREEN=m
249 | CONFIG_DRM_VC4=m
250 | CONFIG_DRM_VC4_HDMI_CEC=y
251 | CONFIG_TINYDRM_REPAPER=m
252 | CONFIG_FB=y
253 | CONFIG_FB_BCM2708=y
254 | CONFIG_FB_RPISENSE=m
255 | CONFIG_BACKLIGHT_CLASS_DEVICE=m
256 | CONFIG_BACKLIGHT_RPI=m
257 | CONFIG_LOGO=y
258 | # CONFIG_LOGO_LINUX_MONO is not set
259 | # CONFIG_LOGO_LINUX_VGA16 is not set
260 | CONFIG_SOUND=y
261 | CONFIG_SND=m
262 | CONFIG_SND_HRTIMER=m
263 | # CONFIG_SND_SUPPORT_OLD_API is not set
264 | CONFIG_SND_SEQUENCER=m
265 | CONFIG_SND_ALOOP=m
266 | CONFIG_SND_SOC=m
267 | CONFIG_SND_BCM2835_SOC_I2S=m
268 | CONFIG_SND_BCM2708_SOC_GOOGLEVOICEHAT_SOUNDCARD=m
269 | CONFIG_SND_BCM2708_SOC_HIFIBERRY_DAC=m
270 | CONFIG_SND_SIMPLE_CARD=m
271 | CONFIG_HIDRAW=y
272 | CONFIG_HID_APPLE=m
273 | CONFIG_HID_PID=y
274 | CONFIG_USB_HIDDEV=y
275 | CONFIG_USB=y
276 | CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
277 | CONFIG_USB_DWCOTG=y
278 | CONFIG_USB_ACM=m
279 | CONFIG_USB_STORAGE=y
280 | CONFIG_USB_DWC2=m
281 | CONFIG_USB_SERIAL=m
282 | CONFIG_USB_SERIAL_CH341=m
283 | CONFIG_USB_SERIAL_CP210X=m
284 | CONFIG_USB_SERIAL_FTDI_SIO=m
285 | CONFIG_USB_SERIAL_PL2303=m
286 | CONFIG_USB_SERIAL_OPTION=m
287 | CONFIG_NOP_USB_XCEIV=y
288 | CONFIG_USB_GADGET=y
289 | CONFIG_USB_ETH=y
290 | CONFIG_MMC=y
291 | CONFIG_MMC_BLOCK_MINORS=32
292 | CONFIG_MMC_BCM2835_MMC=y
293 | CONFIG_MMC_BCM2835_DMA=y
294 | CONFIG_MMC_BCM2835_SDHOST=y
295 | CONFIG_MMC_SDHCI=y
296 | CONFIG_MMC_SDHCI_PLTFM=y
297 | CONFIG_NEW_LEDS=y
298 | CONFIG_LEDS_CLASS=y
299 | CONFIG_LEDS_GPIO=y
300 | CONFIG_LEDS_PWM=y
301 | CONFIG_LEDS_TRIGGERS=y
302 | CONFIG_LEDS_TRIGGER_TIMER=y
303 | CONFIG_LEDS_TRIGGER_ONESHOT=y
304 | CONFIG_LEDS_TRIGGER_HEARTBEAT=y
305 | CONFIG_LEDS_TRIGGER_BACKLIGHT=y
306 | CONFIG_LEDS_TRIGGER_DEFAULT_ON=y
307 | CONFIG_LEDS_TRIGGER_TRANSIENT=y
308 | CONFIG_LEDS_TRIGGER_INPUT=y
309 | CONFIG_LEDS_TRIGGER_PANIC=y
310 | CONFIG_LEDS_TRIGGER_PATTERN=y
311 | CONFIG_RTC_CLASS=y
312 | # CONFIG_RTC_HCTOSYS is not set
313 | CONFIG_DMADEVICES=y
314 | CONFIG_DMA_BCM2835=y
315 | CONFIG_DMA_BCM2708=y
316 | CONFIG_DMABUF_HEAPS=y
317 | CONFIG_DMABUF_HEAPS_SYSTEM=y
318 | CONFIG_DMABUF_HEAPS_CMA=y
319 | CONFIG_UIO=m
320 | CONFIG_UIO_PDRV_GENIRQ=m
321 | # CONFIG_VHOST_MENU is not set
322 | CONFIG_STAGING=y
323 | CONFIG_STAGING_MEDIA=y
324 | CONFIG_BCM2835_VCHIQ=y
325 | CONFIG_SND_BCM2835=m
326 | CONFIG_VIDEO_BCM2835=m
327 | CONFIG_VIDEO_CODEC_BCM2835=m
328 | CONFIG_VIDEO_ISP_BCM2835=m
329 | CONFIG_CLK_RASPBERRYPI=y
330 | CONFIG_MAILBOX=y
331 | CONFIG_BCM2835_MBOX=y
332 | # CONFIG_IOMMU_SUPPORT is not set
333 | CONFIG_RASPBERRYPI_POWER=y
334 | CONFIG_PWM=y
335 | CONFIG_PWM_BCM2835=m
336 | CONFIG_PWM_RASPBERRYPI_POE=m
337 | CONFIG_EXT4_FS=y
338 | CONFIG_FANOTIFY=y
339 | CONFIG_VFAT_FS=y
340 | CONFIG_TMPFS=y
341 | CONFIG_SQUASHFS=y
342 | CONFIG_SQUASHFS_FILE_DIRECT=y
343 | CONFIG_PSTORE=y
344 | CONFIG_PSTORE_CONSOLE=y
345 | CONFIG_PSTORE_PMSG=y
346 | CONFIG_PSTORE_RAM=y
347 | # CONFIG_NETWORK_FILESYSTEMS is not set
348 | CONFIG_NLS_DEFAULT="utf8"
349 | CONFIG_NLS_CODEPAGE_437=y
350 | CONFIG_NLS_CODEPAGE_850=y
351 | CONFIG_NLS_ASCII=y
352 | CONFIG_NLS_ISO8859_1=y
353 | CONFIG_NLS_UTF8=y
354 | # CONFIG_CRYPTO_HW is not set
355 | CONFIG_DMA_CMA=y
356 | CONFIG_CMA_SIZE_MBYTES=5
357 | CONFIG_PRINTK_TIME=y
358 | CONFIG_PANIC_TIMEOUT=10
359 |
--------------------------------------------------------------------------------
/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 NervesSystemRpi3.MixProject do
2 | use Mix.Project
3 |
4 | @github_organization "nerves-project"
5 | @app :nerves_system_rpi3
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 | ]
25 | end
26 |
27 | def application do
28 | []
29 | end
30 |
31 | defp bootstrap(args) do
32 | set_target()
33 | Application.start(:nerves_bootstrap)
34 | Mix.Task.run("loadconfig", args)
35 | end
36 |
37 | def cli do
38 | [preferred_envs: %{docs: :docs, "hex.build": :docs, "hex.publish": :docs}]
39 | end
40 |
41 | defp nerves_package do
42 | [
43 | type: :system,
44 | artifact_sites: [
45 | {:github_releases, "#{@github_organization}/#{@app}"}
46 | ],
47 | build_runner_opts: build_runner_opts(),
48 | platform: Nerves.System.BR,
49 | platform_config: [
50 | defconfig: "nerves_defconfig"
51 | ],
52 | # The :env key is an optional experimental feature for adding environment
53 | # variables to the crosscompile environment. These are intended for
54 | # llvm-based tooling that may need more precise processor information.
55 | env: [
56 | {"TARGET_ARCH", "arm"},
57 | {"TARGET_CPU", "cortex_a53"},
58 | {"TARGET_OS", "linux"},
59 | {"TARGET_ABI", "gnueabihf"},
60 | {"TARGET_GCC_FLAGS",
61 | "-mabi=aapcs-linux -mfpu=neon-fp-armv8 -marm -fstack-protector-strong -mfloat-abi=hard -mcpu=cortex-a53 -fPIE -pie -Wl,-z,now -Wl,-z,relro"}
62 | ],
63 | checksum: package_files()
64 | ]
65 | end
66 |
67 | defp deps do
68 | [
69 | {:nerves, "~> 1.11", runtime: false},
70 | {:nerves_system_br, "1.31.7", runtime: false},
71 | {:nerves_toolchain_armv7_nerves_linux_gnueabihf, "~> 13.2.0", runtime: false},
72 | {:nerves_system_linter, "~> 0.4", only: [:dev, :test], runtime: false},
73 | {:ex_doc, "~> 0.22", only: :docs, runtime: false}
74 | ]
75 | end
76 |
77 | defp description do
78 | """
79 | Nerves System - Raspberry Pi 3B, 3B+, Zero 2W
80 | """
81 | end
82 |
83 | defp docs do
84 | [
85 | extras: ["README.md", "CHANGELOG.md"],
86 | main: "readme",
87 | assets: %{"assets" => "./assets"},
88 | source_ref: "v#{@version}",
89 | source_url: @source_url,
90 | skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
91 | ]
92 | end
93 |
94 | defp package do
95 | [
96 | files: package_files(),
97 | licenses: ["GPL-2.0-only", "GPL-2.0-or-later"],
98 | links: %{
99 | "GitHub" => @source_url,
100 | "REUSE Compliance" =>
101 | "https://api.reuse.software/info/github.com/nerves-project/nerves_system_rpi3"
102 | }
103 | ]
104 | end
105 |
106 | defp package_files do
107 | [
108 | "fwup_include",
109 | "rootfs_overlay",
110 | "CHANGELOG.md",
111 | "cmdline.txt",
112 | "config.txt",
113 | "fwup-ops.conf",
114 | "fwup.conf",
115 | "LICENSES/*",
116 | "linux-6.6.defconfig",
117 | "mix.exs",
118 | "nerves_defconfig",
119 | "post-build.sh",
120 | "post-createfs.sh",
121 | "ramoops.dts",
122 | "README.md",
123 | "REUSE.toml",
124 | "VERSION"
125 | ]
126 | end
127 |
128 | defp build_runner_opts() do
129 | # Download source files first to get download errors right away.
130 | [make_args: primary_site() ++ ["source", "all", "legal-info"]]
131 | end
132 |
133 | defp primary_site() do
134 | case System.get_env("BR2_PRIMARY_SITE") do
135 | nil -> []
136 | primary_site -> ["BR2_PRIMARY_SITE=#{primary_site}"]
137 | end
138 | end
139 |
140 | defp set_target() do
141 | if function_exported?(Mix, :target, 1) do
142 | apply(Mix, :target, [:target])
143 | else
144 | System.put_env("MIX_TARGET", "target")
145 | end
146 | end
147 | end
148 |
--------------------------------------------------------------------------------
/mix.lock:
--------------------------------------------------------------------------------
1 | %{
2 | "castore": {:hex, :castore, "1.0.15", "8aa930c890fe18b6fe0a0cff27b27d0d4d231867897bd23ea772dee561f032a3", [:mix], [], "hexpm", "96ce4c69d7d5d7a0761420ef743e2f4096253931a3ba69e5ff8ef1844fe446d3"},
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.4", "ab48dff7a8af84226bf23baddcdda329f467255d924380a0cf0cee97bb9a9ede", [: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", "f7b62346408a83911c2580154e35613eb314e0278aeea72ed7fedef9c1f165b2"},
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.7", "79c02e00b66dd347fc143b09162fa923216d8a3bcfc427ad96c8989c9d08b22b", [:mix], [], "hexpm", "b6940799dfd1ec214b162826c8d940577c25d5f0af0e3ad867a71edff7d64732"},
12 | "nerves_system_linter": {:hex, :nerves_system_linter, "0.4.0", "81e9a6f5018fe5fb67d7b43a04dca36156f62b55b5554eb2fa3964d3889d09cd", [:mix], [], "hexpm", "b5bd8480ce7a6317f4601ff41fd2f594bdf76aff0bdf6dcfac571c3fa1ec5f82"},
13 | "nerves_toolchain_armv7_nerves_linux_gnueabihf": {:hex, :nerves_toolchain_armv7_nerves_linux_gnueabihf, "13.2.0", "48305b5ba2ec41d2f9bfd0997d6bb6e8a9f5358146baa58fc64887bfe2d38ccd", [: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", "7a43b14eb4ec90f36acf36a42ce42c1d69c280b90eea7ab9965e00db3ee6cbf7"},
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_cortex_a53=y
3 | BR2_ARM_FPU_NEON_FP_ARMV8=y
4 | BR2_TOOLCHAIN_EXTERNAL=y
5 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
6 | BR2_TOOLCHAIN_EXTERNAL_DOWNLOAD=y
7 | BR2_TOOLCHAIN_EXTERNAL_URL="https://github.com/nerves-project/toolchains/releases/download/v13.2.0/nerves_toolchain_armv7_nerves_linux_gnueabihf-linux_${shell uname -m}-13.2.0-BE3EA83.tar.xz"
8 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="armv7-nerves-linux-gnueabihf"
9 | BR2_TOOLCHAIN_EXTERNAL_GCC_13=y
10 | BR2_TOOLCHAIN_EXTERNAL_HEADERS_5_4=y
11 | BR2_TOOLCHAIN_EXTERNAL_CUSTOM_GLIBC=y
12 | # BR2_TOOLCHAIN_EXTERNAL_INET_RPC is not set
13 | BR2_TOOLCHAIN_EXTERNAL_CXX=y
14 | BR2_TOOLCHAIN_EXTERNAL_FORTRAN=y
15 | BR2_TOOLCHAIN_EXTERNAL_OPENMP=y
16 | BR2_TAR_OPTIONS="--no-same-owner"
17 | BR2_BACKUP_SITE="http://dl.nerves-project.org"
18 | BR2_ENABLE_DEBUG=y
19 | BR2_GLOBAL_PATCH_DIR="${BR2_EXTERNAL_NERVES_PATH}/patches"
20 | BR2_REPRODUCIBLE=y
21 | BR2_ROOTFS_SKELETON_CUSTOM=y
22 | BR2_ROOTFS_SKELETON_CUSTOM_PATH="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/skeleton"
23 | BR2_INIT_NONE=y
24 | BR2_ROOTFS_DEVICE_TABLE="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/device_table.txt"
25 | BR2_ENABLE_LOCALE_WHITELIST="locale-archive"
26 | BR2_GENERATE_LOCALE="en_US.UTF-8"
27 | BR2_ROOTFS_OVERLAY="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/rootfs_overlay ${NERVES_DEFCONFIG_DIR}/rootfs_overlay"
28 | BR2_ROOTFS_POST_BUILD_SCRIPT="${NERVES_DEFCONFIG_DIR}/post-build.sh ${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/post-build.sh"
29 | BR2_ROOTFS_POST_IMAGE_SCRIPT="${NERVES_DEFCONFIG_DIR}/post-createfs.sh"
30 | BR2_LINUX_KERNEL=y
31 | BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
32 | BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="https://github.com/raspberrypi/linux/archive/refs/tags/stable_20250127.tar.gz"
33 | 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"
34 | BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
35 | BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="${NERVES_DEFCONFIG_DIR}/linux-6.6.defconfig"
36 | BR2_LINUX_KERNEL_XZ=y
37 | BR2_LINUX_KERNEL_DTS_SUPPORT=y
38 | BR2_LINUX_KERNEL_INTREE_DTS_NAME="broadcom/bcm2710-rpi-3-b broadcom/bcm2710-rpi-cm3 broadcom/bcm2710-rpi-3-b-plus broadcom/bcm2710-rpi-zero-2-w"
39 | BR2_LINUX_KERNEL_CUSTOM_DTS_PATH="${NERVES_DEFCONFIG_DIR}/ramoops.dts"
40 | BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y
41 | BR2_PACKAGE_BUSYBOX_CONFIG="${BR2_EXTERNAL_NERVES_PATH}/board/nerves-common/busybox.config"
42 | BR2_PACKAGE_ALSA_UTILS=y
43 | # BR2_PACKAGE_ALSA_UTILS_ALSAMIXER is not set
44 | BR2_PACKAGE_ALSA_UTILS_AMIXER=y
45 | BR2_PACKAGE_ALSA_UTILS_APLAY=y
46 | BR2_PACKAGE_E2FSPROGS=y
47 | # BR2_PACKAGE_E2FSPROGS_FSCK is not set
48 | BR2_PACKAGE_LINUX_FIRMWARE=y
49 | BR2_PACKAGE_LINUX_FIRMWARE_RALINK_RT2XX=y
50 | BR2_PACKAGE_RPI_FIRMWARE=y
51 | BR2_PACKAGE_RPI_FIRMWARE_CUSTOM_VERSION="1.20250127"
52 | BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
53 | BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X=y
54 | BR2_PACKAGE_PIGPIO=y
55 | # BR2_PACKAGE_RNG_TOOLS_JITTERENTROPY_LIBRARY is not set
56 | BR2_PACKAGE_RPI_USERLAND=y
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_DTC_PROGRAMS=y
68 | BR2_PACKAGE_LIBMNL=y
69 | BR2_PACKAGE_WIRELESS_REGDB=y
70 | BR2_PACKAGE_WPA_SUPPLICANT=y
71 | BR2_PACKAGE_WPA_SUPPLICANT_WIRED=y
72 | BR2_PACKAGE_WPA_SUPPLICANT_AP_SUPPORT=y
73 | BR2_PACKAGE_WPA_SUPPLICANT_MESH_NETWORKING=y
74 | BR2_PACKAGE_WPA_SUPPLICANT_AUTOSCAN=y
75 | BR2_PACKAGE_WPA_SUPPLICANT_HOTSPOT=y
76 | BR2_PACKAGE_WPA_SUPPLICANT_DEBUG_SYSLOG=y
77 | BR2_PACKAGE_WPA_SUPPLICANT_WPS=y
78 | BR2_PACKAGE_WPA_SUPPLICANT_WPA3=y
79 | BR2_PACKAGE_WPA_SUPPLICANT_CTRL_IFACE=y
80 | # BR2_TARGET_ROOTFS_TAR is not set
81 | BR2_NERVES_SYSTEM_NAME="nerves_system_rpi3"
82 | BR2_NERVES_ADDITIONAL_IMAGE_FILES="${NERVES_DEFCONFIG_DIR}/fwup.conf ${NERVES_DEFCONFIG_DIR}/cmdline.txt ${NERVES_DEFCONFIG_DIR}/config.txt"
83 | BR2_PACKAGE_NBTTY=y
84 | BR2_PACKAGE_NERVES_CONFIG=y
85 | BR2_PACKAGE_RPICAM_APPS=y
86 | BR2_PACKAGE_RPI_DISTRO_FIRMWARE_NONFREE=y
87 | BR2_PACKAGE_RPI_LIBCAMERA_V4L2=y
88 |
--------------------------------------------------------------------------------
/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_rpi3/c119823bde3e3863b0c27daf68c6a612222321a4/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 that's before
23 | # nerves_runtime can start rngd. This syscall can block the BEAM indefinitely
24 | # if there's not enough entropy in the kernel. We have not observed blocking on
25 | # this platform. However, we don't know that getrandom(2) will always have
26 | # enough entropy, so start rngd here to be safe.
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 | -m tmpfs:/sys/fs/cgroup:tmpfs:nodev,noexec,nosuid:mode=755,size=1024k
67 | -m cpu:/sys/fs/cgroup/cpu:cgroup:nodev,noexec,nosuid:cpu
68 |
69 | # Erlang release search path
70 | -r /srv/erlang
71 |
72 | # Assign a hostname of the form "nerves-".
73 | # See /etc/boardid.config for locating the serial number.
74 | -d /usr/bin/boardid
75 | -n nerves-%-.4s
76 |
77 | # If using shoehorn (https://github.com/nerves-project/shoehorn), start the
78 | # shoehorn OTP release up first. If shoehorn isn't around, erlinit fails back
79 | # to the main OTP release.
80 | --boot shoehorn
81 |
--------------------------------------------------------------------------------
/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 |
--------------------------------------------------------------------------------