Configure kernel source code failed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-11 1:54 AM
Following the instruction from https://github.com/STMicroelectronics/meta-st-stm32mp/blob/thud/recipes-kernel/linux/linux-stm32mp/README.HOW_TO.txt
* Configure on a build directory (different of kernel source code directory) Here for example, build directory is located at the same level of kernel source code $> cd <directory to kernel source code> $> mkdir -p ../build
$> make ARCH=arm O="$PWD/../build" multi_v7_defconfig fragment*.config
Then got the following message
make[1]: Entering directory '/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/build'
GEN ./Makefile
#
# configuration written to .config
#
GEN ./Makefile
/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/scripts/kconfig/Makefile:109: *** No configuration exists for this target on this architecture. Stop.
/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/Makefile:532: recipe for target 'fragment-03-systemd.config' failed
make[2]: *** [fragment-03-systemd.config] Error 2
/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/linux-4.19.49/Makefile:286: recipe for target '__build_one_by_one' failed
make[1]: *** [__build_one_by_one] Error 2
make[1]: Leaving directory '/home/tim/stm32mp1-openstlinux-4.19-thud-mp1-19-10-09/sources/arm-openstlinux_weston-linux-gnueabi/linux-stm32mp-4.19-r0/build'
Makefile:146: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
Unsuccessfully, need your help.
Solved! Go to Solution.
- Labels:
-
OpenSTLinux
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-11 10:05 PM
Hi Olivier,
Thank your quick reply!
Yes, I missed some steps.
It works now after rechecking build processure.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-11 2:52 AM
Hi @tpeng.1​
The document you refer has been properly validated on Ubuntu 16.04 and 18.04 Linux system.
Are you using other OS for your Host ?
Else please check you didn't miss any steps.
Olivier
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-03-11 10:05 PM
Hi Olivier,
Thank your quick reply!
Yes, I missed some steps.
It works now after rechecking build processure.
Tim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2025-03-25 7:38 AM
Reviving this thread to add what actually fixed this issue for me. I forgot to start the SDK on my host machine (source)
cd $HOME/STM32MPU_workspace/STM32MPU-Ecosystem-v6.0.0/Developer-Package
source SDK/environment-setup-cortexa35-ostl-linux
