Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rageworx/rock960linux

An easy way to build Rock960 board for debian linux aarch64 ( debian-bullseye 11 ).
https://github.com/rageworx/rock960linux

96board aarch64 bullseye debian linux rock960 vamrs

Last synced: 3 months ago
JSON representation

An easy way to build Rock960 board for debian linux aarch64 ( debian-bullseye 11 ).

Awesome Lists containing this project

README

        

# A customized rk3399 Linux aarch64 collection repository

## Target
* VAMR Rock960 board ( or others too )
* 96board, Rock960A/B and C ( model C is still testing )
* Enhanced Kernel 4.4.194 ( now upgrading to 5.10 )
* Debian 11, bullseye ( completed upgraded )
* exFAT support in kernel 4.4.194
- exFAT source by [ater97](https://github.com/arter97/exfat-linux/tree/old)

## First initializing submodules
* do these sequence at first time,
```
$ git submodule init
$ git submodule update
```
* it may takes long time.

## Make prebuilts + prepare cross compiler
* Create these directories
```
prebuilts/gcc/linux-x86/aarch64/
```
* And download gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu from [here](https://developer.arm.com/downloads/-/gnu-a#panel4a).
* Extrct gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz to `prebuilts/gcc/linux-86/aarch64`.
* Then once you need run this:
```
export PATH=$PATH:$PWD/prebuilts/gcc/linux-x86/aarch64/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin
```

## Build kernel first ( before u-boot )
* Rock960A/B
```
$ build/mk-kernel.sh rock960ab
```
* Rock960C
```
$ build/mk-kernel.sh rock960c
```

## Then build u-boot ( after kernel )
* Rock960A/B
```
$ build/mk-uboot.sh rock960ab
```
* Rock960C
```
$ build/mk-uboot.sh rock960c
```

## Build rootfs
* First time you need to do this for making a file 'linaro-bullesys-alip-${datetime}.tar.gz'.
```
$ cd rootfs
$ ./mk-base-debian.sh
```
* You can skip above step if have tar.gz file.
* Then create debian bullseye base updates for Rock960 board,
```
$ ./mk-rootfs-bullseye.sh
```
* This sequence extract base tar.gz to binary directory, and copying overlay contents into binary.
* Then final step for this
```
$ sudo ./mk-image.sh
```
* This step creates linaro-rootfs.img file.

## Make a complete system image.
* Before do this, check these files exists:
1. boot.img ( uboot and kernel )
1. linaro-rootfs.img
* Then do this,
```
$ build/mk-image.sh -c rk3399 -t system -r rootfs/linaro-rootfs.img
```
* Then should flash system.img to zero address via rkdeveloptool.