cancel
Showing results for 
Search instead for 
Did you mean: 

Menuconfig or how to configure kernel make ARCH=arm uImage LOADADDR=<loadaddr of kernel>

kagan_senkeser
Associate III

Hello,

I'm ustin stm32MP135F-DK and try to modify device tree 
Menuconfig or how to configure kernel - stm32mpu
in this link I came to 

make ARCH=arm uImage LOADADDR=<loadaddr of kernel>

And ı getting this error how can ı solve it

CALL scripts/checksyscalls.sh
CC drivers/usb/dwc3/dwc3-stm32.o
drivers/usb/dwc3/dwc3-stm32.c: In function ‘stm32_dwc3_init’:
drivers/usb/dwc3/dwc3-stm32.c:73:35: error: implicit declaration of function ‘FIELD_PREP’ [-Werror=implicit-function-declaration]
73 | FIELD_PREP(SYSCFG_USB3DRCR_HOST_PORT_POWER_CONTROL_PRESENT_MASK,
| ^~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [scripts/Makefile.build:250: drivers/usb/dwc3/dwc3-stm32.o] Error 1
make[3]: *** [scripts/Makefile.build:500: drivers/usb/dwc3] Error 2
make[2]: *** [scripts/Makefile.build:500: drivers/usb] Error 2
make[1]: *** [scripts/Makefile.build:500: drivers] Error 2
make: *** [Makefile:2035: .] Error 2

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @kagan_senkeser ,

 

So if I understand correctly, your objective is to modify the value of CONFIG_CMA_SIZE_MBYTES?

I'd like to ask you a few questions to help you solve your problem:
Are you sure you've sourced your SDK correctly?
Have you tried searching for CMA_SIZE_MBYTES in menuconfig with the search option?
Can you tell me what kernel version you're running?

 

Regards,

Grégory

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

5 REPLIES 5
kagan_senkeser
Associate III

I restart the computer and I got different error
CC scripts/mod/empty.o
cc1: error: cannot load plugin ./scripts/gcc-plugins/latent_entropy_plugin.so: ./scripts/gcc-plugins/latent_entropy_plugin.so: undefined symbol: _ZN8opt_pass14set_pass_paramEjb
make[1]: *** [scripts/Makefile.build:250: scripts/mod/empty.o] Error 1
make: *** [Makefile:1284: prepare0] Error 2

Hi @kagan_senkeser ,

 

I suggest you to follow this page instead : https://wiki.st.com/stm32mpu/wiki/How_to_cross-compile_with_the_Developer_Package#STM32MP135F-DK_and_STM32MP157F-DK2_simple_example

 

or the README_HOW_TO you can find in the developer package 

 

Regards,

Grégory

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.
kagan_senkeser
Associate III

Hi @Gregory PLANCHON 

I'm already following this page but in part 3.2
But it sends me to Menuconfig or how to configure kernel - stm32mpu
also in menuconfig there is no size in megabytes I found device drivers -generic driver options but there is not

 


Navigate to "Device Drivers - Generic Driver Options"

    • select "Size in Megabytes"
    • modify its value to 256
    • exit and save the new configuration
  • Check that the configuration file (.config) has been modified
grep -i CONFIG_CMA_SIZE_MBYTES .config
CONFIG_CMA_SIZE_MBYTES=256
  • Get the new value of the CMA size (256 Mbytes) through the analysis of the target boot log

Hi @kagan_senkeser ,

 

So if I understand correctly, your objective is to modify the value of CONFIG_CMA_SIZE_MBYTES?

I'd like to ask you a few questions to help you solve your problem:
Are you sure you've sourced your SDK correctly?
Have you tried searching for CMA_SIZE_MBYTES in menuconfig with the search option?
Can you tell me what kernel version you're running?

 

Regards,

Grégory

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.

Hello,

Have you tried searching for CMA_SIZE_MBYTES in menuconfig with the search option?
this worked thank you.