# Yocto build for BananaPI-M1

**URL:** <https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823>\
**Category:** General Discussions\
**Created:** [April 23, 2020, 9:52am UTC](https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823 "2020-04-23T09:52:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![siddharthav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@siddharthav](https://hub.mender.io/u/siddharthav)\
**Post date:** [April 23, 2020, 9:52am UTC](https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823/1 "2020-04-23T09:52:43Z")

</div>

Hello,  
I am actually trying to build the yocto image for Banana-Pi M1 board. I came across the yocto tutorial for RPI from Mender Hub. Was really very informative thank you. As I am doing yocto for the first time I thought of going with raspberry Pi so that I can get some feeling how does yocro works. I followed the tutorial but on running  
$: bitbake core-image-base  
The build process started but after reaching 51 %, the whole process stopped. Below is the error log:

```
siddhu@siddhu:~/Documents/yocto/build$ bitbake core-image-base

```

Parsing recipes: 100% |############################################################################################| Time: 0:04:06  
Parsing of 2254 .bb files complete (0 cached, 2254 parsed). 3320 targets, 135 skipped, 0 masked, 0 errors.  
NOTE: Resolving any missing task queue dependencies

Build Configuration:  
BB\_VERSION = “1.42.0”  
BUILD\_SYS = “x86\_64-linux”  
NATIVELSBSTRING = “ubuntu-18.04”  
TARGET\_SYS = “arm-poky-linux-gnueabi”  
MACHINE = “raspberrypi3”  
DISTRO = “poky”  
DISTRO\_VERSION = “2.7.3”  
TUNE\_FEATURES = “arm vfp cortexa7 neon vfpv4 thumb callconvention-hard”  
TARGET\_FPU = “hard”  
meta  
meta-poky  
meta-yocto-bsp = “warrior:274e8c50eee14c0bfc1fc3f51d5b33cbc44c3a31”  
meta-oe  
meta-multimedia  
meta-python  
meta-networking = “warrior:a24acf94d48d635eca668ea34598c6e5c857e3f8”  
meta-raspberrypi = “warrior:5551792e642d6cc32e22dfe6dbfd29ac3e2390cd”

NOTE: Fetching uninative binary shim from [http://downloads.yoctoproject.org/releases/uninative/2.8/x86\_64-nativesdk-libc.tar.xz;sha256sum=a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab](http://downloads.yoctoproject.org/releases/uninative/2.8/x86_64-nativesdk-libc.tar.xz;sha256sum=a09922172c3a439105e0ae6b943daad2d83505b17da0aba97961ff433b8c21ab)  
Initialising tasks: 100% |#########################################################################################| Time: 0:00:07  
Sstate summary: Wanted 1195 Found 0 Missed 1195 Current 0 (0% match, 0% complete)  
NOTE: Executing SetScene Tasks  
NOTE: Executing RunQueue Tasks  
WARNING: sqlite3-native-3\_3.27.2-r0 do\_fetch: Failed to fetch URL [http://www.sqlite.org/2019/sqlite-autoconf-3270200.tar.gz](http://www.sqlite.org/2019/sqlite-autoconf-3270200.tar.gz), attempting MIRRORS if available  
WARNING: icu-native-63.1-r0 do\_fetch: Checksum mismatch for local file /home/siddhu/Documents/yocto/build/downloads/icu4c-63\_1-src.tgz  
Cleaning and trying again.  
WARNING: icu-native-63.1-r0 do\_fetch: Renaming /home/siddhu/Documents/yocto/build/downloads/icu4c-63\_1-src.tgz to /home/siddhu/Documents/yocto/build/downloads/icu4c-63\_1-src.tgz\_bad-checksum\_c48521bfa28b0dde100f68f632e76518  
WARNING: icu-native-63.1-r0 do\_fetch: Checksum failure encountered with download of [http://download.icu-project.org/files/icu4c/63.1/icu4c-63\_1-src.tgz](http://download.icu-project.org/files/icu4c/63.1/icu4c-63_1-src.tgz) - will attempt other sources if available  
WARNING: procps-3.3.15-r0 do\_fetch: Failed to fetch URL [http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-3.3.15.tar.xz](http://downloads.sourceforge.net/project/procps-ng/Production/procps-ng-3.3.15.tar.xz), attempting MIRRORS if available  
WARNING: quota-4.04-r0 do\_fetch: Failed to fetch URL [https://downloads.sourceforge.net/project/linuxquota/quota-tools/4.04/quota-4.04.tar.gz](https://downloads.sourceforge.net/project/linuxquota/quota-tools/4.04/quota-4.04.tar.gz), attempting MIRRORS if available  
WARNING: cwautomacros-native-20110201-r0 do\_fetch: Failed to fetch URL [https://downloads.sourceforge.net/cwautomacros.berlios/cwautomacros-20110201.tar.bz2](https://downloads.sourceforge.net/cwautomacros.berlios/cwautomacros-20110201.tar.bz2), attempting MIRRORS if available  
WARNING: zip-3.0-r2 do\_fetch: Failed to fetch URL [https://downloads.sourceforge.net/infozip/Zip%203.x%20(latest)/3.0/zip30.tar.gz](https://downloads.sourceforge.net/infozip/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz), attempting MIRRORS if available  
WARNING: rpcbind-1.2.5-r0 do\_fetch: Failed to fetch URL [https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.5.tar.bz2](https://downloads.sourceforge.net/rpcbind/rpcbind-1.2.5.tar.bz2), attempting MIRRORS if available  
WARNING: linux-raspberrypi-1\_4.19.88+gitAUTOINC+988cc7beac-r0 do\_fetch: Failed to fetch URL git://github.com/raspberrypi/linux.git;branch=rpi-4.19.y, attempting MIRRORS if available  
ERROR: linux-raspberrypi-1\_4.19.88+gitAUTOINC+988cc7beac-r0 do\_fetch: Fetcher failure: Fetch command export PSEUDO\_DISABLED=1; unset \_PYTHON\_SYSCONFIGDATA\_NAME; export DBUS\_SESSION\_BUS\_ADDRESS=“unix:path=/run/user/1000/bus,guid=3cbc88bac87693904d5dd3825e9fdc95”; export SSH\_AGENT\_PID=“1591”; export SSH\_AUTH\_SOCK="/run/user/1000/keyring/ssh"; export PATH="/home/siddhu/Documents/yocto/build/tmp/sysroots-uninative/x86\_64-linux/usr/bin:/home/siddhu/Documents/yocto/sources/poky/scripts:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot/usr/bin/crossscripts:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot-native/usr/sbin:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot-native/usr/bin:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot-native/sbin:/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/recipe-sysroot-native/bin:/home/siddhu/Documents/yocto/sources/poky/bitbake/bin:/home/siddhu/Documents/yocto/build/tmp/hosttools"; export HOME="/home/siddhu"; LANG=C git -c core.fsyncobjectfiles=0 clone --bare --mirror git://github.com/raspberrypi/linux.git /home/siddhu/Documents/yocto/build/downloads/git2/github.com.raspberrypi.linux.git --progress failed with exit code 128, output:  
Cloning into bare repository ‘/home/siddhu/Documents/yocto/build/downloads/git2/github.com.raspberrypi.linux.git’…  
remote: Enumerating objects: 139, done.  
remote: Counting objects: 100% (139/139), done.  
remote: Compressing objects: 100% (108/108), done.  
fatal: read error: Connection reset by peer579.82 MiB | 370.00 KiB/s  
fatal: early EOF  
fatal: index-pack failed

ERROR: linux-raspberrypi-1\_4.19.88+gitAUTOINC+988cc7beac-r0 do\_fetch: Fetcher failure for URL: ‘git://github.com/raspberrypi/linux.git;branch=rpi-4.19.y’. Unable to fetch URL from any source.  
ERROR: linux-raspberrypi-1\_4.19.88+gitAUTOINC+988cc7beac-r0 do\_fetch:  
ERROR: linux-raspberrypi-1\_4.19.88+gitAUTOINC+988cc7beac-r0 do\_fetch: Function failed: base\_do\_fetch  
ERROR: Logfile of failure stored in: /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi3-poky-linux-gnueabi/linux-raspberrypi/1\_4.19.88+gitAUTOINC+988cc7beac-r0/temp/log.do\_fetch.3159  
ERROR: Task (/home/siddhu/Documents/yocto/sources/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi\_4.19.bb:do\_fetch) failed with exit code ‘1’  
NOTE: Tasks Summary: Attempted 1752 tasks of which 0 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:  
/home/siddhu/Documents/yocto/sources/meta-raspberrypi/recipes-kernel/linux/linux-raspberrypi\_4.19.bb:do\_fetch  
Summary: There were 10 WARNING messages shown.  
Summary: There were 4 ERROR messages shown, returning a non-zero exit code.  
siddhu@siddhu:~/Documents/yocto/build$

 ![3](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/b191235bf8cf05f06f3da5cfe918338f02e40cdd.png) ![2](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/e9a4f0e1d07e6619b7b5ef11cf9298852a1cf96b.png) ![1](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/37e2ac18603377508b5176bb7f2af811b6015559.png)

I kindly request you to suggest me what wrong I am doing here.

Later I tried to take up same yocto for my target BananaPi-M1 board but I am not able to do it. May I knoe what wrong I am doing.

Regards,  
Siddhartha V

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [April 23, 2020, 10:06am UTC](https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823/2 "2020-04-23T10:06:34Z")

</div>

Welcome. From log it seems you have some connection issues

```auto
home/siddhu/Documents/yocto/build/downloads/git2/github.com.raspberrypi.linux.git’…
remote: Enumerating objects: 139, done.
remote: Counting objects: 100% (139/139), done.
remote: Compressing objects: 100% (108/108), done.
fatal: read error: Connection reset by peer579.82 MiB | 370.00 KiB/s
fatal: early EOF
fatal: index-pack failed

```

---

<div class="post-metadata">

**Author:** ![siddharthav](https://avatars.discourse-cdn.com/v4/letter/s/f05b48/32.png) [@siddharthav](https://hub.mender.io/u/siddharthav)\
**Post date:** [April 23, 2020, 10:28am UTC](https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823/3 "2020-04-23T10:28:23Z")

</div>

Hello,

Connection issue in the sense Internet issue? I doubt on that because I am using a bit low speed internet actually. Am I right?

---

<div class="post-metadata">

**Author:** ![MarekBelisko](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/marekbelisko/32/33_2.png) [@MarekBelisko](https://hub.mender.io/u/MarekBelisko)\
**Post date:** [April 23, 2020, 10:43am UTC](https://hub.mender.io/t/yocto-build-for-bananapi-m1/1823/4 "2020-04-23T10:43:53Z")

</div>

Hard to say but generally internet connection seems to be not reliable
