Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add board h96 max v56 tvbox #1173

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions config/boards/h96max-v56.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# shellcheck shell=bash

export BOARD_NAME="h96 v56 tvbox"
export BOARD_MAKER="h96-max"
export BOARD_SOC="Rockchip RK3566"
export BOARD_CPU="ARM Cortex A55"
export UBOOT_PACKAGE="u-boot-turing-rk3588"
export UBOOT_RULES_TARGET="h96max-v56-rk3566"
export COMPATIBLE_SUITES=("jammy" "noble")
export COMPATIBLE_FLAVORS=("server" "desktop")

function config_image_hook__h96max-v56() {
local rootfs="$1"
local overlay="$2"
local suite="$3"

if [ "${suite}" == "jammy" ] || [ "${suite}" == "noble" ]; then
# Kernel modules to load at boot time
echo "sprdbt_tty" >> "${rootfs}/etc/modules"
echo "sprdwl_ng" >> "${rootfs}/etc/modules"

# Install BCMDHD SDIO WiFi and Bluetooth DKMS
chroot "${rootfs}" apt-get -y install dkms bcmdhd-sdio-dkms

# Enable bluetooth for AP6275P
mkdir -p "${rootfs}/usr/lib/scripts"
cp "${overlay}/usr/lib/systemd/system/ap6275p-bluetooth.service" "${rootfs}/usr/lib/systemd/system/ap6275p-bluetooth.service"
cp "${overlay}/usr/lib/scripts/ap6275p-bluetooth.sh" "${rootfs}/usr/lib/scripts/ap6275p-bluetooth.sh"
cp "${overlay}/usr/bin/brcm_patchram_plus" "${rootfs}/usr/bin/brcm_patchram_plus"
chroot "${rootfs}" systemctl enable ap6275p-bluetooth
fi

return 0
}
14 changes: 14 additions & 0 deletions packages/u-boot-turing-rk3588/debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,17 @@ Description: A boot loader for the Radxa Zero 3.
intended to be easy to port and to debug, and runs on many
supported architectures, including PPC, ARM, MIPS, x86, m68k,
NIOS, and Microblaze.

Package: u-boot-h96max-v56
Architecture: arm64
Priority: optional
Depends: mtd-utils
Provides: u-boot
Replaces: u-boot
Conflicts: u-boot
Description: A U-Boot for H96Max V56.
Das U-Boot is a cross-platform bootloader for embedded systems,
used as the default boot loader by several board vendors. It is
intended to be easy to port and to debug, and runs on many
supported architectures, including PPC, ARM, MIPS, x86, m68k,
NIOS, and Microblaze.
Loading