how do i solve build error about imx-optee-client?

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

how do i solve build error about imx-optee-client?

Jump to solution
2,419 Views
afv2000
Contributor II

currently, OPTEE_CLIENT_SRC address change to 

"https://github.com/nxp-imx/imx-optee-client.git;protocol=https"

in optee-client_3.2.0.imx.bb

but when i partial build about optee-client, build version is  changed to 3.7.0

and build error is below.

ERROR: Logfile of failure stored in: /home/worker/WAVE_MAIN/build_high/tmp/work/aarch64-poky-linux/optee-client/3.7.0.imx-r0/temp/log.do_compile.10604
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 8 O=/home/worker/WAVE_MAIN/build_high/tmp/work/aarch64-poky-linux/optee-client/3.7.0.imx-r0/build -C /home/worker/WAVE_MAIN/build_high/tmp/work/aarch64-poky-linux/optee-client/3.7.0.imx-r0/git ARCH=arm64 CFG_TEE_FS_PARENT_PATH=/var/optee/tee
| make: Entering directory '/home/worker/WAVE_MAIN/build_high/tmp/work/aarch64-poky-linux/optee-client/3.7.0.imx-r0/git'
| make: *** No targets specified and no makefile found. Stop.

when i checkd optee-client_3.7.0.imx.bb, there is no especial command

# Copyright (C) 2019-2020 NXP
require optee-client.imx.inc

SRCBRANCH = "imx_5.4.3_2.0.0"
SRCREV = "bc0ec8ce1e4dc5ae23f4737ef659338b7cd408fe"

 

how do i fix this issue?

0 Kudos
Reply
1 Solution
2,076 Views
afv2000
Contributor II

final answer.

in the optee-client_3.2.0.imx.bb

from 

OPTEE_CLIENT_SRC ?= "git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"

to

OPTEE_CLIENT_SRC ?= "git://github.com/nxp-imx/imx-optee-client.git"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"
SRC_URI[md5sum]= "965bc1e91a14762841ac47007b53d5d8"

View solution in original post

0 Kudos
Reply
13 Replies
2,344 Views
afv2000
Contributor II

when i cleanall several times and build again, error log was changed.

bitbake -c cleanall optee-client

bitbake  optee-client

error log

WARNING: optee-client-3.7.0.imx-r0 do_fetch: Renaming /home/worker/WAVE_MAIN/downloads/imx-optee-client.git to /home/worker/WAVE_MAIN/downloads/imx-optee-client.git_bad-checksum_6c979c117104742e26660040468117ce
WARNING: optee-client-3.7.0.imx-r0 do_fetch: Checksum failure encountered with download of https://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=imx_5.4.3_2.0.0 - will attempt other sources if available
ERROR: optee-client-3.7.0.imx-r0 do_fetch: Fetcher failure for URL: 'https://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=imx_5.4.3_2.0.0'. Checksum mismatch!
File: '/home/worker/WAVE_MAIN/downloads/imx-optee-client.git' has md5 checksum 6c979c117104742e26660040468117ce when cb0cc3102e77261d29d2d8d25fd8bee6 was expected
If this change is expected (e.g. you have upgraded to a new version without updating the checksums) then you can use these lines within the recipe:
SRC_URI[md5sum] = "6c979c117104742e26660040468117ce"
SRC_URI[sha256sum] = "8db6329562ec41dec5e3c7fb08cd911401f3324eda241410d7b95b323ccde7b8"
Otherwise you should retry the download and/or check with upstream to determine if the file has become corrupted or otherwise unexpectedly modified.

 

but when i add checksum in optee-client_3.7.0.imx.bb like below

# Copyright (C) 2019-2020 NXP
require optee-client.imx.inc

SRCBRANCH = "imx_5.4.3_2.0.0"
SRCREV = "bc0ec8ce1e4dc5ae23f4737ef659338b7cd408fe"
SRC_URI[md5sum] = "cb0cc3102e77261d29d2d8d25fd8bee6"

it is cause of another error

ERROR: optee-client-3.7.0.imx-r0 do_fetch: Fetcher failure for URL: 'https://github.com/nxp-imx/imx-optee-client.git;protocol=https;branch=imx_5.4.3_2.0.0'. Unable to fetch URL from any source.

so i am finding the right location inserting  SRC_URL checksum

0 Kudos
Reply
2,287 Views
joanxie
NXP TechSupport
NXP TechSupport

as I mentioned before, how about don't change the bb file to the github, it seems couldn't get the source from this link, no matter how you delete and rebuilt the package, your bb file still the same one, so you will get the same error, I send you my bb file, and I can build it successful, pls try again

0 Kudos
Reply
2,280 Views
afv2000
Contributor II

thanks for your help.

how do i get your bb file in this site?

it is my first time to ask issue in this forum.

thanks.

0 Kudos
Reply
2,401 Views
afv2000
Contributor II

i just using bitbake after clean up

bitbake -c clean optee-client

bitbake optee-client

thanks.

0 Kudos
Reply
2,396 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use original building command like

repo init -u https://source.codeaurora.org/external/imx/imx-manifest
-b imx-linux-zeus -m imx-5.4.3-2.0.0.xml

or use https://github.com/nxp-imx/imx-manifest to replace https://source.codeaurora.org/external/imx/imx-manifest ?

0 Kudos
Reply
2,390 Views
afv2000
Contributor II

i changed OPTEE_CLIENT_SRC in optee-client_3.2.0.imx.bb like below

 

SRCBRANCH = "imx_4.14.78_1.0.0_ga"
-OPTEE_CLIENT_SRC ?= "git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https"
+OPTEE_CLIENT_SRC ?= "https://github.com/nxp-imx/imx-optee-client.git;protocol=https"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"

+SRC_URI[md5sum]= "965bc1e91a14762841ac47007b53d5d8"
SRCREV = "d06647d201520ac57f1331e97db6138d63bc2666"

i replace from codeaurora to github

0 Kudos
Reply
2,344 Views
joanxie
NXP TechSupport
NXP TechSupport

I don't think you need change this, how about use your previous bb file?

I tested it on my side, I didn't change the bb file, when I clean this and build it again successfully

SRCBRANCH = "lf-5.15.5_1.0.0"
SRC_URI = " \
git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https;branch=${SRCBRANCH} \
file://tee-supplicant.service \
"

SRCREV = "182874320395787a389e5b0f7df02b32f3c0a1b0"

0 Kudos
Reply
2,335 Views
afv2000
Contributor II

dear NXP

git://source.codeaurora.org is offically close in this year.

so we can not use codeaurora,

and other article, they recommand below

https://github.com/nxp-imx

0 Kudos
Reply
2,340 Views
afv2000
Contributor II

my previous bb file is below

1) optee-client_3.2.0.imx.bb

# Copyright (C) 2017-2018 NXP

SUMMARY = "OPTEE Client libs"
HOMEPAGE = "http://www.optee.org/"
LICENSE = "BSD"
LIC_FILES_CHKSUM = "file://LICENSE;md5=69663ab153298557a59c67a60a743e5b"

inherit pythonnative systemd

SRCBRANCH = "imx_4.14.78_1.0.0_ga"
OPTEE_CLIENT_SRC ?= "git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"

SRCREV = "d06647d201520ac57f1331e97db6138d63bc2666"

FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"

SRC_URI_append = " file://0001-libteec-refactor-_dprintf.patch \
file://tee-supplicant.service"

S = "${WORKDIR}/git"
SYSTEMD_SERVICE_${PN} = "tee-supplicant.service"

EXTRA_OEMAKE = "CFG_SECURE_DATA_PATH=y"

......

2) optee-client_3.7.0.imx.bb

# Copyright (C) 2019-2020 NXP
require optee-client.imx.inc

SRCBRANCH = "imx_5.4.3_2.0.0"
SRCREV = "bc0ec8ce1e4dc5ae23f4737ef659338b7cd408fe"

 

0 Kudos
Reply
2,228 Views
joanxie
NXP TechSupport
NXP TechSupport

if you just clean optee-client and bitback optee-client again with the previous bb file, what's result you get? I know nxp source code move to github, if you built the old bsp, you need change the address from codeaurora to github the repo init, but I had a old bsp version like yours(my bb file uses codeaurora ), I clean and build again without changing bb file(I shared with you) successfully, so I ask you trying this

0 Kudos
Reply
2,077 Views
afv2000
Contributor II

final answer.

in the optee-client_3.2.0.imx.bb

from 

OPTEE_CLIENT_SRC ?= "git://source.codeaurora.org/external/imx/imx-optee-client.git;protocol=https"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"

to

OPTEE_CLIENT_SRC ?= "git://github.com/nxp-imx/imx-optee-client.git"
SRC_URI = "${OPTEE_CLIENT_SRC};branch=${SRCBRANCH}"
SRC_URI[md5sum]= "965bc1e91a14762841ac47007b53d5d8"

0 Kudos
Reply
2,405 Views
joanxie
NXP TechSupport
NXP TechSupport

share your building steps, let me reproduce this on my side

0 Kudos
Reply
2,382 Views
afv2000
Contributor II

i just using bitbake after clean up

bitbake -c clean optee-client

bitbake optee-client

thanks.

0 Kudos
Reply