Giter Site home page Giter Site logo

build-lineageos-for-raspberry-pi's Introduction

Compile Android system with LineageOS

Cyanogen is a company that customizes Android ROM, its product CyanogenMod( Often referred to as "CM") is an open code system based on the Android mobile device platform. In December 2016, Cyanogen suddenly announced that it would stop development and close the project infrastructure. LineageOS was officially launched on December 24, 2016 to re-enact CyanogenMod, and its source code is stored in GitHub

Development Environment (Host)

  1. The operating system uses Ubuntu 18.04
  2. Install the development kit
    $ sudo apt-get update
    $ sudo apt-get install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git gnupg gperf lib32ncurses5-dev lib32readline-dev lib32z1-dev libesd0-dev liblz4-tool libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev python-mako imagemagick openjdk-8-jdk gcc-arm-linux-gnueabihf
  3. OpenJDK version 1.8.0_232
    # installation
    $ sudo apt-get update 
    $ sudo apt-get install openjdk-8-jdk
    # If your computer has installed many versions of JDK, specify which version of JDK to use here
    $ sudo update-alternatives --config java
  4. It is recommended to use SSD hard disk (download and compile will wait until death) -Lineage 15.1 code machine plus compile output file about 70G -Lineage 16.0 code machine plus compile output file about 140G

Operating environment(Target)

  • Model: Raspberry Pi 3 Model B+
    • SoC: Broadcom BCM2837
    • CPU: ARM Cortex-A53 (64Bit)
    • RAM: 1GB
    • OS: lineage 15.1 (Android 8.1.0) \
    Raspberry Pi 3 Block Diagram
  • Model: Raspberry Pi 4 Model B
    • SoC: Broadcom BCM2711
    • CPU: ARM Cortex-A72 (64Bit)
    • RAM: 4GB
    • OS: lineage 16.1 (Android 9)

Operating Instructions

  • How to download LineageOS code

    • branch: lineage-15.1, Device name: rpi3
    • branch: lineage-16.0, Device name: rpi4
    #Automated download script
    $ wget https://raw.githubusercontent.com/02047788a/build-lineageOS-rpi3/master/scripts/sync-lineageos-code.sh -O sync-lineageos-code.sh
    # Execute script input prompt
    # Please entry lineageOS checkout folder : (Download catalog)
    # Please entry checkout lineageOS branch : (Designated branch)
    # Please entry build device name(ex:,rpi3,rpi4) : (Compile module)

    All input variables exist~/.profile inside ($LINEAGE_SRC, $LINEAGE_BRANCH, $DEVICE_NAME)

  • How to compile LineageOS code

    # Download the script to the code directory
    $ wget https://raw.githubusercontent.com/02047788a/build-lineageOS-rpi3/master/scripts/build-lineageos-code.sh -O build-lineageos-code.sh
    $ sudo ./build-lineageos-code.sh #Compile all images kernel ramdisk systemimage vendorimage

    Installable after compilation image path: $LINEAGE_SRC/out/target/product/rpi4/lineage-16.0-20200201-rpi4.img*

  • Burn image to SD card

    $ sudo dd if=lineage-16.0-20200201-rpi4.img of=/dev/sdX status=progress bs=4M

    /dev/sdX Is the path of your SD card,Pay attention to change!!!

AndroidCustomized modification

Related projects

Reference

我想找類似的工作不知道有沒有台北的工作機會???

我也懂挖礦上一份工作是用linux整合客製化一套挖礦系統OS,我也親自破解claymopre & phinexminer的

build-lineageos-for-raspberry-pi's People

Contributors

govindmaheshwari2 avatar jimmy947788 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

build-lineageos-for-raspberry-pi's Issues

Support LineageOS 18.1 on RPi4 ????

I add new manifest that support LineageOS 18.1 that build image successfull,
but can not run Android system on Raspberry....

get me more time tarce the issue...

已經配置而且編譯成功了啦~
但是進系統有問題還需要做一些debug挑整

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.