OrangePi Zero Plus2

Has anyone tried to integrate Mender into the the OrangePi Zero Plus2?

Board description

OrangePi Zero Plus2

I have mender running on Pi Zero without issue so I think Plus2 should be supported also if there is in meta-sunxi proper machine. Please check how it’s build for zero: OrangePi Zero

OK proceed how build is described in OrangePi Zero and in command MACHINE=orange-pi-zero use MACHINE=orange-pi-zero-plus2 and it should work. Thanks.

I will give it a try and report back. Thanks.

1 Like

OK thanks pls let us know we can then create board integration based on your input :+1:

I get the following error when attempting to build:

|   GEN     ./Makefile
| scripts/kconfig/conf  --silentoldconfig Kconfig
| make[2]: *** No rule to make target 'zImage'.  Stop.
| Makefile:146: recipe for target 'sub-make' failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target '__sub-make' failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/chet/dev/mender-orangepi/build/tmp/work/orange_pi_zero_plus2-poky-linux/linux-mainline/4.16.13-r0/temp/log.do_compile.10495)

If I comment out this line in local.conf

KERNEL_IMAGETYPE ?= “zImage”

it does successfully build, but I cannot get my board to boot from SD card. It ignores the SD card and boots from emmc. I tried changing local.conf like this also:

# NanoPi, mmc index differs in U-boot and Linux. This configuration is for uSD.

# MENDER_STORAGE_DEVICE_nanopi-m1-plus = "/dev/mmcblk1"

# MENDER_UBOOT_STORAGE_DEVICE_nanopi-m1-plus = "0"

# NanoPi, uncomment this for eMMC. Remember to remove above!

MENDER_STORAGE_DEVICE_nanopi-m1-plus = "/dev/mmcblk3"

MENDER_UBOOT_STORAGE_DEVICE_nanopi-m1-plus = "1"

That did not make a difference. Any suggestions? Thanks.

Please try change:

KERNEL_IMAGETYPE ?= "uImage"

and in meta-mender-community/meta-mender-sunxi/recipes-bsp/u-boot/files/arm/boot.scr change to

run mender_setup;
setenv bootargs console=${console} console=tty1 root=${mender_kernel_root} rootwait panic=10 ${extra}
mmc dev ${mender_uboot_dev}
load ${mender_uboot_root} ${fdt_addr_r} /boot/${fdtfile}
load ${mender_uboot_root} ${kernel_addr_r} /boot/uImage
bootm ${kernel_addr_r} - ${fdt_addr_r}
run mender_try_to_recover

and see if it helps. Are you using dunfell release? You can maybe first try to first build an image without mender and check if board boots at all (I had an issue with orangepi zero that u-boot 2020.01 was failing and need patch). Thanks.

Similar error if I change zImage to uImage … Any other suggestions? Thanks.

.16.13=/kernel-source/ LD=aarch64-poky-linux-ld.bfd LOADADDR=0x40008000
| make[2]: *** No rule to make target ‘uImage’. Stop.
| Makefile:146: recipe for target ‘sub-make’ failed
| make[1]: *** [sub-make] Error 2
| Makefile:24: recipe for target ‘__sub-make’ failed
| make: *** [__sub-make] Error 2
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/chet/dev/mender-orangepi/build/tmp/work/orange_pi_zero_plus2-poky-linux/linux-mainline/4.16.13-r0/temp/log.do_compile.15749)

Oh this is 64bit architecture. Then KERNEL_IMAGETYPE=Image Thanks.