Skip to content

Commit

Permalink
Overwrite default config.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
Cellane committed May 18, 2024
1 parent 456cded commit 574ec4a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions config/config.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Default Nerves RPi0 config.txt
#
# It's possible to override this file by using a custom fwup.conf
# configuration to pull in a replacement.
#
# Useful links:
# https://www.raspberrypi.org/documentation/configuration/config-txt/README.md
# https://www.raspberrypi.org/documentation/configuration/device-tree.md
# https://github.com/raspberrypi/documentation/blob/master/configuration/device-tree.md
# https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README

kernel=zImage

# Disable the boot rainbow
disable_splash=1

# This, along with the Raspberry Pi "x" firmware is needed for the camera
# to work. The Raspberry Pi "x" firmware is selected via the Buildroot
# configuration. See Target packages->Hardware handling->Firmware.
gpu_mem=192

# Enable I2C, SPI, and audio
dtparam=i2c_arm=on
dtparam=spi=on
dtparam=audio=on

# Comment this in or modify to enable OneWire
# NOTE: check that the overlay that you specify is in the boot partition or
# this won't work.
#dtoverlay=w1-gpio-pullup,gpiopin=4
dtoverlay=dwc2

# The ramoops overlay works with the pstore driver to preserve crash
# information across reboots in DRAM
dtoverlay=ramoops

# Enable the UART (/dev/ttyAMA0) on the RPi0.
enable_uart=1
dtoverlay=miniuart-bt
# Set the GPU frequency so that the MiniUART (/dev/ttyS0) can be used for
# Bluetooth. This has a small performance impact. See
# https://www.raspberrypi.org/documentation/computers/config_txt.html#overclocking.
core_freq=250

# The active LED is active low instead of active high like other Raspberry Pis
dtparam=act_led_activelow=on

# The default is to blink the LED on MicroSD card accesses, but this isn't
# that useful since Nerves has very few accesses. Switch it to a heartbeat
# so that it's easy to see if the processor hangs.
dtparam=act_led_trigger=heartbeat

# To turn the LED completely off comment out the previous line and uncomment
# the next.
#dtparam=act_led_trigger=none
2 changes: 1 addition & 1 deletion config/fwup.conf
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ file-resource start.elf {
host-path = "${NERVES_SYSTEM}/images/rpi-firmware/start_x.elf"
}
file-resource config.txt {
host-path = "${NERVES_SYSTEM}/images/config.txt"
host-path = "${NERVES_APP}/config/config.txt"
}
file-resource cmdline.txt {
host-path = "${NERVES_SYSTEM}/images/cmdline.txt"
Expand Down

0 comments on commit 574ec4a

Please sign in to comment.