# build armbian
### clone repo
`git clone https://github.com/armbian/build`
```
Cloning into 'build'...
remote: Enumerating objects: 21, done.
remote: Counting objects: 100% (21/21), done.
remote: Compressing objects: 100% (19/19), done.
remote: Total 52235 (delta 5), reused 9 (delta 2), pack-reused 52214
Receiving objects: 100% (52235/52235), 328.31 MiB | 39.88 MiB/s, done.
Resolving deltas: 100% (35138/35138), done.
Checking out files: 100% (2603/2603), done.
```
goto build directory
`cd build`
find branches
`git branch -vva`
```
* master 1f95a008 [origin/master] [ rockchip64 ] clean out disabled patch
remotes/origin/AR-141 736a5869 Cleanup - remove not needed patches
remotes/origin/AR-157 cc6657c3 Suppress output
remotes/origin/HEAD -> origin/master
remotes/origin/chroot-nspawn 4b960ba5 [WIP] Replace chroot with systemd-nspawn for better reliability
remotes/origin/clearfog-msata 7ca0722b [ mvebu ] Fix clearfog pci to msata switching
remotes/origin/master 1f95a008 [ rockchip64 ] clean out disabled patch
remotes/origin/mvebu-kernel-update a3ef3fb1 Merge branch 'master' into mvebu-kernel-update
remotes/origin/rk3399-disable-overclocking 6ab3d3c5 Disabled overclocking of rk3399, added rk3399-overclock overlay
remotes/origin/tvboxes 8f7036dd Add support for A5X Max+ tv box. (#1415)
remotes/origin/v19.08 b3bb9345 Rock Pi 4 enable PCIe in device tree for "dev" target (#1624)
remotes/origin/v19.11 c16ea454 Adding CPU_MIN variable back to rockchip64 family config
remotes/origin/v20.02-rc0 1b457601 Merge branch 'master' into v20.02-rc0
remotes/origin/v20.02-rc1 1d23f369 Fixed the boot of 256M version of Rock Pi S (hopefully) (#1767)
```
checkout v20.02-rc1 branch
`git checkout v20.02-rc1`
confirm you're now on v20.02-rc1 branch
`git branch -v`
```
master 1f95a008 [ rockchip64 ] clean out disabled patch
* v20.02-rc1 1d23f369 Fixed the boot of 256M version of Rock Pi S (hopefully) (#1767)
```
compile board for kernel. Use FORCE_CHECKOUT=no flag to stay in current git branch.
`sudo ./compile.sh FORCE_CHECKOUT=no BOARD=rock64 BRANCH=current RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes
`