Skip to main content
Associate II
December 26, 2023
Solved

Building kernel image and device tree

Hey,

 

I'm following the Getting started tutorial and have some troubles at the chapter "Modify, rebuild and reload the Linux kernel":

https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Modify,_rebuild_and_reload_the_Linux%C2%AE_kernel

 

Everything works up until Building the Linux images with

make ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040

This creates the following error:

CALL scripts/checksyscalls.sh
CC drivers/clk/clk-scmi.o
drivers/clk/clk-scmi.c: In function ‘scmi_clk_round_rate_get’:
drivers/clk/clk-scmi.c:49:33: error: ‘const struct scmi_clk_proto_ops’ has no member named ‘round_rate_get’
49 | ret = scmi_proto_clk_ops->round_rate_get(clk->ph, clk->id, &round_rate);
| ^~
drivers/clk/clk-scmi.c: In function ‘scmi_clk_get_duty_cycle’:
drivers/clk/clk-scmi.c:61:33: error: ‘const struct scmi_clk_proto_ops’ has no member named ‘get_duty_cycle’
61 | ret = scmi_proto_clk_ops->get_duty_cycle(clk->ph, clk->id,
| ^~
make[3]: *** [scripts/Makefile.build:250: drivers/clk/clk-scmi.o] Error 1
make[2]: *** [scripts/Makefile.build:500: drivers/clk] Error 2
make[1]: *** [scripts/Makefile.build:500: drivers] Error 2
make: *** [Makefile:2012: .] Error 2

Can anyone help me out?

This topic has been closed for replies.
ngoctoan150699Best answer
Associate II
December 28, 2023

i think u delete folder (linux-6.1.28) and do it again, 

2 replies

ngoctoan150699Best answer
Associate II
December 28, 2023

i think u delete folder (linux-6.1.28) and do it again, 

oli1Author
Associate II
December 29, 2023

It worked! Thanks.