Skip to main content
Mark81
Associate III
November 20, 2019
Question

Porting Distribution Package to a different target

  • November 20, 2019
  • 4 replies
  • 827 views

I'm able to compile a custom image from the Distribution Package for an evaluation board, adding my own layers and applications. I don't find a complete procedure to adapt it to a new target (i.e. STM32MP151A). I found a very short wiki that doesn't cover all the necessary steps.

Is there a complete step-by-step procedure about this topic?

This topic has been closed for replies.

4 replies

Olivier GALLIEN
ST Technical Moderator
November 20, 2019

Hi @Mark81 (Community Member)​ 

Thanks for your post.

Unfortunately complete procedure is not yet available.

Since it appears there is a need we are starting to work to provide it ASAP.

In the meantime this is some hint :

From what is generated by CubeMX you should first follow recommendation of the following page for TF-A :

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

Quick guideline for kernel :

Currently in stm32mp157c.dtsi all nodes below are disable and re-enabled in the board variant dts file .

mcan1

mcan2

gpu

dsi

Manage to keep them "disabled" in the board variant dts file.

For cpu1 node , remove the node.

Better is also to suppress the SMP load balancing feature in the kernel.

(CONFIG_SMP=n in menu config)

For Distribution package you can create a custom image addressing the mp151.

Hope it help,

Olivier

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.
Mark81
Mark81Author
Associate III
November 20, 2019

Thanks, but your link doesn't work here:

Permission error

You do not have permission to read this page, for the following reason:

You are not allowed to execute the action you have requested.

Anyway, it seems that it's true the wiki "How to create your own machine" is not enough to prepare the environment to a new target.

Olivier GALLIEN
ST Technical Moderator
November 21, 2019

Hi @Mark81​ 

Sorry, page is now available.

We are working to complete "How to create your own machine" as requested.

Keep you posted.

Olivier

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.
Mark81
Mark81Author
Associate III
November 22, 2019

Thanks. Your hints were enough to make a small step.

Now at boot I get this error on the console:

ERROR: stm32_sdmmc2_send_cmd_req: CTIMEOUT (cmd = 12,status = 200004) 
WARNING: CMD12, Retry: 0, Error: -60

I found the function here.

I guess cmd 12 is `SDMMC_CMDR_CMDSTOP`.

Where can I find a detailed description of what those error and warning actually mean? I understand it seems the command failed due to a timeout, but to fix it I need to understand what is status 200004 and error -60. I didn't find those constants in the repository above.

Any further hint is appreciated!