Skip to contentSkip to conversation

Toaster for building an image from custom layer other than poky

DISCUSSION [email protected] 1 participant 1 message May 4, 2024

lore
Share & tools
lore
#0 lore raw

Hello,
I'm working on yocto project, so i have to build an image for my layerscape nxp card i.e., ls1012afrwy using toaster web interface. So to begin with toaster i tried to build an image "core-image-minimal" from poky directory that works fine.Then i tried to build an image "ls-image-main" from my custom directory i'm getting an error stating as below:
command: git fetch && git reset --hard "origin/N/A"
b"fatal: ambiguous argument 'origin/N/A': unknown revision or path not in the working tree.\nUse '--' to separate paths from revisions, like this:\n'git <command> [<revision>...] -- [<file>...]'\n"
The steps i followed to build an image and setting up of toaster is:

$ sudo apt install gawk wget git diffstat unzip texinfo gcc build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev python3-subunit mesa-common-dev zstd liblz4-tool file locales
$ sudo locale-gen en_US.UTF-8
$ mkdir distro
$ cd distro
$ repo init -u https://github.com/nxp-qoriq/yocto-sdk.git -b mickledore -m ls-6.1.55-2.2.0_distro.xml
$ repo sync
$ source  distro-setup-env -m ls1012afrwy
$ bitbake ls-image-main

Above steps are for creating a distro for my layerscape card.

I followed toaster user manual for setting up of toaster.

Then in toaster UI:
I clicked on create new project and in release option i have used local yocto release. in machine = ls1012afrwydistro
distro = fsl-qoriq-distro

and imported meta-nxp-desktop and meta-freescale from local system. Then tried building an image and i got the error as above.

Can anyone who knows how we can utilize the toaster ui to build an image from our own custom layers other than poky please do guide me.

Waiting for the reply.
Thank You.