From: Baikal Electronics Date: Mon, 17 Apr 2023 13:28:10 +0000 (+0300) Subject: Add support for Linux kernel 6.1 and u-boot v2023.04 X-Git-Tag: baikal/mips/sdk6.1~5 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=5f12f5bfb6a4a500f0a2b72010adb9481d9b175b;p=openembedded-baikal.git Add support for Linux kernel 6.1 and u-boot v2023.04 --- diff --git a/meta-baikal/conf/machine/bfk3.conf b/meta-baikal/conf/machine/bfk3.conf index 34879cf..c2f3873 100644 --- a/meta-baikal/conf/machine/bfk3.conf +++ b/meta-baikal/conf/machine/bfk3.conf @@ -10,4 +10,4 @@ UBOOT_MACHINE = "baikal_bfk3_defconfig" KBUILD_DEFCONFIG = "bfk3_defconfig" KERNEL_DEVICETREE = "baikal-t1/bfk3.dtb" PREFERRED_PROVIDER_virtual/kernel = "linux-baikal" -PREFERRED_VERSION_virtual/kernel = "5.15%" +#PREFERRED_VERSION_virtual/kernel = "6.1%" diff --git a/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc b/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc index ad76977..698d01c 100644 --- a/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc +++ b/meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc @@ -5,7 +5,7 @@ PROVIDES:${PN}-baikal-env = "${PN}-baikal-env" FILES:${PN}-baikal-env = "${WORKDIR}/${MACHINE}.bin ${WORKDIR}/${MACHINE}.env" ENV_SIZE = "0x10000" -UBOOT_DEF_ENV = "${MACHINE}.def-2022" +UBOOT_DEF_ENV = "${MACHINE}.def-2023" BOOTROM_DIR = "sdk_bt/baikal/src/bootrom" diff --git a/meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend b/meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend index c163c7f..16352db 100644 --- a/meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend +++ b/meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend @@ -1,10 +1,10 @@ LIC_FILES_CHKSUM = "file://Licenses/README;md5=2ca5f2c35c8cc335f0a19756634782f1" -SRC_URI = "git://git@swgit/uboot.git;protocol=ssh;branch=baikal_mips;name=uboot \ +SRC_URI = "git://git@swgit/uboot.git;protocol=ssh;branch=baikal_mips_upstream;name=uboot \ git://git@swgit/sdk_bt.git/;protocol=ssh;destsuffix=git/sdk_bt;branch=testing;name=sdk_bt" -SRCREV_uboot = "0769e6fc0854541fe5982e0323823250758cd2d0" -SRCREV_sdk_bt = "e1e52862e947017ef3b5988632bac2726eb105e2" +SRCREV_uboot = "7f42ca4b9efb14e72e782f4232d9ec60f283bf9d" +SRCREV_sdk_bt = "d1831d2deebdca284aa056a667444d79464086b7" S = "${WORKDIR}/git" diff --git a/meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb b/meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb deleted file mode 100644 index 1d327ab..0000000 --- a/meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb +++ /dev/null @@ -1,46 +0,0 @@ -require recipes-kernel/linux/linux-baikal.inc -require recipes-kernel/linux/linux-umulti.inc - -inherit kernel-uimage - -KERNEL_IMAGETYPE = "uImage" - -LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" -SRC_URI = "git://git@swgit/kernel_t1_mainline.git;protocol=ssh;branch=baikal-5.15.y-sdk5.9" -SRCREV = "849fadc2c93a6822c819397e754ab4ffe14f22b8" -LINUX_VERSION ?= "5.15.61" - -DEPENDS += "openssl-native util-linux-native" -DEPENDS += "gmp-native libmpc-native" - -KCONF_BSP_AUDIT_LEVEL = "1" - -COMPATIBLE_MACHINE = "^(bfk3)$" - -deltask package_qa - -baikal_deploy () { - if [ ! -d ${BAIKAL_IMAGES} ]; then - mkdir -p ${BAIKAL_IMAGES} - fi - for imageType in ${KERNEL_IMAGETYPES} ; do - install -m 0644 ${B}/${KERNEL_OUTPUT_DIR}/$imageType ${BAIKAL_IMAGES}/${MACHINE}.$imageType - done -} - -baikal_deploy_vmlinux () { - if [ ! -d ${BAIKAL_IMAGES} ]; then - mkdir -p ${BAIKAL_IMAGES} - fi - cp -f ${B}/System.map ${BAIKAL_IMAGES}/${MACHINE}.System.map - cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin - cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin.gz ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.gz - cat ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin | lzma -f -9 > ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.lzma - - for dtbf in ${KERNEL_DEVICETREE}; do - cp -f ${B}/${KERNEL_OUTPUT_DIR}/dts/$dtbf -t ${BAIKAL_IMAGES} - done -} - -do_deploy[prefuncs] += "baikal_deploy" -do_deploy[prefuncs] += "baikal_deploy_vmlinux" diff --git a/meta-baikal/recipes-kernel/linux/linux-baikal_6.1.bb b/meta-baikal/recipes-kernel/linux/linux-baikal_6.1.bb new file mode 100644 index 0000000..c29b4c4 --- /dev/null +++ b/meta-baikal/recipes-kernel/linux/linux-baikal_6.1.bb @@ -0,0 +1,46 @@ +require recipes-kernel/linux/linux-baikal.inc +require recipes-kernel/linux/linux-umulti.inc + +inherit kernel-uimage + +KERNEL_IMAGETYPE = "uImage" + +LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" +SRC_URI = "git://git@swgit/kernel_t1_mainline.git;protocol=ssh;branch=baikal-6.1.y-sdk6.1" +SRCREV = "54ab2c56660f2bf0a7dd55a5b4015da3198b4c1c" +LINUX_VERSION ?= "6.1" + +DEPENDS += "openssl-native util-linux-native" +DEPENDS += "gmp-native libmpc-native" + +KCONF_BSP_AUDIT_LEVEL = "1" + +COMPATIBLE_MACHINE = "^(bfk3)$" + +deltask package_qa + +baikal_deploy () { + if [ ! -d ${BAIKAL_IMAGES} ]; then + mkdir -p ${BAIKAL_IMAGES} + fi + for imageType in ${KERNEL_IMAGETYPES} ; do + install -m 0644 ${B}/${KERNEL_OUTPUT_DIR}/$imageType ${BAIKAL_IMAGES}/${MACHINE}.$imageType + done +} + +baikal_deploy_vmlinux () { + if [ ! -d ${BAIKAL_IMAGES} ]; then + mkdir -p ${BAIKAL_IMAGES} + fi + cp -f ${B}/System.map ${BAIKAL_IMAGES}/${MACHINE}.System.map + cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin + cp -f ${B}/${KERNEL_OUTPUT_DIR}/vmlinux.bin.gz ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.gz + cat ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin | lzma -f -9 > ${BAIKAL_IMAGES}/${MACHINE}.vmlinux.bin.lzma + + for dtbf in ${KERNEL_DEVICETREE}; do + cp -f ${B}/${KERNEL_OUTPUT_DIR}/dts/$dtbf -t ${BAIKAL_IMAGES} + done +} + +do_deploy[prefuncs] += "baikal_deploy" +do_deploy[prefuncs] += "baikal_deploy_vmlinux"