]> git.baikalelectronics.ru Git - openembedded-baikal.git/commitdiff
Add support for Linux kernel 6.1 and u-boot v2023.04
authorBaikal Electronics <support@baikalelectronics.ru>
Mon, 17 Apr 2023 13:28:10 +0000 (16:28 +0300)
committerBaikal Electronics <support@baikalelectronics.ru>
Mon, 17 Apr 2023 13:28:10 +0000 (16:28 +0300)
meta-baikal/conf/machine/bfk3.conf
meta-baikal/recipes-bsp/u-boot/u-boot-environment.inc
meta-baikal/recipes-bsp/u-boot/u-boot_2022.10.bbappend
meta-baikal/recipes-kernel/linux/linux-baikal_5.15.bb [deleted file]
meta-baikal/recipes-kernel/linux/linux-baikal_6.1.bb [new file with mode: 0644]

index 34879cf8738c3dabcbeec584314a941c835794a0..c2f387339c9a4b41ea1a3580a3d24e1cc694c232 100644 (file)
@@ -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%"
index ad769778eec3fa0392d6acf32520830fc034aa89..698d01c9c8c8cd240417fe99fece149b189e171a 100644 (file)
@@ -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"
 
index c163c7f1680d4c427780396bcb69b23bbca57f98..16352db616bdf5bf030d38c1d7da033fb3148dd0 100644 (file)
@@ -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 (file)
index 1d327ab..0000000
+++ /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 (file)
index 0000000..c29b4c4
--- /dev/null
@@ -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"