LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

User avatar
rooted
Posts: 6060
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by rooted » Tue Jan 01, 2019 12:48 am

What is stty?

*edit*
That's a Linux application, Android isn't Linux. Check busybox.

dajack05
Posts: 25
Joined: Sat Jan 16, 2016 1:14 am
languages_spoken: english
ODROIDs: xu4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by dajack05 » Fri Jan 04, 2019 10:12 pm

rooted wrote:
Tue Jan 01, 2019 12:48 am
What is stty?

*edit*
That's a Linux application, Android isn't Linux. Check busybox.
STTY is the Linux utility to configure serial communications via the OS. As far as Android not being Linux, I think that is debatable, but you're right that it's certainly not a 1:1 port of linux.

STTY is available on the stock Odroid XU4 ROM (running Android 4.4.4 I believe) but LineageOS doesn't appear to have it. So I'm trying to find a way to configure Serial coms in LineageOS

User avatar
rooted
Posts: 6060
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by rooted » Fri Jan 04, 2019 11:38 pm


dajack05 wrote:
rooted wrote:
Tue Jan 01, 2019 12:48 am
What is stty?

*edit*
That's a Linux application, Android isn't Linux. Check busybox.
STTY is the Linux utility to configure serial communications via the OS. As far as Android not being Linux, I think that is debatable, but you're right that it's certainly not a 1:1 port of linux.

STTY is available on the stock Odroid XU4 ROM (running Android 4.4.4 I believe) but LineageOS doesn't appear to have it. So I'm trying to find a way to configure Serial coms in LineageOS
Android is a Java platform running on top of the Linux kernel with low level hardware hooks, it's one of those "the Linux kernel is not Linux" things.

Have you tried installing busybox? It's included there.

dajack05
Posts: 25
Joined: Sat Jan 16, 2016 1:14 am
languages_spoken: english
ODROIDs: xu4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by dajack05 » Fri Jan 04, 2019 11:41 pm

rooted wrote:
Fri Jan 04, 2019 11:38 pm
dajack05 wrote:
rooted wrote:
Tue Jan 01, 2019 12:48 am
What is stty?

*edit*
That's a Linux application, Android isn't Linux. Check busybox.
STTY is the Linux utility to configure serial communications via the OS. As far as Android not being Linux, I think that is debatable, but you're right that it's certainly not a 1:1 port of linux.

STTY is available on the stock Odroid XU4 ROM (running Android 4.4.4 I believe) but LineageOS doesn't appear to have it. So I'm trying to find a way to configure Serial coms in LineageOS
Android is a Java platform running on top of the Linux kernel with low level hardware hooks, it's one of those "the Linux kernel is not Linux" things.

Have you tried installing busybox? It's included there.
I haven't tried that yet. If I install busybox, do I get it's bundled tools at the command line? Or do I have to do something extra?

User avatar
rooted
Posts: 6060
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by rooted » Sat Jan 05, 2019 1:11 am

It will include all the applets and will be available at the cli.

I use this one

https://play.google.com/store/apps/deta ... ik.busybox

dajack05
Posts: 25
Joined: Sat Jan 16, 2016 1:14 am
languages_spoken: english
ODROIDs: xu4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by dajack05 » Sat Jan 05, 2019 2:30 am

Great! I installed a version of busybox and now have STTY :) Now I just need to figure out why a library I'm using doesn't like the newer android version. But that's another problem for another day :-P

Thanks for the help

iceamaura
Posts: 4
Joined: Sun Jan 06, 2019 12:45 pm
languages_spoken: english
ODROIDs: ODROID XU4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by iceamaura » Sun Jan 06, 2019 12:48 pm

Hey, any way to disable the right click to back action? Trying to use a remote PC and this is killing me...

User avatar
voodik
Posts: 1426
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by voodik » Sun Jan 06, 2019 6:57 pm

iceamaura wrote:
Sun Jan 06, 2019 12:48 pm
Hey, any way to disable the right click to back action? Trying to use a remote PC and this is killing me...
edit build.prop
change

Code: Select all

mouse.right.click=back
to

Code: Select all

mouse.right.click=false
Buy me a beer Here ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

CATtech
Posts: 63
Joined: Thu Oct 13, 2016 8:29 am
languages_spoken: english
ODROIDs: XU4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by CATtech » Mon Jan 07, 2019 8:50 am

What do I need to do to get the Dual Shock 4 right analog stick to function?
Each time i try to map, retroarch stops.

Sent from my XT1575 using Tapatalk


iceamaura
Posts: 4
Joined: Sun Jan 06, 2019 12:45 pm
languages_spoken: english
ODROIDs: ODROID XU4
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by iceamaura » Wed Jan 09, 2019 1:45 am

voodik wrote:
Sun Jan 06, 2019 6:57 pm
iceamaura wrote:
Sun Jan 06, 2019 12:48 pm
Hey, any way to disable the right click to back action? Trying to use a remote PC and this is killing me...
edit build.prop
change

Code: Select all

mouse.right.click=back
to

Code: Select all

mouse.right.click=false
Thank you, this fixed it! In case anyone comes here with the same question, you don't need to rebuild android or anything. Just go to /system/build.prop on the android itself.

alxhoff
Posts: 7
Joined: Tue Nov 03, 2015 5:14 pm
languages_spoken: english, german
ODROIDs: c1+, xu3
Location: Germany
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by alxhoff » Wed Jan 09, 2019 9:02 pm

Firstly, thanks Voodik for the great images. My colleagues and I are glad to be able to have an updated android version on our devices. I am a kernel guy so I am a bit lost at trying to compile the android source. The instructions

Code: Select all

$ repo init -u git://github.com/voodik/android.git -b cm-14.1_5422
$ repo sync
$ ./build.sh odroidxu3
resulting in a number of errors, such as the zconf files being generated with a _shipped suffix so they cannot be found by other files. This problem isn't apparent if I build just the kernel. Which makes me think some sort of crucial step is missing or some sort of config as the Hardkernel Android 4.4.4 builds no problems. Thanks again for the great images.

Cheers

User avatar
voodik
Posts: 1426
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by voodik » Thu Jan 10, 2019 10:41 pm

I need merge sources with upstream. But i now i have a problems with internet access. I can't find any stable internet in India. When i find it a make an source merge and let you know. Sorry for that.
Buy me a beer Here ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

alxhoff
Posts: 7
Joined: Tue Nov 03, 2015 5:14 pm
languages_spoken: english, german
ODROIDs: c1+, xu3
Location: Germany
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by alxhoff » Thu Jan 10, 2019 11:34 pm

No worries. I know that problem. I seem to have android building (at about 16% at the moment) on both an Ubuntu based system and now on my Arch work computer, was some missing libraries. But I am having the problem that when I recompile the kernel some of the wireless drivers seem to be missing. I was playing around with the config yesterday and pushing the modules via adb but i didn't have any luck as wpa_supplicant was crashing constantly. Did you encounter this problem? I've not got much experience with creating new configs for systems. Something I am keen to learn though. Thanks for the reply!

User avatar
voodik
Posts: 1426
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by voodik » Fri Jan 11, 2019 10:11 pm

alxhoff wrote:
Thu Jan 10, 2019 11:34 pm
No worries. I know that problem. I seem to have android building (at about 16% at the moment) on both an Ubuntu based system and now on my Arch work computer, was some missing libraries. But I am having the problem that when I recompile the kernel some of the wireless drivers seem to be missing. I was playing around with the config yesterday and pushing the modules via adb but i didn't have any luck as wpa_supplicant was crashing constantly. Did you encounter this problem? I've not got much experience with creating new configs for systems. Something I am keen to learn though. Thanks for the reply!
to make kernel
run in kernel directory

Code: Select all

make mrproper
make odroidxu3_defconfig
make menuconfig
BTW, i found something like internet and merged cm-14.1 sources.
repo sync and build again.

P.S.
for android building you will need at least 8GB RAM maybe more.
Buy me a beer Here ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

alxhoff
Posts: 7
Joined: Tue Nov 03, 2015 5:14 pm
languages_spoken: english, german
ODROIDs: c1+, xu3
Location: Germany
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by alxhoff » Fri Jan 11, 2019 10:43 pm

I have gotten the entire repo to build. kernel was already building on it's own. Was some missing libraries because I am on an Arch system and the error messages were quite terrible :P I also needed to patch three files from the cm14.1 branch, some missing SQLite methods for an app and a provider.

Building just the standalone kernel with the defconfig, as well as the kernel built with Android don't work 100%. The stand along built by doing exactly

Code: Select all

make mrproper
make odroidxu3_defconfig

works but without full support for things like wifi dongles, which your images have. Which makes me thing that you have done some configuring in the menuconfig (if yes, do you know what exactly?). I can get the driver modules compiled and present in the kernel but wpa_supplicant crashes constantly so I get no network connectivity. The kernel (

Code: Select all

/out/target/product/odroidxu3/kernel
), built by running

Code: Select all

./build.sh odroidxu3
, is the same. While the system.img generated causes a kernel panic

Code: Select all

 7455 [   10.923397] [c4] Failed to execute /init.  Attempting defaults...             
 7456 [   10.931371] [c5] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
I have flashed the system image via fastboot

Code: Select all

fastboot flash system system.img
. Some crucial nugget is missing.

alxhoff
Posts: 7
Joined: Tue Nov 03, 2015 5:14 pm
languages_spoken: english, german
ODROIDs: c1+, xu3
Location: Germany
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by alxhoff » Fri Jan 11, 2019 10:46 pm

I should also mention that I made sure that the kernel was configured for wpa_supplicant (as far as I know) going off of http://www.linuxfromscratch.org/blfs/vi ... icant.html

User avatar
voodik
Posts: 1426
Joined: Sat Dec 07, 2013 2:36 am
languages_spoken: english,russian
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by voodik » Sat Jan 12, 2019 12:32 pm

Please refer wiki page how to build lineage
https://wiki.odroid.com/odroid-xu4/soft ... _lineageos

Output images can be found on
/tmp/odroidxu3 folder
Buy me a beer Here ;)
BTC: 3Lx83Vh9HL7UbsD9oDBcMR9pQMRSPEfRmg
--------------------------------------------------------
dump logs
(dmesg; logcat -d; lsusb) | curl -F 'f:1=<-' ix.io

alxhoff
Posts: 7
Joined: Tue Nov 03, 2015 5:14 pm
languages_spoken: english, german
ODROIDs: c1+, xu3
Location: Germany
Contact:

Re: LineageOS-14.1 Android 7.1.1 Nougat for ODROID-XU3/XU4

Unread post by alxhoff » Tue Jan 15, 2019 5:23 pm

The last of my problems was a vermagic issue as I didn't update the modules with those my system compiled. Last issue to sort through is the system.img causing

Code: Select all

[   11.178888] [c5] devtmpfs: error mounting -2
[   11.182877] [c5] Freeing unused kernel memory: 556K (c0a87000 - c0b12000)
[   11.189495] [c5] Failed to execute /init.  Attempting defaults...
[   11.197554] [c6] Kernel panic - not syncing: No init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
have you come across this before?

Post Reply

Return to “Android”

Who is online

Users browsing this forum: sckimPlanuri and 2 guests