cancel
Showing results for 
Search instead for 
Did you mean: 

After "devtool modify ... ", I can not found my kernel device tree in workspace.

hochul yoo
Associate III

Hi ~

I've designed custom board of STM32MP157C.

1. I created my own device tree using CubeMX refer to the below article.

  https://wiki.st.com/stm32mpu/wiki/How_to_create_your_board_device_tree

2. I also created own machine refer to the below article.

  https://wiki.st.com/stm32mpu/wiki/How_to_create_your_own_machine

3. st-image-weston build was successful.

4. so now, I want to modify the linux kernel device tree.

  and I finded article below ..

  https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Distribution_Package

  Run "devtool modify virtual/kernel" command.

  workspace directory was created successfully.

  but I can not find my device tree in path below.

  ./workspace/sources/linux-stm32mp/arch/arm/boot/dts

My device tree files placed at "layers/meta-st/meta-st-stm32mp-addons/mx".

How to solve it ?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan SZYMANSKI
ST Employee

Hello @hochul yoo​,

Your device trees are generated with your Cube MX project. When your project is finished and when you want to use it with your Distribution Package, you have to precize its location in your Yocto machine:

--------------------------

Example:

# CubeMX Project Config

# =========================================================================

# Assign CubeMX Board devicetree and project path name

CUBEMX_DTB = "stm32mp157f-project-mx"

CUBEMX_PROJECT = "MX/STM32MP157F-DK2/<name_project>/CA7/DeviceTree/<name_project>"

# Indicate which STM32MP package are used: 'A', 'C', 'D' or 'F'

CUBEMX_SOC_PACKAGE = "F"

# Indicate the size of DDR available on BOARD: 512 or 1024 (size in MB unit)

CUBEMX_BOARD_DDR_SIZE = "512"

# Indicate if you like to disable the DVFS which are activated by default

#CUBEMX_SOC_DVFS_OFF = "0"

---------------------------------------------

If you want to modify your kernel device tree, you just have to take the one that you have in the MX project linked with your Distribution Package.

Regards.

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

1 REPLY 1
Erwan SZYMANSKI
ST Employee

Hello @hochul yoo​,

Your device trees are generated with your Cube MX project. When your project is finished and when you want to use it with your Distribution Package, you have to precize its location in your Yocto machine:

--------------------------

Example:

# CubeMX Project Config

# =========================================================================

# Assign CubeMX Board devicetree and project path name

CUBEMX_DTB = "stm32mp157f-project-mx"

CUBEMX_PROJECT = "MX/STM32MP157F-DK2/<name_project>/CA7/DeviceTree/<name_project>"

# Indicate which STM32MP package are used: 'A', 'C', 'D' or 'F'

CUBEMX_SOC_PACKAGE = "F"

# Indicate the size of DDR available on BOARD: 512 or 1024 (size in MB unit)

CUBEMX_BOARD_DDR_SIZE = "512"

# Indicate if you like to disable the DVFS which are activated by default

#CUBEMX_SOC_DVFS_OFF = "0"

---------------------------------------------

If you want to modify your kernel device tree, you just have to take the one that you have in the MX project linked with your Distribution Package.

Regards.

Erwan.

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.