Commit 441812e18f1cc96b2428d12c125685947613feff

Authored by Eric Lee
1 parent 3f0035b128

Add ppp and RS485 support

Showing 4 changed files with 10 additions and 1 deletions Inline Diff

conf/machine/pitximx8mp2g.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4 2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4
3 #@SOC: i.MX8MP 3 #@SOC: i.MX8MP
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:" 7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa53.inc 10 require conf/machine/include/tune-cortexa53.inc
11 require conf/machine/include/smarc-common.inc 11 require conf/machine/include/smarc-common.inc
12 12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997" 13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997"
14 14
15 IMAGE_FEATURES += "package-management" 15 IMAGE_FEATURES += "package-management"
16 16
17 # Embedian BSP default providers 17 # Embedian BSP default providers
18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp2g ?= "linux-pitximx8mp" 18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp2g ?= "linux-pitximx8mp"
19 PREFERRED_VERSION_linux-pitximx8mp2g_pitximx8mp2g = "5.10" 19 PREFERRED_VERSION_linux-pitximx8mp2g_pitximx8mp2g = "5.10"
20 20
21 KERNEL_DEVICETREE = " \ 21 KERNEL_DEVICETREE = " \
22 embedian/imx8mp-pitx.dtb \ 22 embedian/imx8mp-pitx.dtb \
23 embedian/imx8mp-pitx-lvds.dtb \ 23 embedian/imx8mp-pitx-lvds.dtb \
24 " 24 "
25 25
26 WKS_FILE_DEPENDS_append = " imx-m7-demos" 26 WKS_FILE_DEPENDS_append = " imx-m7-demos"
27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \ 27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \
28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ 28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \
29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \ 29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \
30 " 30 "
31 31
32 PREFERRED_PROVIDER_u-boot_pitximx8mp2g = "u-boot-pitximx8mp" 32 PREFERRED_PROVIDER_u-boot_pitximx8mp2g = "u-boot-pitximx8mp"
33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp2g = "u-boot-pitximx8mp" 33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp2g = "u-boot-pitximx8mp"
34 34
35 UBOOT_CONFIG ??= "sd" 35 UBOOT_CONFIG ??= "sd"
36 UBOOT_CONFIG[sd] = "pitximx8mp_2g_defconfig,sdcard" 36 UBOOT_CONFIG[sd] = "pitximx8mp_2g_defconfig,sdcard"
37 SPL_BINARY = "spl/u-boot-spl.bin" 37 SPL_BINARY = "spl/u-boot-spl.bin"
38 38
39 # Set DDR FIRMWARE 39 # Set DDR FIRMWARE
40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin" 40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin"
41 41
42 # Set u-boot DTB 42 # Set u-boot DTB
43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb" 43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb"
44 44
45 # Set imx-mkimage boot target 45 # Set imx-mkimage boot target
46 IMXBOOT_TARGETS = "flash_evk" 46 IMXBOOT_TARGETS = "flash_evk"
47 47
48 # Set Serial console 48 # Set Serial console
49 SERIAL_CONSOLES = "115200;ttymxc3" 49 SERIAL_CONSOLES = "115200;ttymxc3"
50 50
51 IMAGE_BOOTLOADER = "imx-boot" 51 IMAGE_BOOTLOADER = "imx-boot"
52 52
53 LOADADDR = "" 53 LOADADDR = ""
54 UBOOT_SUFFIX = "bin" 54 UBOOT_SUFFIX = "bin"
55 UBOOT_MAKE_TARGET = "" 55 UBOOT_MAKE_TARGET = ""
56 IMX_BOOT_SEEK = "32" 56 IMX_BOOT_SEEK = "32"
57 57
58 OPTEE_BIN_EXT = "8mp" 58 OPTEE_BIN_EXT = "8mp"
59 59
60 MACHINE_EXTRA_RDEPENDS += " \ 60 MACHINE_EXTRA_RDEPENDS += " \
61 imx-boot \ 61 imx-boot \
62 packagegroup-tools-bluetooth \ 62 packagegroup-tools-bluetooth \
63 pm-utils \ 63 pm-utils \
64 kmod \ 64 kmod \
65 hdparm \ 65 hdparm \
66 gptfdisk \ 66 gptfdisk \
67 lftp \ 67 lftp \
68 vim \ 68 vim \
69 ntp \ 69 ntp \
70 boost \ 70 boost \
71 nodejs \ 71 nodejs \
72 networkmanager \ 72 networkmanager \
73 android-tools \ 73 android-tools \
74 " 74 "
75 75
76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable 76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable
77 # this when you build image without QT 5. 77 # this when you build image without QT 5.
78 IMAGE_INSTALL_append = " \ 78 IMAGE_INSTALL_append = " \
79 packagegroup-imx-ml \ 79 packagegroup-imx-ml \
80 firmware-imx-sdma \ 80 firmware-imx-sdma \
81 firmware-imx-regulatory \ 81 firmware-imx-regulatory \
82 linux-firmware-nxp89xx \ 82 linux-firmware-nxp89xx \
83 nxp-wlan-sdk \ 83 nxp-wlan-sdk \
84 kernel-module-nxp89xx \ 84 kernel-module-nxp89xx \
85 fsl-rc-local \ 85 fsl-rc-local \
86 ppp \
87 usb-modeswitch-data \
88 usb-modeswitch \
86 " 89 "
87 90
88 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev" 91 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev"
89 92
90 IMAGE_FSTYPES = "tar.bz2" 93 IMAGE_FSTYPES = "tar.bz2"
91 94
92 # Ship all kernel modules by default 95 # Ship all kernel modules by default
93 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 96 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
94 97
95 # Add additional firmware 98 # Add additional firmware
96 MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 99 MACHINE_FIRMWARE_append = " linux-firmware-ath10k"
97 100
conf/machine/pitximx8mp4g.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4 2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4
3 #@SOC: i.MX8MP 3 #@SOC: i.MX8MP
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:" 7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa53.inc 10 require conf/machine/include/tune-cortexa53.inc
11 require conf/machine/include/smarc-common.inc 11 require conf/machine/include/smarc-common.inc
12 12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997" 13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997"
14 14
15 IMAGE_FEATURES += "package-management" 15 IMAGE_FEATURES += "package-management"
16 16
17 # Embedian BSP default providers 17 # Embedian BSP default providers
18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp4g ?= "linux-pitximx8mp" 18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp4g ?= "linux-pitximx8mp"
19 PREFERRED_VERSION_linux-pitximx8mp4g_pitximx8mp4g = "5.10" 19 PREFERRED_VERSION_linux-pitximx8mp4g_pitximx8mp4g = "5.10"
20 20
21 KERNEL_DEVICETREE = " \ 21 KERNEL_DEVICETREE = " \
22 embedian/imx8mp-pitx.dtb \ 22 embedian/imx8mp-pitx.dtb \
23 embedian/imx8mp-pitx-lvds.dtb \ 23 embedian/imx8mp-pitx-lvds.dtb \
24 " 24 "
25 25
26 WKS_FILE_DEPENDS_append = " imx-m7-demos" 26 WKS_FILE_DEPENDS_append = " imx-m7-demos"
27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \ 27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \
28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ 28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \
29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \ 29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \
30 " 30 "
31 31
32 PREFERRED_PROVIDER_u-boot_pitximx8mp4g = "u-boot-pitximx8mp" 32 PREFERRED_PROVIDER_u-boot_pitximx8mp4g = "u-boot-pitximx8mp"
33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp4g = "u-boot-pitximx8mp" 33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp4g = "u-boot-pitximx8mp"
34 34
35 UBOOT_CONFIG ??= "sd" 35 UBOOT_CONFIG ??= "sd"
36 UBOOT_CONFIG[sd] = "pitximx8mp_4g_defconfig,sdcard" 36 UBOOT_CONFIG[sd] = "pitximx8mp_4g_defconfig,sdcard"
37 SPL_BINARY = "spl/u-boot-spl.bin" 37 SPL_BINARY = "spl/u-boot-spl.bin"
38 38
39 # Set DDR FIRMWARE 39 # Set DDR FIRMWARE
40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin" 40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin"
41 41
42 # Set u-boot DTB 42 # Set u-boot DTB
43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb" 43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb"
44 44
45 # Set imx-mkimage boot target 45 # Set imx-mkimage boot target
46 IMXBOOT_TARGETS = "flash_evk" 46 IMXBOOT_TARGETS = "flash_evk"
47 47
48 # Set Serial console 48 # Set Serial console
49 SERIAL_CONSOLES = "115200;ttymxc3" 49 SERIAL_CONSOLES = "115200;ttymxc3"
50 50
51 IMAGE_BOOTLOADER = "imx-boot" 51 IMAGE_BOOTLOADER = "imx-boot"
52 52
53 LOADADDR = "" 53 LOADADDR = ""
54 UBOOT_SUFFIX = "bin" 54 UBOOT_SUFFIX = "bin"
55 UBOOT_MAKE_TARGET = "" 55 UBOOT_MAKE_TARGET = ""
56 IMX_BOOT_SEEK = "32" 56 IMX_BOOT_SEEK = "32"
57 57
58 OPTEE_BIN_EXT = "8mp" 58 OPTEE_BIN_EXT = "8mp"
59 59
60 MACHINE_EXTRA_RDEPENDS += " \ 60 MACHINE_EXTRA_RDEPENDS += " \
61 imx-boot \ 61 imx-boot \
62 packagegroup-tools-bluetooth \ 62 packagegroup-tools-bluetooth \
63 pm-utils \ 63 pm-utils \
64 kmod \ 64 kmod \
65 hdparm \ 65 hdparm \
66 gptfdisk \ 66 gptfdisk \
67 lftp \ 67 lftp \
68 vim \ 68 vim \
69 ntp \ 69 ntp \
70 boost \ 70 boost \
71 nodejs \ 71 nodejs \
72 networkmanager \ 72 networkmanager \
73 android-tools \ 73 android-tools \
74 " 74 "
75 75
76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable 76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable
77 # this when you build image without QT 5. 77 # this when you build image without QT 5.
78 IMAGE_INSTALL_append = " \ 78 IMAGE_INSTALL_append = " \
79 packagegroup-imx-ml \ 79 packagegroup-imx-ml \
80 firmware-imx-sdma \ 80 firmware-imx-sdma \
81 firmware-imx-regulatory \ 81 firmware-imx-regulatory \
82 linux-firmware-nxp89xx \ 82 linux-firmware-nxp89xx \
83 nxp-wlan-sdk \ 83 nxp-wlan-sdk \
84 kernel-module-nxp89xx \ 84 kernel-module-nxp89xx \
85 fsl-rc-local \ 85 fsl-rc-local \
86 ppp \
87 usb-modeswitch-data \
88 usb-modeswitch \
86 " 89 "
87 90
88 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev" 91 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev"
89 92
90 IMAGE_FSTYPES = "tar.bz2" 93 IMAGE_FSTYPES = "tar.bz2"
91 94
92 # Ship all kernel modules by default 95 # Ship all kernel modules by default
93 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 96 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
94 97
95 # Add additional firmware 98 # Add additional firmware
96 MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 99 MACHINE_FIRMWARE_append = " linux-firmware-ath10k"
97 100
conf/machine/pitximx8mp6g.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4 2 #@NAME: EMBEDIAN SMARC-iMX8MP CPU Module with 4GB LPDDR4
3 #@SOC: i.MX8MP 3 #@SOC: i.MX8MP
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-iMX8MP
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:" 7 MACHINEOVERRIDES =. "mx8:mx8m:mx8mp:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa53.inc 10 require conf/machine/include/tune-cortexa53.inc
11 require conf/machine/include/smarc-common.inc 11 require conf/machine/include/smarc-common.inc
12 12
13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997" 13 MACHINE_FEATURES += " usbgadget vfat ext2 alsa serial pci wifi bluetooth optee nxp8997"
14 14
15 IMAGE_FEATURES += "package-management" 15 IMAGE_FEATURES += "package-management"
16 16
17 # Embedian BSP default providers 17 # Embedian BSP default providers
18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp6g ?= "linux-pitximx8mp" 18 PREFERRED_PROVIDER_virtual/kernel_pitximx8mp6g ?= "linux-pitximx8mp"
19 PREFERRED_VERSION_linux-pitximx8mp6g_pitximx8mp6g = "5.10" 19 PREFERRED_VERSION_linux-pitximx8mp6g_pitximx8mp6g = "5.10"
20 20
21 KERNEL_DEVICETREE = " \ 21 KERNEL_DEVICETREE = " \
22 embedian/imx8mp-pitx.dtb \ 22 embedian/imx8mp-pitx.dtb \
23 embedian/imx8mp-pitx-lvds.dtb \ 23 embedian/imx8mp-pitx-lvds.dtb \
24 " 24 "
25 25
26 WKS_FILE_DEPENDS_append = " imx-m7-demos" 26 WKS_FILE_DEPENDS_append = " imx-m7-demos"
27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \ 27 IMAGE_BOOT_FILES += "imx8mp_m7_TCM_hello_world.bin \
28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \ 28 imx8mp_m7_TCM_rpmsg_lite_pingpong_rtos_linux_remote.bin \
29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \ 29 imx8mp_m7_TCM_rpmsg_lite_str_echo_rtos.bin \
30 " 30 "
31 31
32 PREFERRED_PROVIDER_u-boot_pitximx8mp6g = "u-boot-pitximx8mp" 32 PREFERRED_PROVIDER_u-boot_pitximx8mp6g = "u-boot-pitximx8mp"
33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp6g = "u-boot-pitximx8mp" 33 PREFERRED_PROVIDER_virtual/bootloader_pitximx8mp6g = "u-boot-pitximx8mp"
34 34
35 UBOOT_CONFIG ??= "sd" 35 UBOOT_CONFIG ??= "sd"
36 UBOOT_CONFIG[sd] = "pitximx8mp_6g_defconfig,sdcard" 36 UBOOT_CONFIG[sd] = "pitximx8mp_6g_defconfig,sdcard"
37 SPL_BINARY = "spl/u-boot-spl.bin" 37 SPL_BINARY = "spl/u-boot-spl.bin"
38 38
39 # Set DDR FIRMWARE 39 # Set DDR FIRMWARE
40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin" 40 DDR_FIRMWARE_NAME = "lpddr4_pmu_train_1d_dmem_202006.bin lpddr4_pmu_train_1d_imem_202006.bin lpddr4_pmu_train_2d_dmem_202006.bin lpddr4_pmu_train_2d_imem_202006.bin"
41 41
42 # Set u-boot DTB 42 # Set u-boot DTB
43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb" 43 UBOOT_DTB_NAME = "imx8mp-pitx.dtb"
44 44
45 # Set imx-mkimage boot target 45 # Set imx-mkimage boot target
46 IMXBOOT_TARGETS = "flash_evk" 46 IMXBOOT_TARGETS = "flash_evk"
47 47
48 # Set Serial console 48 # Set Serial console
49 SERIAL_CONSOLES = "115200;ttymxc3" 49 SERIAL_CONSOLES = "115200;ttymxc3"
50 50
51 IMAGE_BOOTLOADER = "imx-boot" 51 IMAGE_BOOTLOADER = "imx-boot"
52 52
53 LOADADDR = "" 53 LOADADDR = ""
54 UBOOT_SUFFIX = "bin" 54 UBOOT_SUFFIX = "bin"
55 UBOOT_MAKE_TARGET = "" 55 UBOOT_MAKE_TARGET = ""
56 IMX_BOOT_SEEK = "32" 56 IMX_BOOT_SEEK = "32"
57 57
58 OPTEE_BIN_EXT = "8mp" 58 OPTEE_BIN_EXT = "8mp"
59 59
60 MACHINE_EXTRA_RDEPENDS += " \ 60 MACHINE_EXTRA_RDEPENDS += " \
61 imx-boot \ 61 imx-boot \
62 packagegroup-tools-bluetooth \ 62 packagegroup-tools-bluetooth \
63 pm-utils \ 63 pm-utils \
64 kmod \ 64 kmod \
65 hdparm \ 65 hdparm \
66 gptfdisk \ 66 gptfdisk \
67 lftp \ 67 lftp \
68 vim \ 68 vim \
69 ntp \ 69 ntp \
70 boost \ 70 boost \
71 nodejs \ 71 nodejs \
72 networkmanager \ 72 networkmanager \
73 android-tools \ 73 android-tools \
74 " 74 "
75 75
76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable 76 # eIQ Machine Learning. Note that many of the features require Qt 5. Disable
77 # this when you build image without QT 5. 77 # this when you build image without QT 5.
78 IMAGE_INSTALL_append = " \ 78 IMAGE_INSTALL_append = " \
79 packagegroup-imx-ml \ 79 packagegroup-imx-ml \
80 firmware-imx-sdma \ 80 firmware-imx-sdma \
81 firmware-imx-regulatory \ 81 firmware-imx-regulatory \
82 linux-firmware-nxp89xx \ 82 linux-firmware-nxp89xx \
83 nxp-wlan-sdk \ 83 nxp-wlan-sdk \
84 kernel-module-nxp89xx \ 84 kernel-module-nxp89xx \
85 fsl-rc-local \ 85 fsl-rc-local \
86 ppp \
87 usb-modeswitch-data \
88 usb-modeswitch \
86 " 89 "
87 90
88 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev" 91 #TOOLCHAIN_TARGET_TASK_append += " tensorflow-lite-staticdev tensorflow-lite-dev armnn-dev onnxruntimedev"
89 92
90 IMAGE_FSTYPES = "tar.bz2" 93 IMAGE_FSTYPES = "tar.bz2"
91 94
92 # Ship all kernel modules by default 95 # Ship all kernel modules by default
93 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 96 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
94 97
95 # Add additional firmware 98 # Add additional firmware
96 MACHINE_FIRMWARE_append = " linux-firmware-ath10k" 99 MACHINE_FIRMWARE_append = " linux-firmware-ath10k"
97 100
recipes-kernel/linux/linux-pitximx8mp_5.10.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017-2021 NXP 2 # Copyright 2017-2021 NXP
3 # Released under the MIT license (see COPYING.MIT for the terms) 3 # Released under the MIT license (see COPYING.MIT for the terms)
4 4
5 SUMMARY = "Linux Kernel provided and supported by NXP" 5 SUMMARY = "Linux Kernel provided and supported by NXP"
6 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \ 6 DESCRIPTION = "Linux Kernel provided and supported by NXP with focus on \
7 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU." 7 i.MX Family Reference Boards. It includes support for many IPs such as GPU, VPU and IPU."
8 8
9 require recipes-kernel/linux/linux-imx.inc 9 require recipes-kernel/linux/linux-imx.inc
10 10
11 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46" 11 LIC_FILES_CHKSUM = "file://COPYING;md5=6bc538ed5bd9a7fc9398086aedcd7e46"
12 12
13 DEPENDS += "lzop-native bc-native" 13 DEPENDS += "lzop-native bc-native"
14 14
15 SRCBRANCH = "pitx_8mp_lf-5.10.y" 15 SRCBRANCH = "pitx_8mp_lf-5.10.y"
16 LOCALVERSION = "-1.0.0" 16 LOCALVERSION = "-1.0.0"
17 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/pitxmx8mplus_defconfig" 17 KERNEL_DEFCONFIG = "${S}/arch/arm64/configs/pitxmx8mplus_defconfig"
18 18
19 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 19 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
20 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 20 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
21 SRCREV = "802e949e8413ebe10cf85275991a2d48ec81e56f" 21 SRCREV = "91117063a36f2c830cb9c22a984477b892bff6ce"
22 22
23 LINUX_VERSION = "5.10.9" 23 LINUX_VERSION = "5.10.9"
24 24
25 FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo " 25 FILES_${KERNEL_PACKAGE_NAME}-base += "${nonarch_base_libdir}/modules/${KERNEL_VERSION}/modules.builtin.modinfo "
26 26
27 KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig" 27 KERNEL_CONFIG_COMMAND = "oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} olddefconfig"
28 28
29 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" 29 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
30 30
31 DEFAULT_PREFERENCE = "1" 31 DEFAULT_PREFERENCE = "1"
32 32
33 DO_CONFIG_V7_COPY = "no" 33 DO_CONFIG_V7_COPY = "no"
34 DO_CONFIG_V7_COPY_mx6 = "yes" 34 DO_CONFIG_V7_COPY_mx6 = "yes"
35 DO_CONFIG_V7_COPY_mx7 = "yes" 35 DO_CONFIG_V7_COPY_mx7 = "yes"
36 DO_CONFIG_V7_COPY_mx8 = "no" 36 DO_CONFIG_V7_COPY_mx8 = "no"
37 37
38 # Add setting for LF Mainline build 38 # Add setting for LF Mainline build
39 IMX_KERNEL_CONFIG_AARCH32 = "imx_v7_defconfig" 39 IMX_KERNEL_CONFIG_AARCH32 = "imx_v7_defconfig"
40 IMX_KERNEL_CONFIG_AARCH64 = "pitxmx8mplus_defconfig" 40 IMX_KERNEL_CONFIG_AARCH64 = "pitxmx8mplus_defconfig"
41 KBUILD_DEFCONFIG ?= "" 41 KBUILD_DEFCONFIG ?= ""
42 KBUILD_DEFCONFIG_mx6= "${IMX_KERNEL_CONFIG_AARCH32}" 42 KBUILD_DEFCONFIG_mx6= "${IMX_KERNEL_CONFIG_AARCH32}"
43 KBUILD_DEFCONFIG_mx7= "${IMX_KERNEL_CONFIG_AARCH32}" 43 KBUILD_DEFCONFIG_mx7= "${IMX_KERNEL_CONFIG_AARCH32}"
44 KBUILD_DEFCONFIG_mx8= "${IMX_KERNEL_CONFIG_AARCH64}" 44 KBUILD_DEFCONFIG_mx8= "${IMX_KERNEL_CONFIG_AARCH64}"
45 45
46 46
47 # Use a verbatim copy of the defconfig from the linux-imx repo. 47 # Use a verbatim copy of the defconfig from the linux-imx repo.
48 # IMPORTANT: This task effectively disables kernel config fragments 48 # IMPORTANT: This task effectively disables kernel config fragments
49 # since the config fragments applied in do_kernel_configme are replaced. 49 # since the config fragments applied in do_kernel_configme are replaced.
50 addtask copy_defconfig after do_kernel_configme before do_preconfigure 50 addtask copy_defconfig after do_kernel_configme before do_preconfigure
51 do_copy_defconfig () { 51 do_copy_defconfig () {
52 install -d ${B} 52 install -d ${B}
53 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then 53 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
54 # copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7 54 # copy latest IMX_KERNEL_CONFIG_AARCH32 to use for mx6, mx6ul and mx7
55 mkdir -p ${B} 55 mkdir -p ${B}
56 cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config 56 cp ${S}/arch/arm/configs/${IMX_KERNEL_CONFIG_AARCH32} ${B}/.config
57 else 57 else
58 # copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8 58 # copy latest IMX_KERNEL_CONFIG_AARCH64 to use for mx8
59 mkdir -p ${B} 59 mkdir -p ${B}
60 cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config 60 cp ${S}/arch/arm64/configs/${IMX_KERNEL_CONFIG_AARCH64} ${B}/.config
61 fi 61 fi
62 } 62 }
63 63
64 DELTA_KERNEL_DEFCONFIG ?= "" 64 DELTA_KERNEL_DEFCONFIG ?= ""
65 #DELTA_KERNEL_DEFCONFIG_mx8 = "imx.config" 65 #DELTA_KERNEL_DEFCONFIG_mx8 = "imx.config"
66 66
67 do_merge_delta_config[dirs] = "${B}" 67 do_merge_delta_config[dirs] = "${B}"
68 do_merge_delta_config[depends] += " \ 68 do_merge_delta_config[depends] += " \
69 flex-native:do_populate_sysroot \ 69 flex-native:do_populate_sysroot \
70 bison-native:do_populate_sysroot \ 70 bison-native:do_populate_sysroot \
71 " 71 "
72 do_merge_delta_config() { 72 do_merge_delta_config() {
73 for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do 73 for deltacfg in ${DELTA_KERNEL_DEFCONFIG}; do
74 if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then 74 if [ -f ${S}/arch/${ARCH}/configs/${deltacfg} ]; then
75 ${KERNEL_CONFIG_COMMAND} 75 ${KERNEL_CONFIG_COMMAND}
76 oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg} 76 oe_runmake_call -C ${S} CC="${KERNEL_CC}" O=${B} ${deltacfg}
77 elif [ -f "${WORKDIR}/${deltacfg}" ]; then 77 elif [ -f "${WORKDIR}/${deltacfg}" ]; then
78 ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg} 78 ${S}/scripts/kconfig/merge_config.sh -m .config ${WORKDIR}/${deltacfg}
79 elif [ -f "${deltacfg}" ]; then 79 elif [ -f "${deltacfg}" ]; then
80 ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg} 80 ${S}/scripts/kconfig/merge_config.sh -m .config ${deltacfg}
81 fi 81 fi
82 done 82 done
83 cp .config ${WORKDIR}/defconfig 83 cp .config ${WORKDIR}/defconfig
84 } 84 }
85 addtask merge_delta_config before do_preconfigure after do_copy_defconfig 85 addtask merge_delta_config before do_preconfigure after do_copy_defconfig
86 86
87 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 87 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
88 88