Skip to content

Build script to build Debian 10 for the FriendlyELEC NanoPi H5 based boards

Notifications You must be signed in to change notification settings

raymendo/npn2-debian

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npn2-debian

Build script to build a Debian 10 image for FriendlyARM NanoPi H5 based boards, as well as all dependencies. This includes the following:

Note that there are patches/modifications applied to the kernel and u-boot. The changes made can be seen in the ./patches and ./overlay directories. Also, a ./downloads directory is generated to store a copy of the toolchain during the first build.

Supported Boards

Currently images for the following devices are generated:

  • FriendlyARM NanoPi Neo2
  • FriendlyARM NanoPi Neo2 v1.1
  • FriendlyARM NanoPi Neo2 Black
  • FriendlyARM NanoPi Neo Core2
  • FriendlyARM NanoPi Neo Plus2
  • FriendlyARM NanoPr R1S H5

Requirements

  • The following packages on your Debian/Ubuntu build host: bc binfmt-support build-essential debootstrap device-tree-compiler dosfstools fakeroot git kpartx lvm2 parted python-dev python3-dev qemu qemu-user-static swig wget

Usage

  • Just run sudo ./build.sh.
  • Completed builds output to ./output
  • To cleanup and clear all builds, run sudo ./build.sh clean

Flashing

  • Take your completed image from ./output and extract it with gunzip
  • Flash directly to an SD card. Example: dd if=./neo-core2*.img of=/dev/mmcblk0 bs=4M conv=fdatasync

To Do

  • Bring back kernel overlay support (hoping this gets mainlined for arm64)
  • Get bluetooth working on the Plus2 board

Notes

  • This is a pet project that can change rapidly. Production use is not advised. Please only proceed if you know what you are doing!
  • The Neo2 image will work on both version v1.0 and v1.1. The v1.1 image will only boot correctly on v1.1 boards, due to it supporting higher voltage CPU speeds. Running the v1.1 image on a v1.0 board WILL cause kernel panics during boot!

About

Build script to build Debian 10 for the FriendlyELEC NanoPi H5 based boards

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 91.4%
  • Batchfile 8.6%