Adding support for NanoPi Duo2

Hello all,

I have been trying add support for NanoPi Duo2 (ARMv7), as it sister boards are supported, I was thinking I could make it until I met the problem of dont know how to place nanopi_duo2_defconfig file.

what I did:

  • edit uboot-sunxi/Makefile
  • edit image/coretex-a7.mk
  • add sun8i-h3-nanopi-duo2.dts patch

How/where can I place the nanopi_duo2_defconfig file? Below is the error:

Thank

edited to add:

Applying ./patches/221-compatible-old-dtc.patch using plaintext: 
patching file scripts/Kbuild.include
patching file scripts/Makefile.extrawarn

Applying ./patches/310-sunxi-h3-Sync-OTG-and-HCI-nodes-from-Linux-DT.patch using plaintext: 
patching file arch/arm/dts/sun8i-h3.dtsi

Applying ./patches/320-sunxi-Add-support-for-Orange-Pi-R1.patch using plaintext: 
patching file arch/arm/dts/Makefile
patching file arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts
patching file board/sunxi/MAINTAINERS
patching file configs/orangepi_r1_defconfig

Applying ./patches/400-ARM-dts-orange-pi-zero-plus.patch using plaintext: 
patching file arch/arm/dts/Makefile
patching file arch/arm/dts/sun50i-h5-orangepi-zero-plus.dts
patching file board/sunxi/MAINTAINERS
patching file configs/orangepi_zero_plus_defconfig

Applying ./patches/581-sun8i-h3-nanopi-duo2-dts.patch using plaintext: 
patching file arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dts
Ignoring subdirectory ./patches/temp
touch /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.prepared_d0c6af971351f12a10eff5d8af8ccfc8_6664517399ebbbc92a37c5bb081b5c53
rm -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.configured_*
rm -f /home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.uboot-sunxi.nanopi_duo2_installed
make  -C /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05 USE_PRIVATE_LIBGCC=yes nanopi_duo2_config
make[4]: Entering directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05'
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
***
*** Can't find default configuration "arch/../configs/nanopi_duo2_defconfig"!
***
scripts/kconfig/Makefile:119: recipe for target 'nanopi_duo2_defconfig' failed
make[5]: *** [nanopi_duo2_defconfig] Error 1
Makefile:478: recipe for target 'nanopi_duo2_config' failed
make[4]: *** [nanopi_duo2_config] Error 2
make[4]: Leaving directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05'
Makefile:290: recipe for target '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.configured_68b329da9893e34099c7d8ad5cb9c940' failed
make[3]: *** [/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.configured_68b329da9893e34099c7d8ad5cb9c940] Error 2
make[3]: Leaving directory '/home/jc/openwrt/package/boot/uboot-sunxi'
time: package/boot/uboot-sunxi/nanopi_duo2/compile#4.24#0.76#4.53
package/Makefile:107: recipe for target 'package/boot/uboot-sunxi/compile' failed
make[2]: *** [package/boot/uboot-sunxi/compile] Error 2
make[2]: Leaving directory '/home/jc/openwrt'
package/Makefile:103: recipe for target '/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/jc/openwrt'
/home/jc/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

All boards on the same target/sub-target use the same kernel. There is no "place" for a board-specific kernel config in the build system. They are typically in target/linux/<target-name>/config-4.<nn> or target/linux/<target-name>/<subtarget>/config-4.<nn>. These generally should not need changing.

Defining a new target, with its own DTS file and all the appropriate changes in the base files that configure the device at run time, would likely simplify development and troubleshooting. This structure would be needed prior to a request to include the device in the OpenWrt repo.

I'm not sure why you're patching the U-Boot, so that should be examined carefully as well.

Posting terminal output with the preformat button </> is much more readable and can then be quoted in response to your questions.`

1 Like

Hi,
you forgot to add U-Boot defconfig for your board. There are on U-boot branch and you schould write your own patch.
Example patch.

1 Like

For U-Boot, I was following what the sister boards have.

I did, added 056-nanopi_duo2_defconfig.patch. But I still get this, somehow u-boot-2018.05 could not find the patch file

make[3]: Entering directory '/home/jc/openwrt/package/boot/uboot-sunxi'
rm -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.built
touch /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.built_check
make  -C /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05 CROSS_COMPILE=arm-openwrt-linux-muslgnueabi- DTC="/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/scripts/dtc/dtc" HOSTCC="gcc" HOSTCFLAGS="-O2 -I/home/jc/openwrt/staging_dir/host/include -I/home/jc/openwrt/staging_dir/hostpkg/include -I/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include -I/home/jc/openwrt/staging_dir/host/include -I/home/jc/openwrt/staging_dir/hostpkg/include -I/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/include" HOSTLDFLAGS="-L/home/jc/openwrt/staging_dir/host/lib -L/home/jc/openwrt/staging_dir/hostpkg/lib -L/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/host/lib" BL31=/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/bl31.bin
make[4]: Entering directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05'
  CHK     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  CHK     include/generated/timestamp_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
make[5]: *** No rule to make target 'arch/arm/dts/sun8i-h3-nanopi-duo2.dts', needed by 'arch/arm/dts/sun8i-h3-nanopi-duo2.dtb'.  Stop.
Makefile:908: recipe for target 'dts/dt.dtb' failed
make[4]: *** [dts/dt.dtb] Error 2
make[4]: Leaving directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05'
Makefile:290: recipe for target '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.built' failed
make[3]: *** [/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/u-boot-nanopi_duo2/u-boot-2018.05/.built] Error 2
make[3]: Leaving directory '/home/jc/openwrt/package/boot/uboot-sunxi'
time: package/boot/uboot-sunxi/nanopi_duo2/compile#1.46#0.59#2.00
package/Makefile:107: recipe for target 'package/boot/uboot-sunxi/compile' failed
make[2]: *** [package/boot/uboot-sunxi/compile] Error 2
make[2]: Leaving directory '/home/jc/openwrt'
package/Makefile:103: recipe for target '/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile' failed
make[1]: *** [/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.package_compile] Error 2
make[1]: Leaving directory '/home/jc/openwrt'
/home/jc/openwrt/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

Now you have another error. There is no dtsi in U-Boot for your board. Example dts.
Branch mastter uses U-Boot 2019.1. Why you use older version?

1 Like

Thank, It is compiling now after patch Makefile with the board dtsi line. Hopefully no more error.

Blockquote
Branch mastter uses U-Boot 2019.1. Why you use older version?

Frankly, I am not sure what I was doing, I want to use the dts from sister board, the realised I need defconfig and then you said about .dtsi.

I am using a branch of of OpenWRT. How do I use U-Boot-2019.01 in my case?

An error occurred, it enter:
make[5]: Entering directory '/home/dt/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148'

it couldnt find arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb

I have patched this file at:package/boot/uboot-sunxi/patches

--- a/arch/arm/dts/Makefile	2019-10-08 05:14:02.000000000 +0800
+++ b/arch/arm/dts/Makefile.new	2019-10-13 20:42:05.934375296 +0800
@@ -495,6 +495,7 @@
 	sun8i-h3-libretech-all-h3-cc.dtb \
 	sun8i-h3-nanopi-m1.dtb \
 	sun8i-h3-nanopi-m1-plus.dtb \
+	sun8i-h3-nanopi-duo2.dtb\
 	sun8i-h3-nanopi-neo.dtb \
 	sun8i-h3-nanopi-neo-air.dtb \
 	sun8i-h3-orangepi-2.dtb \

new file mode 100644
--- /dev/null	2019-10-13 12:23:52.000000000 +0800
+++ b/arch/arm/dts/sun8i-h3-nanopi-duo2.dts	2019-10-13 12:15:06.000000000 +0800
@@ -0,0 +1,61 @@
+/*
+ * Copyright (C) 2016 James Pettigrew <james@innovum.com.au>
+ *
+ * Modded for Duo2 from Neo 
+ * 
+ * This file is dual-licensed: you can use it either under the terms
+ * of the GPL or the X11 license, at your option. Note that this dual
+ * licensing only applies to this file, and not this project as a
+ * whole.
+ *
+ *  a) This file is free software; you can redistribute it and/or
+ *     modify it under the terms of the GNU General Public License as
+ *     published by the Free Software Foundation; either version 2 of the
+ *     License, or (at your option) any later version.
+ *
+ *     This file is distributed in the hope that it will be useful,
+ *     but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *     GNU General Public License for more details.
+ *
+ * Or, alternatively,
+ *
+ *  b) Permission is hereby granted, free of charge, to any person
+ *     obtaining a copy of this software and associated documentation
+ *     files (the "Software"), to deal in the Software without
+ *     restriction, including without limitation the rights to use,
+ *     copy, modify, merge, publish, distribute, sublicense, and/or
+ *     sell copies of the Software, and to permit persons to whom the
+ *     Software is furnished to do so, subject to the following
+ *     conditions:
+ *
+ *     The above copyright notice and this permission notice shall be
+ *     included in all copies or substantial portions of the Software.
+ *
+ *     THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ *     EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
+ *     OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ *     NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
+ *     HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
+ *     WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+ *     FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ *     OTHER DEALINGS IN THE SOFTWARE.
+ */
+
+#include "sun8i-h3-nanopi.dtsi"
+
+/ {
+	model = "FriendlyARM NanoPi Duo2";
+	compatible = "friendlyarm,nanopi-duo2", "allwinner,sun8i-h3";
+};
+
+&emac {
+	phy = <&phy1>;
+	phy-mode = "mii";
+	allwinner,use-internal-phy;
+	allwinner,leds-active-low;
+	status = "okay";

The log file:

touch /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/.configured
rm -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/init
make -C /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148 HOSTCFLAGS="-O2 -I/home/jc/openwrt/staging_dir/host/include  -Wall -Wmissing-prototypes -Wstrict-prototypes" CROSS_COMPILE="arm-openwrt-linux-muslgnueabi-" ARCH="arm" KBUILD_HAVE_NLS=no KBUILD_BUILD_USER="" KBUILD_BUILD_HOST="" KBUILD_BUILD_TIMESTAMP="Fri Oct 11 16:30:44 2019" KBUILD_BUILD_VERSION="0" HOST_LOADLIBES="-L/home/jc/openwrt/staging_dir/host/lib" CONFIG_SHELL="bash" V=''  cmd_syscalls= KERNELRELEASE=4.14.148 CC="arm-openwrt-linux-muslgnueabi-gcc" zImage dtbs modules
make[5]: Entering directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148'
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     include/generated/bounds.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
  CHK     scripts/mod/devicetable-offsets.h
  CC      init/main.o
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
 
  AS      arch/arm/lib/io-writesl.o
  AS      arch/arm/lib/io-writesw-armv4.o
  AS      arch/arm/lib/lib1funcs.o
  AS      arch/arm/lib/lshrdi3.o
  AS      arch/arm/lib/memchr.o
  AS      arch/arm/lib/memcpy.o
  AS      arch/arm/lib/memmove.o

  
  CC      lib/sha1.o
  CC      lib/show_mem.o
  CC      lib/siphash.o
  CC      lib/string.o
  CC      lib/timerqueue.o
  CC      lib/vsprintf.o
  CC      lib/win_minmax.o
  AR      lib/lib.a
  EXPORTS lib/lib-ksyms.o
  AR      lib/built-in.o
  AR      virt/lib/built-in.o
  AR      virt/built-in.o
  GEN     .version
  CHK     include/generated/compile.h
  AR      built-in.o
  LD      vmlinux.o
  MODPOST vmlinux.o
  KSYM    .tmp_kallsyms1.o
  KSYM    .tmp_kallsyms2.o
  LD      vmlinux
  SORTEX  vmlinux
  SYSMAP  System.map
  OBJCOPY arch/arm/boot/Image
  Kernel: arch/arm/boot/Image is ready
  LDS     arch/arm/boot/compressed/vmlinux.lds
  AS      arch/arm/boot/compressed/head.o
  XZKERN  arch/arm/boot/compressed/piggy_data
  AS      arch/arm/boot/compressed/piggy.o
  CC      arch/arm/boot/compressed/misc.o
 
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  DTC     arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-colombus.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-hummingbird.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-i7.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-m9.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-cs908.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-inet-q972.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-primo81.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-sina31s.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-yones-toptech-bs1078-v2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapi.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapro.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-cubieboard2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-cubietruck.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-hummingbird.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-itead-ibox.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-i12-tvbox.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-icnova-swac.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-lamobo-r1.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-m3.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-mk808c.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-orangepi.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-orangepi-mini.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-wits-pro-a20-dkt.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-evb.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-gt90h-v4.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-inet86dz.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-ippo-q8h-v1.2.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-q8-tablet.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-et-q8-v1.6.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-ga10h-v1.1.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-ippo-q8h-v1.2.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-olinuxino.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-q8-tablet.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb
  DTC     arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-beelink-x2.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-neo.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-2.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-lite.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-one.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-pc.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dtb
  DTC     arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dtb
  DTC     arch/arm/boot/dts/sun8i-r16-parrot.dtb
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dtb
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb
  DTC     arch/arm/boot/dts/sun9i-a80-optimus.dtb
  DTC     arch/arm/boot/dts/sun9i-a80-cubieboard4.dtb
  Building modules, stage 2.
  MODPOST 129 modules
make[5]: Leaving directory '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148'
cmp -s /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/vmlinux /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.debug || { arm-openwrt-linux-muslgnueabi-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/vmlinux /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux; arm-openwrt-linux-muslgnueabi-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/vmlinux /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.elf; cp -fpR /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/vmlinux /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.debug;  cp -fpR /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/arch/arm/boot//zImage /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/zImage;  }
touch /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory '/home/jc/openwrt/target/linux/sunxi/image'
make[5]: Nothing to be done for 'compile'.
mkdir -p /home/jc/openwrt/bin/targets/sunxi/cortexa7 /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp
/home/jc/openwrt/staging_dir/host/bin/mksquashfs4 /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -Xbcj arm -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 16 -fixed-time 1570811444
Parallel mksquashfs: Using 16 processors
Creating 4.0 filesystem on /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/dev".
Ignoring, exclude it (-e/-ef) to override.
[=========================================================================================================================================================================================|] 1646/1646 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 5731.63 Kbytes (5.60 Mbytes)
	34.35% of uncompressed filesystem size (16687.54 Kbytes)
Inode table size 16280 bytes (15.90 Kbytes)
	22.01% of uncompressed inode table size (73960 bytes)
Directory table size 22950 bytes (22.41 Kbytes)
	46.26% of uncompressed directory table size (49610 bytes)
Number of duplicate files found 208
Number of inodes 2162
Number of files 1634
Number of fragments 45
Number of symbolic links  380
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 147
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
/home/jc/openwrt/staging_dir/host/bin/make_ext4fs -l 167772160 -b 4096 -m 0 -J -T 1570811444 /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.ext4 /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/
Creating filesystem with parameters:
    Size: 167772160
    Block size: 4096
    Blocks per group: 32768
    Inodes per group: 5120
    Inode size: 256
    Journal blocks: 0
    Label: 
    Blocks: 40960
    Block groups: 2
    Reserved blocks: 0
    Reserved block group size: 15
Created filesystem with 2171/10240 inodes and 6252/40960 blocks
rm -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
cp /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/zImage /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n 'ARM OpenWrt Linux-4.14.148' -d /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin.new
Image Name:   ARM OpenWrt Linux-4.14.148
Created:      Fri Oct 11 16:30:44 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2826072 Bytes = 2759.84 KiB = 2.70 MiB
Load Address: 40008000
Entry Point:  40008000
mv /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin.new /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
[ -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin -a -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs ]
rm -f /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot
mkfs.fat /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot -C 20480
mkfs.fat 4.1 (2017-01-24)
mcopy -i /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/sun8i-h3-nanopi-duo2-boot.scr ::boot.scr
mcopy -i /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb ::dtb
/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.148/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb: No such file or directory
Makefile:46: recipe for target '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz' failed
make[5]: *** [/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz] Error 1
make[5]: Leaving directory '/home/jc/openwrt/target/linux/sunxi/image'
Makefile:32: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/jc/openwrt/target/linux/sunxi'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/jc/openwrt/target/linux'
time: target/linux/install#463.34#43.25#497.51
target/Makefile:23: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/jc/openwrt'
target/Makefile:19: recipe for target '/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install' failed
make[1]: *** [/home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/jc/openwrt'
/home/jc/openwrt/include/toplevel.mk:216: recipe for target 'world' failed

What is your sister board?
This is Openwrt repository. Probably you have downloaded older version which use older U-Boot.

I based the new DTS on sun8i-h3-nanopi-M1-plus.dts

They can't find linux dts blob. Probaly you forgot add your dtsi name to Linux patch (/arch/arm/boot/dts/allwinner/Makefile) in 581-sun8i-h3-nanopi-duo2-dts.patch.
It will be easier when you post your code or link to your repo

PS. Dont forget to clean linux compilation (make target/linux/clean)

Look like I have to patch DTSI files and add/patch some of the dt-bindings files too and too many files to take care. It is a messy way to use patch. Is there better way that can I add a Arm device DTSx?

Yes, add support into mainline linux :wink: but it will be included in kernel 5.5
When you write firmware for "sister board" it work and boot correctry?
If it will work, I can write some patches for this board, but you schould test it.

I was trying to use the DTS of the board which is written by the board manufacturer for a branch of OpenWRT uses older Kernel version which I dont like, that why I was trying to use the DTS, patch into OpenWRT.

Any thoughts, at DTC, sun8i-h3-nanopi-duo2.dtb is not created, enough though the sun8i-h3-nanopi-duo2.dts is patched?

 OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  DTC     arch/arm/boot/dts/sun6i-a31-app4-evb1.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-colombus.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-hummingbird.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-i7.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-m9.dtb
  DTC     arch/arm/boot/dts/sun6i-a31-mele-a1000g-quad.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-colorfly-e708-q1.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-cs908.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-inet-q972.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-primo81.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-sina31s.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-sinovoip-bpi-m2.dtb
  DTC     arch/arm/boot/dts/sun6i-a31s-yones-toptech-bs1078-v2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapi.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapi-m1-plus.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-bananapro.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-cubieboard2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-cubietruck.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-hummingbird.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-itead-ibox.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-i12-tvbox.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-icnova-swac.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-lamobo-r1.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-m3.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-mk808c.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olimex-som-evb.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime2.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-olinuxino-micro.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-orangepi.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-orangepi-mini.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-pcduino3-nano.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dtb
  DTC     arch/arm/boot/dts/sun7i-a20-wits-pro-a20-dkt.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-evb.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-gt90h-v4.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-inet86dz.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-ippo-q8h-v5.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-ippo-q8h-v1.2.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-polaroid-mid2407pxe03.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-polaroid-mid2809pxe04.dtb
  DTC     arch/arm/boot/dts/sun8i-a23-q8-tablet.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-et-q8-v1.6.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-ga10h-v1.1.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-inet-d978-rev2.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-ippo-q8h-v1.2.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-olinuxino.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-q8-tablet.dtb
  DTC     arch/arm/boot/dts/sun8i-a33-sinlinx-sina33.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-allwinner-h8homlet-v2.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-bananapi-m3.dtb
  DTC     arch/arm/boot/dts/sun8i-a83t-cubietruck-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h2-plus-orangepi-r1.dtb
  DTC     arch/arm/boot/dts/sun8i-h2-plus-orangepi-zero.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-bananapi-m2-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-beelink-x2.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-m1.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-m1-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-neo.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-2.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-lite.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-one.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-pc.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-pc-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-plus.dtb
  DTC     arch/arm/boot/dts/sun8i-h3-orangepi-plus2e.dtb
  DTC     arch/arm/boot/dts/sun8i-r16-bananapi-m2m.dtb
  DTC     arch/arm/boot/dts/sun8i-r16-parrot.dtb
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero.dtb
  DTC     arch/arm/boot/dts/sun8i-v3s-licheepi-zero-dock.dtb
  DTC     arch/arm/boot/dts/sun9i-a80-optimus.dtb
  DTC     arch/arm/boot/dts/sun9i-a80-cubieboard4.dtb
  Building modules, stage 2.
  MODPOST 134 modules
make[5]: Leaving directory '/home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149'
cmp -s /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/vmlinux /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.debug || { arm-openwrt-linux-muslgnueabi-objcopy -O binary -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/vmlinux /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux; arm-openwrt-linux-muslgnueabi-objcopy -R .reginfo -R .notes -R .note -R .comment -R .mdebug -R .note.gnu.build-id -S /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/vmlinux /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.elf; cp -fpR /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/vmlinux /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/vmlinux.debug;  cp -fpR /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/arch/arm/boot//zImage /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/zImage;  }
touch /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/.image
make -C image compile install TARGET_BUILD=
make[5]: Entering directory '/home/dt/inside1/lede/target/linux/sunxi/image'
make[5]: Nothing to be done for 'compile'.
mkdir -p /home/dt/inside1/lede/bin/targets/sunxi/cortexa7 /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp
/home/dt/inside1/lede/staging_dir/host/bin/mksquashfs4 /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs -nopad -noappend -root-owned -comp xz -Xpreset 9 -Xe -Xlc 0 -Xlp 2 -Xpb 2 -Xbcj arm -b 256k -p '/dev d 755 0 0' -p '/dev/console c 600 0 0 5 1' -processors 16
Parallel mksquashfs: Using 16 processors
Creating 4.0 filesystem on /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs, block size 262144.
Pseudo file "/dev" exists in source filesystem "/home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/root-sunxi/dev".
Ignoring, exclude it (-e/-ef) to override.
[=========================================================================================================================================================================================|] 1839/1839 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
	compressed data, compressed metadata, compressed fragments, no xattrs
	duplicates are removed
Filesystem size 5903.91 Kbytes (5.77 Mbytes)
	34.00% of uncompressed filesystem size (17366.40 Kbytes)
Inode table size 17996 bytes (17.57 Kbytes)
	22.24% of uncompressed inode table size (80935 bytes)
Directory table size 24850 bytes (24.27 Kbytes)
	45.21% of uncompressed directory table size (54966 bytes)
Number of duplicate files found 253
Number of inodes 2377
Number of files 1830
Number of fragments 44
Number of symbolic links  386
Number of device nodes 1
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 160
Number of ids (unique uids + gids) 1
Number of uids 1
	root (0)
Number of gids 1
	root (0)
rm -f /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
cp /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/zImage /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
mkimage -A arm -O linux -T kernel -C none -a 0x40008000 -e 0x40008000 -n 'ARM OpenWrt Linux-4.14.149' -d /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin.new
Image Name:   ARM OpenWrt Linux-4.14.149
Created:      Sat Oct 26 09:49:48 2019
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    2800792 Bytes = 2735.15 KiB = 2.67 MiB
Load Address: 40008000
Entry Point:  40008000
mv /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin.new /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin
[ -f /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/sun8i-h3-nanopi-duo2-kernel.bin -a -f /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/root.squashfs ]
rm -f /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot
mkfs.fat /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot -C 20480
mkfs.fat 4.1 (2017-01-24)
mcopy -i /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/dt/inside1/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/sun8i-h3-nanopi-duo2-boot.scr ::boot.scr
mcopy -i /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb ::dtb
/home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb: No such file or directory
Makefile:46: recipe for target '/home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz' failed
make[5]: *** [/home/dt/inside1/lede/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz] Error 1
make[5]: Leaving directory '/home/dt/inside1/lede/target/linux/sunxi/image'
Makefile:32: recipe for target 'install' failed
make[4]: *** [install] Error 2
make[4]: Leaving directory '/home/dt/inside1/lede/target/linux/sunxi'
Makefile:13: recipe for target 'install' failed
make[3]: *** [install] Error 2
make[3]: Leaving directory '/home/dt/inside1/lede/target/linux'
time: target/linux/install#460.66#45.16#495.80
target/Makefile:23: recipe for target 'target/linux/install' failed
make[2]: *** [target/linux/install] Error 2
make[2]: Leaving directory '/home/dt/inside1/lede'
target/Makefile:19: recipe for target '/home/dt/inside1/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install' failed
make[1]: *** [/home/dt/inside1/lede/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/stamp/.target_install] Error 2
make[1]: Leaving directory '/home/dt/inside1/lede'
/home/dt/inside1/lede/include/toplevel.mk:216: recipe for target 'world' failed
make: *** [world] Error 2

 ls sun8i*.dt?
sun8i-a23-evb.dtb                    sun8i-a23-q8-tablet.dts       sun8i-a83t-allwinner-h8homlet-v2.dtb  sun8i-h3-nanopi-m1.dtb       sun8i-h3-orangepi-pc.dts
sun8i-a23-evb.dts                    sun8i-a33-et-q8-v1.6.dtb      sun8i-a83t-allwinner-h8homlet-v2.dts  sun8i-h3-nanopi-m1.dts       sun8i-h3-orangepi-pc-plus.dtb
sun8i-a23-gt90h-v4.dtb               sun8i-a33-et-q8-v1.6.dts      sun8i-a83t-bananapi-m3.dtb            sun8i-h3-nanopi-m1-plus.dtb  sun8i-h3-orangepi-pc-plus.dts
sun8i-a23-gt90h-v4.dts               sun8i-a33-ga10h-v1.1.dtb      sun8i-a83t-bananapi-m3.dts            sun8i-h3-nanopi-m1-plus.dts  sun8i-h3-orangepi-plus2e.dtb
sun8i-a23-inet86dz.dtb               sun8i-a33-ga10h-v1.1.dts      sun8i-a83t-cubietruck-plus.dtb        sun8i-h3-nanopi-neo-air.dtb  sun8i-h3-orangepi-plus2e.dts
sun8i-a23-inet86dz.dts               sun8i-a33-inet-d978-rev2.dtb  sun8i-a83t-cubietruck-plus.dts        sun8i-h3-nanopi-neo-air.dts  sun8i-h3-orangepi-plus.dtb
sun8i-a23-ippo-q8h-v1.2.dtb          sun8i-a33-inet-d978-rev2.dts  sun8i-h2-plus-orangepi-r1.dtb         sun8i-h3-nanopi-neo.dtb      sun8i-h3-orangepi-plus.dts
sun8i-a23-ippo-q8h-v1.2.dts          sun8i-a33-ippo-q8h-v1.2.dtb   sun8i-h2-plus-orangepi-r1.dts         sun8i-h3-nanopi-neo.dts      sun8i-r16-bananapi-m2m.dtb
sun8i-a23-ippo-q8h-v5.dtb            sun8i-a33-ippo-q8h-v1.2.dts   sun8i-h2-plus-orangepi-zero.dtb       sun8i-h3-orangepi-2.dtb      sun8i-r16-bananapi-m2m.dts
sun8i-a23-ippo-q8h-v5.dts            sun8i-a33-olinuxino.dtb       sun8i-h2-plus-orangepi-zero.dts       sun8i-h3-orangepi-2.dts      sun8i-r16-parrot.dtb
sun8i-a23-polaroid-mid2407pxe03.dtb  sun8i-a33-olinuxino.dts       sun8i-h3-bananapi-m2-plus.dtb         sun8i-h3-orangepi-lite.dtb   sun8i-r16-parrot.dts
sun8i-a23-polaroid-mid2407pxe03.dts  sun8i-a33-q8-tablet.dtb       sun8i-h3-bananapi-m2-plus.dts         sun8i-h3-orangepi-lite.dts   sun8i-v3s-licheepi-zero-dock.dtb
sun8i-a23-polaroid-mid2809pxe04.dtb  sun8i-a33-q8-tablet.dts       sun8i-h3-beelink-x2.dtb               sun8i-h3-orangepi-one.dtb    sun8i-v3s-licheepi-zero-dock.dts
sun8i-a23-polaroid-mid2809pxe04.dts  sun8i-a33-sinlinx-sina33.dtb  sun8i-h3-beelink-x2.dts               sun8i-h3-orangepi-one.dts    sun8i-v3s-licheepi-zero.dtb
sun8i-a23-q8-tablet.dtb              sun8i-a33-sinlinx-sina33.dts  sun8i-h3-nanopi-duo2.dts              sun8i-h3-orangepi-pc.dtb     sun8i-v3s-licheepi-zero.dts

Have you added the device to image.mk and all that?

1 Like

Hi,

Yes, added duo2 to:

  • edit uboot-sunxi/Makefile
  • edit image/coretex-a7.mk

Iā€™d try make V=s to see if there are error messages logged (or hints as to what is not happening).

1 Like

Here is the error message, but didnt tell much

mcopy -i /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/jc/openwrt/staging_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/image/sun8i-h3-nanopi-duo2-boot.scr ::boot.scr
mcopy -i /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz.boot /home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb ::dtb
/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/linux-4.14.149/arch/arm/boot/dts/sun8i-h3-nanopi-duo2.dtb: No such file or directory
Makefile:46: recipe for target '/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz' failed
make[5]: *** [/home/jc/openwrt/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-sunxi_cortexa7/tmp/openwrt-sunxi-cortexa7-sun8i-h3-nanopi-duo2-squashfs-sdcard.img.gz] Error 1
make[5]: Leaving directory '/home/jc/openwrt/target/linux/sunxi/image'
Makefile:32: recipe for target 'install' failed

Did you confirm it was actually built? Was the compiler line missing, or was there an error?

1 Like