shifters98
Hi,
when building for the rpi3 target - how much memory is allocated to the GPU - i normally run with 16MB (as its the minimum you can set in raspi-config) to free up as much memory as possible and i run them the headless and no need for a gui.
Is this possible or is it already the default? Reading through the docs and a search does not give me any answers
Thanks
Tom
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
Hello,
I’m developing a online persistent chat system (what’s app) like using elixir/dynamodb/aws for a mobile app(flutter).
The diffic...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
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
Other Trending Topics
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Aludel - LLM Evaluation Workbench
Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 8- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
outlog
https://github.com/nerves-project/nerves_system_rpi3/blob/master/config.txt#L20
192 seems to be the default.. you should be able to override it though - not sure how
GregMefford
Since this config file is stored in the boot partition on the device, it can be overridden from your project by using a custom
fwup.conffile to specify a custom version ofconfig.txt: Advanced Configuration — nerves v1.14.3When overriding either of these files, you need to copy the original one from the system you are using, because the override will replace the original, not merge with it. You can download these files from GitHub and then add them to your project.
shifters98
Many thanks - I will give it a go!
cheers
Tom
shifters98
i have tried using the blinky example program, built and deployed to the pi3+ and it works fine.
I make the changes i think are correct reading the docs and it will not even boot. I am obviously doing something wrong but not sure what.
I have copied the fwup.conf and options.txt from:
~/.nerves/artifacts/nerves_system_rpi3-portable-1.6.2/images
into blinky/config folder (all the following changes are to those files)
I changed options.txt ‘gpu_mem=192’ to ‘gpu_mem=16’
I changed config.exs to
config :nerves, :firmware,
rootfs_overlay: “rootfs_overlay”,
fwup_conf: “config/fwup.conf”
and then changed fwup from
file-resource config.txt {
host-path = ${NERVES_SYSTEM}/images/config.txt"
}
to
file-resource config.txt {
host-path = “${NERVES_APP}/config/config.txt”
}
Any ideas?
fhunleth
When I experiment with the
config.txtsettings, I usually put the MicroSD card into my laptop and modify the file directly. When I have something that boots, then I update thefwup.conf.My only guess is that 16 MB is too small for the “X” version of the Raspberry Pi’s VideoCore firmware. The Pi has several firmware images. See here: firmware/boot at master · raspberrypi/firmware · GitHub. The “_x” one is the most capable. The “_cd” one is the smallest and most limited, I believe. Everything is relative, but in my opinion, we enable a ton on our Raspberry Pi systems since this area tends to be harder to people to debug and for us to support. To select the other firmware images, I’d probably download them from the github link above and manually copy them over to the boot partition to make sure that your configuration boots. After you’re happy with that, it’s a Buildroot configuration option to select the Raspberry Pi firmware. If you going to be modifying Buildroot options, you might as well disable rpi-userland, alsalib and espeak and shrink your firmware by maybe 1/3rd.
Good luck.
whalesalad
I am experiencing a similar problem. Rather than my device not booting though, it boots fine and completely ignores my custom fwup.conf/config.txt.
fwup.confandconfig.txtinto myconfig/directory.config.exsfile to include the following:config/fwup.confI modified theconfig.txtattribute to point to the path of the file relative to my project directory:I have an external wifi adapter (with an external large antenna) that I want to use instead of the onboard wifi chip. So I am adding
dtoverlay=disable-wifito the end of myconfig.txt.But after rebooting … the device is still using the regular onboard wifi adapter.
How can I determine if the fwup.conf file I am injecting is being used correctly? (ie, where is it being placed on the filesystem of the sd card?)
fhunleth
Hi @whalesalad,
Could you try running
cat "/boot/config.txt"at the IEx prompt on the Raspberry Pi 3. The boot partition gets mounted read-only to there.Another option is to plug the MicroSD card into your computer, mount the boot partition, and open the
config.txtin your editor.After you check that out, you’ll almost certainly need to modify the Nerves system to include the WiFi drivers and firmware for your external WiFi adapter. I’d have to double check, but I’m pretty sure that only the internal Broadcom WiFi drivers are included the official Nerves systems for Raspberry Pi’s with built-in WiFi.
whalesalad
You are spot on … this is where I left off the other night. I was trying to use
mix nerves.system.shellto get a shell booted up to reconfigure the kernel but was running into a bug w/ the docker invocation.So turns out my stuff was actually working correctly. The issue was that the
disable-wifi.dtbofile did not exist on my device. Once I was able to do that by adding the correct lines to myfwup.conf. Here is a diff between my file and the factory rpi4 one:Going to jump back into that now with trying to get the driver added to the device.
I think that I have two options:
The chipset in this device is the Ralink RT5370.
Here is a link from the Debian project for what I believe is the driver: I Challenge Thee
This is kind of a thread-jack at this point but I will report back my findings in case someone else is running into a similar issue.
All of this huge yak shave just to get a different wifi adapter running so I can remote debug while my device is outside (doing some GPS stuff).