ls1028ardb yocto-sdk build problems

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

ls1028ardb yocto-sdk build problems

217 Views
mclifford
Contributor I

Hi,

I'm trying to follow the instructions here:

https://github.com/nxp-qoriq/yocto-sdk

to build the OS and SDK images for the LS1028ARDB

It appears that walnascar is the default branch, but the build fails if i use the instructions at the link above.

mkdir yocto-sdk
cd yocto-sdk
repo init -u https://github.com/nxp-qoriq/yocto-sdk -b walnascar
repo sync --force-sync
. ./setup-env -m ls1028ardb
bitbake fsl-image-networking

this fails with 3 errors:
- sysvinit installation errors
- dtc-native compile errors
- util-linux-native compile errors

I've also tried the instructions from this document which fail in a different way even if you work around the incorrect instructions (the specified "ls-image-desktop" does not exist):

https://docs.nxp.com/bundle/UG10081_LLDP_L6.1.55_2.2.0/page/topics/how_to_download_flexbuild.html

I also found the flexbuild option, and followed the instructions here:

https://github.com/nxp/flexbuild

git clone https://github.com/NXP/flexbuild.git
cd flexbuild
make docker
make ls1028ardb_defconfig
make all

this also fails with the error:

W: binfmt_misc not found in /proc/mounts -- not mounted

What are the correct instructions for building the OS image and SDK?

Regards

Matt

0 Kudos
Reply
5 Replies

60 Views
mclifford
Contributor I

Hi,

Thanks for the input but the walnascar-lsdk branch fails with similar errors as the walnascar branch i described above.

This is the output for
bitbake -k fsl-image-networking-full

Summary: 4 tasks failed:
~/walnascar-lsdk/sources/poky/meta/recipes-core/sysvinit/sysvinit-inittab_2.88dsf.bb:do_install
log: ~/walnascar-lsdk/build_ls1028ardb/tmp/work/ls1028ardb-fsl-linux/sysvinit-inittab/2.88dsf/temp/log.do_install.1267212
virtual:native:~/walnascar-lsdk/sources/poky/meta/recipes-core/util-linux/util-linux_2.40.4.bb:do_compile
log: ~/walnascar-lsdk/build_ls1028ardb/tmp/work/x86_64-linux/util-linux-native/2.40.4/temp/log.do_compile.1304034
virtual:native:~/walnascar-lsdk/sources/poky/meta/recipes-kernel/dtc/dtc_1.7.2.bb:do_compile
log: ~/walnascar-lsdk/build_ls1028ardb/tmp/work/x86_64-linux/dtc-native/1.7.2/temp/log.do_compile.1321834
~/walnascar-lsdk/sources/poky/meta/recipes-devtools/flex/flex_2.6.4.bb:do_compile
log: ~/walnascar-lsdk/build_ls1028ardb/tmp/work/aarch64-fsl-linux/flex/2.6.4/temp/log.do_compile.2409352
Summary: There were 17 WARNING messages.
Summary: There were 6 ERROR messages, returning a non-zero exit code.

Regards
Matt

0 Kudos
Reply

43 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please install the host packages as the following.

sudo apt-get install build-essential chrpath cpio debianutils diffstat file gawk

gcc git iputils-ping libacl1 liblz4-tool locales python3 python3-git python3-

jinja2 python3-pexpect python3-pip python3-subunit socat texinfo unzip wget xzutils

zstd efitools

If your problem persists, please send the log file ~/walnascar-lsdk/build_ls1028ardb/tmp/work/ls1028ardb-fsl-linux/sysvinit-inittab/2.88dsf/temp/log.do_install.1267212 to me to do investigation.

0 Kudos
Reply

29 Views
mclifford
Contributor I

Hi,

Thanks for the reply, it turns out it was my fault, I was using the wrong version of ubuntu and stupidly ignored the warning in the yocto output.

I switched to using a 24.04 dev container and following the instructions in:

  • Layerscape Software Development Kit User Guide for Yocto: UG10374.pdf

to do the build and that worked fine.

Regards

Matt

0 Kudos
Reply

184 Views
mclifford
Contributor I

after posting this, I discovered Debian Linux SDK User Guide which has some pre-requisites not listed in the flexbuild readme.md. This appears to allow me to generate a Debian based image for the LS1028ARDB. 

What are the instructions for generating an SDK in a similar way to the Yocto environment? or do you recommend a standard cross-compiler?

Is the Debian solution now the recommended OS for this platform? Yocto feels more appropriate for an embedded system.

Regards

Matt

0 Kudos
Reply

123 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please use the following latest Yocto Linux SDK release.

The release includes both source code and prebuilt images as listed below:

Branch: walnascar-lsdk

#

Name

Description

1

boot_ls1028ardb_lts_6.12.tgz

Bootpartition image for LS1028ARDB

2

boot_ls1043ardb_lts_6.12.tgz

Bootpartition image for LS1043ARDB

3

boot_ls1046ardb_lts_6.12.tgz

Bootpartition image for LS1046ARDB

4

boot_lx2160ardb-rev2_lts_6.12.tgz

Bootpartition image for LX2160ARDB

5

firmware_ls1028ardb_uboot_emmcboot.img

BSP firmware image for LS1028ARDB eMMC boot

6

firmware_ls1028ardb_uboot_sdboot.img

BSP firmware image for LS1028ARDB SD boot

7

firmware_ls1028ardb_uboot_xspiboot.img

BSP firmware image for LS1028ARDB XSPI boot

8

firmware_ls1043ardb_uboot_nandboot.img

BSP firmware image for LS1043ARDB NAND boot

9

firmware_ls1043ardb_uboot_norboot.img

BSP firmware image for LS1043ARDB NOR boot

10

firmware_ls1043ardb_uboot_sdboot.img

BSP firmware image for LS1043ARDB SD boot

11

firmware_ls1046ardb_uboot_emmcboot.img

BSP firmware image for LS1046ARDB eMMC boot

12

firmware_ls1046ardb_uboot_qspiboot.img

BSP firmware image for LS1046ARDB QSPI boot

13

firmware_ls1046ardb_uboot_sdboot.img

BSP firmware image for LS1046ARDB SD boot

14

firmware_lx2160ardb-rev2_uboot_emmcboot.img

BSP firmware image for LX2160ARDB eMMC boot

15

firmware_lx2160ardb-rev2_uboot_sdboot.img

BSP firmware image for LX2160ARDB SD boot

16

firmware_lx2160ardb-rev2_uboot_xspiboot.img

BSP firmware image for LX2160ARDB xSPI boot

17

fsl-image-networking-ls1028ardb.rootfs.tar.gz

Layerscape rootfs supports basic networking functionality on LS1028ARDB

18

fsl-image-networking-full-ls1028ardb.rootfs.tar.gz

Layerscape rootfs supports full networking functionality on LS1028ARDB

19

fsl-image-networking-ls1043ardb.rootfs.tar.gz

Layerscape rootfs supports basic networking functionality on LS1043ARDB

20

fsl-image-networking-full-ls1043ardb.rootfs.tar.gz

Layerscape rootfs supports full networking functionality on LS1043ARDB

21

fsl-image-networking-ls1046ardb.rootfs.tar.gz

Layerscape rootfs supports basic networking functionality on LS1046ARDB

22

fsl-image-networking-full-ls1046ardb.rootfs.tar.gz

Layerscape rootfs supports full networking functionality on LS1046ARDB

23

fsl-image-networking-lx2160ardb-rev2.rootfs.tar.gz

Layerscape rootfs supports basic networking functionality on LX2160ARDB

24

fsl-image-networking-full-lx2160ardbrev2.rootfs.tar.gz

Layerscape rootfs supports full networking functionality on LX2160ARDB

25

flex-installer

Deploy tools

 

Please refer to the User Guide document for the detailed steps of image deployment.

 

You also could use Debian flexbuilder Linux SDK to use Debian Linux OS. 

0 Kudos
Reply