Yocto build for imx8mp-ddr4-evk

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Yocto build for imx8mp-ddr4-evk

4,843 Views
BillStrahm
Contributor III

trying to do the imx-image-full 

It is erroring out in the download of nnshark do_fetch.

I have seen a suggestion to add do_configure[network] = "1" to the .bb file - I have done this and not seen a change.

Is there a known good repository to start from, are there known patches to apply to get through this?

Should I simply go down the docker path instead?

0 Kudos
Reply
12 Replies

3,971 Views
lidongxu
Contributor II
hello,
I have the same problem as you. Have you solved it?
Thank you very much!
0 Kudos
Reply

4,817 Views
BillStrahm
Contributor III

So the repo was initialized with: 

repo init -u https://github.com/nxp-imx/imx-manifest -b imx-linux-langdale -m imx-6.1.1-1.0.0.xml

followed by:

MACHINE=imx8mp-lpddr4-evk DISTRO=fslc-imx-xwayland source ./setup-environment -b build 

Lets start why nnshark doesn't fetch in this environment.  If a bitbake recipie has to change, that is the bug, but the change I tried to make did not work so it is irrelevant.

0 Kudos
Reply

4,808 Views
Chavira
NXP TechSupport
NXP TechSupport

To add a package to your custom image you have to add the next line in the local.conf file located in the folder build/config/

CORE_IMAGE_EXTRA_INSTALL += "nnshark"

and then compile with the command "bitbake imx-image-full"

0 Kudos
Reply

4,805 Views
BillStrahm
Contributor III

nnshark is already in the imx-image-full image.

I have gotten around this by going into the bitbake recipie for nnshark 

sources/meta-imx/meta-ml/recipes-nnstreamer/nnshark

and changing:

NNSHARK_SRC ?= "gitsm://github.com/nxp-imx/nnshark.git;protocol=https"

to simply git://

Do you know why the gitsm fetch is failing?

0 Kudos
Reply

4,758 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @BillStrahm!

Sorry for the late response!

Could you please send me the log generated to review, please?

I have compiled the full image and I can't get the fetch error and I don't modify anything.

0 Kudos
Reply

4,726 Views
BillStrahm
Contributor III
can I get your nnshark do_fetch log. I am interested to see where it is getting the tarball that is failing from
0 Kudos
Reply

4,710 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @BillStrahm !

I attached my log.

Talking with my internal team, some time ago we had the same problem and the root cause is a proxy failure due to the firewall.

I have a workaround for the nnshark failure

There are 2 issues:   

1) nnshark repo has a submodule which is tried to be fetched/clone using the git protocol

 2) This submodule is cloned during do_configure stage, however, the global env variable http_proxy is not visible at this level

 

   Workarounds:

    1) Include a patch that changes the submodule url to an https repository (gihub)

    2) Explicitly set the http_proxy enviroment variable within the do_configure function at recipe

0 Kudos
Reply

4,737 Views
BillStrahm
Contributor III

So - from the bottom section of the log a bunch of fetch mirror failures for

Resolving mirrors.kernel.org (mirrors.kernel.org)... 139.178.88.99, 2604:1380:45e3:2400::1
Connecting to mirrors.kernel.org (mirrors.kernel.org)|139.178.88.99|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2023-06-08 17:02:22 ERROR 404: Not Found.

curl https://mirrors.kernel.org/yocto-sources/git2_github.com.nxp-imx.nnshark.git.tar.gz

does return a nginx 404 error.  Did this tarball get renamed/moved?

0 Kudos
Reply

4,741 Views
BillStrahm
Contributor III

just did a bitbake -c fetch nnshark

It takes almost 20 minutes to fail sadly

0 Kudos
Reply

4,728 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @BillStrahm !

I open a new folder and again I don get the error on fetch (see the attached log).
If you have that fetch error please try to update your packages on your Linux host machine.

Please try to install all the packages required to compile on Yocto with the next command.

sudo apt-get update

sudo apt-get upgrade

sudo apt install gawk wget git git-core diffstat unzip texinfo gcc gcc-multilib build-essential chrpath socat cpio python python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl zstd lz4 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

 

0 Kudos
Reply

4,701 Views
BillStrahm
Contributor III

Have to fix up your list git-core is a dupe (I think) of git

pylint3 becomes pylint

python has no installation candidate

what is left was all up to date (errors on the cross compiler installed by yocto build I assume)

 

faeuser@YoctoBuild:~/relX/build$ sudo apt install gawk wget git diffstat unzip texinfo gcc gcc-multilib build-essential chrpath socat cpio python3 python3-pip python3-pexpect xz-utils debianutils iputils-ping python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint xterm python3-subunit mesa-common-dev zstd liblz4-tool rsync curl zstd lz4 gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
build-essential is already the newest version (12.9ubuntu3).
cpio is already the newest version (2.13+dfsg-7).
debianutils is already the newest version (5.5-1ubuntu2).
diffstat is already the newest version (1.64-1build2).
gawk is already the newest version (1:5.1.0-1build3).
gcc is already the newest version (4:11.2.0-1ubuntu1).
gcc-multilib is already the newest version (4:11.2.0-1ubuntu1).
iputils-ping is already the newest version (3:20211215-1).
lz4 is already the newest version (1.9.3-2build2).
python3-jinja2 is already the newest version (3.0.3-1).
python3-pexpect is already the newest version (4.8.0-2ubuntu1).
socat is already the newest version (1.7.4.1-3ubuntu4).
wget is already the newest version (1.21.2-2ubuntu1).
xz-utils is already the newest version (5.2.5-2ubuntu1).
zstd is already the newest version (1.4.8+dfsg-3build1).
chrpath is already the newest version (0.16-2).
liblz4-tool is already the newest version (1.9.3-2build2).
libsdl1.2-dev is already the newest version (1.2.15+dfsg2-6).
pylint is already the newest version (2.12.2-1).
python3-git is already the newest version (3.1.24-1).
python3-subunit is already the newest version (1.4.0-3).
texinfo is already the newest version (6.8-4build1).
xterm is already the newest version (372-1ubuntu1).
curl is already the newest version (7.81.0-1ubuntu1.10).
git is already the newest version (1:2.34.1-1ubuntu1.9).
python3 is already the newest version (3.10.6-1~22.04).
rsync is already the newest version (3.2.7-0ubuntu0.22.04.2).
unzip is already the newest version (6.0-26ubuntu3.1).
python3-pip is already the newest version (22.0.2+dfsg-1ubuntu0.2).
libegl1-mesa is already the newest version (22.2.5-0ubuntu0.1~22.04.2).
mesa-common-dev is already the newest version (22.2.5-0ubuntu0.1~22.04.2).
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
g++-aarch64-linux-gnu : Depends: g++-11-aarch64-linux-gnu (>= 11.2.0-1~)
gcc-aarch64-linux-gnu : Depends: gcc-11-aarch64-linux-gnu (>= 11.2.0-1~)
E: Unable to correct problems, you have held broken packages.

0 Kudos
Reply

4,823 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @BillStrahm !

Thank you for contacting NXP Support!

What version of the kernel are you using?

could you tell me what in what file are you doing the modification?

0 Kudos
Reply