[ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post Reply
User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

[ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Call for alpha test : LineageOS-18.1 Android 11 for ODROID-C4/HC4

Tested only on EMMC so avoid sdcards

android-11.png
android-11.png (52.3 KiB) Viewed 3543 times

Selfinstall Images with preinstalled Gapps
64bit You can find latest version here

Selfinstall ATV Images
64bit You can find latest version here

Image flashing guide.
https://wiki.odroid.com/troubleshooting ... hing_tools

For Google apps please read this.
https://www.google.com/android/uncertified/
Also after you register your Android framework ID, please wait some time (30-60 minutes) then reboot Odroid and try to add Google Account.

Extra:
  • tvheadend
  • androidvnc server
  • aptX aptXHD ldac Bluetooth codecs

Changelog:

Code: Select all

20211025 Alpha-v0.5
* Now you can put custom *.rc files to /odm/etc/init folder
* Minor cleanup/fixes
* Merge latest BSP changes
* Lineage merge with upstream (android-11.0.0_r46)
20210716 Alpha-v0.4
* Fixed Realtek 8821CU WIFI/Bluetooth support
* Fixed Miracast with Samsung Smart View
* Minor cleanup/fixes
* Lineage merge with upstream
* Merge latest BSP changes
20210326 Alpha-v0.3
* Fixed Google Maps/Earth issues
* Fixed Kiosk mode
* Fixed remounts with Magisk installed
* Added new External Camera HAL(to use old one setprop persist.camera.legacy_hal true)
* Added WIFI Direct feature (disabled by default)
* Added Miracast(WFD) sink/source support
* Implemented Microsoft WFD (Display projection) feature (requires WIFI Direct)
* Added pinch zoom by mouse wheel
* Added mouse right click option to Odroid Settings
* Added setting rotate display after reboot
* Added several Joystick keylayout configs (fixed broken ones)
* Kernel added Realtek 8192eu 8188fu WIFI drivers
* Kernel added Mediatek mt7601u mt7610u WIFI drivers
* Sync wifi_id_list with drivers (add more missing vid/pid)
* Merge latest BSP changes
* Lineage merge with upstream (android-11.0.0_r32) LineageOS-18.1
* Gapps updated
* Minor cleanup/fixes
20201203 Alpha-v0.2
* Fixed Recovery HDMI output with custom resolution
* Fixed i2s1 output on J7
* Added hifishield, hifishield2 dtb overlays
* Added Realtek 8814au WIFI driver
* Kernel enable CONFIG_HID_SMARTJOYPLUS
* Bring back ODEX for boot and system jars.
* Bring back HDMI-CEC feature but disabled globally. (Not tested, enable it from OdroidSettings>MIsc tab if your TV support CEC)
* Minor cleanup/fixes
20201118 Alpha-v0.1
* first alpha release
Last edited by voodik on Tue Oct 26, 2021 9:52 pm, edited 8 times in total.
These users thanked the author voodik for the post (total 6):
daimon (Thu Nov 19, 2020 1:23 am) • joerg (Thu Nov 19, 2020 2:47 am) • kyoumaH (Thu Nov 19, 2020 3:25 am) • multinet (Fri Mar 26, 2021 6:34 pm) • legsim (Wed May 26, 2021 9:43 pm) • mrsurf (Sat Jul 03, 2021 6:48 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Tips:

Root Access
Magisk-21.1


To enable GPS support

Code: Select all

Odroid Settings> Misc settings> Enable GPS (Most of USB GPS modules is Plug and Play)
If your GPS is connected to UART or not detected you need set proper GPS serial node manually.
Change this lines according your GPS dongle in /vendor/build.prop (adb remount)

Code: Select all

ro.kernel.android.gps=ttyS1
ro.kernel.android.gps.speed=9600
How to configure usb_modeswitch
You can find usb_modeswitch.conf sample config file in /odm/ partition.
Change this file depending your hardware, run usb_modeswitch and check logcat is everything ok

Code: Select all

usb_modeswitch -c /odm/usb_modeswitch.conf
If configuration working lets enable auto trigger usb_modeswitch via prop

Code: Select all

setprop persist.usbmodem_vidpid 12d1:1f01
Value 12d1:1f01 is VID/PID of device which need monitored.
If your device after switching return with ssame VID/PID to avoid loop set

Code: Select all

setprop persist.usbmodem_vidpid_same true
In this case every second device attach event will be ignored .


List of custom properties introduced by me

Disable Bluetooth service globally. If you don't have a compatible USB Bluetooth dongle BT service keep crashing.
So disable it by default.

Code: Select all

persist.disable_bluetooth true|false default:true
Enable/Disable Bluetooth A2DP Sink support

Code: Select all

persist.service.bt.a2dp.sink true|false default:false
Enable/Disable GPS support

Code: Select all

persist.disable_location true|false default:false
Enable/Disable WiFi power saving. Most of USB WiFi modules have a problems with power saving mode.
So Disable it by default.

Code: Select all

persist.enable_wlan_ps true|false default:false
Some AP have a wrong timestamp and Android framework filter out this AP.
If You don't see your AP in WiFi scan results set this property true.

Code: Select all

persist.wifi_fixts true|false default:false
WiFi Linkstats is feature depending driver implementation, at this moment almost all USB drivers does not implement this feature.
Some of them have Linkstats support but it working wrong and crash whole WiFi service.
So i disable it by default.

Code: Select all

persist.disable_wifi_linkstats true|false default:true
Enable/Disable Shutdown without confirmation feature.
Set it true if you want shutdown your Board without confirmation by POWER button long press.

Code: Select all

persist.pwbtn.shutdown true|false default:false
Device tree tricks
We can modify our dtbs from bootloader to Enable/Disable or change configuration of dtb nodes.
We can add those commands to boot.ini before bootm command.

Enable UART_EE_A(ttyS1) port on 40Pin Header (disabled by default)

Code: Select all

fdt set /serial@ffd24000 status "okay"
Enable GPIO Buttons (by default 4 GPIO keys konfigured as F7-F10 keys)
You can remap them at boot stage by changing "linux,code" value.
In this example we are change Button1 and Button2 to function as Volume UP/DOWN.
And at the last line we need Enable GPIO buttons (disabled by default)

Code: Select all

fdt set /gpio_keys_polled/button@1 "linux,code" "<115>"
fdt set /gpio_keys_polled/button@2 "linux,code" "<114>"
fdt set /gpio_keys_polled status "okay"
List of Linux keycodes
https://github.com/hardkernel/linux/blo ... des.h#L189

Google Services Framework Android ID
You can get it from Odroid Settings> Misc > GSF ID
To get GSF Android ID from cmd use this commands

Windows command line

Code: Select all

adb shell sqlite3 /data/data/com.google.android.gsf/databases/gservices.db 'select * from main where name = \"android_id\";'
Terminal app

Code: Select all

sqlite3 /data/data/com.google.android.gsf/databases/gservices.db 'select * from main where name = "android_id";'
Last edited by voodik on Thu Nov 19, 2020 3:59 am, edited 1 time in total.
These users thanked the author voodik for the post (total 2):
odroid (Thu Nov 19, 2020 10:45 am) • daimon (Sun Jul 18, 2021 1:15 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Ready :ugeek:

Some notes.
The build in Alpha stage, some features not ported/tested yet(e.g USB permission dialog disable, etc).
HDMI-CEC disabled by me, it makes system not bootable. So I need more deep investigate code to understand root cause.

Update image also available.

Code: Select all

https://oph.mdrjr.net/voodik/S905X3/ODROID-C4/Android/LineageOTA-18.0/builds/full/
I tested only update from Android 10. In any case backup your data first.
Update image is a 'two-step' OTA package. So update process restart system 3 times.
To save space on system partition DEXPREOPT is disabled. First boot after update took little longer and some bootanimation brakes occurs, but it just one time after update.
Don't' worry.
With more space on system partition I returned Google Search app to build. Because Assistant doesn't work when Search installed from Play Store.
These users thanked the author voodik for the post:
odroid (Thu Nov 19, 2020 10:45 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20201203 Alpha-v0.2
* Fixed Recovery HDMI output with custom resolution
* Fixed i2s1 output on J7
* Added hifishield, hifishield2 dtb overlays
* Added Realtek 8814au WIFI driver
* Kernel enable CONFIG_HID_SMARTJOYPLUS
* Bring back ODEX for boot and system jars.
* Bring back HDMI-CEC feature but disabled globally. (Not tested, enable it from OdroidSettings>MIsc tab if your TV support CEC)
* Minor cleanup/fixes
These users thanked the author voodik for the post:
odroid (Fri Dec 04, 2020 11:10 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

mattjbate
Posts: 1
Joined: Mon Feb 08, 2021 10:43 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by mattjbate »

Hi Voodik, This works really nicely on the C4 running on eMMC. Thank you.

I have the C4 Metal case and would like to implement fan temperature based switching. At this stage I'm not keen to try and get it controlling the speed, just on and off will do for now.

I'd be grateful if you can point me in the right direction. I've looked into many articles on Odroid GPIO usage but all seem to be Linux related, or involve building an app in Android studio to 'test' gpio operation. I've investigated the file structure around /sys/class/gpio and experimented with echo * > export - which doesn't work for me. Do I need to root the device, or best to remote in using ADB ? Or am I barking up the wrong tree ?

Sorry to be dumb but I have little experience with modding Android.

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

mattjbate wrote:
Mon Feb 08, 2021 11:13 pm
Hi Voodik, This works really nicely on the C4 running on eMMC. Thank you.

I have the C4 Metal case and would like to implement fan temperature based switching. At this stage I'm not keen to try and get it controlling the speed, just on and off will do for now.

I'd be grateful if you can point me in the right direction. I've looked into many articles on Odroid GPIO usage but all seem to be Linux related, or involve building an app in Android studio to 'test' gpio operation. I've investigated the file structure around /sys/class/gpio and experimented with echo * > export - which doesn't work for me. Do I need to root the device, or best to remote in using ADB ? Or am I barking up the wrong tree ?

Sorry to be dumb but I have little experience with modding Android.
I think @joerg can help you with GPIO more than I. He have a better experience with GPIO than me.
viewtopic.php?f=204&t=38653

BTW.
If you access device via ADB you will drop into root shell by default, so you don't need rooting it.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

hello

i've installed lineage os 18 on odroid c4

works perfectlly

i just have an issue with "google play service are updating" on some apps (fake gps ; netatmo)

My play store version is 24,5,13,21 O PR 363015067
i tried another webview version from v86 to v90) without succes

can you help me in fixing this ?

Cheers
multinet

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.0][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

multinet wrote:
Wed Mar 24, 2021 7:43 pm
hello

i've installed lineage os 18 on odroid c4

works perfectlly

i just have an issue with "google play service are updating" on some apps (fake gps ; netatmo)

My play store version is 24,5,13,21 O PR 363015067
i tried another webview version from v86 to v90) without succes

can you help me in fixing this ?

Cheers
multinet
I preparing lineage-18.1 update for C4 with new Gapps. Hope this will fix your issues.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20210326 Alpha-v0.3
* Fixed Google Maps/Earth issues
* Fixed Kiosk mode
* Fixed remounts with Magisk installed
* Added new External Camera HAL(to use old one setprop persist.camera.legacy_hal true)
* Added WIFI Direct feature (disabled by default)
* Added Miracast(WFD) sink/source support
* Implemented Microsoft WFD (Display projection) feature (requires WIFI Direct)
* Added pinch zoom by mouse wheel
* Added mouse right click option to Odroid Settings
* Added setting rotate display after reboot
* Added several Joystick keylayout configs (fixed broken ones)
* Kernel added Realtek 8192eu 8188fu WIFI drivers
* Kernel added Mediatek mt7601u mt7610u WIFI drivers
* Sync wifi_id_list with drivers (add more missing vid/pid)
* Merge latest BSP changes
* Lineage merge with upstream (android-11.0.0_r32) LineageOS-18.1
* Gapps updated
* Minor cleanup/fixes

Because minor lineage version is updated from 18.0 to 18.1 you need apply this update manually.
Download update file from here
Copy it to internal storage of your Odroid and plly update from Odroid Settings

These users thanked the author voodik for the post (total 2):
odroid (Fri Mar 26, 2021 5:25 pm) • multinet (Fri Mar 26, 2021 6:34 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

what a great news :) go for installation :)
thanks a lot

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

Installed ! it works thanks again

I've a question : i use it with a screen on portait mode (vertical)

My surprise is that the "effective" part of the screen is centered vertically. It means that the 1/3 top and the 1/3 bottom of the creen cannot be used to put icons or widgets

Is there any settings to fix that ?

Cheers
Multinet

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

multinet wrote:
Fri Mar 26, 2021 7:04 pm
Installed ! it works thanks again

I've a question : i use it with a screen on portait mode (vertical)

My surprise is that the "effective" part of the screen is centered vertically. It means that the 1/3 top and the 1/3 bottom of the creen cannot be used to put icons or widgets

Is there any settings to fix that ?

Cheers
Multinet
If you want rotate screen by default, restore rotation from Odroid settings to 0.
then edit /vendor/build.prop

Code: Select all

ro.surface_flinger.primary_display_orientation=ORIENTATION_0
set it 90 or 270

Code: Select all

ro.surface_flinger.primary_display_orientation=ORIENTATION_90
ro.surface_flinger.primary_display_orientation=ORIENTATION_270
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

Thanks

i've installed Magisk 22 but i didn't find the way to modify the file /vendor/prop

is that with that app that i can modify this file ?

Thank you

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

ok i have to root my odroid...

i will check that

possible to need help may be

for example in magisk installation guide they mention a build.img but i don't know where to find it ?

Multinet

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

multinet wrote:
Fri Mar 26, 2021 8:02 pm
ok i have to root my odroid...

i will check that

possible to need help may be

for example in magisk installation guide they mention a build.img but i don't know where to find it ?

Multinet
If you setup "adb access" via USB you don't need install magisk. You can access root adb shell and edit /vendor/build.prop via command line editors like vi or nano
BTW if you want install Magisk enable "Advanced restart" from Settings > System > Gestures > Power Menu.
Download and copy to internal storage Magisk from here
Then push power button on Navigation Bar > Restart > Recovery.
And install Magisk via recovery. Apply Update > Choose from internal storage > Magisk-v21.4.zip > Yes > Go back > Reboot System now.
Then find some build.prop editor app and try to edit /vendor/build.prop

Tested with Magisk and this https://play.google.com/store/apps/deta ... rop.editor
From left menu choose > Select file > and locate /vendor/build.prop
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

thanks I will try it

i will let you know if I succeed :)

multinet
Posts: 10
Joined: Sat Mar 04, 2017 7:44 pm
languages_spoken: english french
ODROIDs: 2*C2 and 1*C4
Has thanked: 2 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by multinet »

succeed in making my device rooted

i edited my build.prop

it restarts in portrait 270 : ok

but I still have "only" 1/3 at the middle of the screen available for putting icons or widgets

the 1/3 at top and the 1/3 and bottom are unsusable.

is that normal ?

again thak you for your precious help

legsim
Posts: 14
Joined: Sun Aug 13, 2017 7:34 am
languages_spoken: english, french
Has thanked: 1 time
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by legsim »

I'm upgrading my carputer from a C2 to a C4 and it's nice to see we have the latest Android version available for this device.

It's almost as if this ROM was tailored to my usage as I use a Huawei USB modem and my screen is mounted upside down.
By the way, this is the first time I've seen "ro.surface_flinger.primary_display_orientation" since "ro.sf.hwrotation" has been deprecated, have you made some custom implementation for this?
I feared for a second it couldn't be changed without a rebuild.

However, I can't seem to make "pwm_b-backlight" overlay work (nothing appears in /sys/class/backlight).
Do you have any clue?

Thank you for all your work, Voodik!

Erick_Estrada
Posts: 27
Joined: Fri May 28, 2021 10:12 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by Erick_Estrada »

Voodik, great work !

It would be possible to enable governor_55 on bootargs ? This works with 'official' Android 9 but it didn work in my tests with LineageOS 17 or 18.

mrsurf
Posts: 15
Joined: Fri Jul 02, 2021 5:52 am
languages_spoken: French-english
ODROIDs: Odroid C4
Has thanked: 7 times
Been thanked: 5 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by mrsurf »

hi,
i had install it on an sdcard and it works like a charm.
i'ts more time speed than android 10, maybe it's an issue with the sdcard i used.
wifi activated.
for my use it's perfect.
did not trie to print from it yet.
next step put an on/off button.

mrsurf
Posts: 15
Joined: Fri Jul 02, 2021 5:52 am
languages_spoken: French-english
ODROIDs: Odroid C4
Has thanked: 7 times
Been thanked: 5 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by mrsurf »

hi,
@voodik and others who might help, once i shutdown the RC4, i loose the wifi at boot up.
i always need to do usb_modeswitch -K -v 0bda -p 1a2b
then reboot the RC4 (can't only reboot the usb hub, usb_modeswitch -R does nothing too)
after reboot i have [ 20.562320] usbcore: registered new interface driver rtl8821cu
then lsmod gives me
Module Size Used by
8821cu 2670592 0

and now i can use wifi until next shutdown.

i've tried to put the command into boot.ini, but i does nothing (as it seems to me)

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

mrsurf wrote:
Wed Jul 07, 2021 1:15 am
hi,
@voodik and others who might help, once i shutdown the RC4, i loose the wifi at boot up.
i always need to do usb_modeswitch -K -v 0bda -p 1a2b
then reboot the RC4 (can't only reboot the usb hub, usb_modeswitch -R does nothing too)
after reboot i have [ 20.562320] usbcore: registered new interface driver rtl8821cu
then lsmod gives me
Module Size Used by
8821cu 2670592 0

and now i can use wifi until next shutdown.

i've tried to put the command into boot.ini, but i does nothing (as it seems to me)
You should add usb_modeswitch -K -v 0bda -p 1a2b to some init script.
e.g. in /vendor/etc/init/hw/init.odroid.common.rc add

Code: Select all

service init_8821cu /vendor/bin/usb_modeswitch -K -v 0bda -p 1a2b
    class core
    seclabel u:r:toolbox:s0
    user root
    group root
    disabled
    oneshot

on post-fs-data
     start init_8821cu
I checking some ways to do rtl8821cu WIFI and Bluetooth initialization at boot time. I will add it on next builds.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

mrsurf
Posts: 15
Joined: Fri Jul 02, 2021 5:52 am
languages_spoken: French-english
ODROIDs: Odroid C4
Has thanked: 7 times
Been thanked: 5 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by mrsurf »

@voodik
Rock and Roll that work great.
thank you so much.
and for others noobies like me
you have to do and adb remount
then adb shell
then nano those commands
Great.
These users thanked the author mrsurf for the post:
voodik (Thu Jul 08, 2021 2:43 am)

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20210716 Alpha-v0.4
* Fixed Realtek 8821CU WIFI/Bluetooth support
* Fixed Miracast with Samsung Smart View
* Minor cleanup/fixes
* Lineage merge with upstream
* Merge latest BSP changes
These users thanked the author voodik for the post (total 2):
mrsurf (Sat Jul 17, 2021 6:51 pm) • odroid (Wed Jul 21, 2021 10:13 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

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

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by joerg »

These days I am trying to update my C4 CarPC from 17.1 to 18.1.
It was somehow difficult to find how to route the pwm pins. I need pwm signal at pin 33 but not at pin 35. When the dtb overlay pwm_ab is loaded, both pins are occupied by pwm. I cannot anymore change the ALT for the gpio from the app GpioShutdownService, it always returns with error. This is related to some changes in pwm driver, I think.
Now I found the fdt trick to route the pwm at pin 35 to pin 15:

Code: Select all

fdt set /pinctrl@ff634480/pwmab_gpio/mux groups "GPIOX_6" "GPIOX_7"
fdt set /soc/cbus@ffd00000/pwm@1b000 pinctrl-0 <0x00000093 0x00000094>
In earlier versions, there was no pinctrl-1 that looks to pwmab_gpio.
This is to set in boot.ini, after overlay loop.
With this setting pwm_ef is not possible, because it uses also pin 15.

silverter
Posts: 2
Joined: Tue Sep 28, 2021 9:26 pm
languages_spoken: french; english; german;
ODROIDs: ODROID C4
Location: Germany
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by silverter »

@voodik:
Are you planing to release an "Android TV"-Version of this ROM?

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

silverter wrote:
Sat Oct 02, 2021 12:15 am
@voodik:
Are you planing to release an "Android TV"-Version of this ROM?
Yes. It on the way
These users thanked the author voodik for the post:
silverter (Sat Oct 02, 2021 6:39 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20211025 Alpha-v0.5
* Now you can put custom *.rc files to /odm/etc/init folder
* Minor cleanup/fixes
* Merge latest BSP changes
* Lineage merge with upstream (android-11.0.0_r46)
These users thanked the author voodik for the post (total 3):
joerg (Mon Oct 25, 2021 9:52 pm) • odroid (Tue Oct 26, 2021 9:41 am) • silverter (Tue Oct 26, 2021 8:58 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

silverter
Posts: 2
Joined: Tue Sep 28, 2021 9:26 pm
languages_spoken: french; english; german;
ODROIDs: ODROID C4
Location: Germany
Has thanked: 3 times
Been thanked: 0
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by silverter »

@Voodik: Kudos to the good work!! Still waiting for the ATV version of this ROM. If I can help anyhow, please let me know.

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

silverter wrote:
Tue Oct 26, 2021 9:00 pm
@Voodik: Kudos to the good work!! Still waiting for the ATV version of this ROM. If I can help anyhow, please let me know.
android-tv.png
android-tv.png (48.06 KiB) Viewed 637 times

:!: ATV (Android TV) is here

Selfinstall ATV Images
64bit You can find latest version here
These users thanked the author voodik for the post:
silverter (Mon Nov 01, 2021 1:19 am)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

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

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by joerg »

Hello @voodik,
I have updated to Alpha-v0.5.
Before I was able to replace the bootanimation.zip in folder /system/media, but now the folder is empty and with adb push I get error:

Code: Select all

adb: error: failed to copy 'bootanimation.zip' to '/system/media/bootanimation.zip': remote write failed: No space left on device
But bootanimation must be somewhere, as I see the stock bootanimation at boot.
Maybe I am doing something wrong or the installation is corrupted?

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

joerg wrote:
Wed Oct 27, 2021 2:44 am
Hello @voodik,
I have updated to Alpha-v0.5.
Before I was able to replace the bootanimation.zip in folder /system/media, but now the folder is empty and with adb push I get error:

Code: Select all

adb: error: failed to copy 'bootanimation.zip' to '/system/media/bootanimation.zip': remote write failed: No space left on device
But bootanimation must be somewhere, as I see the stock bootanimation at boot.
Maybe I am doing something wrong or the installation is corrupted?
Hi,

The latest google apps is bigger so you out of space in system partition.
Possible solution is downgrade it to older(smaller) version. Android still update it but updated version not on system partition.
To free up about 10MB space.
Download this
https://gitlab.opengapps.org/opengapps/ ... 214046.apk
rename it to PrebuiltGmsCore.apk
delete old one on /system/priv-app/PrebuiltGmsCore/PrebuiltGmsCore.apk
adb push PrebuiltGmsCore.apk /system/priv-app/PrebuiltGmsCore/
reboot

Also chack size of your bootanimation.zip maybe it possible make smaller.

p.s. i will try cleanup system partition with next updates, also i will check possibility to keep custom bootanimation.zip on /odm/ partition to preserve it across updates.
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

joerg wrote:
Wed Oct 27, 2021 2:44 am
Hello @voodik,
I have updated to Alpha-v0.5.
Before I was able to replace the bootanimation.zip in folder /system/media, but now the folder is empty and with adb push I get error:

Code: Select all

adb: error: failed to copy 'bootanimation.zip' to '/system/media/bootanimation.zip': remote write failed: No space left on device
But bootanimation must be somewhere, as I see the stock bootanimation at boot.
Maybe I am doing something wrong or the installation is corrupted?
Better solution :)
Download this libbootanimation.so
https://drive.google.com/file/d/1ee0vju ... sp=sharing

Code: Select all

adb push libbootanimation.so /system/lib64/
and push your bootanimation.zip to /odm/media/

Code: Select all

adb push bootanimation.zip /odm/media/
Odm bootanimation.zip is preferred than system one. It keeps across updates. and you don't need modify system partition.
These users thanked the author voodik for the post:
joerg (Wed Oct 27, 2021 6:12 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

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

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by joerg »

Thank you @voodik. I Have now my Volvo bootanimation working from /odm/media.

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

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by joerg »

So I must say I was too fast to say it works.
I had to apply the lineage update zip again, because my system was unstable, means the Lawnchair launcher has restarted periodically.
This was, because too make space, I replaced the PrebuiltGmsCore with smaller one.
After applying the alpha v0.5 update again, Lawnchair launcher is stable again.
But now I can't replace the libbootanimation.so, also if I have deleted the /system/media/bootanimation.zip.
With adb it reports no space.
With cp from Downloads folder it results in a 0 byte file.
With cat a > b it reports no space.
I don't want to touch the PrebuiltGmsCore again. Maybe you know a file that is not needed of some MByte that I can delete on system partition?
Or is possible to get rid of Gms, I don't need it, would prefer to have Android without.

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

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by joerg »

I have deleted a 32bit library as libamffmpeg.so. It's also in the lib64 directory, I think it will not result in bad behavior. So I had place to install the libbootanimation.so. But not with adb (disk full), but from adb shell with cp.
Now I have my bootanimation back. :)

User avatar
voodik
Posts: 2097
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 55 times
Been thanked: 424 times
Contact:

Re: [ROM][LineageOS 18.1][Android 11.0][voodik] for the ODROID-C4

Post by voodik »

joerg wrote:
Sat Oct 30, 2021 2:14 am
I have deleted a 32bit library as libamffmpeg.so. It's also in the lib64 directory, I think it will not result in bad behavior. So I had place to install the libbootanimation.so. But not with adb (disk full), but from adb shell with cp.
Now I have my bootanimation back. :)
Great, I include this patch and make gapps free version with next update.
These users thanked the author voodik for the post:
joerg (Sat Oct 30, 2021 2:35 pm)
Buy me a beer ;)
https://www.paypal.me/voodikjan
BTC: 377wXjEr3QsDDzRqfMco3a41wicrsv3Sfs
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io
--------------------------------------------------------
ADB enhanced PuTTY :!:
https://github.com/voodik/puttyadb/releases

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest