[yocto] build error on raspberrypi3

Paul Barker pbarker at toganlabs.com
Thu Oct 26 02:05:20 PDT 2017


On Thu, Oct 26, 2017 at 4:59 AM, vishal ashapur <vishalashapur at gmail.com> wrote:
> hi im buliding linux on rpi3 using yocto pyro branch. after doing
> "bitbake linux-raspberrypi -c menuconfig"  it is downloading all
> sources but at the end it is showing the following error.
>
> ERROR: linux-raspberrypi-1_4.9.30+gitAUTOINC+e54215a9bc-r28 do_fetch:
> Fetcher failure for URL:
> 'git://github.com/raspberrypi/linux.git;protocol=git;branch=rpi-4.9.y'.
> Unable to fetch URL from any source.
> ERROR: linux-raspberrypi-1_4.9.30+gitAUTOINC+e54215a9bc-r28 do_fetch:
> Function failed: base_do_fetch
> ERROR: Logfile of failure stored in:
> /u/rpi2/rpi/build/tmp/work/raspberrypi2-poky-linux-gnueabi/linux-raspberrypi/1_4.9.30+gitAUTOINC+e54215a9bc-r28/temp/log.do_fetch.30856
> ERROR: Task (/u/rpi2/sources/poky-morty/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi_4.9.bb:do_fetch)
> failed with exit code '1'

This looks wrong. We went straight from 4.9.27 to 4.9.30 in
meta-raspberrypi so not sure where your recipe is coming from. The
latest kernel version on the pyro branch is 4.9.50.

>
> so can anybody help with this error.
> my detailed procedure for build is below
> git clone -b pyro git://git.yoctoproject.org/poky
> cd poky
> git clone -b pyro git://git.openembedded.org/meta-openembedded
> git clone -b pyro git://git.yoctoproject.org/meta-raspberrypi
>
> source sources/poky/oe-init-build-env rpi-build
>
> changes in local.conf
> MACHINE = "raspberrypi3"
> PREFERRED_VERSION_linux-raspberrypi = "4.9.%"
> DISTRO_FEATURES_remove = "x11 wayland"
> DISTRO_FEATURES_append = " systemd"
> VIRTUAL-RUNTIME_init_manager = "systemd"
> IMAGE_INSTALL += "packagegroup-core-buildessential"
>
> changes in bblayers.conf
> BBLAYERS ?= " \
>   ${BSPDIR}/sources/poky/meta \
>   ${BSPDIR}/sources/poky/meta-poky \
>   ${BSPDIR}/sources/poky/meta-yocto-bsp \
>   ${BSPDIR}/sources/meta-openembedded/meta-oe \
>   ${BSPDIR}/sources/meta-openembedded/meta-multimedia \
>   ${BSPDIR}/sources/meta-raspberrypi \

These paths might be wrong, from your commands above the
meta-openembedded and meta-raspberrypi directories would be placed
under the poky directory.

-- 
Paul Barker
Togán Labs Ltd



More information about the yocto mailing list