Coder Social home page Coder Social logo

Comments (5)

KonstaT avatar KonstaT commented on June 2, 2024 1

. build/envsetup.sh
lunch lineage_rpi4-userdebug
mka kernel

@KonstaT I have build branch 17.1 for rpi4 and see the colorful rainbow view all the time until I see comment 8, I followed , however I got this when mka kernel command on branch 16.0: [597/1038] including prebuilts/sdk/Android.mk ... build/make/core/base_rules.mk:260: error: prebuilts/sdk/tools: MODULE.linux.EXECUTABLES.jack-admin already defined by jack/server/jack-server. 00:15:08 ckati failed with: exit status 1 help please, emm ... I am newcomer for this

As mentioned above, there's source code and build instructions for my LineageOS 14.1 & 15.1 builds for Pi 3 (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1 & https://github.com/lineage-rpi/android_local_manifest/tree/lineage-15.1, respectively).

mka kernel would only build the Linux kernel that you would replace in the boot partition of the existing Android image.

If you want to build AOSP (or something AOSP based such as LineageOS) for Pi 4, you can look into Raspberry Vanilla project.
https://github.com/raspberry-vanilla

from android_local_manifest.

KonstaT avatar KonstaT commented on June 2, 2024

There's source code and build instructions for my LineageOS 14.1 & 15.1 builds for Pi 3 (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1 & https://github.com/lineage-rpi/android_local_manifest/tree/lineage-15.1, respectively). I haven't released the full device specific source code for my LineageOS 16.0 builds (both Pi 3 & Pi 4) because someone sold builds off of the sources I previously released without complying with open source licensing.

You can use the lineage-16.0 branch to build the kernel, though. E.g. for Pi 4:

repo init -u git://github.com/LineageOS/android.git -b lineage-16.0
curl --create-dirs -L -o .repo/local_manifests/manifest_brcm_rpi.xml -O -L https://raw.githubusercontent.com/lineage-rpi/android_local_manifest/lineage-16.0/manifest_brcm_rpi.xml
repo sync
. build/envsetup.sh
lunch lineage_rpi4-userdebug
mka kernel

Also building the kernel standalone is possible so you don't need to download the whole Android source code for this.

Clone kernel source (https://github.com/lineage-rpi/android_kernel_brcm_rpi/tree/lineage-16.0).
Clone proprietaries to get firmware files (https://github.com/lineage-rpi/proprietary_vendor_brcm/tree/lineage-16.0).
Clone AOSP toolchain (https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-linux-androideabi-4.9/+/refs/tags/android-9.0.0_r52).

Modify firmware path according to where you've saved them (https://github.com/lineage-rpi/android_kernel_brcm_rpi/blob/lineage-16.0/arch/arm/configs/lineageos_rpi4_defconfig#L1365). Also make note where you've saved the toolchain.

ARCH=arm make lineageos_rpi4_defconfig
ARCH=arm CROSS_COMPILE=path/to/arm-linux-androideabi-4.9/bin/arm-linux-androidkernel- make zImage dtbs -jX

from android_local_manifest.

owahltinez avatar owahltinez commented on June 2, 2024

Hello, I am trying to reproduce the builds for RPI4. Is it still true that you have not released the source code?

from android_local_manifest.

renhuihhh avatar renhuihhh commented on June 2, 2024

. build/envsetup.sh
lunch lineage_rpi4-userdebug
mka kernel

@KonstaT I have build branch 17.1 for rpi4 and see the colorful rainbow view all the time until I see comment 8, I followed , however I got this when mka kernel command on branch 16.0:
[597/1038] including prebuilts/sdk/Android.mk ... build/make/core/base_rules.mk:260: error: prebuilts/sdk/tools: MODULE.linux.EXECUTABLES.jack-admin already defined by jack/server/jack-server. 00:15:08 ckati failed with: exit status 1
help please, emm ... I am newcomer for this

from android_local_manifest.

renhuihhh avatar renhuihhh commented on June 2, 2024

. build/envsetup.sh
lunch lineage_rpi4-userdebug
mka kernel

@KonstaT I have build branch 17.1 for rpi4 and see the colorful rainbow view all the time until I see comment 8, I followed , however I got this when mka kernel command on branch 16.0: [597/1038] including prebuilts/sdk/Android.mk ... build/make/core/base_rules.mk:260: error: prebuilts/sdk/tools: MODULE.linux.EXECUTABLES.jack-admin already defined by jack/server/jack-server. 00:15:08 ckati failed with: exit status 1 help please, emm ... I am newcomer for this

As mentioned above, there's source code and build instructions for my LineageOS 14.1 & 15.1 builds for Pi 3 (https://github.com/lineage-rpi/android_local_manifest/tree/cm-14.1 & https://github.com/lineage-rpi/android_local_manifest/tree/lineage-15.1, respectively).

mka kernel would only build the Linux kernel that you would replace in the boot partition of the existing Android image.

If you want to build AOSP (or something AOSP based such as LineageOS) for Pi 4, you can look into Raspberry Vanilla project. https://github.com/raspberry-vanilla

thanks

from android_local_manifest.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.