# # SPDX-License-Identifier: GPL-2.0 # # Copyright (c) 2013-2023 Igor Pecovnik, igor@armbian.com # # This file is a part of the Armbian Build Framework # https://github.com/armbian/build/ # source "${BASH_SOURCE%/*}/include/rockchip64_common.inc" if [[ $BOARD = jetson-nano ]]; then enable_extension "grub-sbc-media" fi if [[ $BOARD == station-p2 || $BOARD == station-m2 || $BOARD == bananapir2pro ]]; then BOOTSOURCE='https://github.com/150balbes/u-boot-rk' BOOTBRANCH='branch:rk356x' BOOTPATCHDIR="u-boot-station-p2" elif [[ $BOARD == quartz64a || $BOARD == quartz64b ]]; then BOOTSOURCE='https://github.com/150balbes/u-boot-rk' BOOTBRANCH='branch:rk35xx' BOOTPATCHDIR="u-boot-station-p2" elif [[ $BOARD == station-m3 || $BOARD == khadas-edge2 ]]; then BOOTSOURCE='https://github.com/150balbes/u-boot-rk' BOOTBRANCH='branch:rk3588' BOOTPATCHDIR="u-boot-station-p2" else BOOTBRANCH="tag:v2022.04" BOOTPATCHDIR="u-boot-media" fi SKIP_BOOTSPLASH="yes" case $BRANCH in legacy) KERNELDIR='linux-rockchip64' if [[ $BOARD == station-p2 || $BOARD == station-m2 || $BOARD == bananapir2pro ]]; then KERNELSOURCE='https://github.com/150balbes/rockchip-kernel' export KERNEL_MAJOR_MINOR="4.19" # Major and minor versions of this kernel. KERNELBRANCH='branch:kernel-4.19' KERNELPATCHDIR='station-p2-'$BRANCH LINUXFAMILY=station-p2 LINUXCONFIG='linux-station-p2-'$BRANCH EXTRAWIFI="no" WIREGUARD="no" elif [[ $BOARD == jetson-nano ]]; then KERNELDIR='linux-nano' KERNELSOURCE='https://github.com/150balbes/Jetson-Nano' export KERNEL_MAJOR_MINOR="4.9" # Major and minor versions of this kernel. KERNELBRANCH='branch:4.9.201' KERNELPATCHDIR='jetson-nano-'$BRANCH LINUXFAMILY=jetson-nano LINUXCONFIG='linux-jetson-nano-'$BRANCH EXTRAWIFI="no" BOOT_FDT_FILE="none" SRC_CMDLINE='console=ttyS0,115200n8 console=tty0 tegraid=21.1.2.0.0 ddr_die=4096M@2048M section=512M memtype=0 vpr_resize usb_port_owner_info=0 lane_owner_info=0 emc_max_dvfs=0 touch_id=0@63 video=tegrafb debug_uartport=lsport,4 earlyprintk=uart8250-32bit,0x70006000 maxcpus=4 usbcore.old_scheme_first=1 lp0_vec=0x1000@0xff780000 core_edp_mv=1075 core_edp_ma=4000 tegra_fbmem=0x800000@0x92ca9000 is_hdmi_initialised=1 earlycon=uart8250,mmio32,0x70006000 fbcon=map:0' MODULES_INITRD="jetson-nano-legacy" else KERNELSOURCE='https://github.com/150balbes/rockchip-kernel' export KERNEL_MAJOR_MINOR="5.10" # Major and minor versions of this kernel. KERNELBRANCH='branch:kernel-5.10' LINUXFAMILY=media LINUXCONFIG='linux-media-'$BRANCH KERNELPATCHDIR='media-'$BRANCH fi ;; current) export KERNEL_MAJOR_MINOR="6.1" # Major and minor versions of this kernel. KERNELBRANCH="branch:linux-6.1.y" LINUXCONFIG='linux-media-'$BRANCH KERNELPATCHDIR='media-'$BRANCH LINUXFAMILY=media ;; edge) export KERNEL_MAJOR_MINOR="6.2" # Major and minor versions of this kernel. KERNELBRANCH="branch:linux-6.2.y" KERNELPATCHDIR='media-'$BRANCH LINUXFAMILY=media LINUXCONFIG='linux-media-'$BRANCH ;; esac prepare_boot_configuration