Need Help on building LineageOS20 for N2

Post Reply
vices
Posts: 8
Joined: Tue Oct 10, 2023 8:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Need Help on building LineageOS20 for N2

Post by vices »

Hello,
Starting a new thread on ways to build lineageos20 for OdroidN2 as it is not included on the supported devices on the lineageOS website.
I already have a basic knowledge of how to build, I have a u-boot.bin and kernel from https://github.com/voodik/android_kerne ... 2_t_64_r44
I'm using a different device tree g12b_a311d_w200_b4g.dts as I don't yet fully understand the dts included on the android_kernel_voodik_odroidg12

I also downloaded the device and vendor files from
https://github.com/LineageOS/android_de ... g12-common
https://github.com/LineageOS/android_de ... gic_common
https://github.com/TheMuppets/proprieta ... g12-common

Currently, the device is booting but I it gets stuck on a bootloop with the logcat displaying these messages.

mali_kbase version is r31p0 but I also tested it with r16p0 and I get the same result.

Is this about the dts file or is this about the mali driver and libGLES? Would appreciate any comments that could point me on what to check. Thank you.


-----------------------------------DMESG ------------------------

Code: Select all

[    7.741045@1] mali_kbase: loading out-of-tree module taints kernel.
[    7.765549@4] mali ffe40000.bifrost: Continuing without Mali regulator control
[    7.767188@4] mali ffe40000.bifrost: max pp is 2
[    7.771748@4] mali ffe40000.bifrost: set min pp to default 1
[    7.777370@4] mali ffe40000.bifrost: min pp is 1
[    7.782003@4] mali ffe40000.bifrost: set min clk default to 0
[    7.787679@4] mali ffe40000.bifrost: min clk  is 0
[    7.792446@4] mali ffe40000.bifrost: hiu io source  0xffffff8008e21000
[    7.798946@4] mali ffe40000.bifrost: hiu io source  0xffffff8008e29000
[    7.805435@4] mali ffe40000.bifrost: num of pp used most of time 1
[    7.811593@4] mali ffe40000.bifrost: clock dvfs cfg table size is 6
[    7.817893@4] mali ffe40000.bifrost: max clk set 4
[    7.822599@4] mali ffe40000.bifrost: max clk  is 4
[    7.827361@4] mali ffe40000.bifrost: turbo clk set to 5
[    7.832564@4] mali ffe40000.bifrost: turbo clk  is 5
[    7.837505@4] mali ffe40000.bifrost: default clk set to 4
[    7.842873@4] mali ffe40000.bifrost: default clk  is 4
[    7.847993@4] mali ffe40000.bifrost: ====================0====================
[    7.847993@4] clk_freq= 285714285, clk_parent=fclk_div7, voltage=1150, keep_count=5, threshod=<0 76>, clk_sample=285
[    7.865713@4] mali ffe40000.bifrost: ====================1====================
[    7.865713@4] clk_freq= 400000000, clk_parent=fclk_div5, voltage=1150, keep_count=5, threshod=<152 207>, clk_sample=400
[    7.883616@4] mali ffe40000.bifrost: ====================2====================
[    7.883616@4] clk_freq= 500000000, clk_parent=fclk_div4, voltage=1150, keep_count=5, threshod=<38 194>, clk_sample=500
[    7.901522@4] mali ffe40000.bifrost: ====================3====================
[    7.901522@4] clk_freq= 666666666, clk_parent=fclk_div3, voltage=1150, keep_count=5, threshod=<150 203>, clk_sample=666
[    7.919418@4] mali ffe40000.bifrost: ====================4====================
[    7.919418@4] clk_freq= 800000000, clk_parent=fclk_div2p5, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=800
[    7.937560@4] mali ffe40000.bifrost: ====================5====================
[    7.937560@4] clk_freq= 800000000, clk_parent=fclk_div2p5, voltage=1150, keep_count=5, threshod=<230 255>, clk_sample=800
[    7.955637@4] mali ffe40000.bifrost: clock dvfs table size is 6
[    7.961606@4] mali_plat=ffffff8001cbc590
[    7.965696@4] find tzd id: 0
[    7.968337@4] gpu cooling register okay with err=0
[    7.973334@4] find tzd id: 0
[    7.975934@4] gpu core cooling register okay with err=0
[    7.981149@4] shader_present=3, tiler_present=1, l2_present=1
[    7.986912@4] Mali_pwr_on:gpu_irq : 200
[    7.990837@4] hrtimer: interrupt took 8541 ns
[    7.995206@4] mali ffe40000.bifrost: GPU identified as 0x2 arch 7.2.1 r0p0 status 0
[    8.002835@4] mali ffe40000.bifrost: Using coherency mode 0 set from dtb
[    8.010737@4] mali ffe40000.bifrost: Probed as mali0

----------------------------------- LOGCAT --------------------------

Code: Select all

01-01 00:00:34.215  3549  3553 E mali    : ERROR: The DDK (built for 0x70030000 r0p0 status range [0..15]) is not compatible with this Mali GPU device, /dev/mali0 detected as 0x7212 r0p0 status 0.
01-01 00:00:34.215  3549  3553 E mali    : Failed creating base context during DDK compatibility check.

01-01 00:00:34.245  3549  3553 W libEGL  : eglInitialize(0xf1141050) failed (EGL_NOT_INITIALIZED)
01-01 00:00:34.246  3549  3553 W RenderEngine: no suitable EGLConfig found, trying a simpler query
01-01 00:00:34.246  3549  3553 F RenderEngine: no suitable EGLConfig found, giving up
01-01 00:00:34.247  3549  3553 F libc    : Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 3553 (surfaceflinger), pid 3549 (surfaceflinger)
01-01 00:00:34.394  3590  3590 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
01-01 00:00:34.394  3590  3590 F DEBUG   : LineageOS Version: '20.0-20240111-UNOFFICIAL'
01-01 00:00:34.394  3590  3590 F DEBUG   : Build fingerprint: 'ADT-3/adt3/adt3:11/RTT1.200909.003.A2/6832896:user/release-keys'
01-01 00:00:34.394  3590  3590 F DEBUG   : Revision: '0'
01-01 00:00:34.394  3590  3590 F DEBUG   : ABI: 'arm'
01-01 00:00:34.394  3590  3590 F DEBUG   : Timestamp: 2019-01-01 00:00:34.296625719+0000
01-01 00:00:34.394  3590  3590 F DEBUG   : Process uptime: 1s
01-01 00:00:34.394  3590  3590 F DEBUG   : Cmdline: /system/bin/surfaceflinger
01-01 00:00:34.394  3590  3590 F DEBUG   : pid: 3549, tid: 3553, name: surfaceflinger  >>> /system/bin/surfaceflinger <<<
01-01 00:00:34.394  3590  3590 F DEBUG   : uid: 1000
01-01 00:00:34.394  3590  3590 F DEBUG   : signal 6 (SIGABRT), code -1 (SI_QUEUE), fault addr --------
01-01 00:00:34.394  3590  3590 F DEBUG   : Abort message: 'no suitable EGLConfig found, giving up'
01-01 00:00:34.394  3590  3590 F DEBUG   :     r0  00000000  r1  00000de1  r2  00000006  r3  f0dbbaf0
01-01 00:00:34.394  3590  3590 F DEBUG   :     r4  f0dbbb00  r5  f0dbbae8  r6  00000ddd  r7  0000016b
01-01 00:00:34.395  3590  3590 F DEBUG   :     r8  00000000  r9  ffffffff  r10 f0dbbaf0  r11 f3a85834
01-01 00:00:34.395  3590  3590 F DEBUG   :     ip  00000de1  sp  f0dbbad0  lr  f29b9bf7  pc  f29b9c0a
01-01 00:00:34.395  3590  3590 F DEBUG   : backtrace:
01-01 00:00:34.395  3590  3590 F DEBUG   :       #00 pc 00039c0a  /apex/com.android.runtime/lib/bionic/libc.so (abort+138) (BuildId: 1400980bab496408e68c22c32baa4779)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #01 pc 000048af  /system/lib/liblog.so (__android_log_default_aborter+6) (BuildId: 688c291851080783fe41418f6183344d)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #02 pc 00004fbf  /system/lib/liblog.so (__android_log_assert+158) (BuildId: 688c291851080783fe41418f6183344d)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #03 pc 003f658b  /system/bin/surfaceflinger (android::renderengine::gl::GLESRenderEngine::chooseEglConfig(void*, int, bool)+322) (BuildId: a9e5e09c2c109098876ac0954e13df3b)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #04 pc 004062b3  /system/bin/surfaceflinger (android::renderengine::skia::SkiaGLRenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)+114) (BuildId: a9e5e09c2c109098876ac0954e13df3b)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #05 pc 003f53b1  /system/bin/surfaceflinger (std::__1::__function::__func<android::renderengine::RenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)::$_1, std::__1::allocator<android::renderengine::RenderEngine::create(android::renderengine::RenderEngineCreationArgs const&)::$_1>, std::__1::unique_ptr<android::renderengine::RenderEngine, std::__1::default_delete<android::renderengine::RenderEngine> > ()>::operator()() (.f853b653ec5f0649c15b11b979e782e0)+4) (BuildId: a9e5e09c2c109098876ac0954e13df3b)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #06 pc 004034ff  /system/bin/surfaceflinger (android::renderengine::threaded::RenderEngineThreaded::threadMain(std::__1::function<std::__1::unique_ptr<android::renderengine::RenderEngine, std::__1::default_delete<android::renderengine::RenderEngine> > ()>)+262) (BuildId: a9e5e09c2c109098876ac0954e13df3b)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #07 pc 00405243  /system/bin/surfaceflinger (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, void (android::renderengine::threaded::RenderEngineThreaded::*)(std::__1::function<std::__1::unique_ptr<android::renderengine::RenderEngine, std::__1::default_delete<android::renderengine::RenderEngine> > ()>), android::renderengine::threaded::RenderEngineThreaded*, std::__1::function<std::__1::unique_ptr<android::renderengine::RenderEngine, std::__1::default_delete<android::renderengine::RenderEngine> > ()> > >(void*)+94) (BuildId: a9e5e09c2c109098876ac0954e13df3b)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #08 pc 00083d5f  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+40) (BuildId: 1400980bab496408e68c22c32baa4779)
01-01 00:00:34.395  3590  3590 F DEBUG   :       #09 pc 0003abad  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30) (BuildId: 1400980bab496408e68c22c32baa4779)
01-01 00:00:34.404  3590  3590 E crash_dump32: unable to connect to activity manager: No such file or directory

User avatar
mad_ady
Posts: 12061
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4 (HC1, HC2), C1+, C2, C4 (HC4), N1, N2, N2L, H2, H3+, Go, Go Advance, M1, M1S
Location: Bucharest, Romania
Has thanked: 663 times
Been thanked: 1309 times
Contact:

Re: Need Help on building LineageOS20 for N2

Post by mad_ady »

If it's an N2, does your build boot with the dtbs from android_kernel_voodik_odroidg12?
If it does, you'll need to compare what differs from your build.

User avatar
joerg
Posts: 2123
Joined: Tue Apr 01, 2014 2:14 am
languages_spoken: german, english, español
ODROIDs: C1, C1+, C2, N1, N2, C4, M1, M1S
Location: Germany
Has thanked: 221 times
Been thanked: 492 times
Contact:

Re: Need Help on building LineageOS20 for N2

Post by joerg »

The prebuilt libraries you use are not for this GPU version.

Code: Select all

01-01 00:00:34.215  3549  3553 E mali    : ERROR: The DDK (built for 0x70030000 r0p0 status range [0..15]) is not compatible with this Mali GPU device, /dev/mali0 detected as 0x7212 r0p0 status 0.
01-01 00:00:34.215  3549  3553 E mali    : Failed creating base context during DDK compatibility check.
I faced the same during my C4 LOS20 with Kernel 6.6 development.
There are special prebuilt openGL libraries for N2, e.g in the source tree of Hardkernel's Pie (r16), or on ARM download page: https://developer.arm.com/downloads/-/m ... user-space.
There are some for N2 Android. I think @voodik has built LOS with r44 drivers. Then I would recommend to use also the r44 kernel source driver from their webpage: https://developer.arm.com/downloads/-/m ... ure-kernel.
We can't make this libraries by our self, or we have to pay for the DDK.
Sadly I couldn't find r44 prebuilt openGL libraries for C4, so jumped to kernel in build Panfrost driver and Mesa3d, but I lost Vulkan and openCl with it.
These users thanked the author joerg for the post:
odroid (Mon Jan 15, 2024 11:19 am)

vices
Posts: 8
Joined: Tue Oct 10, 2023 8:04 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: Need Help on building LineageOS20 for N2

Post by vices »

Hi,

Did you also have a problem following the README instructions? I get errors when I integrate the user space driver on lineage os 20

Offending entries:
android.hardware.graphics.allocator@4.0-impl-arm
android.hardware.graphics.allocator@4.0-service
android.hardware.graphics.allocator@4.0.vndk-sp
android.hardware.graphics.composer@2.1-impl
android.hardware.graphics.mapper@4.0.vndk-sp
build/make/core/main.mk:1312: error: Build failed.
00:12:00 ckati failed with: exit status 1

Thanks.

notime2d8
Posts: 366
Joined: Thu Dec 11, 2014 4:40 am
languages_spoken: english
Has thanked: 116 times
Been thanked: 167 times
Contact:

Re: Need Help on building LineageOS20 for N2

Post by notime2d8 »

vices wrote:
Sat Feb 10, 2024 1:16 am
Hi,

Did you also have a problem following the README instructions? I get errors when I integrate the user space driver on lineage os 20

Offending entries:
android.hardware.graphics.allocator@4.0-impl-arm
android.hardware.graphics.allocator@4.0-service
android.hardware.graphics.allocator@4.0.vndk-sp
android.hardware.graphics.composer@2.1-impl
android.hardware.graphics.mapper@4.0.vndk-sp
build/make/core/main.mk:1312: error: Build failed.
00:12:00 ckati failed with: exit status 1

Thanks.
Did you ever figure this out? I got everything to build, even tried the same Android version in the readme. Just got more errors egl and hwcomposer.

Post Reply

Return to “Android”

Who is online

Users browsing this forum: Google [Bot] and 1 guest