lawik
Nerves Core Team
I built the nerves container repo for rpi4.
Building the firmware went fine. The target device is a CM4 that is running Nerves, happily.
Could it be a partition resize or something?
lawik@monolith:~/nervescloud/contain$ ./upload.sh nerves-7170.local
Path: ./_build/nerves_containers_rpi4_dev/nerves/images/contain.fw
Product: contain 0.1.0
UUID: 5b76be06-ce28-55b8-b55f-d71226ae873f
Platform: rpi4
Uploading to nerves-7170.local...
fwup: Please check the media being upgraded. It doesn't look like either the A or B partitions are active.
I don’t know how to dig in and do what it is asking me to do. Check the media ![]()
Trending in Questions
I’m working on a project that simulates the bumbl example in the programming phoenix book. It acts almost like an email client. We have a...
New
Hello,
I know there is an approach for handling lists that allows for optimized traversal, but I can’t recall the specific method (somet...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
So my question is quite simple and i have found no conclusive answer on forum, google or AI.
Should we use :erlang.float for Integer to ...
New
Documentation
While reading the Scoped Routes section, I noticed that the documentation currently refers to a problem without explainin...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
If a change or preparation module uses Ash.Changeset.get_argument/2 or Ash.Query.get_argument/2 (or any of the other get_argument functio...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hi there! We created Gust: A task orchestrator inspired by Airflow.
For those who have never heard about Aiflow, it’s a Python-based wor...
New
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
Xamal is a deployment tool for Elixir apps that deploys native releases to bare metal servers over SSH. It’s a port of GitHub - basecamp/...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself.
My main conc...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #library
- #deployment
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #podcasts
- #javascript
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixirconf-us
- #ai
- #blog-post
- #elixir-ls
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming











Showing Posts 1 to 3- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
LostKobrakai
My first step would be checking
nerves_fw_activeinNerves.Runtime.KVas well as consultingfdiskto see if there are partitions as expected on the device.fhunleth
The
rpi4fwup.configstill uses partition offsets to determine whether it’s running off the A or B partition. See this line for requiring that the partition offset be the B partition’s offset for a partition A update to happen.One way to fix this is to use something else to determine which partition is active. For example, you could delete that line and add this instead to check the U-Boot environment variable that
Nerves.Runtime.KVsees (also make the corresponding change for upgrading the a partition):However, before you do this, make sure that your new A or B partitions don’t overlap with the old ones. If they do, you could be overwriting the partition that you’re running off of to perform the update.
It’s pretty tricky to deploy firmware updates that enlarge root file systems. Hopefully you don’t have to do this on remote devices. If I had to do this on a lot of devices, I’d looks to see how much can be done with the padding between filesystems. If the partitions are back-to-back with no room to grow (like the default rpi4 ones), then I’d look into ways to avoid growing them. If there were no way, then I think that’s I’d create a firmware with an initramfs that knows how to move everything. I’d use an initramfs so that Linux won’t have mounted the root or data partitions that would be moved.
Hope that helps.
lawik
Thanks, that clarifies things. I don’t need to do this for anything important. But figured this was not well known so might as well ask