From 890800e24f31720cdc6614445ce6ee043bd540b4 Mon Sep 17 00:00:00 2001
From: Sébastien Dailly <sebastien@dailly.me>
Date: Thu, 10 Nov 2022 17:00:28 +0100
Subject: Added the configuration for the raspberry 3a

---
 board/config_3_64.txt              | 37 +++++++++++++++++++++++++++++++++++++
 board/genimage-raspberrypi3_64.cfg | 34 ++++++++++++++++++++++++++++++++++
 2 files changed, 71 insertions(+)
 create mode 100644 board/config_3_64.txt
 create mode 100644 board/genimage-raspberrypi3_64.cfg

(limited to 'board')

diff --git a/board/config_3_64.txt b/board/config_3_64.txt
new file mode 100644
index 0000000..50ba763
--- /dev/null
+++ b/board/config_3_64.txt
@@ -0,0 +1,37 @@
+# Please note that this is only a sample, we recommend you to change it to fit
+# your needs.
+# You should override this file using a post-build script.
+# See http://buildroot.org/manual.html#rootfs-custom
+# and http://elinux.org/RPiconfig for a description of config.txt syntax
+
+# We always use the same names, the real used variant is selected by
+# BR2_PACKAGE_RPI_FIRMWARE_{DEFAULT,X,CD} choice
+start_file=start.elf
+fixup_file=fixup.dat
+
+kernel=Image
+
+# To use an external initramfs file
+#initramfs rootfs.cpio.gz
+
+# Disable overscan assuming the display supports displaying the full resolution
+# If the text shown on the screen disappears off the edge, comment this out
+disable_overscan=1
+
+# How much memory in MB to assign to the GPU on Pi models having
+# 256, 512 or 1024 MB total memory
+gpu_mem_256=100
+gpu_mem_512=100
+gpu_mem_1024=100
+boot_delay=0
+initial_turbo=10
+dtoverlay=dwc2
+
+# enable 64bits support
+arm_64bit=1
+
+# https://github.com/raspberrypi/firmware/tree/master/boot/overlays
+dtparam=krnbt=on
+dtparam=i2c=on
+dtparam=audio=on
+dtoverlay=allo-boss-dac-pcm512x-audio
diff --git a/board/genimage-raspberrypi3_64.cfg b/board/genimage-raspberrypi3_64.cfg
new file mode 100644
index 0000000..8cbcd91
--- /dev/null
+++ b/board/genimage-raspberrypi3_64.cfg
@@ -0,0 +1,34 @@
+image boot.vfat {
+	vfat {
+		files = {
+			"bcm2710-rpi-3-b.dtb",
+			"bcm2710-rpi-3-b-plus.dtb",
+			"bcm2837-rpi-3-b.dtb",
+			"rpi-firmware/bootcode.bin",
+			"rpi-firmware/cmdline.txt",
+			"rpi-firmware/config.txt",
+			"rpi-firmware/fixup.dat",
+			"rpi-firmware/start.elf",
+			"rpi-firmware/overlays",
+			"Image"
+		}
+	}
+
+	size = 32M
+}
+
+image sdcard.img {
+	hdimage {
+	}
+
+	partition boot {
+		partition-type = 0xC
+		bootable = "true"
+		image = "boot.vfat"
+	}
+
+	partition rootfs {
+		partition-type = 0x83
+		image = "rootfs.ext4"
+	}
+}
-- 
cgit v1.2.3