cancel
Showing results for 
Search instead for 
Did you mean: 

Getting started, stuck at building kernel with make ARCH=arm multi_v7_defconfig fragment*.config

AMeta
Associate II

Hey guys,

Having some issues with running through the kernel setup and dont understand the errors returned back as iv followed all the steps to a T.

Attached my terminal history. This in on the 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

I honestly dont understand what i may have done wrong here. if possible id like to understand the method to understanding errors within linux as this is my first ish run with native linux installed

Also to note i did have a look at the readmes within the file system to which i think they differ slightly to whats whats on the wiki.

Error:

andreas@andreas-desktop:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/en.SOURCES-kernel-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ make -j2 ARCH=arm modules

 CC   scripts/mod/empty.o

 HOSTCC scripts/mod/mk_elfconfig

gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’

gcc: note: valid arguments to ‘-mabi=’ are: ms sysv

gcc: error: unrecognized command line option ‘-mlittle-endian’

gcc: error: unrecognized command line option ‘-mfpu=vfp’

make[1]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1

make[1]: *** Waiting for unfinished jobs....

make: *** [Makefile:1205: prepare0] Error 2

andreas@andreas-desktop:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/en.SOURCES-kernel-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ mkdir -p $PWD/install_artifact/

andreas@andreas-desktop:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/en.SOURCES-kernel-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ make ARCH=arm INSTALL_MOD_PATH="$PWD/install_artifact" modules_install

sed: can't read modules.order: No such file or directory

make: *** [Makefile:1425: _modinst_] Error 2

andreas@andreas-desktop:~/STM32MPU_workspace/STM32MP15-Ecosystem-v3.0.0/Developer-Package/en.SOURCES-kernel-stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/stm32mp1-openstlinux-5.10-dunfell-mp1-21-03-31/sources/arm-ostl-linux-gnueabi/linux-stm32mp-5.10.10-r0/linux-5.10.10$ make -j2 ARCH=arm uImage vmlinux dtbs LOADADDR=0xC2000040

 CC   scripts/mod/empty.o

 CC   scripts/mod/devicetable-offsets.s

gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’

gcc: note: valid arguments to ‘-mabi=’ are: ms sysv

gcc: error: unrecognized argument in option ‘-mabi=aapcs-linux’

gcc: note: valid arguments to ‘-mabi=’ are: ms sysv

gcc: error: unrecognized command line option ‘-mlittle-endian’

gcc: error: unrecognized command line option ‘-mlittle-endian’

gcc: error: unrecognized command line option ‘-mfpu=vfp’

make[1]: *** [scripts/Makefile.build:279: scripts/mod/empty.o] Error 1

make[1]: *** Waiting for unfinished jobs....

gcc: error: unrecognized command line option ‘-mfpu=vfp’

make[1]: *** [scripts/Makefile.build:117: scripts/mod/devicetable-offsets.s] Error 1

make: *** [Makefile:1205: prepare0] Error 2

1 ACCEPTED SOLUTION

Accepted Solutions
Jean-Marc B
ST Employee

Hello @AMeta​ 

It seems to me your environment is not correctly set and you are using the native gcc compiler.

Did you setup the SDK environment as explained in this wiki page? https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK

Best regards

--JM

View solution in original post

2 REPLIES 2
Jean-Marc B
ST Employee

Hello @AMeta​ 

It seems to me your environment is not correctly set and you are using the native gcc compiler.

Did you setup the SDK environment as explained in this wiki page? https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Develop_on_Arm%C2%AE_Cortex%C2%AE-A7/Install_the_SDK

Best regards

--JM

Thanks jean, there was an error on one of the commands i must of made on setup that i missed.

appreciate it !!