Skip to content

elewarr/openbsd-arm64-src-dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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

About

Set of scripts for arm64 kernel deployment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages