Dear Community Members,
I am trying to build the BSP34 which fails to build with following fetch error.
My proxy setting is proper , as i am able to build BSP42 on the same host setup:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp$ curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 44952 100 44952 0 0 57927 0 --:--:-- --:--:-- --:--:-- 57853
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp$ chmod a+x ~/bin/repo
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp$ PATH=${PATH}:~/bin
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp$ mkdir fsl-auto-yocto-bsp
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp$ cd fsl-auto-yocto-bsp/
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/fsl-auto-yocto-bsp$
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/fsl-auto-yocto-bsp$ repo init -u https://github.com/nxp-auto-linux/auto_yocto_bsp -b release/bsp34.0
... A new version of repo (2.54) is available.
... New version is available at: /home/gvt1kor/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
repo: reusing existing repo client checkout in /home/gvt1kor/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp
repo has been initialized in /home/gvt1kor/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp
If this is not the directory in which you want to initialize repo, please run:
rm -r /home/gvt1kor/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/.repo
and try again.
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/fsl-auto-yocto-bsp$ repo sync
... A new version of repo (2.54) is available.
... New version is available at: /home/gvt1kor/s32gsrcbuild/BSP34/fsl-auto-yocto-bsp/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
Fetching: 20% (2/10) 0:08 | 2 jobs | 0:07 meta-linaro @ sources/meta-linaro
fatal: unable to access "'https://git.linaro.org/openembedded/meta-linaro/'": The requested URL returned error: 503
meta-linaro:
fatal: unable to access "'https://git.linaro.org/openembedded/meta-linaro/'": The requested URL returned error: 503
meta-linaro: sleeping 4.0 seconds before retrying
fatal: unable to access "'https://git.linaro.org/openembedded/meta-linaro/'": The requested URL returned error: 503
error: Cannot fetch meta-linaro from "https://git.linaro.org/openembedded/meta-linaro"
Fetching: 80% (8/10) 0:19 | 2 jobs | 0:04 qoriq-components/meta-qoriq @ sources/meta-qoriq
fatal: unable to access "'https://source.codeaurora.org/external/qoriq/qoriq-components/meta-qoriq/'": The requested URL returned error: 503
qoriq-components/meta-qoriq:
fatal: unable to access "'https://source.codeaurora.org/external/qoriq/qoriq-components/meta-qoriq/'": The requested URL returned error: 503
qoriq-components/meta-qoriq: sleeping 4.0 seconds before retrying
fatal: unable to access" 'https://source.codeaurora.org/external/qoriq/qoriq-components/meta-qoriq/'": The requested URL returned error: 503
error: Cannot fetch qoriq-components/meta-qoriq from "https://source.codeaurora.org/external/qoriq/qoriq-components/meta-qoriq"
Fetching: 90% (9/10) 0:21 | 1 job | 0:04 meta-alb @ sources/meta-alb
fatal: unable to access "'https://source.codeaurora.org/external/autobsps32/meta-alb/': "The requested URL returned error: 503
meta-alb:
fatal: unable to access "'https://source.codeaurora.org/external/autobsps32/meta-alb/'": The requested URL returned error: 503
meta-alb: sleeping 4.0 seconds before retrying
fatal: unable to access "'https://source.codeaurora.org/external/autobsps32/meta-alb/'": The requested URL returned error: 503
Fetching: 90% (9/10) 2:35 | 1 job | 2:18 meta-alb @ sources/meta-alb
Fetching: 90% (9/10) 2:36 | 1 job | 2:19 meta-alb @ sources/meta-alb
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
After this the console hangs.
Any input on how to resolve this will be really appreciated.
Regards,
Vishal
Hello, @vishalg
Thanks for your reply.
As what I mentioned in my previous post, the method seems fixed the issue met once building the older BSP like BSP34, I suggest referencing the following link for detailed steps
I hope it will help.
BR
Chenyin
Hello, @vishalg
Sorry for the delay due on leave.
I tested it from my side, and reproduced your issue, seems the reason is that the https://git.linaro.org/openembedded stopped the service.
With initial debugging on it, I suggest the following way for a trial:
1. Following the command shown in the document I shared, but do not execute the following command
Hello, @vishalg
Thanks for you reply.
Would you mind ignoring the errors, and directly try building the BSP from the directory? To check if the BSP could be built.
cd ~/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/
. ./nxp-setup-alb.sh -m s32g399ardb3
bitbake fsl-image-base
BR
Chenyin
Hi Chenyin,
Thank you for your quick reply
As per your below input i ignored the fetch error and went directly to build the image , which fails with NO recipe available for meta-alb as below:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp$ . ./nxp-setup-alb.sh -m s32g399ardb3
Configuring for s32g399ardb3 and distro fsl-auto...
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/build_s32g399ardb3 was created before.
Back to build project /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/build_s32g399ardb3.
Nothing is changed.
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/build_s32g399ardb3$ bitbake fsl-image-base
Loading cache: 100% |#######################################################################################################################################################################| Time: 0:00:00
Loaded 4894 entries from dependency cache.
WARNING: /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-kernel/pfe/pfe_1.0.0.bb: Unable to get checksum for pfe SRC_URI entry s32g_pfe_class.fw: file could not be found
WARNING: /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-kernel/pfe/pfe_1.0.0.bb: Unable to get checksum for pfe SRC_URI entry s32g_pfe_util.fw: file could not be found
Parsing recipes: 100% |#####################################################################################################################################################################| Time: 0:00:02
Parsing of 3297 .bb files complete (2770 cached, 527 parsed). 4897 targets, 265 skipped, 6 masked, 0 errors.
ERROR: No recipes in default available for:
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-security/optee/optee-client.bbappend
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-security/optee/optee-examples.bbappend
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-security/optee/optee-os_git.bbappend
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/meta-alb/recipes-security/optee/optee-test_git.bbappend
Summary: There were 2 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/build_s32g399ardb3$
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Looking for your response.
Regards,
Vishal
Hi Chenyin,
I am bale to resolve the below error by setting below configuration in conf/local.conf
Seems all of optee*.bbappend files were left in its layers after their base recipes have been removed from the product.
BB_DANGLINGAPPENDS_WARNONLY = "1"
This makes the build go further but fails at below error attached full build log for your reference:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
ERROR: Task (/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 1017 tasks of which 991 didn't need to be rerun and 1 failed.
Summary: 1 task failed:
/home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/sources/poky/meta/recipes-devtools/mklibs/mklibs-native_0.1.44.bb:do_compile
Summary: There was 1 WARNING message shown.
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Looking for your response
Regards,
Vishal
Hello, @vishalg
Thanks for the post.
It is because the old BSPs are originally located on codeaurora, which stopped the services several years ago.
A guide has been provided by NXP for using the old BSPs, I suggest reading the following posts for details:
https://community.nxp.com/t5/S32G-Knowledge-Base/How-to-build-older-Auto-Linux-BSPs/ta-p/1637516
I hope it will help.
BR
Chenyin
Hi Chenyin,
Tried following the steps as mentioned by you in the below link:
""https://community.nxp.com/t5/S32G-Knowledge-Base/How-to-build-older-Auto-Linux-BSPs/ta-p/1637516""
But the repo sync still fails with fetch error as below :
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration$ mkdir testfolder
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/linux-bsp-utils/codeaurora_migration$ cd ../../
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration$ ls
linux-bsp-utils testfolder
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration$ cd linux-bsp-utils/
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/linux-bsp-utils$ ls
codeaurora_migration LICENSE README
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/linux-bsp-utils$ ls codeaurora_migration/
0001-meta-vnp-fix-azure-recipes.patch 0001-meta-vnp-fix-cmm-recipe-install.patch 0001-sm-drv-Update-SRC_URI-to-github.patch migrate.sh README.md
gvt1kor@BANI-C-007L8: ~/s32gsrcbuild/BSP34/migration/linux-bsp-utils $cd codeaurora_migration
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/linux-bsp-utils/codeaurora_migration$ ./migrate.sh --full --work_path ~/s32gsrcbuild/BSP34/migration/testfolder --release_branch release/bsp34.0
=====================================================================
WARNING: THIS SCRIPT WILL CHANGE MANIFEST AND YOCTO RECIPE FILES!
SINCE CODE AURORA HAS BEEN SHUT DOWN, THIS SCRIPT IS NEEDED IN ORDER
TO CHANGE THE CAF LINKS TO NXP/GITHUB CORRESPONDING LINKS.
IT IS STRONGLY RECOMMENDED THAT USERS PROPERLY SAVE ALL THEIR LOCAL
CHANGES IN REPOSITORES CLONED BY THE 'repo' TOOL BEFORE ATTEMPTING
TO RUN THIS SCRIPT (VIA 'git commit' OR OTHER MEANS)!!!
PROCEEDING FURTHER MEANS ACKNOWLEDGING THE RISKS INVOLVED AND
PROPERLY SAVING ALL YOUR CHANGES!
=====================================================================
Proceed further?(y/n) y
[INFO] Preparing working directory /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp ...
[INFO] Finished preparing working directory!
[INFO] Performing repo init...
[INFO] Using manifest " default.xml "...
Downloading Repo source from https://gerrit.googlesource.com/git-repo
... A new version of repo (2.54) is available.
... New version is available at: /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
Your identity is: gvt1kor <vishal.gupta2@in.bosch.com>
If you want to change this, please re-run 'repo init' with --config-name
repo has been initialized in /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp
/home/gvt1kor/s32gsrcbuild/BSP34/migration/linux-bsp-utils/codeaurora_migration
[INFO] Finished repo init!
[INFO] Starting presync migration!
[INFO] Done presync migration!
[INFO] Performing repo sync...
... A new version of repo (2.54) is available.
... New version is available at: /home/gvt1kor/s32gsrcbuild/BSP34/migration/testfolder/auto-bsp/.repo/repo/repo
... The launcher is run from: /usr/bin/repo
!!! The launcher is not writable. Please talk to your sysadmin or distro
!!! to get an update installed.
Fetching: 11% (1/9) 0:12 | 2 jobs | 0:12 meta-freescale @ sources/meta-freescale
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
meta-linaro:
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
meta-linaro: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
error: Cannot fetch meta-linaro from https://git.linaro.org/openembedded/meta-linaro
Fetching: 100% (9/9), done in 2m22.163s
Fetching: 0% (0/1) 0:07 | 1 job | 0:07 meta-linaro @ sources/meta-linaro
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
meta-linaro:
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
meta-linaro: sleeping 4.0 seconds before retrying
fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
error: Cannot fetch meta-linaro from https://git.linaro.org/openembedded/meta-linaro
Fetching: 100% (1/1), done in 7.843s
fatal: failed to unpack tree object HEAD
error.GitError: Cannot checkout meta-linaro: Cannot initialize work tree for meta-linaro
error: Cannot checkout meta-linaro
Checking out: 88% (8/9), done in 0.373s
Checking out: 11% (1/9), done in 0.012s
error: Unable to fully sync the tree
error: Downloading network changes failed.
error: Checking out local projects failed.
Failing repos:
sources/meta-linaro
Try re-running with "-j1 --fail-fast" to exit at the first error.
================================================================================
Repo command failed due to the following `SyncError` errors:
GitCommandError: 'fetch --quiet --progress linaro --prune --recurse-submodules=no --tags +refs/heads/*:refs/remotes/linaro/* +refs/tags/*:refs/tags/*' on meta-linaro failed
stdout: fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
GitCommandError: 'fetch --quiet --progress linaro --prune --recurse-submodules=no --tags +refs/heads/*:refs/remotes/linaro/* +refs/tags/*:refs/tags/*' on meta-linaro failed
stdout: fatal: unable to access 'https://git.linaro.org/openembedded/meta-linaro/': The requested URL returned error: 403
Cannot initialize work tree for meta-linaro
/home/gvt1kor/s32gsrcbuild/BSP34/migration/linux-bsp-utils/codeaurora_migration
[INFO] Finished repo sync!
[INFO] Starting postsync migration!
[INFO] Done postsync migration!
gvt1kor@BANI-C-007L8:~/s32gsrcbuild/BSP34/migration/linux-bsp-utils/codeaurora_migration$
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Please note my proxy setup is proper as i am able to success build BSP42.
Awaiting for your response.
Regards,
Vishal