Mender Integration on Rock-Pi-S/RK3308

I am working with an ROC-RK3308B-CC-PLUS EVK that uses RK3308 processor. I have been able to boot the board with Linux using meta-radxa’s rock-pi-s recipes. I now want to integrate Mender with the board. I tried to follow the steps mentioned in the Mender docs here. But I am facing multiple issues like the partitions, configs, etc.
Is there any existing document or support for this? Or has anyone attempted this and can help me resolve my errors? Any help would be appreciated.

I am majorly facing issue with compiling u-boot envtools. Here’s a snippet of the error by the default (do_mender_uboot_auto_configure) uboot_auto_configure.sh,

| + make 'HOSTCC=gcc  -DMENDER_AUTO_PROBING' 'CC=gcc  -DMENDER_AUTO_PROBING' envtools
| scripts/kconfig/conf  --silentoldconfig Kconfig
|   CHK     include/config.h
|   UPD     include/config.h
|   CFG     u-boot.cfg
| cc1: error: unknown register name: x18 [-Werror]
| cc1: all warnings being treated as errors
| make[1]: *** [scripts/Makefile.autoconf:79: u-boot.cfg] Error 1
|   LD      tools/env/built-in.o
|   HOSTCC  tools/env/aes.o
|   HOSTCC  tools/env/crc32.o
|   HOSTCC  tools/env/ctype.o
|   HOSTCC  tools/env/env_attr.o
|   HOSTCC  tools/env/env_flags.o
| In file included from ./tools/env/fw_env_private.h:13,
|                  from tools/env/../../env/flags.c:14,
|                  from tools/env/env_flags.c:1:
| include/config.h:6:10: fatal error: asm/config.h: No such file or directory
|     6 | #include <asm/config.h>
|       |          ^~~~~~~~~~~~~~
| compilation terminated.
| make[1]: *** [scripts/Makefile.host:116: tools/env/env_flags.o] Error 1
| make: *** [Makefile:1462: envtools] Error 2

I read some articles which said “error: unknown register name: x18” is due to incompatible cross compiler. So I changed the make command to:
$MAKE HOSTCC=“$BUILD_CC -DMENDER_AUTO_PROBING” CC=“/bin/aarch64-linux-gnu-gcc -DMENDER_AUTO_PROBING” $ENV_TARGET

But now I get a different error that I am not able to solve,

| + make 'HOSTCC=gcc  -DMENDER_AUTO_PROBING' 'CC=/bin/aarch64-linux-gnu-gcc -DMENDER_AUTO_PROBING' envtools
| scripts/kconfig/conf  --silentoldconfig Kconfig
|   CHK     include/config.h
|   UPD     include/config.h
|   CFG     u-boot.cfg
|   GEN     include/autoconf.mk
|   GEN     include/autoconf.mk.dep
|   LD      tools/env/built-in.o
|   HOSTCC  tools/env/aes.o
|   HOSTCC  tools/env/crc32.o
|   HOSTCC  tools/env/ctype.o
|   HOSTCC  tools/env/env_attr.o
|   HOSTCC  tools/env/env_flags.o
|   HOSTCC  tools/env/fw_env.o
|   HOSTCC  tools/env/linux_string.o
|   AR      tools/env/lib.a
|   HOSTCC  tools/env/fw_env_main.o
| In file included from include/version.h:11,
|                  from tools/env/fw_env_main.c:37:
| include/timestamp.h:11:10: fatal error: generated/timestamp_autogenerated.h: No such file or directory
|    11 | #include "generated/timestamp_autogenerated.h"
|       |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| compilation terminated.
| make[1]: *** [scripts/Makefile.host:116: tools/env/fw_env_main.o] Error 1

Any inputs?