Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 86 additions & 0 deletions conf/machine/qcs6490mio5355a1.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
#@TYPE: Machine
#@NAME: qcs6490mio5355a1
#@DESCRIPTION: Machine configuration for Advantech qcs6490mio5355a1 board
#Reference from qcs6490-rb3gen2-vision-kit.conf

require conf/machine/include/qcom-qcs6490.inc

# Assign machine arch to download qualcomm prebuild binary ex: fastrpc
MACHINE_ARCH = "qcs6490_rb3gen2_vision_kit"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not correct, as per yocto documentation, this variable cannot be hand-edited, see:

   :term:`MACHINE_ARCH`
      Specifies the name of the machine-specific architecture. This
      variable is set automatically from :term:`MACHINE` or
      :term:`TUNE_PKGARCH`. You should not hand-edit
      the :term:`MACHINE_ARCH` variable.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you trying to share all other binaries from the rb3gen2?

I assume there are custom binaries (such as the boot firmware ones) which are specific to your hardware platform, can you confirm?


MACHINE_FEATURES = "usbhost usbgadget alsa wifi bluetooth"

# This DT currently exist only as patches against linux-qcom-base recipe.
KERNEL_DEVICETREE:pn-linux-qcom-base = " \
qcom/qcs6490-rb3gen2.dtb \
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does that mean that there is no specific DTB for your board, and you are directly using the same DTB as RB3G2?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also including a lot of dtbs that are really specific to rb3gen2, ideally yours should only contain the dtbs (and overlays) which are validated on your target.

"

KERNEL_DEVICETREE:pn-linux-qcom-custom = " \
qcom/qcs6490-addons-rb3gen2-video-mezz.dtb \
qcom/qcs6490-addons-rb3gen2-vision-mezz.dtb \
qcom/qcs6490-addons-rb3gen2-vision-mezz-hsp.dtb \
qcom/qcs6490-addons-rb3gen2-ptz-mezz.dtb \
qcom/qcs6490-addons-rb3gen2-ia-mezz.dtb \
qcom/qcs5430-fp1-addons-rb3gen2-vision-mezz.dtb \
qcom/qcs5430-fp1-addons-rb3gen2-vision-mezz-hsp.dtb \
qcom/qcs5430-fp2-addons-rb3gen2-vision-mezz.dtb \
qcom/qcs5430-fp2-addons-rb3gen2-vision-mezz-hsp.dtb \
qcom/qcs5430-fp2p5-addons-rb3gen2-vision-mezz.dtb \
qcom/qcs5430-fp2p5-addons-rb3gen2-vision-mezz-hsp.dtb \
qcom/qcs5430-fp3-addons-rb3gen2-vision-mezz.dtb \
qcom/qcs5430-fp2p5-addons-rb3gen2-vision-mezz-hsp.dtb \
"

# Additional dtbo to overylay on top of kernel devicetree files
KERNEL_TECH_DTBOS[qcs6490-addons-rb3gen2-video-mezz] = " \
qcm6490-graphics.dtbo qcm6490-camera-rb3.dtbo \
qcm6490-wlan-rb3.dtbo \
qcm6490-video.dtbo \
qcm6490-wlan-upstream.dtbo \
"
KERNEL_TECH_DTBOS[qcs6490-addons-rb3gen2-vision-mezz] = " \
qcm6490-graphics.dtbo qcm6490-camera-rb3.dtbo \
qcm6490-wlan-rb3.dtbo \
qcm6490-video.dtbo \
qcm6490-wlan-upstream.dtbo \
"
KERNEL_TECH_DTBOS[qcs6490-addons-rb3gen2-vision-mezz-hsp] = " \
qcm6490-wlan-rb3-hsp.dtbo \
"
KERNEL_TECH_DTBOS[qcs5430-fp1-addons-rb3gen2-vision-mezz] = " \
qcs5430-graphics.dtbo qcm5430-camera-rb3.dtbo \
qcs5430-wlan-rb3.dtbo \
qcm6490-video.dtbo \
qcs5430-wlan-upstream.dtbo \
"
KERNEL_TECH_DTBOS[qcs5430-fp1-addons-rb3gen2-vision-mezz-hsp] = " \
"
KERNEL_TECH_DTBOS[qcs5430-fp2-addons-rb3gen2-vision-mezz] = " \
qcs5430-graphics.dtbo qcm5430-camera-rb3.dtbo \
qcs5430-wlan-rb3.dtbo \
qcm6490-video.dtbo \
qcs5430-wlan-upstream.dtbo \
"
KERNEL_TECH_DTBOS[qcs5430-fp2-addons-rb3gen2-vision-mezz-hsp] = " \
"
KERNEL_TECH_DTBOS[qcs5430-fp2p5-addons-rb3gen2-vision-mezz] = " \
qcs5430-fp2p5-graphics.dtbo qcm6490-camera-rb3.dtbo \
qcs5430-wlan-rb3.dtbo \
qcs5430-wlan-upstream.dtbo qcm6490-video.dtbo \
"
KERNEL_TECH_DTBOS[qcs5430-fp2p5-addons-rb3gen2-vision-mezz-hsp] = " \
"
KERNEL_TECH_DTBOS[qcs5430-fp3-addons-rb3gen2-vision-mezz] = " \
qcs5430-fp2p5-graphics.dtbo qcm6490-camera-rb3.dtbo \
qcs5430-wlan-rb3.dtbo \
qcs5430-wlan-upstream.dtbo qcm6490-video.dtbo \
"
KERNEL_TECH_DTBOS[qcs5430-fp3-addons-rb3gen2-vision-mezz-hsp] = " \
"
# Recipe providers of above dtbo files.
KERNEL_TECH_DTBO_PROVIDERS = "\
cameradtb \
qcom-graphicsdevicetree \
qcom-videodtb \
wlan-devicetree \
"
4 changes: 4 additions & 0 deletions recipes-kernel/linux/linux-qcom-custom_%.bbappend
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FILESEXTRAPATHS:prepend := "${THISDIR}/${MACHINE}:"

SRC_URI:append:qcs6490mio5355a1 = " file://0001-ASoC-qcom-add-Advantech-QCM6490-machine-driver-suppo.patch "

Loading