yashsingh1/xdaforums huggingface dataset:
[Miscellaneous Android Development] c.martinez.lozano:
Don't build at the moment, i need to upload things :) i have BT and 3G workng xDD.

Don't build to prevent nand corruption(nand driver from ICS source is bad for m1 devices i fixed it but i need to upload it) ;)

Regards

PDT: This weekend i'll upload all i did, but christiantroy is merging code and some things i'll wait. At the moment i'll upload mediaplayer HW accel integration and 3G dongle :) to our base SuperOSR. And all i did to my kernel.
[Miscellaneous Android Development] fun_:
oh I didn't know he is also working for amlogic device... it seems he already add ubifs support to his clockworkmod. it's very nice too!
[Miscellaneous Android Development] c.martinez.lozano:
I prefer no use ubifs if i can(if uboot don't mount ubifs on power off charging to show batt pics).

Ubifs consumes a lot of memory because use memory cache to get better performance.

On our ROM i only need to integrate:

-3G dongle

-HDMI Touchpad

-Media

-Recovery and init from _fun(and adapt amlogic thigs)

On W10 and Gadmei T820 i'm using yaffs on W12 ubifs because i haven't uboot source.

I'll try to upload framework, bionic(Linaro+CM+Amlogic improvements for NEON) and kernel(with initramfs) changes today(with flags to differentiate with other devices)

I only modify media, BT and 3G Dongle(needed libbluedroid.so, hciattach_usi, pppd, vold, usb_modeswitch and rild propietaries from an ICS ROM) at the moment(i don't want to integrate all source if i can use propietaries good)

Kernel will have a lot of improvements(yaffs 50% faster"651 quadrant to 1021", nand 100% stable for m1 devices "ics nand driver corrupt the nand", update usb for ICS, net stats, mali performance and other things i forgot).

Regards.
[Miscellaneous Android Development] kupyxa4444:
sorry, I have one question: what is "retouch_binaries" in updater-script?
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

in you ROM fort ramow W10 HW acсeleration is works? what did you do for it (change init.rc)? you based on stock kernel or building? because I can repair it still. You advice didn`t help
[Miscellaneous Android Development] c.martinez.lozano:
Yes works :)

I use own kernel for W10.

Think you need to add mali propietaries from an ICS ROM and a Mali and Ump modules(.ko files) compatibles with this propietaries and your kernel. Modules from GB or Froyo are not valid for ICS.

If you have an stock kernel, you can use propietaries from a naobsd ROM because has the same "basic kernel config" for the modules.

Regards.
[Miscellaneous Android Development] kupyxa4444:
I used stock kernel from Froyo. modules from from fun_ ROM...hm...what is mali propietaries? libmali.so, libump.so? May I can take it from ICS for digmaIDX7?
[Miscellaneous Android Development] c.martinez.lozano:
libMali.so libUMP.so /lib/egl /lib/hw... yes you can get it from digmalDX7, but.. take a look con _fun github (naobsd) you have all the base to mount a working device ;) leverages the efforts of others ;)

Regards
[Miscellaneous Android Development] kupyxa4444:
I can`t repair bluetoth. here that I receive in logcat:

E/BluetoothEventLoop.cpp( 141): get_adapter_path: D-Bus error: org.freedesktop.DBus.Error.ServiceUnknown (The name org.bluez was not provided by any .service files)

E/BluetoothEventLoop.cpp( 141): get_adapter_path: D-Bus error: org.bluez.Error.NoSuchAdapter (No such adapter)

E/BluetoothEventLoop.cpp( 141): failure setting up Event Loop!
[Miscellaneous Android Development] c.martinez.lozano:
No hciattach_usi logcat?

Remember, BT conflicts with GPS (GPS try to use ttyS1) deactivate GPS and restart to prevent it

Regards.
[Miscellaneous Android Development] kupyxa4444:
only:

I/bluedroid( 141): Starting hciattach daemon

I/hciattach_usi( 872): speed of uart to :460800

I/hciattach_usi( 872): get_address_from_confilesystem/etc/bt_addr.conf

I/hciattach_usi( 872): Success to open Serial port: Bad file number

I/hciattach_usi( 872): Enter bcmbt API: Bad file number

I/hciattach_usi( 872): send_reset_cmd

I/hciattach_usi( 872): download_brcm_patchram

I/hciattach_usi( 872): set_bdaddr

I/hciattach_usi( 872): set_bdaddr:01:02:03:04:05:06

I/hciattach_usi( 872): Write_PCM_Data_Format_Param

I/hciattach_usi( 872): Write_SCO_PCM_Int_Param

I/hciattach_usi( 872): Write_Voice_Setting

I/hciattach_usi( 872): change_buadsrate

I/bluedroid( 141): Starting bluetoothd deamon

then errors
[Miscellaneous Android Development] c.martinez.lozano:
I/hciattach_usi( 872): Success to open Serial port: Bad file number

Are you put ttyS1 at hciattach daemon? (init.rc) maybe you are trying to use another serial port? please see your init.rc from an stock ROM that BT works and use it
[Miscellaneous Android Development] hillbeast:
Hey with the HDMI switching (using the sh script), why doesn't the Hdmiswitch.apk from the stock ROM work?
[Miscellaneous Android Development] fun_:
thanks for your post! sorry for nitpick!

64bytes -> 64bits

little endian, least significant byte is ordered first

u-boot also know offset of these images. u-boot env needs to be changed.

probably: max value of 32bits signed interger is 2GiB-1. (2GiB-1)+1=-2GiB.
[Miscellaneous Android Development] fun_:
well, you said you verified it doesn't work on CM7? or just asking?
[Miscellaneous Android Development] hillbeast:
I'm asking if it doesn't work as I don't have the tablet yet. I'm just spinning idea until it arrives when I can do actual development. If it does work then you should package it in with CM7.
[Miscellaneous Android Development] fun_:
dd if=new_ramdisk.cpio of=raw_kernel_binary bs=$pos seek=1 conv=notrunc

I don't know about your environment. it may not work. please learn about technical point, not just command line(it's just one of example).

probably this one is easy for learning

cat kernel.head padded_ramdisk.cpio kernel.tail > new_kernel
[Miscellaneous Android Development] fun_:
probably at this time no one knows it works, or does not work because no one tried yet.

I have many ideas but I don't have enough time to test it, and/or to explain it. sadly some of my time are consumed for answering almost-meaningless questions.

as I said (to someone), I'll do what I can do, but I can't do what you want. I released my source. anyone can try his idea without asking to me.
[Miscellaneous Android Development] hillbeast:
Well you have my word that once my tablet arrives, I will help you in every way possible. I'm running out of things to do to my Galaxy 3.
[Miscellaneous Android Development] lidanex:
thankx dude
[Miscellaneous Android Development] fun_:
any help are welcome, thank you.

I'll continue to this work, but I don't think to be a sort of leader. I'll work just for myself, and push my output to public. you can pick my output freely. if you need please make your own CM7.
[Miscellaneous Android Development] cheeyee:
Thx for the correction fun_.

Already tried changing uboot env mtdparts parameter but it would not work. That is why I hex edited the kernel. Maybe uboot from aml is modified to ignore them. Even changing root parameter to point to sdcard(/dev/block/cardblksd1) does not work too.
[Miscellaneous Android Development] fun_:
ah, what I said is not about mtdparts= bootarg. but yes, CONFIG_MTD_CMDLINE_PARTS is disabled in stock kernel, so mtdparts= bootarg doesn't work.

what I said is, if you change how kernel think about partition offset/size, you also need to reflash logo/kernel images into new location, and change where u-boot load images from.

start and size info about logo/kernel are stored as u-boot env(I didn't check myself, but someone posted about it), and used in bootcmd to load images from nand to memory. (nand read ...)

actually I didn't check it myself. it may be wrong, sorry.
[Miscellaneous Android Development] hillbeast:
Right so I just ordered the tablet. Should arrive in a few days. I have an Arduino so I can do serial console and all that and I'm not afraid to open the thing up, and seeing I have developed kernels on the Galaxy 3 for a while now, I can do some kernel development for the Ainol too, so anything that we need added to the kernel, just ask me and I'll see what I can do. I've got about 3 different versions of the kernel source so hopefully I can get one of these to work.
[Miscellaneous Android Development] smeexx:
Merci pour cette roman cm7.10

Est ce que la caméra va fonctionner bientôt ?
[Miscellaneous Android Development] fun_:
please use english. I (and probably some other people) am not native but I'm making effort to use english.

about camera, I can't promise anything. it may work, or may not work, soon, or later.
[Miscellaneous Android Development] fun_:
below is my message posted on other thread. some points may not be related to here, but please read.
[Miscellaneous Android Development] StLi:
Sad to read about these attacks and demands for functionality.

Though you are clearly written your rules in your first post.

The day you charge for your services a, I can understand that people can demand things. But now this is free software then we should just sit quietly and hope that all the features we want will come and help you with bug reporting.

I hope you do not quit, look forward to what you can do with Novo8 if you are allowed to work alone

/Stefan
[Miscellaneous Android Development] karayel90:
very good mod
[Miscellaneous Android Development] fun_:
thank you!

thank you too!
[Miscellaneous Android Development] kupyxa4444:
it`s not work too
[Miscellaneous Android Development] c.martinez.lozano:
Updated m1 kernel :)

https://github.com/CML/amlogic_m1_kernel

Tested with p4dV3 (Ramos W10) and Sirius(Gadmei T820).

NEON optimizations and HW accel video integration

https://github.com/SuperICS/android_bionic

https://github.com/SuperICS/android_frameworks_base

For HW accel is needed packages/amloigc/LibPlayer

Regards.
[Miscellaneous Android Development] Christian Troy:
someone has donated me an elf2 and i was trying to build cm9... I'm at a good point right now but there's one big issue (the same thing that happens on my rk3066 port).

some popups (and the lockscreen) have graphic glitches. for example the popup when you add/modify a wifi network flickers like hell... i have no idea on how to fix it and it's really annoying :/

anyone has some hints?
[Miscellaneous Android Development] c.martinez.lozano:
Hi,

On Amlogic devices you can use hwcomposer and gralloc propietaries. (Really exist source from filtered from Ainol, but you can use .so files directly)

On others.. maybe you need to change any things on gralloc

Regards.
[Miscellaneous Android Development] Christian Troy:
it's something really weird because i've fetched ainol's sources and built them and it worked fine. I've even tried to use the prebuilt gralloc and hwcomposer but the same thing happened... i really don't have any clue :/
[Miscellaneous Android Development] c.martinez.lozano:
mmm strange,

Are you using BoardConfig.mk and overlay as "base" for your device? with this and propietaries i said works ok on my devices.

You can try.. this propietaries. (obsolete because i'm integrating this on source)

https://github.com/SuperICS-Devices/android_vendor_amlogic_common

And a sample of working device(on common i need to commit things)

https://github.com/SuperICS-Devices/android_device_amlogic_common

https://github.com/SuperICS-Devices/android_device_amlogic_sirius

Is not CM9, but is similar (AOKP+CM9 merged frameworks)

Regards
[Miscellaneous Android Development] fun_:
did you add hwui.render_dirty_regions=false to build.prop?
[Miscellaneous Android Development] c.martinez.lozano:
EDIT: upps i don't see your user xD

Regards.
[Miscellaneous Android Development] Christian Troy:
# cat system/build.prop | grep dirty
1|root@android:/ #

adding this did the trick! thank you very much! i totally forgot about it ;)

this will fix my rk3066 as well i guess, tomorrow morning i'll give it a try

thanks to both of you
[Miscellaneous Android Development] navishade:
c.martinez.lozano

Sorry i find it :good: Do you know where to change CPU Mhz?
[Miscellaneous Android Development] c.martinez.lozano:
https://github.com/CML/amlogic_m1_kernel/blob/ICS/kernel/arch/arm/mach-meson/clock.c

Change max value:

static struct clk a9_clk = {
.name = "a9_clk",
.rate = 600000000,
.min = 200000000,
#if defined(CONFIG_MACH_MESON_8726M_REFC03) || defined(CONFIG_MACH_MESON_8726M_REFC06)||defined(CONFIG_MACH_MESON_8726M_REFC09)
.max = 750000000,
#elif defined(CONFIG_MACH_MESON_8726M_REFC08)
.max = 800000000,
#elif defined(CONFIG_MACH_MESON_8726M_REFB10) || defined(CONFIG_MACH_MESON_8726M_REFB12) || defined(CONFIG_MACH_MESON_8726M_REFA00)
.max = 1000000000,
#else
.max = 850000000,
#endif
.set_rate = clk_set_rate_a9_clk,
};

Regards
[Miscellaneous Android Development] navishade:
c.martinez.lozano

Thanks a lot.

But when I try to build a kernel i got next:

make distclean -j2 ARCH=arm CROSS_COMPILE=/home/navi/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
navi-Aspire-5520 kernel # make p4d_v3_defconfig -j2 ARCH=arm CROSS_COMPILE=/home/navi/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
HOSTCC scripts/basic/fixdep
HOSTCC scripts/basic/docproc
HOSTCC scripts/basic/hash
HOSTCC scripts/kconfig/conf.o
scripts/kconfig/conf.c: In function ‘conf_sym’:
scripts/kconfig/conf.c:159:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:231:6: warning: variable ‘type’ set but not used [-Wunused-but-set-variable]
scripts/kconfig/conf.c:307:9: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:105:8: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
HOSTCC scripts/kconfig/kxgettext.o
SHIPPED scripts/kconfig/zconf.tab.c
SHIPPED scripts/kconfig/lex.zconf.c
SHIPPED scripts/kconfig/zconf.hash.c
HOSTCC scripts/kconfig/zconf.tab.o
HOSTLD scripts/kconfig/conf
arch/arm/configs/p4d_v3_defconfig:1:warning: unexpected data
#
# configuration written to .config
#
navi-Aspire-5520 kernel # make uImage -j2 ARCH=arm CROSS_COMPILE=/home/navi/CodeSourcery/Sourcery_G++_Lite/bin/arm-none-eabi-
scripts/kconfig/conf -s arch/arm/Kconfig
CHK include/linux/version.h
UPD include/linux/version.h
CHK include/generated/utsrelease.h
UPD include/generated/utsrelease.h
HOSTCC scripts/genksyms/genksyms.o
CC scripts/mod/empty.o
cc1: error: unrecognized command line option "-Wunused-but-set-variable"
make[2]: *** [scripts/mod/empty.o] Error 1
make[1]: *** [scripts/mod] Error 2
make[1]: *** Waiting for unfinished jobs....
SHIPPED scripts/genksyms/lex.c
SHIPPED scripts/genksyms/parse.h
SHIPPED scripts/genksyms/keywords.c
SHIPPED scripts/genksyms/parse.c
HOSTCC scripts/genksyms/lex.o
HOSTCC scripts/genksyms/parse.o
HOSTLD scripts/genksyms/genksyms
make: *** [scripts] Error 2

What is wrong?
[Miscellaneous Android Development] c.martinez.lozano:
ups, delete -Wunused-but-set-variable on kernel/Makefile it's for linaro and i test it's not needed

Regards
[Miscellaneous Android Development] navishade:
c.martinez.lozano

thank you very much for help

I am delete line. And i got this error : :crying:

make[1]: *** No rule to make target `firmware/broadcm_4329/sdio-g-cdc-full11n-reclaim-roml-wme-idsup.bin', needed by `firmware/broadcm_4329/sdio-g-cdc-full11n-reclaim-roml-wme-idsup.bin.gen.o'. Stop.
make[1]: *** Waiting for unfinished jobs....
MK_FW firmware/broadcm_4329/sdio-g-cdc-full11n-reclaim-roml-wme-idsup.bin.gen.S
make: *** [firmware] Error 2
make: *** Waiting for unfinished jobs....

Regards
[Miscellaneous Android Development] c.martinez.lozano:
Ummm try to put at line 175 of kernel/firmware/Makefile

echo " .incbin \"$(pwd)/../$(2)\""	>>$@;\

instead of

echo " .incbin \"$(2)\""	>>$@;\

But i recommend you to use linaro toolchain, the latest wokrs with m1 kernel is https://launchpad.net/linaro-toolch...-linux-gnueabi-2012.04-20120426_linux.tar.bz2

Kernel boots faster with this toolchain.

Regards
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

while navishade building kernel, I study the folder system. In build.prop from another M1-devices is

# Enable player buildin

media.amsuperplayer.enable=true

media.amplayer.enable-acodecs=asf,wav,aac,mp3,m4a,ape,flac,alac

media.amplayer.enable=true

media.amsuperplayer.m4aplayer=STAGEFRIGHT_PLAYER

media.amsuperplayer.defplayer=PV_PLAYER

media.amplayer.thumbnail=true

but for music in my ROM it should be:

media.amsuperplayer.enable=true

media.amplayer.enable-acodecs=asf,wav

media.amplayer.enable=true

media.amplayer.support-exname="divx,h264,avi,ts,m2ts,mkv,mp4,mpg,mpeg,rm,rmvb,wmv,ts,dat,vob,vc1"

media.amplayer.support-exname1="mp2,mp3,ac3"

media.amsuperplayer.m4aplayer=STAGEFRIGHT_PLAYER

media.amsuperplayer.defplayer=PV_PLAYER

media.amplayer.thumbnail=true

as in stock ROM
[Miscellaneous Android Development] c.martinez.lozano:
media.amplayer.support-exname not exists on Ainol source

Regards
[Miscellaneous Android Development] kupyxa4444:
what do you mean?
[Miscellaneous Android Development] lazyfai:
Ramos W19 is also AML8726-M based tablet from vendor Ramos, will it be running as well?

If I want to build myself from source, any tutorial on it?
[Miscellaneous Android Development] c.martinez.lozano:
Not exist on source we have, means that with our source will be ignored.

Regards.
[Miscellaneous Android Development] navishade:
I replace files for brodcm_4923 from other source "sdio-g-cdc-full11n-....bin" , "nvram" , ,"nvram.txt.genS" ,"sdio-g-cdc-full11n-....bin.gen.S"

and edit path on "nvram.txt.genS" and "sdio-g-cdc-full11n-....bin.gen.S"

So kernel is build, but when i true run it, i cant see logcat :

List of devices attached is empty
[Miscellaneous Android Development] c.martinez.lozano:
You mount on yaffs con updater-script? and on init.rc?

See my initramfs for v3(W10) or Sirius(GadmeeiT820)

W10 SuperOSR ROM http://bit.ly/Tb73Cr (it's in phone mode, to see on tablet mode change dpi to 120dpi)

Gadmei T820 SuperOSR ROM http://bit.ly/OFqT63 (uploading 40min left.)

Regards.
[Miscellaneous Android Development] kupyxa4444:
thank you from me and Navishade
[Miscellaneous Android Development] navishade:
c.martinez.lozano

When I try to [play video MKV format audio is hissing , latency is 4-5 second. Sound Quality:AC3 192kb /s

I am using Moboplayer and embedded player.

but basically it works. thanks

p.s:

My kernel weighs 2.8 mb whith your initram.

But i cant run from your sourse kernel for debaging or change. just will not start. and there is no log

Regards.
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

to building kernel you used this konfig: https://github.com/CML/amlogic_m1_kernel/blob/ICS/kernel/arch/arm/configs/p4d_v3_defconfig ?
[Miscellaneous Android Development] c.martinez.lozano:
For W10 yes :)

Regards
[Miscellaneous Android Development] kupyxa4444:
thanks, but what with video (see navishades post)
[Miscellaneous Android Development] kupyxa4444:
somebody can tell me, how recompilr framework-res.apk from CM? Uncompile is ok, but when i compile i have erorrs:
[Miscellaneous Android Development] c.martinez.lozano:
Talking about ROM or kernel?

I will see it on kernel, because i think i have lost something on last commit.

Regards.
[Miscellaneous Android Development] navishade:
Talking about kernel .. your kernel from source is 2.5 mb , but when i true build whith your config , my kernel is 2.8 mb.

What is wrong. I don't change anything...

Regards
[Miscellaneous Android Development] c.martinez.lozano:
1.- Your initramfs is the same of my kernel?

2.- If you build with a different toolchain, size can change. (android 4.4.3 toochain differs with codesourcery and it differs with Linaro)

3.- I compiled my kernel with Linaro toolchain i posted to yo after.

4.- Size not must be relevant, your build works?

I solved audio problems, i try to upload it today.

Regards.
[Miscellaneous Android Development] navishade:
1. - Yes. I don't change it

2. No

3 Linaro toolchain i posted to yo after. Yes, i use it.

4. No. i can't see logcat on adb.

Thanks

Regards.
[Miscellaneous Android Development] c.martinez.lozano:
1.- OK

2-3-4.-Ummm i'll send you exactly toolchain i'm using, but you can try with codesourcery(not all Linaro toolchains works with this kernel)

Regards.
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

In you ROM quickly the battery sits down. Touch screen works not currently (~2-3 mm along the edges of the screen is "dead zone"). you have any ideas how fix it?

Thanks
[Miscellaneous Android Development] c.martinez.lozano:
W10 need's a fix on audio drivers, because with suspend you lost sound. To prevent it i force a wakelock to prevent suspend (see end of init.amlogic.rc file).

This is the reason of battery comsuption on suspend.

For TS... i tried to fix it, but without advances. I'm sure is a kernel bug con TS driver, but with all public kernels i tried.. have the same results.

Only works as expected con MIUMIU ROMS, with Ramos kernel(not public).

Regards.
[Miscellaneous Android Development] kupyxa4444:
I saw dependence of a kernel with build.prop

when I used with my stock kernel (rengzy@ramos-corp) this:

I haven`t sound in music too. I must using in build.prop only

When I used you kernel, build.prop shall contain option "1"

have you any ideas about it? In ES task is wrighten display resolution 800*444. it can be connected to TS?
[Miscellaneous Android Development] c.martinez.lozano:
amports have changes from froyo kernel to mine.

With my kernel you use HW to play music on more codecs, with stock kernel you use SW for rest of codecs.

Regards.
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

when I building kernel (from your konfig with some changes) I must repack uimage_recovery or not?
[Miscellaneous Android Development] krankdroid:
How would this ROM fit on the Amlogic 8726M3 Cortex A9 Android 4.0 Google TV box?
[Miscellaneous Android Development] kupyxa4444:
c.martinez.lozano

hm....microphone and remote does not works?? Or it`s only on my tablet? And when I use usb-switch tablet saw only one device
[Miscellaneous Android Development] c.martinez.lozano:
I solved mic. Remote on kernel wokrs, but needs changes and implementation on ROM. It's a TODO of my ROM.

Regards.
[Miscellaneous Android Development] kupyxa4444:
what`s about USB-swith (usb-hub?! sorry? don`t know, how it English)? and you used stock kernel? If yes, that what kernel?

thanks
[Miscellaneous Android Development] Eyekool:
+1
[Miscellaneous Android Development] dgcruzing:
Keeping an eye on it..

as been sent from this thread to check it out..

http://androidforums.com/showthread.php?p=4987788

We need it on our box's

ARM CORTEX A9, frequency is 800MHz-1GHz,RAM is 1G,built in 2G-32G flash memory

http://www.geniatech.com/pa/atv3000.asp
[Miscellaneous Android Development] paccer:
I've purchased an "G-box Midnight", which seems to have an Amlogic Meson3 (8726M SKT SH) CPU,

This came in a "Android TV BOX, Google Android 4.0"-box,

(is this the same as krankdroid and Eyekool is asking about?)

I haven't had the guts to flash this CWM/CM (yet?.. i'm still researching), but this looks very interesting!

I was wondering if someone had any comment on whether it would brick my device or not, how i'd find out, and/or how i'd avoid it etc.

getting CWM recovery to my box would probably be a good start, which is one of the reasons why i'm here

Specs:

Mali400 High Performance HD GPU
A9 Neon Cortex CPU
1GB RAM
4GB* Storage
USB/SD Storage Extendable
802.11n 150mbps Wifi
10/100 Ethernet Port
HDMI Out
A/V Out
4x USB 2.0 Ports

EDIT:

Sorry, apparently, G-Box Midnight is an Amlogic M3,

This CWM/CM is apparently for Amlogic M1 - so its very likely that it wouldn't work
[Miscellaneous Android Development] kupyxa4444:
how building uImage-recovery with new kernel?

Thanks