LSDK1906 has problems with compiling Edgescale firmware

cancel
Showing results for 
Search instead for 
Did you mean: 

LSDK1906 has problems with compiling Edgescale firmware

Jump to solution
369 Views
pengluo
Contributor II

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?

Labels (1)
Tags (2)
0 Kudos
1 Solution
270 Views
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

View solution in original post

1 Reply
271 Views
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

View solution in original post