Files
build/config/sources/families/media.conf

84 lines
3.0 KiB
Plaintext

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 ]]; then
BOOTSOURCE='https://github.com/150balbes/u-boot-rk'
BOOTBRANCH='branch:rk3588'
BOOTPATCHDIR="u-boot-station-p2"
elif [[ $BOARD == khadas-edge2 ]]; then
BOOTSOURCE='https://github.com/150balbes/u-boot-rk'
BOOTBRANCH='branch:rk3588-next-k'
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="tag:v6.2-rc8" # KERNELBRANCH="branch:linux-6.2.y"
KERNELPATCHDIR='media-'$BRANCH
LINUXFAMILY=media
LINUXCONFIG='linux-media-'$BRANCH
;;
esac
prepare_boot_configuration