[ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

mad_ady wrote:
Fri Oct 16, 2020 12:47 am
Great! Is this flashable on top of alpha0.2 through Odroid utility -> Update?
Yes. Online update also should be work.
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: 1929
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 46 times
Been thanked: 290 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

MajkyM wrote:
Sat Sep 26, 2020 7:42 am
VID:PID from lsusb : Bus 002 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
I prepare test version with Realtek 8188eu driver.
https://drive.google.com/file/d/1yO2Wk1 ... sp=sharing

Can you download and check is your Wi-Fi working ?
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

macmino
Posts: 13
Joined: Sun Dec 08, 2013 8:53 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by macmino »

hi, I'm a new odroid c4 user and after tried to install CoreELEC and this new LineageOS, I cannot use the board anymore. I changed few SD card even if the CoreELEC worked the first time but now I'm in front of the Android Recovery. The crazy thing is that I'm not able to select any options because keyboard, minicom (via UART) and the TV remote doesn't works. I tried several installation (ambrian, Debian and so on but still the same issue!)

I don't know where to start so I upload some TXT files I grab from the console....plz help me :)

Thank you!

EDIT:

AAARGH!!! I just read this message "Avoid using Android on MicroSD cards!" and I'm using MicroSD !!!
Attachments
odroid-c4.txt
(14.46 KiB) Downloaded 13 times
minicom.log
(140 Bytes) Downloaded 10 times
minicom-console.txt
(11.02 KiB) Downloaded 11 times
minicom-log.txt
(525.74 KiB) Downloaded 7 times

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

But it doesn't mean that it don't work at all.
Try to format your sdcard to FAT before you flash the LineageOS image once more.

macmino
Posts: 13
Joined: Sun Dec 08, 2013 8:53 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by macmino »

joerg wrote:
Fri Oct 16, 2020 1:18 pm
But it doesn't mean that it don't work at all.
Try to format your sdcard to FAT before you flash the LineageOS image once more.
I did it already...nothing happens...I'm stuck in the loading kernel part, whatever the OS I choose

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

I have no other idea as you try another sdcard, or you try to flash a linux image or the Pie image. (To check if your C4 is o.k.)

macmino
Posts: 13
Joined: Sun Dec 08, 2013 8:53 am
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by macmino »

joerg wrote:
Fri Oct 16, 2020 10:25 pm
I have no other idea as you try another sdcard, or you try to flash a linux image or the Pie image. (To check if your C4 is o.k.)
the problem is that I don't now how to...

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

Hi @macmino, I thought of this: You flash your sdcard with a linux image that is well known that it works:
https://wiki.odroid.com/odroid-c4/os_im ... e/20200422
If this is working, your C4 is fine.
If this is not working, your sdcard or your C4 are not o.k. ,or the method you are flashing is wrong.
I prefer the dd method to flash (only on Linux host machine). On Windows (and on Linux) you have etcher.
https://wiki.odroid.com/odroid-c4/getti ... _odroid-c4
If this is also not working, think of buying another sdcard or even an emmc.

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by mad_ady »

voodik wrote:
mad_ady wrote:
Fri Oct 16, 2020 12:47 am
Great! Is this flashable on top of alpha0.2 through Odroid utility -> Update?
Yes. Online update also should be work.
I tried the online update. It downloaded fine, I did the update and it rebooted (to recovery I presume). However the screen remained dark and I couldn't see the recovery. I was connected to a Samsung TV that can do 1080p. I powercycled and it booted to a black screen again. I'm currently stuck (I will try with a serial cable on monday)

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by mad_ady »

Ok, managed to hook up a serial adapter (and a VU7A). It seems to start in recovery, but doesn't display anything. First boot is with vu7a connected via HDMI, but unpowered. Next reboot is with the vu7a powered. Most likely recovery can't display properly...
https://paste.ubuntu.com/p/KH5StvvDZR/

I'm going to try to see how to boot to system while stuck in recovery with no screen.

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by mad_ady »

Ok, not sure what I did exactly, but I got it to boot. I mounted the emmc on a different system and changed boot.ini and env.ini and manually set the VU7 resolution (was 720p before). I booted and still the screen was black (though it didn't keep saying no signal as it did before). So, I ran recovery in the serial shell, while in recovery, and it displayed the recovery screen. Couldn't get touch input to work, nor a mouse, so I rebooted (from serial) again. This time it booted to system (still dark screen). I did a new reboot, and now I got the Android screen. I checked, and it's running the Oct 15 update (so the update finished correctly).
So, scary update (for me). I'll make sure to leave the screen in autodetection mode.

One problem that I haven't fixed, sadly, is wifi performance. I'm currently using a Wifi module 5 (the old one, https://www.hardkernel.com/shop/wifi-module-5/) and I get terrible performance at a 5m distance from the AP (2.5GHz, no walls). There is very little radio interference (house), and other terminals have no problem achieving rates of 80Mbps - but the odroid with module 5 (and also module 0) gets a measly 2Mbps. It's so bad that youtube or online content has to buffer constantly. Any suggestion what I can do about it?

Thanks!

MajkyM
Posts: 7
Joined: Sat May 16, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by MajkyM »

voodik wrote:
Fri Oct 16, 2020 3:11 am
MajkyM wrote:
Sat Sep 26, 2020 7:42 am
VID:PID from lsusb : Bus 002 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
I prepare test version with Realtek 8188eu driver.
https://drive.google.com/file/d/1yO2Wk1 ... sp=sharing

Can you download and check is your Wi-Fi working ?
Downloaded. How can I update OS? Via odroid settings-> update or other way?
I tried via settings, but Odroid rebooted to recovery and nothing else happened

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

MajkyM wrote:
Thu Oct 22, 2020 3:51 am
voodik wrote:
Fri Oct 16, 2020 3:11 am
MajkyM wrote:
Sat Sep 26, 2020 7:42 am
VID:PID from lsusb : Bus 002 Device 003: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
I prepare test version with Realtek 8188eu driver.
https://drive.google.com/file/d/1yO2Wk1 ... sp=sharing

Can you download and check is your Wi-Fi working ?
Downloaded. How can I update OS? Via odroid settings-> update or other way?
I tried via settings, but Odroid rebooted to recovery and nothing else happened
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

MajkyM
Posts: 7
Joined: Sat May 16, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by MajkyM »

I did it in that way, but I get error.
Update reached 20% and Odroid rebooted to recovery.
In a log there's an error and it says that update was aborted.

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

MajkyM wrote:
Thu Oct 22, 2020 4:29 pm
I did it in that way, but I get error.
Update reached 20% and Odroid rebooted to recovery.
In a log there's an error and it says that update was aborted.
Sd card or emmc ?
Can you pull recovery log and send it ?

Code: Select all

adb pull /cache/recovery/last_log
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

MajkyM
Posts: 7
Joined: Sat May 16, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by MajkyM »

eMMC 32gb

Do I need UART to get the adb service?

When it loads to recovery, I got these error
Attachments
USER_SCOPED_TEMP_DATA_MSGR_PHOTO_FOR_UPLOAD_1603479065008_6725478656282280692.jpeg
USER_SCOPED_TEMP_DATA_MSGR_PHOTO_FOR_UPLOAD_1603479065008_6725478656282280692.jpeg (390.65 KiB) Viewed 700 times

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

MajkyM wrote:
Sat Oct 24, 2020 3:53 am
eMMC 32gb

Do I need UART to get the adb service?

When it loads to recovery, I got these error
For adb you just need micro USB cable and install adb to your pc.
https://www.xda-developers.com/install- ... cos-linux/
Drivers
https://developer.android.com/studio/run/win-usb

Do you directly download file to Odroid ? Can you first download it to pc then copy it to internal storage of your eMMC ?
you can do this via adb command from windows cmd after you setup it.

Code: Select all

adb push lineage_odroidc4-ota-eng.root.zip /sdcard/
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

MajkyM
Posts: 7
Joined: Sat May 16, 2020 4:03 pm
languages_spoken: english
ODROIDs: Odroid C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by MajkyM »

Via adb push, and then try to update, odroid has updated its files.

Wifi works now :D
You have a beer from me :D
These users thanked the author MajkyM for the post:
voodik (Sun Oct 25, 2020 10:23 am)

specter
Posts: 3
Joined: Thu Nov 05, 2020 8:57 am
languages_spoken: english
ODROIDs: odroid-c4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by specter »

Hey voodik,

First of all, thank you for making this awesome ROM for the C4!

I have noticed that if I hook the C4 w/ LineageOS up to a TV via HDMI, and then power cycle the TV, the odroid-c4 never resumes the HDMI feed when the TV is alive again.

Is this a limitation of Android, LineageOS, or the odroid-c4?

If it's something that is specific to the LineageOS build, where in the source code could I attempt to do some tinkering to get HDMI to resume if the display is power cycled?

Thanks! And keep up the awesome work! :D

specter
Posts: 3
Joined: Thu Nov 05, 2020 8:57 am
languages_spoken: english
ODROIDs: odroid-c4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by specter »

joerg wrote:
Mon May 18, 2020 9:08 pm
After booting several times this is looking normal now. The gray background rect went away... :o
Also, just to add an answer to the "grey box effect" to this thread:
The grey box that sometimes lurks behind widgets and app icons is a "feature" of Android when a keyboard is detected. You can actually move this grey box around with your keyboard arrow keys and then hit enter or OK to activate the actively highlighted item. Sometimes it is actually helpful if you don't want to move the mouse. :roll:

Jaguaruk
Posts: 39
Joined: Mon Jun 12, 2017 6:24 am
languages_spoken: english
ODROIDs: Odroid c2
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by Jaguaruk »

will android 10 work with the c2 unit?

User avatar
odroid
Site Admin
Posts: 35909
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1320 times
Been thanked: 913 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by odroid »

Jaguaruk wrote:
Tue Nov 10, 2020 8:27 am
will android 10 work with the c2 unit?
Any C4 OS images are not compatible with the C2.

User avatar
istanbulls
Posts: 380
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 234 times
Been thanked: 54 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by istanbulls »

It works with uSD on HC4. Thanks

User avatar
odroid
Site Admin
Posts: 35909
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1320 times
Been thanked: 913 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by odroid »

istanbulls wrote:
Tue Nov 10, 2020 9:13 pm
It works with uSD on HC4. Thanks
Could you access the SATA storage device from Android OS?

User avatar
istanbulls
Posts: 380
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 234 times
Been thanked: 54 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by istanbulls »

odroid wrote:
Wed Nov 11, 2020 9:45 am
istanbulls wrote:
Tue Nov 10, 2020 9:13 pm
It works with uSD on HC4. Thanks
Could you access the SATA storage device from Android OS?
viewtopic.php?f=204&t=38821 : No access via SATA; Access via USB2 Port.
viewtopic.php?f=204&t=38579 : No access via SATA; Access via USB2 Port.
viewtopic.php?f=204&t=38771 : No access via SATA; Access via USB2 Port.
http://de.eu.odroid.in/mirror/dn.odroid ... 105.img.xz : Yes access via SATA; Access via USB2 Port.

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

odroid wrote:
Wed Nov 11, 2020 9:45 am
istanbulls wrote:
Tue Nov 10, 2020 9:13 pm
It works with uSD on HC4. Thanks
Could you access the SATA storage device from Android OS?
istanbulls wrote:
Wed Nov 11, 2020 6:29 pm
odroid wrote:
Wed Nov 11, 2020 9:45 am
istanbulls wrote:
Tue Nov 10, 2020 9:13 pm
It works with uSD on HC4. Thanks
Could you access the SATA storage device from Android OS?
viewtopic.php?f=204&t=38821 : No access via SATA; Access via USB2 Port.
viewtopic.php?f=204&t=38579 : No access via SATA; Access via USB2 Port.
viewtopic.php?f=204&t=38771 : No access via SATA; Access via USB2 Port.
http://de.eu.odroid.in/mirror/dn.odroid ... 105.img.xz : Yes access via SATA; Access via USB2 Port.
Work in progress, HC4 supported image will be released in 1-2 days.
These users thanked the author voodik for the post:
istanbulls (Wed Nov 11, 2020 9:18 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: 1929
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 46 times
Been thanked: 290 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

Update :!:

Code: Select all

20201113 Alpha-v0.4
* Fixed Odroid Things
* Fixed rtl8812au minor issues
* Fixed minor Wifi and BT issues 
* Added Realtek WIFI 8188eus driver
* Added persist.wifi_arg property to set WIFI module loading arguments.
* Added Bluetooth command line tools (bccmd, hciconfig, hcitool, hcidump)
* tvheadend updated to latest version
* Merge with last BSP changes (HC4 Android does not support Petitboot)
* Lineage merge with upstream
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
istanbulls
Posts: 380
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID; N2, C4, XU4, N2+, CH4
Location: Istanbul-Turkey
Has thanked: 234 times
Been thanked: 54 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by istanbulls »

Thanks voodik <3

Sata, now I have access.
These users thanked the author istanbulls for the post:
odroid (Fri Nov 13, 2020 10:18 am)

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

Updated my C4 to Alpha-v0.4.
Something wrong with the pwm driver / overlays. I use pin33 with my TemperatureService app for the pwm fan, there is no signal. On pin35 there is signal, but this pin I use for shutdown with my GpioShutdownService app. As this is hard coded on the interface board I designed, I cannot change it easily. This signal on pin35 makes the shutdown oscillating. Luckily there is a resistor from pin35 to the ATTiny so that should not destroy. I need to learn, how to make my own overlay for the pwm driver, so that only pin33 is activated and working. I saw already the wiki pages explaining how to make a overlay.
For the first I will remove the pwm overlay as I need the C4 in my car tomorrow.
@voodik: Can you tell me, where are the overlay files are located on the file system?

mad_ady
Posts: 8831
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 586 times
Been thanked: 531 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by mad_ady »

They're inside the dtbs partition. You need to mount it (or its image) as a cramfs filesystem.
These users thanked the author mad_ady for the post (total 2):
voodik (Wed Nov 18, 2020 3:38 am) • joerg (Wed Nov 18, 2020 3:39 am)

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

Is I2S working?

I have selected the option in Odroid Setting, but am getting nothing.

The configuration I have is working with CoreElec and Ubuntu 20.04

There is a thread in Korean (viewtopic.php?f=183&t=40526&p=308348&hilit=i2s#p308348) for the N2 that seems to mention "media.audio hal.device=8" in default.prop for I2S, but the one I'm using has "media.audio hal.device=0".

I'll try changing next opportunity and see if there is any progress.

Any thoughts?

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

I have modified the overlay pwm_ab so that pwm0 does not point to pin35.
The good: The oscillating effect for shutdown went away.
The bad: pwm1 is still without signal.
I can see an error in pwm_AO, I wonder if this lets the pwm driver crash totally?

Code: Select all

[    0.827709] meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
I see in mesonsm1_odroid_common.dtsi in the node pwm_A0_cd pinctrl entries are missing. Is it safe to disable the node?
BTW. pwm_AO_cd is on aobus and pwm_ab is on cbus, so my change should not affect this.

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

If I try to boot to Recovery, I get a blank screen; my screen resolution is 1024*600.

Is there a way to set the display resolution for Recovery as I am guessing there might be a mismatch?

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

Yeah, I found what was wrong. When they made the changes for devicetree overlays, they swapped pwm0 and pwm1. No wonder that after I have updated, the pwm for fan went to pin35 where shutdown function is. :o
I have found a minor bug in GpioShutdownService, that the notification for shutdown does not terminate, after restarting the service, also if another pin was selected. I have corrected this. And I have implemented a check that the ALT of the shutdown pin must be 0 == IN.
I have corrected also TemperatureService, so that number of pwm (0|1) can be edited in settings.

User avatar
joerg
Posts: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

@maxycatz: I see with the Odroid VU7+, it's also 1024*600, the recovery menu very distorted, with my old 1280*1024 monitor only black screen.
@voodik: Do you see any chance to make it work with the resolution settings of env.ini?

cesare86
Posts: 1
Joined: Sun Nov 22, 2020 8:48 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by cesare86 »

Hi All,

Thanks voodik for the amazing effort you put in place for supporting this project! I am experiencing the same issue described by specter here below, once the TV is on all good, I can also use the remote via CEC, but after the TV swtiched off (manually or after timeout) and then switched on again from the Odroid HDMI I see only the black screen with No Signal (although the odroid is running with both blue and red leds). Any suggestion to solve it?

Ciao,
Cesare.
specter wrote:
Thu Nov 05, 2020 9:03 am
Hey voodik,

First of all, thank you for making this awesome ROM for the C4!

I have noticed that if I hook the C4 w/ LineageOS up to a TV via HDMI, and then power cycle the TV, the odroid-c4 never resumes the HDMI feed when the TV is alive again.

Is this a limitation of Android, LineageOS, or the odroid-c4?

If it's something that is specific to the LineageOS build, where in the source code could I attempt to do some tinkering to get HDMI to resume if the display is power cycled?

Thanks! And keep up the awesome work! :D

specter
Posts: 3
Joined: Thu Nov 05, 2020 8:57 am
languages_spoken: english
ODROIDs: odroid-c4
Has thanked: 0
Been thanked: 0
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by specter »

Hey Cesare86,

I think I just figured this one out.

To fix:
1. Connect your odroid-c4 to your laptop with a USB 2.0 cable.
2. Open a terminal to your device with

Code: Select all

adb shell
3. Use a text editor to make changes to the following two files:
(i) /odm/boot.ini
(ii) /odm/env.ini
4. In /odm/boot.ini, change

Code: Select all

setenv disablehpd "false"
to

Code: Select all

setenv disablehpd "true"

5. In /odm/env.ini, change

Code: Select all

disablehpd="false"
to

Code: Select all

disablehpd="true"
6. Reboot your device. It should be fixed now.

I use nano for editing these files, so an editor command would be

Code: Select all

nano /odm/boot.ini
once you are in adb shell.

Let me know if this fixes your odroid as well!

-Specter
cesare86 wrote:
Sun Nov 22, 2020 8:55 pm
Hi All,

Thanks voodik for the amazing effort you put in place for supporting this project! I am experiencing the same issue described by specter here below, once the TV is on all good, I can also use the remote via CEC, but after the TV swtiched off (manually or after timeout) and then switched on again from the Odroid HDMI I see only the black screen with No Signal (although the odroid is running with both blue and red leds). Any suggestion to solve it?

Ciao,
Cesare.
specter wrote:
Thu Nov 05, 2020 9:03 am
Hey voodik,

First of all, thank you for making this awesome ROM for the C4!

I have noticed that if I hook the C4 w/ LineageOS up to a TV via HDMI, and then power cycle the TV, the odroid-c4 never resumes the HDMI feed when the TV is alive again.

Is this a limitation of Android, LineageOS, or the odroid-c4?

If it's something that is specific to the LineageOS build, where in the source code could I attempt to do some tinkering to get HDMI to resume if the display is power cycled?

Thanks! And keep up the awesome work! :D

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

joerg wrote:
Sun Nov 22, 2020 8:14 pm
@maxycatz: I see with the Odroid VU7+, it's also 1024*600, the recovery menu very distorted, with my old 1280*1024 monitor only black screen.
@voodik: Do you see any chance to make it work with the resolution settings of env.ini?
maxycatz wrote:
Fri Nov 20, 2020 10:04 pm
If I try to boot to Recovery, I get a blank screen; my screen resolution is 1024*600.

Is there a way to set the display resolution for Recovery as I am guessing there might be a mismatch?
Temporary solution.
from adb set

Code: Select all

fw_setenv boot_recovery 'if test ${hdmimode} = custombuilt; then setenv cmode modeline=${modeline} customwidth=${customwidth} customheight=${customheight}; fi; if test ${hdmimode} == 2160p*; then setenv hdmimode 1080p60hz; fi; setenv bootargs ${initargs} logo=${display_layer},loaded,${fb_addr} vout=1024x600p60hz,enable hdmimode=1024x600p60hz ${cmode} voutmode=dvi cvbsmode=${cvbsmode} osd_reverse=${osd_reverse} video_reverse=${video_reverse} androidboot.selinux=permissive jtag=disable androidboot.hardware=odroidn2 recovery_part=recovery recovery_offset=0; movi read dtbs 0 ${cramfsaddr}; cramfsload ${dtb_mem_addr} meson64_odroidn2_android.dtb;if test ${variant} != c4; then cramfsload ${loadaddr} odroid${variant}-opp.dtbo;fdt addr ${dtb_mem_addr};fdt resize 8192;fdt apply ${loadaddr};fi;movi read recovery 0 ${loadaddr}; booti ${loadaddr} - ${dtb_mem_addr}; bootm ${loadaddr};'
When have a free time i will try to check why boot.ini and env.ini not reading while booting recovery.
P.S.
This env variable will overwritten at update. so you need to set it again after update.
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: 1929
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: armenian, english, russian
Location: Armenia
Has thanked: 46 times
Been thanked: 290 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

@joerg
@maxycatz


Download
odroid_postboot.zip
(920 Bytes) Downloaded 4 times
Extract, push to /vendor/bin/
reboot, wait until boot finished, reboot recovery

Depends
display_autodetect="false", proper hdmimode and voutmode sould be set in /odm/env.ini
These users thanked the author voodik for the post:
joerg (Mon Nov 23, 2020 8:42 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

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

Thanks speckter & voodik; will try this asap.

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

Any thoughts available about my earlier enquiry regards I2S?

I have noticed that te music player opens an audio file ,but stays at 00:00 on the track progress bar if audio set to I2S.

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

maxycatz wrote:
Mon Nov 23, 2020 9:08 pm
Any thoughts available about my earlier enquiry regards I2S?

I have noticed that te music player opens an audio file ,but stays at 00:00 on the track progress bar if audio set to I2S.
Do you know any version where it works ?
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

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

Have not had any audio out via I2S at all yet

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

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by voodik »

maxycatz wrote:
Mon Nov 23, 2020 9:42 pm
Have not had any audio out via I2S at all yet
So there is no anything about alsaPORT-i2s1 in odroid-c4 dtbs.
alsaPORT-i2s1 is selected when you chose I2S output on Odroid Settings.
I not an spec of i2s, not have a much knowledge.
I just see alsaPORT-i2s1 is available on N2 overlay but missing or not supported on C4.
So open separate topic and ask HK hardware spec for this.
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: 1204
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: 73 times
Been thanked: 144 times
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by joerg »

I have tried now in odroid settings the adjustment of screen position. As I need to lift up the bottom around 60 pixels, the touches are to high, the more at the bottom the more the error. I went back to lift the bottom with wm overscan 0,0,0,60, then the touches are right. The other edges I set with odroid settings 0, 2, 6, 0, because they are drawn rare, if I adjust them with wm.

maxycatz
Posts: 20
Joined: Mon Jun 22, 2020 11:04 pm
languages_spoken: english
ODROIDs: C4
Has thanked: 0
Been thanked: 1 time
Contact:

Re: [ROM][LineageOS 17.1][Android 10.0][voodik] for the ODROID-C4

Post by maxycatz »

I am overjoyed; I really must say how thankful I am that after nine months with the C4 (coming from the RPi), I have a setup with this ROM where I am looking forward to installing apps and having some fun. Rooted with Magisk and rolling! Multiboot next stop. :)

I2S sorted with last patch: I have sound on Android. In Odroid Settings>Audio only HDMI/LineOut shows although Odroid Settings>Overlays shows "hifishield".

Recovery boot shows Menu, so resolution must fixed too.

Many thanks to you, your work on this is amazing.
These users thanked the author maxycatz for the post:
voodik (Sun Nov 29, 2020 4:26 am)

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 0 guests