Guest User

Untitled

a guest
Aug 16th, 2025
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.91 KB | Source Code | 0 0
  1. --- c/config/boards/radxa-zero3.csc
  2. +++ w/config/boards/radxa-zero3.csc
  3. @@ -9,13 +9,48 @@ FULL_DESKTOP="yes"
  4.  BOOT_LOGO="desktop"
  5.  BOOT_FDT_FILE="rockchip/rk3566-radxa-zero3.dtb"
  6.  IMAGE_PARTITION_TABLE="gpt"
  7. -BOOT_SCENARIO="spl-blobs"
  8. +# This breaks branch=vendor, but Armbian's scripts fail if the value is not set here.
  9. +BOOT_SCENARIO="binman-atf-mainline"
  10. +# BOOT_SCENARIO="spl-blobs"
  11.  BOOTFS_TYPE="fat" # Only for vendor/legacy
  12.  
  13.  
  14. +PACKAGE_LIST_BOARD="rfkill bluetooth bluez bluez-tools"
  15.  AIC8800_TYPE="sdio"
  16.  enable_extension "radxa-aic8800"
  17.  
  18. +function post_family_tweaks_bsp__aic8800_wireless() {
  19. +   display_alert "$BOARD" "Installing AIC8800 Tweaks" "info"
  20. +   mkdir -p "${destination}"/etc/modprobe.d
  21. +   mkdir -p "${destination}"/etc/modules-load.d
  22. +   # Add wireless conf
  23. +   cat > "${destination}"/etc/modprobe.d/aic8800-wireless.conf <<- EOT
  24. +   options aic8800_fdrv_sdio aicwf_dbg_level=0 custregd=0 ps_on=0
  25. +   #options aic8800_bsp_sdio aic_fw_path=/lib/firmware/aic8800_fw/SDIO/aic8800
  26. +   EOT
  27. +   # Add needed bluetooth modules
  28. +   cat > "${destination}"/etc/modules-load.d/aic8800-btlpm.conf <<- EOT
  29. +   hidp
  30. +   rfcomm
  31. +   bnep
  32. +   aic8800_btlpm_sdio
  33. +   EOT
  34. +   # Add AIC8800 Bluetooth Service and Script
  35. +   if [[ -d "$SRC/packages/bsp/aic8800" ]]; then
  36. +       mkdir -p "${destination}"/etc/systemd/system
  37. +       mkdir -p "${destination}"/usr/bin
  38. +       cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth" "${destination}"/usr/bin
  39. +       chmod +x "${destination}"/usr/bin/aic-bluetooth
  40. +       cp -f "$SRC/packages/bsp/aic8800/aic-bluetooth.service" "${destination}"/etc/systemd/system
  41. +   fi
  42. +}
  43. +
  44. +# Enable AIC8800 Bluetooth Service
  45. +function post_family_tweaks__enable_aic8800_bluetooth_service() {
  46. +   display_alert "$BOARD" "Enabling AIC8800 Bluetooth Service" "info"
  47. +   chroot_sdcard systemctl --no-reload enable aic-bluetooth.service
  48. +}
  49. +
  50.  function post_family_config__use_mainline_uboot_except_vendor() {
  51.     # use mainline u-boot for _current_ and _edge_
  52.     if [[ "$BRANCH" != "current" && "$BRANCH" != "edge" ]]; then
  53. @@ -25,11 +60,13 @@ function post_family_config__use_mainline_uboot_except_vendor() {
  54.     unset BOOTFS_TYPE   # mainline u-boot can boot ext4 directly
  55.     BOOTCONFIG="radxa-zero-3-rk3566_defconfig"
  56.     BOOTSOURCE="https://github.com/u-boot/u-boot"
  57. -   BOOTBRANCH="tag:v2025.04"
  58. -   BOOTPATCHDIR="v2025.04"
  59. -
  60. -   UBOOT_TARGET_MAP="BL31=$RKBIN_DIR/$BL31_BLOB ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
  61. +   BOOTBRANCH="branch:master"
  62. +   # cannot set BOOT_SOC=rk3566 as it has side effects in Armbian scripts, but ATF_TARGET_MAP works
  63. +   # ATF does not separate rk3566 from rk3568
  64. +   ATF_TARGET_MAP="M0_CROSS_COMPILE=arm-linux-gnueabi- PLAT=rk3568 bl31;;build/rk3568/release/bl31/bl31.elf:bl31.elf"
  65. +   BOOTPATCHDIR="v2025.10"
  66.  
  67. +   UBOOT_TARGET_MAP="BL31=bl31.elf ROCKCHIP_TPL=$RKBIN_DIR/$DDR_BLOB;;u-boot-rockchip.bin"
  68.     unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd
  69.  
  70.     function write_uboot_platform() {
  71.  
Advertisement
Add Comment
Please, Sign In to add comment