Skip to content

Commit

Permalink
configs/raspberrypizero2w_poobs4
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivelight committed Feb 9, 2022
1 parent b48e933 commit 64a226e
Show file tree
Hide file tree
Showing 3 changed files with 141 additions and 0 deletions.
42 changes: 42 additions & 0 deletions board/raspberrypi/config_zero2w_poobs4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Please note that this is only a sample, we recommend you to change it to fit
# your needs.
# You should override this file using BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE.
# See http://buildroot.org/manual.html#rootfs-custom
# and http://elinux.org/RPiconfig for a description of config.txt syntax

start_file=start.elf
fixup_file=fixup.dat

kernel=zImage

# 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

# fixes rpi (3B, 3B+, 3A+, 4B ,zero W and zero 2) ttyAMA0 serial console
dtoverlay=miniuart-bt

# enable autoprobing of Bluetooth driver without need of hciattach/btattach
dtoverlay=krnbt=on

#
# pOOBs4 customization start
#

# DesignWare DWC2 driver overlay (USB OTG support)
dtoverlay=dwc2

# Disable the rainbow splash screen
disable_splash=1

# For debugging purpose
#enable_uart=1
1 change: 1 addition & 0 deletions board/raspberrypi/rootfs_overlay_zero2w
98 changes: 98 additions & 0 deletions configs/raspberrypizero2w_poobs4_defconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
BR2_arm=y
BR2_cortex_a53=y
BR2_ARM_FPU_NEON_VFPV4=y

# Linux headers same as kernel, 5.10 series
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y

BR2_TOOLCHAIN_BUILDROOT_CXX=y

BR2_LINUX_KERNEL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL=y
BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION="$(call github,raspberrypi,linux,0b54dbda3cca2beb51e236a25738784e90853b64)/linux-0b54dbda3cca2beb51e236a25738784e90853b64.tar.gz"
BR2_LINUX_KERNEL_DEFCONFIG="bcm2709"

# Build the DTB from the kernel sources
BR2_LINUX_KERNEL_DTS_SUPPORT=y
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-zero-2-w"
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y

BR2_PACKAGE_RPI_FIRMWARE=y
BR2_PACKAGE_RPI_FIRMWARE_BOOTCODE_BIN=y
BR2_PACKAGE_RPI_FIRMWARE_VARIANT_PI=y
BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="board/raspberrypizero2w/config_zero2w.txt"

# MicroSD images generation tools
BR2_PACKAGE_HOST_DOSFSTOOLS=y
BR2_PACKAGE_HOST_GENIMAGE=y
BR2_PACKAGE_HOST_MTOOLS=y

# Filesystem / image
BR2_TARGET_ROOTFS_EXT2=y
BR2_TARGET_ROOTFS_EXT2_4=y
BR2_TARGET_ROOTFS_EXT2_SIZE="120M"
# BR2_TARGET_ROOTFS_TAR is not set
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypizero2w/post-build.sh"
BR2_ROOTFS_POST_IMAGE_SCRIPT="board/raspberrypizero2w/post-image.sh"

#
# pOOBs4 customization start
#

## Build Options
BR2_CCACHE=y
BR2_PACKAGE_OVERRIDE_FILE="$(BR2_EXTERNAL_pOOBs4_PATH)/package/package_override"

## Toolchain
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y

## Kernel
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_pOOBs4_PATH)/board/poobs4/common/linux-fragment.config"

## Filesystem Images
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_pOOBs4_PATH)/board/raspberrypi/rootfs_overlay_4/ $(BR2_EXTERNAL_pOOBs4_PATH)/board/poobs4/common/rootfs_overlay/"
BR2_ROOTFS_POST_BUILD_SCRIPT="board/raspberrypizero2w/post-build.sh $(BR2_EXTERNAL_pOOBs4_PATH)/board/poobs4/common/post_build.sh"

## Packages
# use haveged for better entropy
BR2_PACKAGE_URANDOM_SCRIPTS=n
BR2_PACKAGE_HAVEGED=y

# wireless support
BR2_PACKAGE_IW=y
BR2_PACKAGE_WIRELESS_TOOLS=y
BR2_PACKAGE_WIRELESS_TOOLS_LIB=y
BR2_PACKAGE_WPA_SUPPLICANT=y
BR2_PACKAGE_WPA_SUPPLICANT_NL80211=y
BR2_PACKAGE_WPA_SUPPLICANT_CLI=y

# busybox
BR2_PACKAGE_BUSYBOX_CONFIG="package/busybox/busybox-minimal.config"
BR2_PACKAGE_BUSYBOX_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_pOOBs4_PATH)/board/poobs4/common/busybox-fragment.config"

# openssh
BR2_PACKAGE_OPENSSH=y

# hostapd
BR2_PACKAGE_HOSTAPD=y

# dnsmasq
BR2_PACKAGE_DNSMASQ=y
BR2_PACKAGE_DNSMASQ_DHCP=y

# nano
BR2_PACKAGE_NANO=y

## Firmware
BR2_PACKAGE_LINUX_FIRMWARE=y

# ! On-board Wi-Fi module
# BCM43XXX (fw), driver is included by kernel defconfig (bcm2709)
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI=y
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_WIFI=y

# ! Wi-Fi USB dongle
# board doesn't have a USB host port

# Raspberry Pi Configuration
BR2_PACKAGE_RPI_FIRMWARE_CONFIG_FILE="$(BR2_EXTERNAL_pOOBs4_PATH)/board/raspberrypi/config_zero2w_poobs4.txt"

0 comments on commit 64a226e

Please sign in to comment.