Attempting to stand up a GCC toolchain within a Yocto build running on the 8M Nano Eval Kit.
Specifically running the Console-only 'core-image-base' image from the Poky layer.
Currently have a high-functioning 8M Nano Eval Kit with the 'core-image-base' Linux build, which outputs a terminal display to an HDMI monitor and accepts USB keyboard input, plus functioning WiFi connectivity.
The problem space:
My assumptions -- Can anyone please challenge these...:
Attempted so far:
If anyone in the community is able to clarify, well any of this, really, I'd really appreciate it. If my assumptions seem off, please let me know. Also if there are other ways to approach the problem, I'm all ears.
Thanks!
Solved! Go to Solution.
First, thanks for the speedy response. Certainly makes me glad I picked an i.MX board for this performance evaluation.
Second, the full-image (imx-image-full?) does seem to contain a C toolchain, but it's not GCC, is it? Or am I mis-reading the binaries?
Finally, with a bit of digging, I have been able to stand up the following:
In general, it seems best to:
Heads up: there is a circular dependency between git and cURL. git clone requires cURL. The cURL source is only available via a git clone call.
To avoid this madness, copy both cURL's source code and git's source code directly to the SD card's rootfs partition from whatever machine you use to flash the SD card image.
Then once you're booted on the EVK, do the cURL build (taking note of the special instructions in the GIT-INFO readme), THEN do the git build.
Note that this setup uses only the core-image-base Image. I had trouble building the imx-image-full on my ancient build machine.
Yocto edits for the GCC toolchains follow...
Add the following lines to the end of <build dir>/conf/local.conf:
EXTRA_IMAGE_FEATURES +="dbg-pkgs"
EXTRA_IMAGE_FEATURES +="tools-debug"
EXTRA_IMAGE_FEATURES +="tools-sdk"
EXTRA_IMAGE_FEATURES +="dev-pkgs"
You may not need all those. I just stopped trimming once I found a working GCC install.
First, thanks for the speedy response. Certainly makes me glad I picked an i.MX board for this performance evaluation.
Second, the full-image (imx-image-full?) does seem to contain a C toolchain, but it's not GCC, is it? Or am I mis-reading the binaries?
Finally, with a bit of digging, I have been able to stand up the following:
In general, it seems best to:
Heads up: there is a circular dependency between git and cURL. git clone requires cURL. The cURL source is only available via a git clone call.
To avoid this madness, copy both cURL's source code and git's source code directly to the SD card's rootfs partition from whatever machine you use to flash the SD card image.
Then once you're booted on the EVK, do the cURL build (taking note of the special instructions in the GIT-INFO readme), THEN do the git build.
Note that this setup uses only the core-image-base Image. I had trouble building the imx-image-full on my ancient build machine.
Yocto edits for the GCC toolchains follow...
Add the following lines to the end of <build dir>/conf/local.conf:
EXTRA_IMAGE_FEATURES +="dbg-pkgs"
EXTRA_IMAGE_FEATURES +="tools-debug"
EXTRA_IMAGE_FEATURES +="tools-sdk"
EXTRA_IMAGE_FEATURES +="dev-pkgs"
You may not need all those. I just stopped trimming once I found a working GCC install.
You need use full-image,then you can use gcc and git
use apt-get on 8M Nano EVK to install the build-essential package
-->Can't realize this in official image, you need port ubuntu/debain rootfs by yourself.