Build fails for LS1043ardb

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

Build fails for LS1043ardb

Jump to solution
935 Views
gfine1
Contributor III

Was building using flex-builder and ran into a few build errors.

 

The first was rather simple to figure out. 

First I looked at the kernel menuconfig.

$ flex-builder -B custom -c linux -a arm64 -m ls1043ardb

Satisfied with the config I proceeded to build

$ flex-builder -m ls1043ardb

Error #1


./packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c
user1@user1-Latitude-E6530:~/ls1043ardb/flexbuild_lsdk2012$ grep -ir sja1105_main.c *
logs/autobuild-arm64-log-202108241433.txt:/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c: In function ‘sja1105_probe’:
logs/autobuild-arm64-log-202108241433.txt:/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c:2225:5: error: ‘struct dsa_switch’ has no member named ‘ports’
logs/autobuild-arm64-log-202108241433.txt:/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c:2226:15: error: ‘struct dsa_switch’ has no member named ‘ports’
logs/autobuild-arm64-log-202108241433.txt:/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c:2220:22: warning: unused variable ‘slave’ [-Wunused-variable]
logs/autobuild-arm64-log-202108241433.txt:/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux/drivers/net/dsa/sja1105/sja1105_main.c:2219:20: warning: unused variable ‘dp’ [-Wunused-variable]
Binary file packages/linux/linux/.git/index matches
Binary file packages/linux/linux/.git/objects/pack/pack-3de1ad15b0180b1b61ea90ac3c84fdf5596bba81.pack matches
packages/linux/linux/drivers/net/dsa/sja1105/sja1105.h:/* From sja1105_main.c */
user1@user1-Latitude-E6530:~/ls1043ardb/flexbuild_lsdk2012$ gedit packages/linux/linux/drivers/net/dsa/sja1105/sja1105.h
user1@user1-Latitude-E6530:~/ls1043ardb/flexbuild_lsdk2012$ flex-builder -B custom -c linux -a arm64 -m ls1043ardb
BUILDARG: custom

I was able to get around this one by entering the menuconfig and deselecting the DSA config. I'm not sure if this is needed in our target.

Then I restarted the build

It seemed to finish with a rather odd error. Error #2..  I am building for the ls1043ardb not the ls1028 or the ls1012a. Why is it trying to copy the wrong dtb file??


make[3]: Entering directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux'
make[4]: Entering directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/build/linux/linux/arm64/LS/output/LSDK-20.12-V5.4'
INSTALL /home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/cryptodev_linux/cryptodev.ko
DEPMOD 5.4.47
make[4]: Leaving directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/build/linux/linux/arm64/LS/output/LSDK-20.12-V5.4'
make[3]: Leaving directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/linux'
install -m 644 -D crypto/cryptodev.h /home/user1/ls1043ardb/flexbuild_lsdk2012/build/apps/components_LS_arm64_ubuntu//usr/local/include/crypto/cryptodev.h
make[2]: Leaving directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux/cryptodev_linux'
Build CRYPTODEV_LINUX [Done]
make[1]: Leaving directory '/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/linux'
make: Leaving directory '/home/user1/ls1043ardb/flexbuild_lsdk2012'
INSTRUCTION: mkitb
DISTRO TYPE: yocto
DISTRO SCALE: tiny
DESTARCH: arm64
CONFIGLIST: build_lsdk.cfg
COMPONENT: initrd
DESTARCH: arm64
CONFIGLIST: build_lsdk.cfg
--2021-08-24 18:24:16-- https://www.nxp.com/lgfiles/sdk/lsdk2012/rootfs_lsdk2012_yocto_tiny_arm64.cpio.gz
Resolving www.nxp.com (www.nxp.com)... 104.64.149.148
Connecting to www.nxp.com (www.nxp.com)|104.64.149.148|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 21116004 (20M) [application/x-gzip]
Saving to: ‘/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/rfs/initrd/rootfs_lsdk2012_yocto_tiny_arm64.cpio.gz’

/home/user1/ls1043 100%[===================>] 20.14M 8.92MB/s in 2.3s

2021-08-24 18:24:18 (8.92 MB/s) - ‘/home/user1/ls1043ardb/flexbuild_lsdk2012/packages/rfs/initrd/rootfs_lsdk2012_yocto_tiny_arm64.cpio.gz’ saved [21116004/21116004]

FATAL ERROR: Couldn't open "/home/user1/ls1043ardb/flexbuild_lsdk2012/build/linux/kernel/arm64/LS/fsl-ls1028a-rdb.dtb": No such file or directory
mkimage: Can't open /home/user1/ls1043ardb/flexbuild_lsdk2012/build/images/linux_LS_arm64_signature.itb.tmp: No such file or directory
FATAL ERROR: Couldn't open "/home/user1/ls1043ardb/flexbuild_lsdk2012/build/linux/kernel/arm64/LS/fsl-ls1012a-rdb.dtb": No such file or directory
mkimage: Can't open /home/user1/ls1043ardb/flexbuild_lsdk2012/build/images/lsdk2012_yocto_tiny_LS_arm64.itb.tmp: No such file or directory

I double-checked this by attempting a 2nd build in another directory. Same errors.

 

 

0 Kudos
1 Solution
922 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please remove folder "flexbuild_lsdk2012/build/linux/kernel/arm64/LS/", then rebuild Linux Kernel.

$ rm -rf ~/ls1043ardb/flexbuild_lsdk2012/build/linux/kernel/arm64/LS

$ flex-builder -c linux -m ls1043ardb

View solution in original post

0 Kudos
2 Replies
923 Views
yipingwang
NXP TechSupport
NXP TechSupport

Please remove folder "flexbuild_lsdk2012/build/linux/kernel/arm64/LS/", then rebuild Linux Kernel.

$ rm -rf ~/ls1043ardb/flexbuild_lsdk2012/build/linux/kernel/arm64/LS

$ flex-builder -c linux -m ls1043ardb

0 Kudos
913 Views
gfine1
Contributor III

Just and addition to the solution.

 

Removing the direcotry and rebuild properly built the components for the kernel but I found nothing in /images directory

I reran 'flex-builder -m ls1043ardb' and now have images. 

Next thing.. figure out how to add the WiFi driver to the build. It uses the NXP 88W8997 chipset.

0 Kudos