thead: add edge kernel support

This commit is contained in:
chainsx
2023-10-02 22:16:50 +08:00
committed by Igor
parent 1dfc8da2e8
commit 10eeaa2690
3 changed files with 9040 additions and 8 deletions

View File

@@ -2,10 +2,10 @@
BOARD_NAME="LicheePi 4A"
BOARDFAMILY="thead"
BOARD_MAINTAINER="chainsx"
KERNEL_TARGET="legacy"
BOOT_FDT_FILE="thead/light-lpi4a.dtb"
KERNEL_TARGET="legacy,edge"
BOOT_FDT_FILE="thead/th1520-lichee-pi-4a.dtb"
SRC_EXTLINUX="yes"
SRC_CMDLINE="console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth=$ethaddr rootrwoptions=rw,noatime rootrwreset=yes"
SRC_CMDLINE="console=ttyS0,115200 rootwait rw earlycon clk_ignore_unused loglevel=7 eth=\$ethaddr rootrwoptions=rw,noatime rootrwreset=yes"
BOOTCONFIG="light_lpi4a_defconfig"
SKIP_BOOTSPLASH="yes"
BOOTFS_TYPE="ext4"

File diff suppressed because it is too large Load Diff

View File

@@ -13,23 +13,31 @@ BOOTSOURCE='https://github.com/chainsx/thead-u-boot'
BOOTBRANCH='branch:extlinux'
BOOTPATCHDIR="legacy"
UBOOT_TARGET_MAP=";;u-boot-with-spl.bin"
UBOOT_COMPILER="riscv64-linux-gnu-"
UBOOT_USE_GCC='< 8.0'
BOOTDIR='u-boot-thead'
LINUXFAMILY="thead"
case "${BRANCH}" in
legacy)
UBOOT_COMPILER="riscv64-linux-gnu-"
UBOOT_USE_GCC='< 8.0'
BOOTDIR='u-boot-thead'
KERNELSOURCE='https://github.com/revyos/thead-kernel'
KERNELBRANCH="branch:lpi4a"
KERNELSOURCE='https://github.com/chainsx/thead-kernel'
KERNELBRANCH="branch:th1520"
declare -g KERNEL_MAJOR_MINOR="5.10"
KERNELPATCHDIR="thead-${BRANCH}"
LINUXCONFIG="linux-thead-${BRANCH}"
;;
edge)
KERNELSOURCE='https://github.com/revyos/th1520-linux-kernel'
KERNELBRANCH="branch:th1520-v6.6-rc4"
declare -g KERNEL_MAJOR_MINOR="6.6"
KERNELPATCHDIR="thead-${BRANCH}"
LINUXCONFIG="linux-thead-${BRANCH}"
;;
esac
write_uboot_platform() {