cancel
Showing results for 
Search instead for 
Did you mean: 

Porting Distribution Package to a different target

Mark81
Associate III

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?

4 REPLIES 4
Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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
Associate III

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 Employee

Hi @Mark81​ 

Sorry, page is now available.

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

Keep you posted.

Olivier

Olivier GALLIEN
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
Associate III

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!