device_arv_jh7100's Introduction
# Setup build envoronment https://source.android.com/setup/build/initializing # Download Android source https://github.com/android-risc-v/local_manifests # Build Android Refer to http://source.android.com/source/building.html $ source build/envsetup.sh $ lunch jh7100-eng $ make ramdisk systemimage vendorimage # Prepare sd card Partitions of the card should be set-up like followings p1: 128MB for /vendor : do fdisk p2: 1024MB for /system : do fdisk p3: 128MB for boot : do fdisk, set bootable and mkfs.ext4 p4: remainings for /data : do fdisk, mkfs.ext4 Set volume label of /data partition as userdata : use -L option for mkfs.ext4 # Write system & vendor partition $ cd out/target/product/jh7100 $ sudo dd if=vendor.img of=/dev/<p1> bs=1M $ sudo dd if=system.img of=/dev/<p2> bs=1M # Copy firmware & ramdisk to boot partition device/arv/jh7100/boot/* to p3:/ out/target/product/jh7100/ramdisk.img to p3:/ # Download & Build kernel Install cross-compiler $ sudo apt install gcc-riscv64-linux-gnu Git clone following kernel source under separate folder apart from Android https://github.com/android-risc-v/kernel_arv Build the kernel $ ARCH=riscv scripts/kconfig/merge_config.sh arch/riscv/configs/visionfive_defconfig kernel/configs/android-base.config kernel/configs/android-recommended.config $ ARCH=riscv CROSS_COMPILE=riscv64-linux-gnu- make Image.gz starfive/jh7100-starfive-visionfive-v1.dtb # Copy kernel binaries to boot partition <kernel directory>/arch/riscv/boot/Image.gz to p3:/ <kernel directory>/arch/riscv/boot/dts/starfive/jh7100-starfive-visionfive-v1.dtb to p3:/ Use -j[n] option for make command, if build host has a good number of CPU cores. # JH7100 hardware information: https://rvspace.org
device_arv_jh7100's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.