Skip to content

Commit

Permalink
WIP: add initial support for Youyeetoo R1 V3 (#7108)
Browse files Browse the repository at this point in the history
* youyeetoo r1 v3: add initial support for this board

* arch: arm64 board: youyeetoo r1 v3 replace edge with vendor kernel

* arch: arm64 board: youyeetoo r1 v3 reviews changes:
- Removed patch, see the pr for more details #7108
- Removed old kernel legacy
- WIP: Added DTS code on armbian/linux-rockchip#223

I compiled the OS with latest changes, untested build logs in https://paste.armbian.com/ofidozaqup

* Update: Rename board from V3 to v3 (ARM64, Youyeetoo R1)
- Note: Untested on v1 as I don't have a v1 board available.
  • Loading branch information
SuperKali authored Aug 21, 2024
1 parent e4d75f2 commit d13f129
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions config/boards/youyeetoo-r1-v3.wip
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Rockchip RK3588S octa core 32GB RAM SoC eMMC NvME 1x USB3 3x USB2 1x GbE
BOARD_NAME="Youyeetoo R1 v3"
BOARDFAMILY="rockchip-rk3588"
BOARD_MAINTAINER="superkali"
BOOTCONFIG="generic-rk3588_defconfig" # vendor name, not standard, see hook below, set BOOT_SOC below to compensate
BOOT_SOC="rk3588"
KERNEL_TARGET="vendor"
FULL_DESKTOP="yes"
BOOT_LOGO="desktop"
IMAGE_PARTITION_TABLE="gpt"
BOOT_FDT_FILE="rockchip/rk3588s-youyeetoo-r1.dtb"
BOOT_SCENARIO="spl-blobs"

function post_family_tweaks__youyeetoo_r1_naming_audios() {
display_alert "$BOARD" "Renaming Youyeetoo R1 audios" "info"

mkdir -p $SDCARD/etc/udev/rules.d/
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-hdmi0-sound", ENV{SOUND_DESCRIPTION}="HDMI0 Audio"' > $SDCARD/etc/udev/rules.d/90-naming-audios.rules
echo 'SUBSYSTEM=="sound", ENV{ID_PATH}=="platform-es8388-sound", ENV{SOUND_DESCRIPTION}="ES8388 Audio"' >> $SDCARD/etc/udev/rules.d/90-naming-audios.rules

return 0
}

function post_family_tweaks__youyeetoo_r1_naming_udev_network_interfaces() {
display_alert "$BOARD" "Renaming Youyeetoo R1 network interfaces to eth0" "info"

mkdir -p $SDCARD/etc/udev/rules.d/
cat <<- EOF > "${SDCARD}/etc/udev/rules.d/70-persistent-net.rules"
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", KERNELS=="fe1c0000.ethernet", NAME:="eth0"
EOF
}

# Mainline U-Boot
function post_family_config__youyeetoo_r1_use_mainline_uboot() {
display_alert "$BOARD" "Using mainline U-Boot for $BOARD / $BRANCH" "info"

declare -g BOOTCONFIG="generic-rk3588_defconfig" # Use generic defconfig which should boot all RK3588 boards
declare -g BOOTDELAY=1 # Wait for UART interrupt to enter UMS/RockUSB mode etc
declare -g BOOTSOURCE="https://github.com/u-boot/u-boot.git" # We ❤️ Mainline U-Boot
declare -g BOOTBRANCH="tag:v2024.07"
declare -g BOOTPATCHDIR="v2024.07"
# Don't set BOOTDIR, allow shared U-Boot source directory for disk space efficiency

declare -g UBOOT_TARGET_MAP="BL31=${RKBIN_DIR}/${BL31_BLOB} ROCKCHIP_TPL=${RKBIN_DIR}/${DDR_BLOB};;u-boot-rockchip.bin"

# Disable stuff from rockchip64_common; we're using binman here which does all the work already
unset uboot_custom_postprocess write_uboot_platform write_uboot_platform_mtd

# Just use the binman-provided u-boot-rockchip.bin, which is ready-to-go
function write_uboot_platform() {
dd "if=$1/u-boot-rockchip.bin" "of=$2" bs=32k seek=1 conv=notrunc status=none
}
}

0 comments on commit d13f129

Please sign in to comment.