Commit 602776c4baf5c2ffbb59bcc958b9b34c97f1b4d0

Authored by Eric Lee
1 parent ed728b4bcb
Exists in master

Add console definition in machine file

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

conf/machine/imx6q1gsmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6Q/i.MX6D SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6Q/i.MX6D SMARC-FiMX6 Modules
3 #@SOC: i.MX6Q/i.MX6D 3 #@SOC: i.MX6Q/i.MX6D
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual and quad core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual and quad core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6q:" 7 MACHINEOVERRIDES =. "mx6:mx6q:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6q1gsmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6q1gsmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6q1gsmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6q1gsmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6q-smarcfimx6.dtb imx6q-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6q-smarcfimx6.dtb imx6q-smarcfimx6-xga.dtb \
19 imx6q-smarcfimx6-wxga.dtb imx6q-smarcfimx6-wvga.dtb \ 21 imx6q-smarcfimx6-wxga.dtb imx6q-smarcfimx6-wvga.dtb \
20 imx6q-smarcfimx6-1080p.dtb" 22 imx6q-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6q1gsmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6q1gsmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6q1gsmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6q1gsmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6q1gsmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6q1gsmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_quad_1g_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_quad_1g_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6qsmarc" 30 OPTEE_BIN_EXT = "6qsmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6q \ 45 firmware-imx-vpu-imx6q \
44 linux-firmware-ath10k \ 46 linux-firmware-ath10k \
45 " 47 "
46 48
47 # Ship all kernel modules by default 49 # Ship all kernel modules by default
48 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 50 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
49 51
50 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k" 52 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k"
51 53
conf/machine/imx6q2gsmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6Q/i.MX6D SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6Q/i.MX6D SMARC-FiMX6 Modules
3 #@SOC: i.MX6Q/i.MX6D 3 #@SOC: i.MX6Q/i.MX6D
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual and quad core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual and quad core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6q:" 7 MACHINEOVERRIDES =. "mx6:mx6q:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6q2gsmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6q2gsmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6q2gsmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6q2gsmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6q-smarcfimx6.dtb imx6q-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6q-smarcfimx6.dtb imx6q-smarcfimx6-xga.dtb \
19 imx6q-smarcfimx6-wxga.dtb imx6q-smarcfimx6-wvga.dtb \ 21 imx6q-smarcfimx6-wxga.dtb imx6q-smarcfimx6-wvga.dtb \
20 imx6q-smarcfimx6-1080p.dtb" 22 imx6q-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6q2gsmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6q2gsmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6q2gsmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6q2gsmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6q2gsmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6q2gsmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_quad_2g_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_quad_2g_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6qsmarc" 30 OPTEE_BIN_EXT = "6qsmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6q \ 45 firmware-imx-vpu-imx6q \
44 linux-firmware-ath10k \ 46 linux-firmware-ath10k \
45 " 47 "
46 48
47 # Ship all kernel modules by default 49 # Ship all kernel modules by default
48 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 50 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
49 51
50 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k" 52 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k"
51 53
conf/machine/imx6qp1gsmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6QP SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6QP SMARC-FiMX6 Modules
3 #@SOC: i.MX6Q/i.MX6QP 3 #@SOC: i.MX6Q/i.MX6QP
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 quad plus core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 quad plus core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6q:" 7 MACHINEOVERRIDES =. "mx6:mx6q:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6qp1gsmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6qp1gsmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6qp1gsmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6qp1gsmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6qp-smarcfimx6.dtb imx6qp-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6qp-smarcfimx6.dtb imx6qp-smarcfimx6-xga.dtb \
19 imx6qp-smarcfimx6-wxga.dtb imx6qp-smarcfimx6-wvga.dtb \ 21 imx6qp-smarcfimx6-wxga.dtb imx6qp-smarcfimx6-wvga.dtb \
20 imx6qp-smarcfimx6-1080p.dtb" 22 imx6qp-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6qp1gsmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6qp1gsmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6qp1gsmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6qp1gsmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6qp1gsmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6qp1gsmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_quadplus_1g_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_quadplus_1g_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6qpsmarc" 30 OPTEE_BIN_EXT = "6qpsmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6q \ 45 firmware-imx-vpu-imx6q \
44 linux-firmware-ath10k \ 46 linux-firmware-ath10k \
45 " 47 "
46 48
47 # Ship all kernel modules by default 49 # Ship all kernel modules by default
48 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 50 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
49 51
50 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k" 52 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k"
51 53
conf/machine/imx6qp2gsmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6QP SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6QP SMARC-FiMX6 Modules
3 #@SOC: i.MX6Q/i.MX6QP 3 #@SOC: i.MX6Q/i.MX6QP
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 quad plus core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 quad plus core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6q:" 7 MACHINEOVERRIDES =. "mx6:mx6q:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6qp2gsmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6qp2gsmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6qp2gsmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6qp2gsmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6qp-smarcfimx6.dtb imx6qp-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6qp-smarcfimx6.dtb imx6qp-smarcfimx6-xga.dtb \
19 imx6qp-smarcfimx6-wxga.dtb imx6qp-smarcfimx6-wvga.dtb \ 21 imx6qp-smarcfimx6-wxga.dtb imx6qp-smarcfimx6-wvga.dtb \
20 imx6qp-smarcfimx6-1080p.dtb" 22 imx6qp-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6qp2gsmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6qp2gsmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6qp2gsmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6qp2gsmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6qp2gsmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6qp2gsmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_quadplus_2g_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_quadplus_2g_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6qpsmarc" 30 OPTEE_BIN_EXT = "6qpsmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6q \ 45 firmware-imx-vpu-imx6q \
44 linux-firmware-ath10k \ 46 linux-firmware-ath10k \
45 " 47 "
46 48
47 # Ship all kernel modules by default 49 # Ship all kernel modules by default
48 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 50 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
49 51
50 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k" 52 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6q linux-firmware-ath10k"
51 53
conf/machine/imx6solosmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6DL SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6DL SMARC-FiMX6 Modules
3 #@SOC: i.MX6S 3 #@SOC: i.MX6S
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 solo core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 solo core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6dl:" 7 MACHINEOVERRIDES =. "mx6:mx6dl:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6solosmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6solosmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6solosmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6solosmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6dl-smarcfimx6.dtb imx6dl-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6dl-smarcfimx6.dtb imx6dl-smarcfimx6-xga.dtb \
19 imx6dl-smarcfimx6-wxga.dtb imx6dl-smarcfimx6-wvga.dtb \ 21 imx6dl-smarcfimx6-wxga.dtb imx6dl-smarcfimx6-wvga.dtb \
20 imx6dl-smarcfimx6-1080p.dtb" 22 imx6dl-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6solosmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6solosmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6solosmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6solosmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6solosmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6solosmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_solo_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_solo_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6solosmarc" 30 OPTEE_BIN_EXT = "6solosmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6d \ 45 firmware-imx-vpu-imx6d \
44 firmware-imx-epdc \ 46 firmware-imx-epdc \
45 linux-firmware-ath10k \ 47 linux-firmware-ath10k \
46 " 48 "
47 49
48 # Ship all kernel modules by default 50 # Ship all kernel modules by default
49 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 51 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
50 52
51 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6d firmware-imx-epdc linux-firmware-ath10k" 53 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6d firmware-imx-epdc linux-firmware-ath10k"
52 54
conf/machine/imx6u1gsmarc.conf
1 #@TYPE: Machine 1 #@TYPE: Machine
2 #@NAME: Embedian i.MX6DL SMARC-FiMX6 Modules 2 #@NAME: Embedian i.MX6DL SMARC-FiMX6 Modules
3 #@SOC: i.MX6DL 3 #@SOC: i.MX6DL
4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual lite core Computer on Modules 4 #@DESCRIPTION: Machine configuration for Embedian SMARC-FiMX6 dual lite core Computer on Modules
5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com> 5 #@MAINTAINER: Eric Lee <eric.lee@embedian.com>
6 6
7 MACHINEOVERRIDES =. "mx6:mx6dl:" 7 MACHINEOVERRIDES =. "mx6:mx6dl:"
8 8
9 require conf/machine/include/imx-base.inc 9 require conf/machine/include/imx-base.inc
10 require conf/machine/include/tune-cortexa9.inc 10 require conf/machine/include/tune-cortexa9.inc
11 11
12 SERIAL_CONSOLE = "115200 ttymxc4"
13
12 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee" 14 MACHINE_FEATURES += " screen usbgadget vfat ext2 bluetooth wifi pci alsa serial usbhost optee"
13 15
14 # Use linux kernel SMARC-FiMX6 16 # Use linux kernel SMARC-FiMX6
15 PREFERRED_PROVIDER_virtual/kernel_imx6u1gsmarc = "linux-smarcfimx6" 17 PREFERRED_PROVIDER_virtual/kernel_imx6u1gsmarc = "linux-smarcfimx6"
16 PREFERRED_VERSION_linux-smarcfimx6_imx6u1gsmarc = "4.9.88" 18 PREFERRED_VERSION_linux-smarcfimx6_imx6u1gsmarc = "4.9.88"
17 19
18 KERNEL_DEVICETREE = "imx6dl-smarcfimx6.dtb imx6dl-smarcfimx6-xga.dtb \ 20 KERNEL_DEVICETREE = "imx6dl-smarcfimx6.dtb imx6dl-smarcfimx6-xga.dtb \
19 imx6dl-smarcfimx6-wxga.dtb imx6dl-smarcfimx6-wvga.dtb \ 21 imx6dl-smarcfimx6-wxga.dtb imx6dl-smarcfimx6-wvga.dtb \
20 imx6dl-smarcfimx6-1080p.dtb" 22 imx6dl-smarcfimx6-1080p.dtb"
21 23
22 PREFERRED_PROVIDER_virtual/bootloader_imx6u1gsmarc = "u-boot-smarcfimx6" 24 PREFERRED_PROVIDER_virtual/bootloader_imx6u1gsmarc = "u-boot-smarcfimx6"
23 PREFERRED_PROVIDER_u-boot_imx6u1gsmarc = "u-boot-smarcfimx6" 25 PREFERRED_PROVIDER_u-boot_imx6u1gsmarc = "u-boot-smarcfimx6"
24 PREFERRED_VERSION_u-boot_imx6u1gsmarc = "2017.03" 26 PREFERRED_VERSION_u-boot_imx6u1gsmarc = "2017.03"
25 UBOOT_CONFIG ??= "sd" 27 UBOOT_CONFIG ??= "sd"
26 UBOOT_CONFIG[sd] = "smarcfimx6_dl_1g_ser3_defconfig,sdcard" 28 UBOOT_CONFIG[sd] = "smarcfimx6_dl_1g_ser3_defconfig,sdcard"
27 29
28 OPTEE_BIN_EXT = "6dlsmarc" 30 OPTEE_BIN_EXT = "6dlsmarc"
29 31
30 MACHINE_EXTRA_RDEPENDS += " \ 32 MACHINE_EXTRA_RDEPENDS += " \
31 pm-utils \ 33 pm-utils \
32 kmod \ 34 kmod \
33 hdparm \ 35 hdparm \
34 gptfdisk \ 36 gptfdisk \
35 lftp \ 37 lftp \
36 vim \ 38 vim \
37 ntp \ 39 ntp \
38 boost \ 40 boost \
39 nodejs \ 41 nodejs \
40 networkmanager \ 42 networkmanager \
41 libimxvpuapi \ 43 libimxvpuapi \
42 gstreamer1.0-plugins-imx \ 44 gstreamer1.0-plugins-imx \
43 firmware-imx-vpu-imx6d \ 45 firmware-imx-vpu-imx6d \
44 firmware-imx-epdc \ 46 firmware-imx-epdc \
45 linux-firmware-ath10k \ 47 linux-firmware-ath10k \
46 " 48 "
47 49
48 # Ship all kernel modules by default 50 # Ship all kernel modules by default
49 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules" 51 MACHINE_EXTRA_RRECOMMENDS = "kernel-modules"
50 52
51 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6d firmware-imx-epdc linux-firmware-ath10k" 53 MACHINE_FIRMWARE_append_mx6 = " firmware-imx-vpu-imx6d firmware-imx-epdc linux-firmware-ath10k"
52 54
recipes-core/sysvinit/sysvinit-inittab/imxgpu2d/rc_gpu.S
File was created 1 #!/bin/bash
2 CPUREV=$(cat /sys/devices/soc0/soc_id)
3 FILEVG=/usr/lib/libOpenVG.so
4 FILEVG3D=/usr/lib/libOpenVG.3d.so
5 FILEVG355=/usr/lib/libOpenVG.2d.so
6 if [ -e $FILEVG3D ] && [ -e $FILEVG355 ]
7 then
8 if [ -e $FILEVG ]
9 then
10 rm -f $FILEVG
11 fi
12 if [ $CPUREV == "i.MX6QP" ] || [ $CPUREV == "i.MX6Q" ] || [ $CPUREV == "i.MX6SL" ]
13 then
14 # Use GC355 VG
15 ln -s $FILEVG355 $FILEVG
16 else
17 ln -s $FILEVG3D $FILEVG
18 fi
19 fi
20
recipes-core/sysvinit/sysvinit-inittab/imxgpu2d/rc_mxc.S
File was created 1 #!/bin/bash
2 #
3 if grep -sq ttymxc0 /proc/cmdline; then
4 /sbin/getty -L ttymxc0 115200 vt100
5 elif grep -sq ttymxc1 /proc/cmdline; then
6 /sbin/getty -L ttymxc1 115200 vt100
7 elif grep -sq ttymxc3 /proc/cmdline; then
8 /sbin/getty -L ttymxc3 115200 vt100
9 elif grep -sq ttymxc4 /proc/cmdline; then
10 /sbin/getty -L ttymxc4 115200 vt100
11 elif grep -sq ttyLP0 /proc/cmdline; then
12 /sbin/getty -L ttyLP0 115200 vt100
13 elif grep -sq ttyLP1 /proc/cmdline; then
14 /sbin/getty -L ttyLP1 115200 vt100
15 elif grep -sq ttyLP2 /proc/cmdline; then
16 /sbin/getty -L ttyLP2 115200 vt100
17 elif grep -sq ttyLP3 /proc/cmdline; then
18 /sbin/getty -L ttyLP3 115200 vt100
19 else
20 sleep 100000
21 fi
22
recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bbappend
File was created 1 # Freescale imx extra configuration
2 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
3
4 RDEPENDS_${PN} += " bash "
5
6 SYSVINIT-GPU = " file://rc_mxc.S file://rc_gpu.S"
7
8 SRC_URI_append_imxgpu2d = " ${SYSVINIT-GPU}"
9
10 do_install_append_imxgpu2d() {
11
12 install -d ${D}${sysconfdir}
13
14 # Install rc_mxc.S to /etc/init.d
15 install -d ${D}${sysconfdir} ${D}${sysconfdir}/init.d
16 install -m 0755 ${WORKDIR}/rc_mxc.S ${D}${sysconfdir}/init.d
17
18 install -m 0644 ${WORKDIR}/inittab ${D}${sysconfdir}/inittab
19
20 echo "mxc::respawn:/etc/init.d/rc_mxc.S" >> ${D}${sysconfdir}/inittab
21
22 tmp="${SERIAL_CONSOLES}"
23 for i in $tmp
24 do
25 j=`echo ${i} | sed s/\;/\ /g`
26 label=`echo ${i} | sed -e 's/^.*;tty//'`
27 # comment these lines off
28 echo "#$label:12345:respawn:${base_sbindir}/getty ${j}" >> ${D}${sysconfdir}/inittab
29 done
30
31 if [ "${USE_VT}" = "1" ]; then
32 cat <<EOF >>${D}${sysconfdir}/inittab
33 # ${base_sbindir}/getty invocations for the runlevels.
34 #
35 # The "id" field MUST be the same as the last
36 # characters of the device (after "tty").
37 #
38 # Format:
39 # <id>:<runlevels>:<action>:<process>
40 #
41
42 EOF
43
44 for n in ${SYSVINIT_ENABLED_GETTYS}
45 do
46 echo "$n:2345:respawn:${base_sbindir}/getty 38400 tty$n" >> ${D}${sysconfdir}/inittab
47 done
48 echo "" >> ${D}${sysconfdir}/inittab
49 fi
50
51 # Install rc_gpu.S to /etc/init.d
52 echo "gpu::sysinit:/etc/init.d/rc_gpu.S" >> ${D}${sysconfdir}/inittab
53 install -m 0755 ${WORKDIR}/rc_gpu.S ${D}${sysconfdir}/init.d
54 }
55
56 FILES_${PN}_append_imxgpu2d = " ${sysconfdir}/init.d/rc_mxc.S ${sysconfdir}/init.d/rc_gpu.S"
57
58 PACKAGE_ARCH_imxgpu2d = "${MACHINE_ARCH}"
59
recipes-kernel/linux/linux-smarcfimx6_4.9.88.bb
1 # Copyright (C) 2013-2016 Freescale Semiconductor 1 # Copyright (C) 2013-2016 Freescale Semiconductor
2 # Copyright 2017 NXP 2 # Copyright 2017 NXP
3 # Copyright 2019 Embedian, Inc.. 3 # Copyright 2019 Embedian, Inc..
4 # Released under the MIT license (see COPYING.MIT for the terms) 4 # Released under the MIT license (see COPYING.MIT for the terms)
5 5
6 SUMMARY = "Linux Kernel for SMARC-FiMX6 and supported by Embedian" 6 SUMMARY = "Linux Kernel for SMARC-FiMX6 and supported by Embedian"
7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \ 7 DESCRIPTION = "Linux Kernel provided and supported by Embedian with focus on \
8 SMARC-FiMX6 Family Computer on Modules." 8 SMARC-FiMX6 Family Computer on Modules."
9 9
10 LICENSE = "GPLv2" 10 LICENSE = "GPLv2"
11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7" 11 LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"
12 12
13 require recipes-kernel/linux/linux-imx.inc 13 require recipes-kernel/linux/linux-imx.inc
14 14
15 DEPENDS += "lzop-native bc-native" 15 DEPENDS += "lzop-native bc-native"
16 16
17 DEFAULT_PREFERENCE = "1" 17 DEFAULT_PREFERENCE = "1"
18 18
19 DO_CONFIG_V7_COPY = "no" 19 DO_CONFIG_V7_COPY = "no"
20 DO_CONFIG_V7_COPY_mx6 = "yes" 20 DO_CONFIG_V7_COPY_mx6 = "yes"
21 DO_CONFIG_V7_COPY_mx7 = "yes" 21 DO_CONFIG_V7_COPY_mx7 = "yes"
22 DO_CONFIG_V7_COPY_mx8 = "no" 22 DO_CONFIG_V7_COPY_mx8 = "no"
23 23
24 SRCBRANCH = "smarc-imx6_4.9.88_2.0.0_ga" 24 SRCBRANCH = "smarc-imx6_4.9.88_2.0.0_ga"
25 25
26 LOCALVERSION = "-${SRCBRANCH}" 26 LOCALVERSION = "-${SRCBRANCH}"
27 DEFCONFIG_mx6 = "smarcfimx6_defconfig" 27 DEFCONFIG_mx6 = "smarcfimx6_defconfig"
28 28
29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git" 29 KERNEL_SRC ?= "git@git.embedian.com:developer/smarc-fsl-linux-kernel.git;protocol=git"
30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}" 30 SRC_URI = "${EMB_KERNEL_MIRROR};protocol=ssh;branch=${SRCBRANCH}"
31 SRCREV = "8feef65c1cb8a1699f4bc5d42f569b838e8f7d23" 31 SRCREV = "4b3fe740490221fc48c7f424a1e2e213b4874727"
32 32
33 S = "${WORKDIR}/git" 33 S = "${WORKDIR}/git"
34 34
35 addtask copy_defconfig after do_unpack before do_preconfigure 35 addtask copy_defconfig after do_unpack before do_preconfigure
36 do_copy_defconfig () { 36 do_copy_defconfig () {
37 install -d ${B} 37 install -d ${B}
38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then 38 if [ ${DO_CONFIG_V7_COPY} = "yes" ]; then
39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7 39 # copy latest imx_v7_defconfig to use for mx6, mx6ul and mx7
40 mkdir -p ${B} 40 mkdir -p ${B}
41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/.config 41 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/.config
42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/../defconfig 42 cp ${S}/arch/arm/configs/${DEFCONFIG_mx6} ${B}/../defconfig
43 else 43 else
44 # copy latest defconfig to use for mx8 44 # copy latest defconfig to use for mx8
45 mkdir -p ${B} 45 mkdir -p ${B}
46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config 46 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/.config
47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig 47 cp ${S}/arch/arm64/configs/${DEFCONFIG_mx8} ${B}/../defconfig
48 fi 48 fi
49 } 49 }
50 50
51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)" 51 COMPATIBLE_MACHINE = "(mx6|mx7|mx8)"
52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm" 52 EXTRA_OEMAKE_append_mx6 = " ARCH=arm"
53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm" 53 EXTRA_OEMAKE_append_mx7 = " ARCH=arm"
54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64" 54 EXTRA_OEMAKE_append_mx8 = " ARCH=arm64"
55 55