armbian-build/config/boards/nanopim4v2.conf
Igor 4850dbfbf9
Add BOARD_VENDOR to board configs (#9063)
* Add BOARD_VENDOR to board configs

* Add BOARD_VENDOR to all board configuration files

- Added BOARD_VENDOR variable to board configuration files
- Using lowercase vendor slugs (e.g., friendlyelec, radxa, xunlong)
- Set 'generic' for boards without clear vendor match
- TV box files (.tvb) excluded as they have no clear vendor
- Enables better board categorization and vendor-specific handling

* Manual adjustements on top of AI matching

* Drop doubled definition and add retroid vendor
2025-12-14 10:28:37 +01:00

37 lines
1.2 KiB
Plaintext

# Rockchip RK3399 hexa core 4GB RAM SoC GBE eMMC USB3 USB-C WiFi/BT
BOARD_NAME="NanoPi M4V2"
BOARD_VENDOR="friendlyelec"
BOARDFAMILY="rockchip64"
BOARD_MAINTAINER="igorpecovnik"
BOOTCONFIG="nanopi-m4v2-rk3399_defconfig"
KERNEL_TARGET="current,edge"
KERNEL_TEST_TARGET="current"
FULL_DESKTOP="yes"
ASOUND_STATE="asound.state.rt5651"
BOOT_LOGO="desktop"
function post_family_tweaks__m4v2() {
display_alert "$BOARD" "Installing board tweaks" "info"
# enable fan support
chroot $SDCARD /bin/bash -c "systemctl --no-reload enable nanopim4-pwm-fan.service >/dev/null 2>&1"
return 0
}
function post_family_tweaks_bsp__M4V2() {
display_alert "Installing BSP firmware and fixups"
# Bluetooth for most of others (custom patchram is needed only in legacy)
install -m 755 $SRC/packages/bsp/rk3399/brcm_patchram_plus_rk3399 $destination/usr/bin
cp $SRC/packages/bsp/rk3399/rk3399-bluetooth.service $destination/lib/systemd/system/
# Swap out the chip for some boards
sed -i s%BCM4345C5%BCM4356A2%g $destination/lib/systemd/system/rk3399-bluetooth.service
# Fan support
cp $SRC/packages/bsp/nanopim4/nanopim4-pwm-fan.service $destination/lib/systemd/system/
install -m 755 $SRC/packages/bsp/nanopim4/nanopim4-pwm-fan.sh $destination/usr/bin/nanopim4-pwm-fan.sh
return 0
}