forked from nisargjhaveri/WirelessAndroidAutoDongle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for Raspverry Pi Zero 2 w
- Loading branch information
1 parent
376866b
commit 4be112f
Showing
1 changed file
with
69 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
BR2_arm=y | ||
BR2_cortex_a53=y | ||
BR2_ARM_FPU_NEON_VFPV4=y | ||
|
||
BR2_TOOLCHAIN_BUILDROOT_CXX=y | ||
|
||
# Linux headers same as kernel, a 5.10 series | ||
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10=y | ||
|
||
# Kernel config | ||
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" | ||
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/common/kernel.config" | ||
BR2_LINUX_KERNEL_LZ4=y | ||
BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL=y | ||
|
||
# Build the DTB from the kernel sources | ||
BR2_LINUX_KERNEL_DTS_SUPPORT=y | ||
BR2_LINUX_KERNEL_INTREE_DTS_NAME="bcm2710-rpi-zero-2-w" | ||
|
||
# Rootfs overlay | ||
BR2_ROOTFS_OVERLAY="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/common/rootfs_overlay $(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/raspberrypi0w/rootfs_overlay" | ||
BR2_GLOBAL_PATCH_DIR="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/patches" | ||
|
||
# Firmware | ||
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="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/raspberrypi/config.txt" | ||
BR2_PACKAGE_RPI_FIRMWARE_CMDLINE_FILE="$(BR2_EXTERNAL_AA_WIRELESS_DONGLE_PATH)/board/raspberrypi/cmdline.txt" | ||
|
||
# Wifi and Bluetooth firmware | ||
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI=y | ||
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_BT=y | ||
BR2_PACKAGE_BRCMFMAC_SDIO_FIRMWARE_RPI_WIFI=y | ||
|
||
# Required tools to create the SD image | ||
BR2_PACKAGE_HOST_DOSFSTOOLS=y | ||
BR2_PACKAGE_HOST_GENIMAGE=y | ||
BR2_PACKAGE_HOST_MTOOLS=y | ||
|
||
# Packages to bundle | ||
BR2_PACKAGE_RNG_TOOLS=y | ||
BR2_PACKAGE_HAVEGED=y | ||
BR2_PACKAGE_BLUEZ_TOOLS=y | ||
BR2_PACKAGE_BLUEZ5_UTILS=y | ||
BR2_PACKAGE_BLUEZ5_UTILS_CLIENT=y | ||
BR2_PACKAGE_BLUEZ5_UTILS_TOOLS=y | ||
BR2_PACKAGE_DNSMASQ=y | ||
BR2_PACKAGE_DROPBEAR=y | ||
BR2_PACKAGE_HOSTAPD=y | ||
BR2_PACKAGE_IW=y | ||
BR2_PACKAGE_WPA_SUPPLICANT=y | ||
BR2_PACKAGE_UTIL_LINUX=y | ||
BR2_PACKAGE_UTIL_LINUX_RFKILL=y | ||
BR2_PACKAGE_AAWG=y | ||
|
||
# Other options | ||
BR2_TARGET_GENERIC_ROOT_PASSWD="password" | ||
|
||
# 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" |