Yocto3.0 on RSB3430 build failure

I am trying to build the yocto image using the wiki MX6/Yocto_LBVB_User_Guide.
I tried using the repo and also using the tgz with the yocto env but I have on both the issue related to source.codeaurora.org server that is not reachable.

These are the errors:
fatal: unable to access : Could not resolve host: source.codeaurora.org

Do you have any suggestion or workaround to solve this issue?

Thanks, Regards
Mimmo

Hi Mimmo~

NXP did a source code migration from CodeAurora to GitHub.

Or you can reference Yocto 3.0 BSP user guide to modify the .xml file.


Yocto3.0 Repo Fail SOP - ESS-WIKI (advantech.com.tw)

Thanks for the reply, changing the xml file accordingly the issue related to codeaurora is sovled, but I have still an issue during the uboot compilation.

ERROR: ExpansionError during parsing /home/adv/adv-release-bsp/sources/meta-imx/meta-bsp/recipes-bsp/u-boot/u-boot-imx_2021.04.bb
Traceback (most recent call last):
  File "/home/adv/adv-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1637, in Fetch.__init__(urls=['git://github.com/ADVANTECH-Corp/uboot-imx.git;protocol=https;branch=adv_v2021.04_5.10.35_2.0.0'], d=<bb.data_smart.DataSmart object at 0x7fd4e8eedb38>, cache=True, localonly=False, connection_cache=None):
                     try:
    >                    self.ud[url] = FetchData(url, d, localonly)
                     except NonLocalMethod:
  File "/home/adv/adv-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1277, in FetchData.__init__(url='git://github.com/ADVANTECH-Corp/uboot-imx.git;protocol=https;branch=adv_v2021.04_5.10.35_2.0.0', d=<bb.data_smart.DataSmart object at 0x7fd4e8eedb38>, localonly=False):
             if hasattr(self.method, "urldata_init"):
    >            self.method.urldata_init(self, d)
     
  File "/home/adv/adv-release-bsp/sources/poky/bitbake/lib/bb/fetch2/git.py", line 236, in Git.urldata_init(ud=<bb.fetch2.FetchData object at 0x7fd4e88a3d30>, d=<bb.data_smart.DataSmart object at 0x7fd4e8eedb38>):
     
    >        ud.setup_revisions(d)
     
  File "/home/adv/adv-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1307, in FetchData.setup_revisions(d=<bb.data_smart.DataSmart object at 0x7fd4e8eedb38>):
             for name in self.names:
    >            self.revisions[name] = srcrev_internal_helper(self, d, name)
     
  File "/home/adv/adv-release-bsp/sources/poky/bitbake/lib/bb/fetch2/__init__.py", line 1170, in srcrev_internal_helper(ud=<bb.fetch2.FetchData object at 0x7fd4e88a3d30>, d=<bb.data_smart.DataSmart object at 0x7fd4e8eedb38>, name='default'):
         if srcrev == "INVALID" or not srcrev:
    >        raise FetchError("Please set a valid SRCREV for url %s (possible key names are %s, or use a ;rev=X URL parameter)" % (str(attempts), ud.url), ud.url)
         if srcrev == "AUTOINC":
bb.data_smart.ExpansionError: Failure expanding variable do_configure, expression was     if [ -n "1G" ]; then
        unset i j
        for config in  mx6qrsb3430a1_1G_config; do
            i=$(expr $i + 1);
            for type in 1G; do
                j=$(expr $j + 1);
                if [ $j -eq $i ]; then
                    oe_runmake -C /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git O=/home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git/${config} ${config}
                    if [ -n "${@' '.join(find_cfgs(d))}" ]; then
                        merge_config.sh -m -O /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git/${config} /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git/${config}/.config ${@" ".join(find_cfgs(d))}
                        oe_runmake -C /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git O=/home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git/${config} oldconfig
                    fi
                fi
            done
            unset j
        done
        unset i
        DEVTOOL_DISABLE_MENUCONFIG=true
    else
        if [ -n " mx6qrsb3430a1_1G_config" ]; then
            oe_runmake -C /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git O=/home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git  mx6qrsb3430a1_1G_config
        else
            oe_runmake -C /home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git O=/home/adv/adv-release-bsp/build_board/tmp/work/imx6qrsb3430a1-poky-linux-gnueabi/u-boot-imx/1_2021.04-r0/git oldconfig
        fi
        merge_config.sh -m .config ${@" ".join(find_cfgs(d))}
        cml1_do_configure
    fi
 which triggered exception FetchError: Fetcher failure for URL: 'git://github.com/ADVANTECH-Corp/uboot-imx.git;protocol=https;branch=adv_v2021.04_5.10.35_2.0.0'. Please set a valid SRCREV for url ['SRCREV_default_pn-u-boot-imx', 'SRCREV_default', 'SRCREV_pn-u-boot-imx', 'SRCREV'] (possible key names are git://github.com/ADVANTECH-Corp/uboot-imx.git;protocol=https;branch=adv_v2021.04_5.10.35_2.0.0, or use a ;rev=X URL parameter)

this is the repo reference used: repo init -u git://github.com/ADVANTECH-Corp/adv-arm-yocto-bsp.git -b refs/tags/imx6LBVB0012 -m my-imx6LBVB0012.xml

and the environment:

export MC=imx6qrsb3430a1
export BSP_HOME=/home/adv/adv-release-bsp/imx6LBVB0012_2022-12-29
export BDIR=build_board
MACHINE=${MC} DISTRO=fsl-imx-xwayland source imx-setup-release.sh -b ${BDIR}

Solved adding the proper SRCREV inside sources/meta-advantech/meta-fsl-imx/recipes-bsp/u-boot/u-boot-imx_2021.04.bbappend

Now the issue is on kernel build because it doesn’t found the dts file

ERROR: linux-fslc-imx-5.4.114+gitAUTOINC+f5b1a0c923-r0 do_compile: oe_runmake failed
ERROR: linux-fslc-imx-5.4.114+gitAUTOINC+f5b1a0c923-r0 do_compile: Execution of '/home/adv/adv-release-bsp/build_board2/tmp/work/imx6qrsb3430a1-fslc-linux-gnueabi/linux-fslc-imx/5.4.114+gitAUTOINC+f5b1a0c923-r0/temp/run.do_compile.1602581' failed with exit code 1:
  GEN     Makefile
  HOSTCC  scripts/basic/fixdep
  CALL    /home/adv/adv-release-bsp/build_board2/tmp/work-shared/imx6qrsb3430a1/kernel-source/scripts/atomic/check-atomics.sh
  CALL    /home/adv/adv-release-bsp/build_board2/tmp/work-shared/imx6qrsb3430a1/kernel-source/scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  Kernel: arch/arm/boot/Image is ready
  Kernel: arch/arm/boot/zImage is ready
make[2]: *** No rule to make target 'arch/arm/boot/dts/imx6q-rsb3430-a1.dtb'.  Stop.
/home/adv/adv-release-bsp/build_board2/tmp/work-shared/imx6qrsb3430a1/kernel-source/Makefile:1270: recipe for target 'imx6q-rsb3430-a1.dtb' failed
make[1]: *** [imx6q-rsb3430-a1.dtb] Error 2
/home/adv/adv-release-bsp/build_board2/tmp/work-shared/imx6qrsb3430a1/kernel-source/Makefile:179: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
WARNING: exit code 1 from a shell command.

ERROR: Logfile of failure stored in: /home/adv/adv-release-bsp/build_board2/tmp/work/imx6qrsb3430a1-fslc-linux-gnueabi/linux-fslc-imx/5.4.114+gitAUTOINC+f5b1a0c923-r0/temp/log.do_compile.1602581

Is it correct the MC setting used to build image for RSB-3430 MC=imx6qrsb3430a1 ?

Hi~,

Yes, MC=imx6qrsb3430a1. Below is my local.conf file for your reference.


build linux-imx:

2 Likes