This is set of scripts for OpenBSD kernel development (huge words for just some humble attempts) for Pine A64+ arm64 boards.
Please note, some things may also work for other Sunxi boards but it was never tested.
With u-boot from this repository: https://github.com/elewarr/openbsd-ports-u-boot, A64 is able to:
- read CPU/GPU temperature properly
- adjust CPU speed (review u-boot patches for details) using
apm
, please note throttling is not supported at the moment, set desired value usingapm
manually
env
- setup basic environment (review before use)bin/
- scriptsbuild_cross_tools
- build toolset necessary to crosscompile kernelbuild_kernel
- buildGENERIC.MP
deploy
- copy new kernel over ssh and install it, also write u-boot SPLcheckout
- repo from cvscross_env
- environment used bybuild_kernel
patch
- apply all*.patches
frompatches/
update
- repo from cvsupdate-patches
- diff all modified files with their*.orig
counterparts and put topatches/
patches/
- A64 patches
- build the port from https://github.com/elewarr/openbsd-ports-u-boot
git clone git@github.com:elewarr/openbsd-arm64-src-dev.git
cd openbsd-arm64-src-dev
. ./env
./bin/checkout
./bin/build_cross_tools
./bin/patch
./bin/build_kernel
Review and edit ./env
before use.
./bin/deploy
./bin/update-patches