LSDK1906 has problems with compiling Edgescale firmware

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

LSDK1906 has problems with compiling Edgescale firmware

跳至解决方案
873 次查看
pengluo
Contributor III

Hello

I am getting an error when compiling Edgescale firmware using LSDK1906. Executing ‘flex-builder -m ls1046ardb -a arm64’ can be done before opening Edgescale.

However, after opening Edgescale, the operation of ‘flex-builder -m ls1046ardb -a arm64’ will cause an error. The specific operations are as follows:

1,gedit configs/build_lsdk.cfg :

         CONFIG_APP_EDGESCALE=n   ------>   CONFIG_APP_EDGESCALE=y

         #SECURE_PRI_KEY=/path/srk.pri  ------->  SECURE_PRI_KEY=/path/srk.pri
         #SECURE_PUB_KEY=/path/srk.pub -------> SECURE_PUB_KEY=/path/srk.pub

2,flex-builder clean

3,flex-builder -m ls1046ardb -a arm64

.......

error:

Building SPC ...
make[2]: Entering directory '/work/flexbuild_lsdk1906/packages/apps/spc/source'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/work/flexbuild_lsdk1906/packages/apps/spc/source'
Build SPC [Done]

Building CST ...
make[2]: Entering directory '/work/flexbuild_lsdk1906/packages/apps/cst'
cp -rf scripts/* ./

#########################################
# Tools Compiled:
# create_hdr_isbc create_hdr_esbc create_hdr_pbi create_hdr_cf gen_keys gen_otpmk_drbg gen_drv_drbg gen_sign sign_embed gen_fusescr
#########################################

make[2]: Leaving directory '/work/flexbuild_lsdk1906/packages/apps/cst'
Using specified /path/srk.pri and /path/srk.pub ...
cp: cannot stat '/path/srk.pri': No such file or directory
cp: cannot stat '/path/srk.pub': No such file or directory
Makefile:233: recipe for target 'cst' failed
make[1]: *** [cst] Error 1
make[1]: Leaving directory '/work/flexbuild_lsdk1906/packages/apps'
Makefile:25: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/work/flexbuild_lsdk1906'
root@ubuntu:/work/flexbuild_lsdk1906#

pastedImage_2.png

Can you advise me what to do next?

标签 (1)
标记 (2)
0 项奖励
1 解答
774 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Peng Luo,

There is no valid srk.pri and srk.pub key pairs in /path folder.

You could go to cst folder, then generate srk.pri and srk.pub key pairs, then copy them to a specified path.

Please refer to the following example.

$ cd  ~/flexbuild_lsdk1906/packages/apps/cst
$ ./gen_keys 1024

$ cp /home/yiping/flexbuild_lsdk1906/packages/apps/cst/srk.pri  ~/flexbuild_lsdk1906
$ cp /home/yiping/flexbuild_lsdk1906/packages/apps/cst/srk.pub  ~/flexbuild_lsdk1906

Then modify configs/build_lsdk.cfg as the following

SECURE_PRI_KEY=//home/yiping/flexbuild_lsdk1906/srk.pri
SECURE_PUB_KEY=//home/yiping/flexbuild_lsdk1906/srk.pub

Then execute flex-builder command

$ flex-builder -c cst -m  ls1046ardb

$ flex-builder -m ls1046ardb -a arm64

Thanks,

Yiping

在原帖中查看解决方案

1 回复
775 次查看
yipingwang
NXP TechSupport
NXP TechSupport

Hello Peng Luo,

There is no valid srk.pri and srk.pub key pairs in /path folder.

You could go to cst folder, then generate srk.pri and srk.pub key pairs, then copy them to a specified path.

Please refer to the following example.

$ cd  ~/flexbuild_lsdk1906/packages/apps/cst
$ ./gen_keys 1024

$ cp /home/yiping/flexbuild_lsdk1906/packages/apps/cst/srk.pri  ~/flexbuild_lsdk1906
$ cp /home/yiping/flexbuild_lsdk1906/packages/apps/cst/srk.pub  ~/flexbuild_lsdk1906

Then modify configs/build_lsdk.cfg as the following

SECURE_PRI_KEY=//home/yiping/flexbuild_lsdk1906/srk.pri
SECURE_PUB_KEY=//home/yiping/flexbuild_lsdk1906/srk.pub

Then execute flex-builder command

$ flex-builder -c cst -m  ls1046ardb

$ flex-builder -m ls1046ardb -a arm64

Thanks,

Yiping