Skip to content

Latest commit

 

History

History
50 lines (40 loc) · 1.77 KB

README.md

File metadata and controls

50 lines (40 loc) · 1.77 KB

Use with care!

Please, do not use kernel with these patches on a board without proper cooling!

I'm not responsible for any damage.

Please, review the code before use.


Description

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:

  1. read CPU/GPU temperature properly
  2. adjust CPU speed (review u-boot patches for details) using apm, please note throttling is not supported at the moment, set desired value using apm manually

Environment

  1. env - setup basic environment (review before use)
  2. bin/ - scripts
  3. build_cross_tools - build toolset necessary to crosscompile kernel
  4. build_kernel - build GENERIC.MP
  5. deploy - copy new kernel over ssh and install it, also write u-boot SPL
  6. checkout - repo from cvs
  7. cross_env - environment used by build_kernel
  8. patch - apply all *.patches from patches/
  9. update - repo from cvs
  10. update-patches - diff all modified files with their *.orig counterparts and put to patches/
  11. patches/ - A64 patches

Prerequisites

  1. build the port from https://github.com/elewarr/openbsd-ports-u-boot

Setup

  1. git clone [email protected]:elewarr/openbsd-arm64-src-dev.git
  2. cd openbsd-arm64-src-dev
  3. . ./env
  4. ./bin/checkout
  5. ./bin/build_cross_tools

Apply patches

  1. ./bin/patch

Build kernel

  1. ./bin/build_kernel

Deploy

Review and edit ./env before use.

  1. ./bin/deploy

Generate new patches - one per file (will overwrite existing ones)

  1. ./bin/update-patches