gcc comand not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 5:41 AM
Hello Everyone
I wanted to Install Buildroot on my STM32MP157-DK2 according to this website:
https://bootlin.com/blog/building-a-linux-system-for-the-stm32mp1-basic-system/
Unfortunately as a beginner with OpenST-Linux and Yocto I got stuck at that step where I couldn't find a way t install gcc like on ubuntu for exemple with the easy command "apt-get install ... " .
I flashed and Installed OpenST-Linux on my device according to this st.wiki page:
https://wiki.st.com/stm32mpu/wiki/STM32MP15_Discovery_kits_-_Starter_Package
Everything worked fine.
I would also be interested in knowing if Installing Buildroot would cause some STM-Softwares inactive. We are working on an IoT Project and according to what I've read,Buildroot is suitable for it and besides the guy responsible for the Project wanted Buildroot installed and configured on the device.
Thank you all and thanks for helping me to get better :)
Solved! Go to Solution.
- Labels:
-
STM32MP15 Lines
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 8:54 AM
Oh I understand . So most of the preliminary commands on the following website are done on Ubuntu terminal ?
https://bootlin.com/blog/building-a-linux-system-for-the-stm32mp1-basic-system/
In that case it would be similar to the configuration of the Starter Package like on the st.wiki website. Meaning that the preparation of the environement happens on Ubuntu. Then the image is uploaded on the MPU and I only have to flash it and reboot it in order to have my Buildroot installed instead of the current image ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 8:20 AM
Have you looked at https://wiki.st.com/stm32mpu/wiki/PC_prerequisites ?
Maybe just missing to use 'sudo' before apt-get.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 8:42 AM
Hello
I will check the Article then. But my problem is with the board itself with the remote control software.
I could install many packages but some packages like gcc can't be installed and I get the following error.
/bin/bash: gcc: command not found
/bin/bash: line 0: [: : integer expression expected
mkdir -p /home/root/buildroot/output/build/buildroot-config/lxdialog
PKG_CONFIG_PATH="" make CC="gcc" HOSTCC="gcc" \
obj=/home/root/buildroot/output/build/buildroot-config -C support/kconfig -f Makefile.br conf
make[1]: Entering directory '/home/root/buildroot/support/kconfig'
gcc -DCURSES_LOC="<curses.h>" -DLOCALE -DKBUILD_NO_NLS -I/home/root/buildroot/output/build/buildroot-config -DCONFIG_=\"\" -c conf.c -o /home/root/buildroot/output/build/buildroot-config/conf.o
/bin/sh: gcc: not found
make[1]: *** [Makefile.br:34: /home/root/buildroot/output/build/buildroot-config/conf.o] Error 127
make[1]: Leaving directory '/home/root/buildroot/support/kconfig'
make: *** [Makefile:926: /home/root/buildroot/output/build/buildroot-config/conf] Error 2
Is it maybe because I did not install the SDK ? If I install it can I use the Starter Package with the SDK or do I have to install the Developper Package. Like I said my gal now is to have Buildroot work on my MPU.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 8:45 AM
Maybe I minsuderstand your issue. You usually never install gcc on the board, resources are way to low to compile on target.
All the development is done on Ubuntu PC (or using a Virtual Machine on a W10 PC).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-19 8:54 AM
Oh I understand . So most of the preliminary commands on the following website are done on Ubuntu terminal ?
https://bootlin.com/blog/building-a-linux-system-for-the-stm32mp1-basic-system/
In that case it would be similar to the configuration of the Starter Package like on the st.wiki website. Meaning that the preparation of the environement happens on Ubuntu. Then the image is uploaded on the MPU and I only have to flash it and reboot it in order to have my Buildroot installed instead of the current image ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2020-10-26 2:27 AM
​Hi @SigmaPrime​
Yes that's it !
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.
