Hi ,
I am working on an i.MX8M Plus DDR4 custom board and I am able to successfully boot the system entirely from QSPI flash (32MB).
My current boot components are:
flash.bin (U-Boot)
Image.gz (Linux kernel)
imx8mp-ddr4-evk.dtb
core-image-minimal-initramfs.cpio.gz
Since my board does not have SD card or eMMC, I am using initramfs as the root filesystem.
Now I want to include gcc inside core-image-minimal-initramfs.cpio.gz, so that I can compile applications directly on the target without relying on any external storage.
Changed the conf/local.conf and then build using command
bitbake core-image-minimal-initramfs
Also attached the local.conf file for your reference.
It generated core-image-minimal-initramfs.cpio.gz but gcc is not present in that /bin folder and getting like below.
~ # gcc
/bin/sh: gcc: not found
~ # ls
bin dev home init.d media proc run sys usr
boot etc init lib mnt root sbin tmp var
Could you please advise:
What is the correct Yocto method to include gcc in an initramfs image?
Are there any recommended configurations or limitations when using gcc inside initramfs (RAM usage, image size, etc.)?
Any guidance or reference to NXP-supported Yocto practices would be very helpful.
Thank You.