Hi,
I am unable to get flex-builder to complete cleanly.
I am on Ubuntu 20.04 LTS and have ensured that I have all the required packages installed per page 2 of this doc:
https://www.nxp.com/docs/en/user-guide/LLDPUG_RevL5.15.71-2.2.0.pdf
The packages that were not already installed that I had to install were: socat, python3-git, python3-jinja2, libegl1-mesa, libsdl1.2-dev, pylint3, xterm, python3-subunit, mesa-common-dev, zstd, and liblz4-tool.
I have re-downloaded and re-installed from the link here: https://lsdk.github.io/components.html
Here are the commands:
$ flex-builder -i clean-firmware
$ flex-builder -c atf -m lx2160ardb_rev2 -b xspi
It bails out with:
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
make -s -j4 fip pbl PLAT=lx2160ardb BOOT_MODE=flexspi_nor RCW=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2200_750_3200_19_5_2.bin BL33=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/u-boot/lx2160ardb/uboot_lx2160ardb_tfa.bin BL32=/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/security/optee_os/out/arm-plat-ls/core/tee_lx2160ardb.bin SPD=opteed
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
Including services/spd/opteed/opteed.mk
setting chssis
make[2]: *** No rule to make target 'plat/nxp/soc-lx2160a/LX2160A_RDB/ddr_init.c', needed by '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf/build/lx2160ardb/release/bl2/ddr_init.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building tools/fiptool/fiptool
HOSTCC tbbr_config.c
HOSTCC fiptool.c
HOSTLD fiptool
Built fiptool successfully
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
cp: cannot stat 'build/lx2160ardb/release/bl2_flexspi_nor*.pbl': No such file or directory
atf.mk:11: recipe for target 'atf' failed
make[1]: *** [atf] Error 1
make[1]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
Makefile:19: recipe for target 'atf' failed
make: *** [atf] Error 2
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
And if I try the next step:
$ flex-builder -i mkfw -m lx2160ardb_rev2 -b xspi
It bails out with the very similar:
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
make -s -j4 fip pbl PLAT=lx2160ardb BOOT_MODE=flexspi_nor RCW=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2200_750_3200_19_5_2.bin BL33=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/u-boot/lx2160ardb/uboot_lx2160ardb_tfa.bin BL32=/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/security/optee_os/out/arm-plat-ls/core/tee_lx2160ardb.bin SPD=opteed
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
Including services/spd/opteed/opteed.mk
setting chssis
make[2]: *** No rule to make target 'plat/nxp/soc-lx2160a/LX2160A_RDB/ddr_init.c', needed by '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf/build/lx2160ardb/release/bl2/ddr_init.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building tools/fiptool/fiptool
HOSTCC fiptool.c
HOSTCC tbbr_config.c
HOSTLD fiptool
Built fiptool successfully
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
cp: cannot stat 'build/lx2160ardb/release/bl2_flexspi_nor*.pbl': No such file or directory
atf.mk:11: recipe for target 'atf' failed
make[1]: *** [atf] Error 1
make[1]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
Makefile:19: recipe for target 'atf' failed
make: *** [atf] Error 2
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
Any ideas?
Many thanks in advance for any help!
-Andrew
Hi @ajedgar
Please run below command
cd <flexbuild_lsdk2108_github>
rm -rf components/firmware/atf/
flex-builder -i repo-fetch
flex-builder -c atf -m lx2160ardb_rev2 -b xspi
Thanks
Khushbu
Ok, so I edited configs/sdk.yml and updated the git urls for wayland and xserver as below:
wayland:
# AJE 2023/03/05 - project moved to gitlab.freedesktop.org
# url: https://github.com/wayland-project/wayland.git
url: https://gitlab.freedesktop.org/wayland/wayland.git
tag: 1.18.0
xserver:
# AJE 2023/03/05 - project moved to gitlab.freedesktop.org
# url: https://github.com/freedesktop/xorg-xserver.git
url: https://gitlab.freedesktop.org/xorg/xserver.git
tag: xorg-server-1.20.9
And restarted:
$ flex-builder -i repo-fetch
which completed successfully this time.
Next:
$ flex-builder -c atf -m lx2160ardb_rev2 -b xspi
Which errors out the same as before:
"""
COMPONENT: atf
MACHINE: lx2160ardb_rev2
BOOTTYPE: xspi
make: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
make[1]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
Building ATF LSDK-21.08 for lx2160ardb_rev2
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
REALCLEAN
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
make -s -j4 fip pbl PLAT=lx2160ardb BOOT_MODE=flexspi_nor RCW=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2200_750_3200_19_5_2.bin BL33=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/u-boot/lx2160ardb/uboot_lx2160ardb_tfa.bin BL32=/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/security/optee_os/out/arm-plat-ls/core/tee_lx2160ardb.bin SPD=opteed
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
Including services/spd/opteed/opteed.mk
setting chssis
make[2]: *** No rule to make target 'plat/nxp/soc-lx2160a/LX2160A_RDB/ddr_init.c', needed by '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf/build/lx2160ardb/release/bl2/ddr_init.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building tools/fiptool/fiptool
HOSTCC fiptool.c
HOSTCC tbbr_config.c
HOSTLD fiptool
Built fiptool successfully
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
cp: cannot stat 'build/lx2160ardb/release/bl2_flexspi_nor*.pbl': No such file or directory
atf.mk:11: recipe for target 'atf' failed
make[1]: *** [atf] Error 1
make[1]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
Makefile:19: recipe for target 'atf' failed
make: *** [atf] Error 2
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
This all unchanged (besides the two URLs noted above) straight from here:
https://lsdk.github.io/components.html
On Ubuntu 20.04 LTS.
best,
Andrew
This command ran for quite a while and then bailed out.
$ flex-builder -i repo-fetch
"""
fetch graphics repositories: gpulib wayland libdrm weston xserver
repo: gpulib
tag: LSDK-21.08
repo: wayland
tag: 1.18.0
Cloning into '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/graphics/wayland'...
Username for 'https://github.com': ajedgar33
Password for 'https://ajedgar33@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/wayland-project/wayland.git/' not found
repo: libdrm
tag: lf-5.10.35-2.0.0
repo: weston
tag: lf-5.10.35-2.0.0
repo: xserver
tag: xorg-server-1.20.9
Cloning into '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/graphics/xserver'...
Username for 'https://github.com': ajedgar33
Password for 'https://ajedgar33@github.com':
remote: Repository not found.
fatal: repository 'https://github.com/freedesktop/xorg-xserver.git/' not found
/home/ajedgar/Git/flexbuild_lsdk2108_github/include/app_repo_update.inc:27: recipe for target 'graphics_repo_fetch' failed
make: *** [graphics_repo_fetch] Error 128
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/apps'
make: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/apps/graphics'
make: *** No rule to make target 'graphics_repo_fetch'. Stop.
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/apps/graphics'
"""
So it looks like two repository paths need to be updated in configs/sdk.yml, the one for wayland.git and the one for xorg-xserver.git.
Thoughts?
Thank you for your help.
-Andrew
Hi @ajedgar
It should be downloaded components/firmware/atf
Please run below command to build firmware
flex-builder -c atf -m lx2160ardb_rev2 -b xspi
Thanks
Khushbu
Hi khushnar,
After updating configs/sdk.yml and with the correct xserver URL and gitlab URL as below:
"""
wayland:
# url: https://github.com/wayland-project/wayland.git
url: https://gitlab.freedesktop.org/wayland/wayland.git
tag: 1.18.0
xserver:
# url: https://github.com/freedesktop/xorg-xserver.git
url: https://gitlab.freedesktop.org/xorg/xserver.git
tag: xorg-server-1.20.9
"""
I was able to get this step to complete successfully:
flex-builder -i repo-fetch
Then (as mentioned before) the below step still fails in the same way:
$ flex-builder -c atf -m lx2160ardb_rev2 -b xspi
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
REALCLEAN
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
make -s -j4 fip pbl PLAT=lx2160ardb BOOT_MODE=flexspi_nor RCW=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2200_750_3200_19_5_2.bin BL33=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/u-boot/lx2160ardb/uboot_lx2160ardb_tfa.bin BL32=/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/security/optee_os/out/arm-plat-ls/core/tee_lx2160ardb.bin SPD=opteed
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
Including services/spd/opteed/opteed.mk
setting chssis
make[2]: *** No rule to make target 'plat/nxp/soc-lx2160a/LX2160A_RDB/ddr_init.c', needed by '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf/build/lx2160ardb/release/bl2/ddr_init.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building tools/fiptool/fiptool
HOSTCC fiptool.c
HOSTCC tbbr_config.c
HOSTLD fiptool
Built fiptool successfully
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
cp: cannot stat 'build/lx2160ardb/release/bl2_flexspi_nor*.pbl': No such file or directory
make[1]: *** [atf.mk:11: atf] Error 1
make[1]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
make: *** [Makefile:19: atf] Error 2
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
"""
As mentioned before, this is from a new, clean download of flex-builder on Ubuntu LTS 20.04 and it is always failing at this step in the same way.
I need a new suggestion on how to progress past this point.
Thank you for your help.
-Andrew
Same error.
Here it is below, again,
(I just tried it again)
I have good network connection. It doesn't matter how many times I run the command I get the same error. There is something wrong with the flex-builder and I need some sort of hint of how to diagnose it. Is there a debug mode? some way of getting more information of what the problem is? In the mean time I'm going through the scripts to see what is wrong.
$ cd Git/flexbuild_lsdk2108_github
$ source setup.env
$ flex-builder -c atf -m lx2160ardb_rev2 -b xspi
COMPONENT: atf
MACHINE: lx2160ardb_rev2
BOOTTYPE: xspi
make: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
make[1]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
Building ATF LSDK-21.08 for lx2160ardb_rev2
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
REALCLEAN
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
make -s -j4 fip pbl PLAT=lx2160ardb BOOT_MODE=flexspi_nor RCW=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/rcw/lx2160ardb_rev2/XGGFF_PP_HHHH_RR_19_5_2/rcw_2200_750_3200_19_5_2.bin BL33=/home/ajedgar/Git/flexbuild_lsdk2108_github/build/firmware/u-boot/lx2160ardb/uboot_lx2160ardb_tfa.bin BL32=/home/ajedgar/Git/flexbuild_lsdk2108_github/components/apps/security/optee_os/out/arm-plat-ls/core/tee_lx2160ardb.bin SPD=opteed
make[2]: Entering directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
Including services/spd/opteed/opteed.mk
setting chssis
make[2]: *** No rule to make target 'plat/nxp/soc-lx2160a/LX2160A_RDB/ddr_init.c', needed by '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf/build/lx2160ardb/release/bl2/ddr_init.o'. Stop.
make[2]: *** Waiting for unfinished jobs....
Building tools/fiptool/fiptool
HOSTCC tbbr_config.c
HOSTCC fiptool.c
HOSTLD fiptool
Built fiptool successfully
make[2]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/components/firmware/atf'
cp: cannot stat 'build/lx2160ardb/release/bl2_flexspi_nor*.pbl': No such file or directory
make[1]: *** [atf.mk:11: atf] Error 1
make[1]: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github/packages/firmware'
make: *** [Makefile:19: atf] Error 2
make: Leaving directory '/home/ajedgar/Git/flexbuild_lsdk2108_github'
Thank you.
-Andrew