# BalenaOS OrangePi One building custom balenaOS image with additional Kernel Devicetree

**URL:** <https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091>\
**Category:** balenaOS\
**Created:** [March 9, 2020, 6:58pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091 "2020-03-09T18:58:46Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 9, 2020, 6:58pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/1 "2020-03-09T18:58:46Z")

</div>

Hello!

So i made a card with orange pi one balenaOS image, but it doesnt have support for i2c, and spi at the moment, and there is no mechanism in balenaOS to change dtoverlay in runtime

So my plan is to build custom orange-pi-one balenaOS image with some additional features like:  
i2c support, spi support

Is there any guide regarding this?

I assume that i have to clone this:  
[git@github.com](mailto:git@github.com):balena-os/balena-allwinner.git  
Then  
git submodule update --init --recursive  
Then add layers/meta-balena-allwinner/orange-pi-one.conf similiar to orange-pi-lite.conf

> # @TYPE: Machine
> 
> #@NAME: orange-pi-one
> 
> #@DESCRIPTION: Machine configuration for the orange-pi-one, base on allwinner H3 CPU
> 
> require conf/machine/include/sun8i.inc
> 
> KERNEL\_DEVICETREE = "sun8i-h3-orangepi-one.dtb \
> 
> overlay/sun8i-h3-analog-codec.dtbo \
> 
> overlay/sun8i-h3-cir.dtbo \
> 
> overlay/sun8i-h3-fixup.scr \
> 
> overlay/sun8i-h3-i2c0.dtbo \
> 
> overlay/sun8i-h3-i2c1.dtbo \
> 
> overlay/sun8i-h3-i2c2.dtbo \
> 
> overlay/sun8i-h3-pps-gpio.dtbo \
> 
> overlay/sun8i-h3-pwm.dtbo \
> 
> overlay/sun8i-h3-spdif-out.dtbo \
> 
> overlay/sun8i-h3-spi-add-cs1.dtbo \
> 
> overlay/sun8i-h3-spi-jedec-nor.dtbo \
> 
> overlay/sun8i-h3-spi-spidev.dtbo \
> 
> overlay/sun8i-h3-uart1.dtbo \
> 
> overlay/sun8i-h3-uart2.dtbo \
> 
> overlay/sun8i-h3-uart3.dtbo \
> 
> overlay/sun8i-h3-usbhost0.dtbo \
> 
> overlay/sun8i-h3-usbhost2.dtbo \
> 
> overlay/sun8i-h3-usbhost3.dtbo \
> 
> overlay/sun8i-h3-w1-gpio.dtbo \
> 
> "
> 
> UBOOT\_MACHINE = “orangepi\_one\_defconfig”
> 
> DEFAULTTUNE = “cortexa7hf-neon-vfpv4”

Then i have to make  
./balena-yocto-scripts/build/barys -m orange-pi-one

Unfortunately i got error

> NOTE: Running task 1251 of 3762 (/home/adam/balena-allwinner/build/…/layers/meta-rust/recipes-devtools/rust/rust-cross\_1.33.0.bb:do\_rust\_gen\_targets)  
> NOTE: recipe rust-cross-arm-1.33.0-r0: task do\_rust\_create\_wrappers: Succeeded  
> NOTE: Running task 1252 of 3762 (virtual:native:/home/adam/balena-allwinner/build/…/layers/poky/meta/recipes-support/libxslt/libxslt\_1.1.33.bb:do\_fetch)  
> ERROR: qemu-native-3.1.0-r0 do\_compile: oe\_runmake failed  
> ERROR: qemu-native-3.1.0-r0 do\_compile: Function failed: do\_compile (log file is located at /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/temp/log.do\_compile.1197)  
> ERROR: Logfile of failure stored in: /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/temp/log.do\_compile.1197  
> NOTE: recipe qemu-native-3.1.0-r0: task do\_compile: Failed  
> ERROR: Task (/home/adam/balena-allwinner/build/…/layers/poky/meta/recipes-devtools/qemu/qemu-native\_3.1.0.bb:do\_compile) failed with exit code ‘1’  
> NOTE: Running task 1253 of 3762 (/home/adam/balena-allwinner/build/…/layers/poky/meta/recipes-support/libgpg-error/libgpg-error\_1.35.bb:do\_unpack)  
> NOTE: recipe rust-cross-arm-1.33.0-r0: task do\_rust\_gen\_targets: Started  
> NOTE: recipe rust-cross-arm-1.33.0-r0: task do\_rust\_gen\_targets: Succeeded  
> NOTE: recipe libgpg-error-1.35-r0: task do\_unpack: Started  
> NOTE: recipe libxslt-native-1.1.33-r0: task do\_fetch: Started  
> NOTE: recipe libgpg-error-1.35-r0: task do\_unpack: Succeeded  
> NOTE: recipe libxslt-native-1.1.33-r0: task do\_fetch: Succeeded  
> NOTE: recipe linux-mainline-4.19.76+gitAUTOINC+555161ee1b-r0: task do\_configure: Succeeded  
> NOTE: recipe vala-native-0.42.5-r0: task do\_compile: Succeeded  
> NOTE: recipe libgpg-error-native-1.35-r0: task do\_configure: Succeeded  
> NOTE: recipe glibc-2.29-r0: task do\_install: Succeeded  
> NOTE: recipe rust-llvm-native-1.33.0-r0: task do\_compile: Succeeded  
> NOTE: Tasks Summary: Attempted 1253 tasks of which 0 didn’t need to be rerun and 1 failed.

Log “/home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/temp/log.do\_compile.1197” (100 last lines):

> make[1]: \*\*\* [/home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/rules.mak:69: linux-user/syscall.o] Error 1  
> make[1]: \*\*\* Waiting for unfinished jobs…  
> CC arm-linux-user/linux-user/mmap.o  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:222:9: error: ‘SIOCGSTAMP’ undeclared here (not in a function); did you mean ‘SIOCSRARP’?  
> 222 | IOCTL(SIOCGSTAMP, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timeval)))  
> | ^ ~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET\_ ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> CC mipsel-linux-user/accel/tcg/user-exec-stub.o  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:223:9: error: ‘SIOCGSTAMPNS’ undeclared here (not in a function); did you mean ‘SIOCGSTAMP\_OLD’?  
> 223 | IOCTL(SIOCGSTAMPNS, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timespec)))  
> | ^ ~~~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET\_ ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> CC mipsel-linux-user/linux-user/main.o  
> CC mipsel-linux-user/linux-user/syscall.o  
> make[1]: \*\*\* [/home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/rules.mak:69: linux-user/syscall.o] Error 1  
> make[1]: \*\*\* Waiting for unfinished jobs…  
> CC mipsel-linux-user/linux-user/strace.o  
> CC aarch64-linux-user/linux-user/syscall.o  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:253:16: error: static declaration of ‘gettid’ follows non-static declaration  
> 253 | \_syscall0(int, gettid)  
> | ^ ~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:184:13: note: in definition of macro ‘\_syscall0’  
> 184 | static type name (void)   
> | ^~~~  
> In file included from /usr/include/unistd.h:1170,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:  
> /usr/include/x86\_64-linux-gnu/bits/unistd\_ext.h:34:16: note: previous declaration of ‘gettid’ was here  
> 34 | extern \_\_pid\_t gettid (void) _THROW;  
> | ^ ~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:222:9: error: ‘SIOCGSTAMP’ undeclared here (not in a function); did you mean ‘SIOCSRARP’?  
> 222 | IOCTL(SIOCGSTAMP, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timeval)))  
> | ^ ~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:223:9: error: ‘SIOCGSTAMPNS’ undeclared here (not in a function); did you mean ‘SIOCGSTAMP\_OLD’?  
> 223 | IOCTL(SIOCGSTAMPNS, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timespec)))  
> | ^ ~~~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET_ ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> make: \*\*\* [Makefile:483: subdir-mips64-linux-user] Error 2  
> CC mipsel-linux-user/linux-user/mmap.o  
> CC mipsel-linux-user/linux-user/signal.o  
> CC mipsel-linux-user/linux-user/elfload.o  
> make[1]: \*\*\* [/home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/rules.mak:69: linux-user/syscall.o] Error 1  
> make[1]: \*\*\* Waiting for unfinished jobs…  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:253:16: error: static declaration of ‘gettid’ follows non-static declaration  
> 253 | \_syscall0(int, gettid)  
> | ^ ~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:184:13: note: in definition of macro ‘\_syscall0’  
> 184 | static type name (void)   
> | ^~~~  
> CC aarch64-linux-user/linux-user/strace.o  
> In file included from /usr/include/unistd.h:1170,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:90,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:20:  
> /usr/include/x86\_64-linux-gnu/bits/unistd\_ext.h:34:16: note: previous declaration of ‘gettid’ was here  
> 34 | extern \_\_pid\_t gettid (void) _THROW;  
> | ^ ~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:222:9: error: ‘SIOCGSTAMP’ undeclared here (not in a function); did you mean ‘SIOCSRARP’?  
> 222 | IOCTL(SIOCGSTAMP, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timeval)))  
> | ^ ~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/ioctls.h:223:9: error: ‘SIOCGSTAMPNS’ undeclared here (not in a function); did you mean ‘SIOCGSTAMP\_OLD’?  
> 223 | IOCTL(SIOCGSTAMPNS, IOC\_R, MK\_PTR(MK\_STRUCT(STRUCT\_timespec)))  
> | ^ ~~~~~~~~~~~  
> /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/syscall.c:4750:23: note: in definition of macro ‘IOCTL’  
> 4750 | { TARGET_ ## cmd, cmd, #cmd, access, 0, { **VA\_ARGS** } },  
> | ^~~  
> make[1]: \*\*\* [/home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/rules.mak:69: linux-user/syscall.o] Error 1  
> make[1]: \*\*\* Waiting for unfinished jobs…  
> make: \*\*\* [Makefile:483: subdir-arm-linux-user] Error 2  
> In file included from /usr/include/string.h:494,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/include/qemu/osdep.h:84,  
> from /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/elfload.c:2:  
> In function ‘strncpy’,  
> inlined from ‘fill\_psinfo’ at /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/elfload.c:3158:12,  
> inlined from ‘fill\_note\_info’ at /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/elfload.c:3340:5,  
> inlined from ‘elf\_core\_dump’ at /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/qemu-3.1.0/linux-user/elfload.c:3489:9:  
> /usr/include/x86\_64-linux-gnu/bits/string\_fortified.h:106:10: warning: ‘\_\_builtin\_strncpy’ specified bound 16 equals destination size [-Wstringop-truncation]  
> 106 | return \_\_builtin\_\_\_strncpy\_chk (\_\_dest, \_\_src, \_\_len, \_\_bos (\_\_dest));  
> | ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
> make: \*\*\* [Makefile:483: subdir-aarch64-linux-user] Error 2  
> ERROR: oe\_runmake failed  
> make: \*\*\* [Makefile:483: subdir-mipsel-linux-user] Error 2  
> WARNING: exit code 1 from a shell command.  
> ERROR: Function failed: do\_compile (log file is located at /home/adam/balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/3.1.0-r0/temp/log.do\_compile.1197)

My system:  
Ubuntu 19.10

I’m not sure if i’m doing everything ok, so that’s why im not putting issue yet

---

<div class="post-metadata">

**Author:** ![ntzovanis](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ntzovanis/32/1150_2.png) [@ntzovanis](https://forums.balena.io/u/ntzovanis)\
**Post date:** [March 9, 2020, 7:38pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/2 "2020-03-09T19:38:51Z")

</div>

Hello Adam,

I’ve reached out to our devices support team to take a look at this. In the mean time, have you taken a look at [this](https://www.balena.io/docs/reference/OS/meta-balena/) guide? It might have some useful information for you.

Cheers!

---

<div class="post-metadata">

**Author:** ![dtischler](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/dtischler/32/2483_2.png) [@dtischler](https://forums.balena.io/u/dtischler)\
**Post date:** [March 9, 2020, 10:58pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/5 "2020-03-09T22:58:35Z")

</div>

Hi Adam, I noticed that error is referred to here: [https://patchwork.kernel.org/patch/10998911/](https://patchwork.kernel.org/patch/10998911/)

It might be worthwhile to patch that file, and just see if that allows you to proceed with your build.

The ‘syscall.c’ file should be sitting in ‘balena-allwinner/build/tmp/work/x86\_64-linux/qemu-native/2.11.1-r0/qemu-2.11.1/linux-user’ folder.

Hope that helps, thanks.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 10, 2020, 7:09am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/7 "2020-03-10T07:09:12Z")

</div>

Hi, thank you very much  
At the moment i will try to compile with jenkins\_build.sh script, it looks like the environment is dockerized, so maybe problem will disappear

---

<div class="post-metadata">

**Author:** ![karaxuna](https://avatars.discourse-cdn.com/v4/letter/k/e480ec/32.png) [@karaxuna](https://forums.balena.io/u/karaxuna)\
**Post date:** [March 10, 2020, 8:19am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/8 "2020-03-10T08:19:46Z")

</div>

Hi, please let us know if that works for you.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 10, 2020, 2:56pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/10 "2020-03-10T14:56:30Z")

</div>

Hello  
jenkins script succesfuly build this image

But i still can’t get image that will support i2c in Orange pi one  
Unfortunately i just have no proper knowledge to do that

Like i asked - do you have any tutorial how to start with yocto, or adjust own board?

---

<div class="post-metadata">

**Author:** ![ab77](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/ab77/32/2870_2.png) [@ab77](https://forums.balena.io/u/ab77)\
**Post date:** [March 10, 2020, 9:00pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/16 "2020-03-10T21:00:10Z")

</div>

Hello, would you be able to give us support access to the device please (action in the dashboard), so we can take a look if anything is missing from the built image to support those protocols. We also need the device id, so please feel free to DM it to me, if you would like to keep that information private.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 11, 2020, 5:30pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/19 "2020-03-11T17:30:20Z")

</div>

I sent you ID etc in DM

---

<div class="post-metadata">

**Author:** ![xginn8](https://avatars.discourse-cdn.com/v4/letter/x/8baadc/32.png) [@xginn8](https://forums.balena.io/u/xginn8)\
**Post date:** [March 11, 2020, 8:01pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/21 "2020-03-11T20:01:43Z")

</div>

Hi there,

Are you able to test building in an older version of Ubuntu, for example 16.04.6 LTS?

Please let us know the results of that test.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 12, 2020, 7:39am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/23 "2020-03-12T07:39:02Z")

</div>

Hi, i dont have chance to build on that system

But building isn’t a problem using jenkins\_build.sh script - it have dockeried version of builder, so image were builded

But it’s still doesn’t have i2c enabled - probably i have no knowledge how to really enable it

---

<div class="post-metadata">

**Author:** ![iamsolankiamit](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@iamsolankiamit](https://forums.balena.io/u/iamsolankiamit)\
**Post date:** [March 12, 2020, 10:48am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/26 "2020-03-12T10:48:10Z")

</div>

Most likely you need to look at modifying armbian.txt, but we can’t provide more help as this is a community supported board and we don’t prioritize its support internally.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 12, 2020, 10:51am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/28 "2020-03-12T10:51:17Z")

</div>

So there is armbian.txt support in balena?

The same situation is for orange pi zero, that looks like is officialy supported by you  
I assume that same steps that we need to make in orange pi zero we need also to make in orange pi one, should we switch to this board?

---

<div class="post-metadata">

**Author:** ![roman-mazur](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/roman-mazur/32/2194_2.png) [@roman-mazur](https://forums.balena.io/u/roman-mazur)\
**Post date:** [March 12, 2020, 11:45am UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/29 "2020-03-12T11:45:52Z")

</div>

Hi,  
Both Orange Pi Zero and One are supported. They work with the balena platform. But in terms of extending the features for these boards, it’s currently on community support, meaning we don’t actively contribute there.

We checked with our devices team and they suggest that what you need should be possible to add similarly how it was done by us for Artik board. See the following commit for an example:

> <https://github.com/balena-os/balena-artik/pull/126/commits/d032b663837acd7cba9afc62eb93051ddf2a476e>

So, for Orange Pi, the general idea would be

```auto
mkdir /sys/kernel/config/device-tree/overlays/spi
cat "the spidev overlay" > /sys/kernel/config/device-tree/overlays/spi/dtbo

```

where “the spidev overlay” is the overlay for their specific machine

Hope it helps to make progress.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 12, 2020, 12:04pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/31 "2020-03-12T12:04:05Z")

</div>

We will check of course and try to achieve that.

In my honest opinion orange pi one and orange pi zero is not supported in BalenaOS atm.  
Chronyd is not working, any electronic interface not working, so what’s the purpouse?

I bought these boards because i thought it’s good replacement for Raspberry Pi (it works great with Balena, everything works), and i thought that where something is on your main website (Try BalenaOS) is working also.  
There is no information that is community supported on the main webpage.

 ![Zrzut ekranu z 2020-03-12 13-02-11](https://global.discourse-cdn.com/balena/original/2X/a/aeb9f5a44c5c41a53bfc804504c4da90e156d1c5.png)

Without any electronic interface this board is useless in term of our business

Thanks for your help.  
Have a great day

---

<div class="post-metadata">

**Author:** ![alanb128](https://sea2.discourse-cdn.com/balena/user_avatar/forums.balena.io/alanb128/32/2839_2.png) [@alanb128](https://forums.balena.io/u/alanb128)\
**Post date:** [March 12, 2020, 6:30pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/33 "2020-03-12T18:30:08Z")

</div>

We have opened internal issues to track your request (and website suggestion) and we’ll let you know when there are any updates.

---

<div class="post-metadata">

**Author:** ![Razikus](https://avatars.discourse-cdn.com/v4/letter/r/e19b73/32.png) [@Razikus](https://forums.balena.io/u/Razikus)\
**Post date:** [March 13, 2020, 10:51pm UTC](https://forums.balena.io/t/balenaos-orangepi-one-building-custom-balenaos-image-with-additional-kernel-devicetree/76091/35 "2020-03-13T22:51:23Z")

</div>

Thank you very much!

We had managed to add some overlays into final image, and this allow us to enable I2C for example

> <https://github.com/Razikus/balena-allwinner/commit/c2168c7cc30c0f9fac1ce0eaaa2ed028c2581e35>

Unfortunately there is no real-rtc support for ds1307 in builded image
