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

Post Reply
Cronix
Posts: 6
Joined: Sat Feb 23, 2019 4:41 pm
languages_spoken: english, german
ODROIDs: Odroid xu4
Has thanked: 1 time
Been thanked: 0
Contact:

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

Unread post by Cronix » Thu May 02, 2019 3:12 am

So i forked voodik's work to mainly add usb_modeswitch in a more recent version (one that works with my way to new huawei E8372) and adding native modeswitching at boot when a compatible stick is detected.

All modifications i did are listed:
- Add usb_modeswitch 2.5.2 compiled from source incl. up2date config set
- Change default USB Soundcard Settings to 48khz / 24bit (i am using an xmos usb adapter that is able to produce up to 196khz / 32bit so that might change in the future)
- Change odroid updater app to work with my fork instead
- disable inbuild ethernet by default
- use pico opengapps instead of nano

Currently it boots fine, automatic native modeswitching at boot is not tested yet - it can be run at boot using root and script explorer app nevertheless (just run /bin/usb_modeswitch.sh with root permissions)

More changes might come in the future (preferably tailored to my specific requirements and hardware), including:
- Backlight control support for Chalkboard Electronics screens
- Ambient Light sensor support (need to figure this one out still how to write a driver for it)

Build is running via my jenkins on a irregular base, and the current update.zip can be found here:

Code: Select all

https://build.crystalnet.org/odroid/2019/05/01/build-38/update.zip
you can just download and flash it using the odroid updater app and putting in the url manually after hitting Check for Update.
Just flash it ontop of voodik's rom for now, a base install image might come in the future if i am bored enough :)

Sources can be found at my github:

Code: Select all

https://github.com/psych0d0g/android

if you want to build from source you will need this in your local_manifest:

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<manifest>
        <remote name="opengapps" fetch="https://github.com/opengapps/"  />
        <remote name="nezor" fetch="https://gitlab.nezorfla.me/opengapps/"  />
        <remote name="ObsidianX" fetch="https://github.com/ObsidianX/"  />
        <remote name="loicpoulain" fetch="https://github.com/loicpoulain/"  />

        <project path="vendor/opengapps/build" name="aosp_build" revision="master" remote="opengapps" />

        <project path="vendor/opengapps/sources/all" name="all" clone-depth="1" revision="master" remote="nezor" />

        <!-- arm64 depends on arm -->
        <project path="vendor/opengapps/sources/arm" name="arm" clone-depth="1" revision="master" remote="nezor" />
        <project path="vendor/opengapps/sources/arm64" name="arm64" clone-depth="1" revision="master" remote="nezor" />

        <project path="vendor/opengapps/sources/x86" name="x86" clone-depth="1" revision="master" remote="nezor" />
        <project path="vendor/opengapps/sources/x86_64" name="x86_64" clone-depth="1" revision="master" remote="nezor" />

        <project path="hardware/chalkelec/liblight" name="android_hardware_chalkelec_liblight" clone-depth="1" revision="master" remote="ObsidianX" />
        <project path="external/usb-modeswitch" name="usb-modeswitch" clone-depth="1" revision="master" remote="loicpoulain" />
</manifest>
Last edited by Cronix on Thu May 02, 2019 4:45 pm, edited 1 time in total.

User avatar
odroid
Site Admin
Posts: 30638
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 13 times
Been thanked: 91 times
Contact:

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

Unread post by odroid » Thu May 02, 2019 10:02 am

Thank you for sharing a useful instruction for whom wants to build a custom LineageOS.

Can you tell me more about your build system? CPU, RAM and storage?

Cronix
Posts: 6
Joined: Sat Feb 23, 2019 4:41 pm
languages_spoken: english, german
ODROIDs: Odroid xu4
Has thanked: 1 time
Been thanked: 0
Contact:

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

Unread post by Cronix » Thu May 02, 2019 4:18 pm

sure thing, builds are running on a virtual KVM instance, using 16 cores on a AMD Ryzen 7 PRO 1700X board with 32GB ram assigned and 250GB of storage consisting of an ssd cached LVM running on a raid1 over 2 x 1TB hdd ;)

a complete build currently takes around 38 minutes (not sure if my ccache setup is working as intended right now)

User avatar
odroid
Site Admin
Posts: 30638
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 13 times
Been thanked: 91 times
Contact:

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

Unread post by odroid » Thu May 02, 2019 4:28 pm

Very decent system could build the full Android source code so quickly. :o
These users thanked the author odroid for the post:
Cronix (Thu May 02, 2019 4:38 pm)

Cronix
Posts: 6
Joined: Sat Feb 23, 2019 4:41 pm
languages_spoken: english, german
ODROIDs: Odroid xu4
Has thanked: 1 time
Been thanked: 0
Contact:

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

Unread post by Cronix » Thu May 02, 2019 4:38 pm

indeed, i basically hate playing the waiting game, so i throw as much hardware on things as possible :lol:

Post Reply

Return to “Android”

Who is online

Users browsing this forum: No registered users and 1 guest