FRWY-LS1046A-AC flex-builder -i merge-component -a arm64失败

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

FRWY-LS1046A-AC flex-builder -i merge-component -a arm64失败

Jump to solution
1,571 Views
tian_shuliang
Contributor I

代码下载链接:https://nxp.flexnetoperations.com/control/frse/download?element=10958497

下载代码:flexbuild_ls1046afrwy_bsp0.1.tgz、app_components_LS_arm64.tgz、bootpartition_LS_arm64_lts_4.14.tgz和lib_modules_LS_arm64_4.14.83.tgz

操作步骤(ubuntu18.04):

1、解压flexbuild_ls1046afrwy_bsp0.1.tgz

2、source setup.env 和 flex-builder -i mkrfs -a arm64

3、拷贝app_components_LS_arm64.tgz、bootpartition_LS_arm64_lts_4.14.tgz和lib_modules_LS_arm64_4.14.83.tgz到解压后的flexbuild下

4、tar xvzf app_components_LS_arm64.tgz -C build/apps 

5、tar xzvf lib_modules_LS_arm64_4.14.83.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules

6、flex-builder -i merge-component -a arm64 这一步失败,提示:

/home/run/code/flexbuild/tools/flex-builder: line 1431: cd: /home/run/code/flexbuild/packages/linux/linux: No such file or directory

0 Kudos
Reply
1 Solution
1,299 Views
Pavel
NXP Employee
NXP Employee

Use the following command sequence:

  1. Unzip flexbuild_ls1046afrwy_bsp0.1.tgz

 

  1. source setup.env

 

  1. flex-builder -i mkrfs -a arm64

 

  1. copy:

                app_components_LS_arm64.tgz,

                bootpartition_LS_arm64_lts_4.14.tgz

                lib_modules_LS_arm64_4.14.83.tgz

to the decompressed flexbuild

 

5 tar xvzf app_components_LS_arm64.tgz -C build/apps

 

  1. sudo tar xzvf lib_modules_LS_arm64_4.14.83.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules

 

  1. flex-builder -c linux -a arm64

 

  1. flex-builder -i merge-component -a arm64

Have a great day,
Pavel Chubakov

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
6 Replies
1,299 Views
Pavel
NXP Employee
NXP Employee

Use LSDK 1906 for your task.

This LSDK supports FRWY-LS1046A.

There is no similar problem if this LSDK is used.

Have a great day,
Pavel Chubakov

0 Kudos
Reply
1,299 Views
tian_shuliang
Contributor I

@Pavel Chubakov  thanks.

0 Kudos
Reply
1,299 Views
Pavel
NXP Employee
NXP Employee

Use the following command for .img file for SD generation:

flex-builder -i mkfw -m ls1046ardb -b sd

Use the following command for .img file for QSPI generation:

flex-builder -i mkfw -m ls1046ardb -b qspi

Have a great day,
Pavel Chubakov

0 Kudos
Reply
1,299 Views
tian_shuliang
Contributor I

I have one question ,when i use cmd "flex-builder -m ls1046afrwy -a arm64", when Building OVS_DPDK ..., error occurred. like this :

lib/dhparams.c:2:12: warning: ‘get_dh1024’ defined but not used [-Wunused-function]
static DH *get_dh1024(void)
^~~~~~~~~~
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -Wno-unused -Wno-unused-parameter -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT lib/lib_libsflow_la-sflow_poller.lo -MD -MP -MF lib/.deps/lib_libsflow_la-sflow_poller.Tpo -c lib/sflow_poller.c -o lib/lib_libsflow_la-sflow_poller.o
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -Wno-unused -Wno-unused-parameter -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT lib/lib_libsflow_la-sflow_receiver.lo -MD -MP -MF lib/.deps/lib_libsflow_la-sflow_receiver.Tpo -c lib/sflow_receiver.c -o lib/lib_libsflow_la-sflow_receiver.o
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT ofproto/ofproto_libofproto_la-pinsched.lo -MD -MP -MF ofproto/.deps/ofproto_libofproto_la-pinsched.Tpo -c ofproto/pinsched.c -o ofproto/ofproto_libofproto_la-pinsched.o
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT ofproto/ofproto_libofproto_la-tunnel.lo -MD -MP -MF ofproto/.deps/ofproto_libofproto_la-tunnel.Tpo -c ofproto/tunnel.c -o ofproto/ofproto_libofproto_la-tunnel.o
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT ovsdb/ovsdb_libovsdb_la-condition.lo -MD -MP -MF ovsdb/.deps/ovsdb_libovsdb_la-condition.Tpo -c ovsdb/condition.c -o ovsdb/ovsdb_libovsdb_la-condition.o
libtool: compile: aarch64-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I ./include -I ./include -I ./lib -I ./lib -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -Wstrict-prototypes -Wall -Wextra -Wno-sign-compare -Wpointer-arith -Wformat -Wformat-security -Wswitch-enum -Wunused-parameter -Wbad-function-cast -Wcast-align -Wstrict-prototypes -Wold-style-definition -Wmissing-prototypes -Wmissing-field-initializers -fno-strict-aliasing -Wswitch-bool -Wlogical-not-parentheses -Wsizeof-array-argument -Wbool-compare -Wshift-negative-value -Wduplicated-cond -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -D_FILE_OFFSET_BITS=64 -g -Wno-cast-align -Ofast -I/home/run/code/flexbuild/build/apps/components_LS_arm64/usr/local/include/dpdk -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include -I/home/run/code/flexbuild/build/rfs/rootfs_ubuntu_bionic_LS_arm64/usr/include/aarch64-linux-gnu -lpthread -lssl -MT ofproto/ofproto_libofproto_la-ofproto-dpif-trace.lo -MD -MP -MF ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-trace.Tpo -c ofproto/ofproto-dpif-trace.c -o ofproto/ofproto_libofproto_la-ofproto-dpif-trace.o
Makefile:4772: recipe for target 'lib/dhparams.lo' failed
make[4]: *** [lib/dhparams.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
mv -f lib/.deps/lib_libsflow_la-sflow_agent.Tpo lib/.deps/lib_libsflow_la-sflow_agent.Plo
mv -f lib/.deps/lib_libsflow_la-sflow_poller.Tpo lib/.deps/lib_libsflow_la-sflow_poller.Plo
mv -f ovsdb/.deps/ovsdb_libovsdb_la-column.Tpo ovsdb/.deps/ovsdb_libovsdb_la-column.Plo
mv -f lib/.deps/lib_libsflow_la-sflow_sampler.Tpo lib/.deps/lib_libsflow_la-sflow_sampler.Plo
mv -f lib/.deps/lib_libsflow_la-sflow_receiver.Tpo lib/.deps/lib_libsflow_la-sflow_receiver.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-bundles.Tpo ofproto/.deps/ofproto_libofproto_la-bundles.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-pinsched.Tpo ofproto/.deps/ofproto_libofproto_la-pinsched.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-xlate-cache.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-xlate-cache.Plo
mv -f ovsdb/.deps/ovsdb_libovsdb_la-condition.Tpo ovsdb/.deps/ovsdb_libovsdb_la-condition.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-rid.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-rid.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-tunnel.Tpo ofproto/.deps/ofproto_libofproto_la-tunnel.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-sflow.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-sflow.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-trace.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-trace.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-upcall.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-upcall.Plo
mv -f ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-xlate.Tpo ofproto/.deps/ofproto_libofproto_la-ofproto-dpif-xlate.Plo
make[4]: Leaving directory '/home/run/code/flexbuild/packages/apps/ovs-dpdk'
Makefile:5526: recipe for target 'install-recursive' failed
make[3]: *** [install-recursive] Error 1
make[3]: Leaving directory '/home/run/code/flexbuild/packages/apps/ovs-dpdk'
Makefile:5831: recipe for target 'install' failed
make[2]: *** [install] Error 2
make[2]: Leaving directory '/home/run/code/flexbuild/packages/apps/ovs-dpdk'
Makefile:153: recipe for target 'ovs-dpdk' failed
make[1]: *** [ovs-dpdk] Error 2
make[1]: Leaving directory '/home/run/code/flexbuild/packages/apps'
Makefile:24: recipe for target 'apps' failed
make: *** [apps] Error 2
make: Leaving directory '/home/run/code/flexbuild'

0 Kudos
Reply
1,299 Views
tian_shuliang
Contributor I

@Pavel Chubakov 多谢回复。

执行“flex-builder -c linux -a arm64”后,可以正常执行“flex-builder -i merge-component -a arm64”,然后生成rootfs_ubuntu_bionic_LS_arm64_*.tgz。

如果要生成firmware_ls1046afrwy*.img和bootpartition_LS_arm64_lts_4.14*.tgz,是否还要再执行下“flex-builder –m ls1046afrwy -a arm64

0 Kudos
Reply
1,300 Views
Pavel
NXP Employee
NXP Employee

Use the following command sequence:

  1. Unzip flexbuild_ls1046afrwy_bsp0.1.tgz

 

  1. source setup.env

 

  1. flex-builder -i mkrfs -a arm64

 

  1. copy:

                app_components_LS_arm64.tgz,

                bootpartition_LS_arm64_lts_4.14.tgz

                lib_modules_LS_arm64_4.14.83.tgz

to the decompressed flexbuild

 

5 tar xvzf app_components_LS_arm64.tgz -C build/apps

 

  1. sudo tar xzvf lib_modules_LS_arm64_4.14.83.tgz -C build/rfs/rootfs_ubuntu_bionic_LS_arm64/lib/modules

 

  1. flex-builder -c linux -a arm64

 

  1. flex-builder -i merge-component -a arm64

Have a great day,
Pavel Chubakov

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply