Mpi h264 encoder failed on Armbian

$ uname -a
Linux rockpi-4b 5.4.20-rockchip64 #20.02.1 SMP PREEMPT Mon Feb 17 04:45:00 CET 2020 aarch64 GNU/Linux

I cloned https://github.com/rockchip-linux/mpp.git
and compiled it with HAVE_DRM=ON with cmake.
I then ran:

$ ./mpi_enc_test -o hurr.264 -w 1280 -h 720 -t 7 -d 0xFF
mpi_enc_test: cmd parse result:
mpi_enc_test: input file name:
mpi_enc_test: output file name: hurr.264
mpi_enc_test: width : 1280
mpi_enc_test: height : 720
mpi_enc_test: format : 0
mpi_enc_test: type : 7
mpi_enc_test: debug flag : 0
mpi_enc_test: mpi_enc_test start
mpi_enc_test: using AVC coding type
mpp_rt: NOT found ion allocator
mpp_rt: found drm allocator
mpi_enc_test: mpi_enc_test encoder test start w 1280 h 720 type 7
mpi: mpp version: 8b18624b author: Herman Chen [vepu541]: Add osd and osd_plt common config
hal_h264e_api: vcodec type 00000000 can not find H.264 encoder device
mpp_hal: mpp_hal_init hal h264e_rkvenc init failed ret -1
mpp_hal: mpp_hal_init could not found coding type 7
mpp_enc: mpp_enc_init could not init hal
Segmentation fault

I need the encoder running for my application. Could you please help?
-Ram

AFAIK not ported / developed or implemented yet to the modern kernel.

Use old kernel:

and contribute with your resources that this will happen sooner: