how to build fmc tool for arm64

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

how to build fmc tool for arm64

Jump to solution
2,366 Views
__OTL__
Contributor III

Hi

I want to use fmc on my ls1046a board which running a tiny yocto on it.

I tried to build fmc with this:

flex-builder -c fmc -a arm64 -r yocto:tiny
 
the log is like 
 
flex-builder -c fmc -a arm64 -r yocto:tiny
COMPONENT: fmc
DISTRO TYPE: yocto
DISTRO SCALE: tiny
make: Entering directory '/home/LSDK'
make[1]: Entering directory '/home/LSDK/packages/apps'
make[1]: Leaving directory '/home/LSDK/packages/apps'
make: Leaving directory '/home/LSDK'
 
and I found nothing got built.
 
Am I doing right?
I am using LSDK21.048
0 Kudos
Reply
1 Solution
2,015 Views
yipingwang
NXP TechSupport
NXP TechSupport

bld -i clean-rfs -r yocto:tiny
bld -i mkrfs -r yocto:devel (FMC, restool are compiled in this step)
bld -i mkrfs -r yocto:tiny  (FMC, restool are copied to tiny rootfs in this step)

View solution in original post

0 Kudos
Reply
13 Replies
2,313 Views
__OTL__
Contributor III

Hi Team

Could you please check this?

Thanks!

0 Kudos
Reply
2,305 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please add "fmc" in IMAGE_INSTALL_append in configs/yocto/local_arm64_tiny.conf

$ flex-builder  -i clean-rfs -r yocto:tiny 

$ flex-builder  -i mkrfs -r yocto:tiny

0 Kudos
Reply
2,299 Views
__OTL__
Contributor III

Thanks, but I have tried this.

It seems there is not dependency for fmc yocto build. Could you try this in your environment ? I'm using LSDK21.04

19:09:47 NOTE: Runtime target 'fmc' is unbuildable, removing...
19:09:47 Missing or unbuildable dependency chain was: ['fmc']
19:09:47 ERROR: Required build target 'core-image-minimal' has no buildable providers.
19:09:47 Missing or unbuildable dependency chain was: ['core-image-minimal', 'fmc']

 

0 Kudos
Reply
2,293 Views
yipingwang
NXP TechSupport
NXP TechSupport

fmc tool has already been included in yocto:tiny filesystem, please refer to the following.

root@TinyLinux:~# fmc
ERR : PCD file is required
root@TinyLinux:~#

0 Kudos
Reply
2,268 Views
__OTL__
Contributor III

In my case if I add fmc to local_arm64_tiny.conf, I can not build rfs.

Can you build with that?

I used command you wrote above and here is my log.

 

 

0 Kudos
Reply
2,266 Views
yipingwang
NXP TechSupport
NXP TechSupport

fmc is in yocto:tiny, you can use it directly.

0 Kudos
Reply
2,261 Views
__OTL__
Contributor III

Here's what I got on my yocto:tiny

root@TinyLinux:~# fmc
-sh: fmc: command not found
root@TinyLinux:~#

0 Kudos
Reply
2,259 Views
yipingwang
NXP TechSupport
NXP TechSupport
0 Kudos
Reply
2,161 Views
__OTL__
Contributor III

Yes The prebuild image works well.
But I need to build image for my own board.

I confirmed again fmc won't be built in the yocot:tiny. 
Here's what I have done:

  1. clone flexbuild_lsdk2108 repo
  2. build one time to fetch the resource
    flex-builder -m ls1046ardb -b sd
  3. clean the rfs and rebuild the rfs and itb
    flex-builder -i clean-rfs -r yocto:tiny 
    flex-builder -i mkrfs -r yocto:tiny
    flex-builder -i mkitb -r yocto:tiny
  4. load the image and boot as ls1046ardb
    tftp $load_addr lsdk2108_yocto_tiny_LS_arm64_240412.itb
    bootm $load_addr#ls1046ardb
  5. there is no fmc tool
    NXP LSDK tiny 2108 (based on Yocto) 
    TinyLinux login: root
    root@TinyLinux:~# fmc
    -sh: fmc: command not found

 

If I add fmc to IMAGE_INSTALL_append of local_arm64_tiny.conf

build rfs will get an error : 

Loading cache: 100% | | ETA: --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###############################################################################################################################################################################################################################################| Time: 0:00:03
Parsing of 818 .bb files complete (0 cached, 818 parsed). 1443 targets, 56 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'fmc' (but /home/yu/flexbuild_lsdk2108_github/components/rfs/yocto-poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'fmc' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['fmc']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'fmc']

Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.

 

Could you try to build it once?

0 Kudos
Reply
2,016 Views
yipingwang
NXP TechSupport
NXP TechSupport

bld -i clean-rfs -r yocto:tiny
bld -i mkrfs -r yocto:devel (FMC, restool are compiled in this step)
bld -i mkrfs -r yocto:tiny  (FMC, restool are copied to tiny rootfs in this step)

0 Kudos
Reply
1,902 Views
__OTL__
Contributor III

I tried your commands, but it failed the same as before.

If I add fmc to IMAGE_INSTALL_append of local_arm64_tiny.conf

it failed with : 

ERROR: Nothing RPROVIDES 'fmc' (but /home/yu/flexbuild_lsdk2108_github/components/rfs/yocto-poky/meta/recipes-core/images/core-image-minimal.bb RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'fmc' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['fmc']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 'fmc']

even after yocto:devel rfs built up.

Do I need some change in the yocto:devel config? 

0 Kudos
Reply
1,898 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please don't add fmc in local_arm64_tiny.conf, just use the default local_arm64_tiny.conf provided in LSDK 21.08.

0 Kudos
Reply
1,896 Views
__OTL__
Contributor III

Thanks, it works.

0 Kudos
Reply