2024-07-16 05:40 AM
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
Solved! Go to Solution.
2024-07-17 07:41 AM
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
2024-07-16 06:30 AM
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
2024-07-16 07:44 AM
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
2024-07-16 10:05 PM
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"
grep -i CONFIG_CMA_SIZE_MBYTES .config CONFIG_CMA_SIZE_MBYTES=256
2024-07-17 07:41 AM
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
2024-07-17 09:27 PM
Hello,
Have you tried searching for CMA_SIZE_MBYTES in menuconfig with the search option?
this worked thank you.