[lx2160ardb_rev2] Build yocto and add packages

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

[lx2160ardb_rev2] Build yocto and add packages

Jump to solution
1,629 Views
tsungmin_wang
Contributor III

Hi,

I build the yocto image by LSDK 20.04

I follow Chap 4.3, -LSDK Yocto-based Tiny and Devel Userland.

Here is my commands.

 

flex-builder -i clean-rfs -r yocto
flex-builder -i mkrfs -r yocto:tiny
flex-builder -i mkfw -m lx2160ardb_rev2 -b sd
flex-builder -c linux -a arm64
flex-builder -i mkbootpartition

 

I want to add some packages like "pciutils" and "bridge-utils".

So, I add it to "build/rfs/rootfs_lsdk2004_yocto_tiny_arm64/conf/local.conf" like this.

 

IMAGE_INSTALL_append = " sudo file parted curl openssh-scp openssh-ssh openssh-sshd \
                       e2fsprogs dosfstools bash coreutils diffutils util-linux \
                       net-tools sysvinit libtool libstdc++ libstdc++-dev libxml2 \
                       libnl-genl pciutils bridge-utils"

 

 

After this, I rerun mkfrs.

 

flex-builder -i mkrfs -r yocto:tiny

 

But the new image doesn't include lspci or brctl.

Which step is wrong? How should I add lspci and brctl to yocto image?

Thx.

0 Kudos
Reply
1 Solution
1,619 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please modify configs/yocto/local_arm64_tiny.conf as the following.

IMAGE_INSTALL_append = " sudo file parted curl openssh-scp openssh-ssh openssh-sshd \
e2fsprogs dosfstools bash coreutils diffutils util-linux \
net-tools sysvinit libtool libstdc++ libstdc++-dev libxml2 \
libnl-genl pciutils bridge-utils "

Then execute the following commands

$ sudo rm -rf ~/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/rootfs

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

View solution in original post

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

Please modify configs/yocto/local_arm64_tiny.conf as the following.

IMAGE_INSTALL_append = " sudo file parted curl openssh-scp openssh-ssh openssh-sshd \
e2fsprogs dosfstools bash coreutils diffutils util-linux \
net-tools sysvinit libtool libstdc++ libstdc++-dev libxml2 \
libnl-genl pciutils bridge-utils "

Then execute the following commands

$ sudo rm -rf ~/yoctobuild/tmp/work/qemuarm64-poky-linux/core-image-minimal/1.0-r0/rootfs

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

0 Kudos
Reply