LS1046A app component problem

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

LS1046A app component problem

1,101 Views
rashmikj
Contributor III

Hi,

I am trying to include simple hello.c example program in generic app component without git repository in KDK 20.04 and compiling using flex builder. It is not building . I have attached the source file, make file and error shown. Kindly help.

0 Kudos
Reply
4 Replies

1,091 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please put attached generic folder in packages/apps/ folder, then add "CONFIG_APP_HELLO=y" in file configs/build_lsdk.cfg.

After running command "flex-builder -c hello -m ls1046ardb", you will find HELLO in folder flexbuild_lsdk2004/build/apps/components_LS_arm64_ubuntu/usr/bin/.

0 Kudos
Reply

1,081 Views
rashmikj
Contributor III

Thanks for the solution. I ran the following commands to build the qspi image

flex-builder -c hello -m ls1046ardb

flex-builder -i merge-component -a arm64

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

I downloaded the image in the kit and logged in as root, but am unable to find the HELLO.

Where will i find the HELLO in the kit and how to run it in the kit.

Kindly help.

 

0 Kudos
Reply

1,074 Views
yipingwang
NXP TechSupport
NXP TechSupport

Then execute the following commands

 

$ flex-builder -i clean-apps

$ flex-builder  -c hello -r yocto:tiny

$ flex-builder -i merge-component -r yocto:tiny

$ flex-builder -i mkrfs -r yocto:tiny (generate rootfs_lsdk2004_yocto_tiny_arm64.cpio.gz,~22M)

$ flex-builder -i mklinux -r yocto:tiny (generate lsdk2004_yocto_tiny_LS_arm64.itb)
$ flex-builder -i mkfw -m ls1046ardb -b qspi

0 Kudos
Reply

1,057 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please replace  packages/apps/generic/generic.mk with the attached file.

0 Kudos
Reply