Giter VIP home page Giter VIP logo

build's Introduction

Build

1. Install Docker

# Ubuntu / Debian
sudo apt-get update
sudo apt-get install docker.io

2. Build Docker image

git clone https://github.com/mixtile-rockchip/build.git
cd build
sudo docker build -t blade3-debian-env ./
# View the built docker image
blade3:mixtile~/build$ sudo docker images
REPOSITORY          TAG       IMAGE ID       CREATED         SIZE
blade3-debian-env   latest    ad587023e07a   3 minutes ago   1.7GB
ubuntu              20.04     83a4bf3bb050   2 weeks ago     72.8MB

3. Install Repo

# repo depends on python3, make sure you have a python3 environment before using it
# sudo apt-get install -y python3 && sudo ln -snf /usr/bin/python3 /usr/bin/python
mkdir -p ~/.bin
PATH="${HOME}/.bin:${PATH}"
curl https://storage.googleapis.com/git-repo-downloads/repo > ~/.bin/repo
chmod a+rx ~/.bin/repo

4. Download code

# Before downloading git, install git tool and configure Git information
# sudo apt-get install -y git git-lfs
# git config --global user.email "[email protected]"
# git config --global user.name "Your Name"
# You can create a new blade3 directory and do the following
mkdir blade3 && cd blade3
repo init -u https://github.com/mixtile-rockchip/manifests.git -b master -m rk3588_linux_release.xml
repo sync

5. Build using Docker

# You need to execute the following command in the source directory, the blade3 directory
sudo docker run --privileged -u root -it --rm -v $PWD:/build blade3-debian-env
cd /build
./build.sh chip    # Follow the prompts to select rk3588 and rockchip_rk3588_blade3_v101_defconfig
./build.sh all

6. Build output

Directory: output/update/Image
.
├── boot.img -> ../../../kernel/boot.img
├── MiniLoaderAll.bin -> ../../../u-boot/rk3588_spl_loader_v1.13.112.bin
├── misc.img -> ../../firmware/misc.img
├── oem.img -> ../../firmware/oem.img
├── package-file
├── parameter.txt -> ../../../device/rockchip/.chips/rk3588/parameter.txt
├── recovery.img -> ../../../buildroot/output/rockchip_rk3588_recovery/images/recovery.img
├── rootfs.img -> ../../../debian/linaro-rootfs.img
├── uboot.img -> ../../../u-boot/uboot.img
├── update.img
├── update.raw.img
└── userdata.img -> ../../firmware/userdata.img

7. Upgrade Firmware

look here

build's People

Contributors

evtest-hash avatar buyuliang avatar

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.