aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@dailly.me>2022-11-10 17:00:28 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-11-10 17:01:58 +0100
commit890800e24f31720cdc6614445ce6ee043bd540b4 (patch)
treef779b552b46a4377f8879355bba3671afe81dcd8
parentc85d4c956d7bba3236cb399d3032d092ba79e28b (diff)
Added the configuration for the raspberry 3a
-rw-r--r--board/config_3_64.txt37
-rw-r--r--board/genimage-raspberrypi3_64.cfg34
-rwxr-xr-xbuild.sh4
-rw-r--r--configs/raspberrypi3_647
4 files changed, 80 insertions, 2 deletions
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"
+ }
+}
diff --git a/build.sh b/build.sh
index 3ef0c29..3d3bf80 100755
--- a/build.sh
+++ b/build.sh
@@ -4,7 +4,7 @@ usage() {
echo
echo "with boardname in"
echo " - raspberrypi0w"
- echo " - raspberrypi3"
+ echo " - raspberrypi3_64"
}
test -z ${BUILDROOT_DIR} && BUILDROOT_DIR="../buildroot-2022.08.1"
@@ -21,7 +21,7 @@ export BOARDNAME=$1
case "$BOARDNAME" in
raspberrypi0w)
;;
- raspberrypi3)
+ raspberrypi3_64)
;;
*)
usage
diff --git a/configs/raspberrypi3_64 b/configs/raspberrypi3_64
new file mode 100644
index 0000000..79b0e97
--- /dev/null
+++ b/configs/raspberrypi3_64
@@ -0,0 +1,7 @@
+BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI_X=y
+BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="$(BR2_EXTERNAL_PIAUDIO_PATH)/board/config_3_64.txt"
+
+BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI=y
+BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_BT=y
+BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_WIFI=y
+