Giter Site home page Giter Site logo

mo3rfan / bpi-m2z-kernel Goto Github PK

View Code? Open in Web Editor NEW
7.0 1.0 3.0 215.93 MB

Linux kernel based on the mainline 5.17.5 kernel for BananaPi M2 Zero with WiFi (and wireguard)

License: Other

Makefile 0.22% Roff 0.02% C 98.18% Assembly 0.93% Shell 0.33% Perl 0.12% C++ 0.03% Awk 0.01% Python 0.12% sed 0.01% Yacc 0.01% Lex 0.01% UnrealScript 0.01% SmPL 0.02% Gherkin 0.01% XS 0.01% Raku 0.01% Clojure 0.01% M4 0.01%
banana-pi-m2-zero bananapi-m2-zero bananapi-m2z linux-kernel

bpi-m2z-kernel's Introduction

BPI-M2 Zero kernel

Linux kernel based on the mainline 5.17.5 kernel for Banana Pi M2 Zero with WiFi (and wireguard)

Build & Install

  1. I built this on Ubuntu 22.04 x86_64 with the Arm GNU Toolchain (arm-none-linux-gnueabihf), so download and extract it and set the bin dir to PATH:
export PATH=$PATH:/opt/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/bin
  1. Install the following tools and libs:
sudo apt-get install flex bison g++ libgmp3-dev libmpc-dev
  1. Build from this project root.
make INSTALL_MOD_PATH=output ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- m2z_lima_defconfig zImage modules modules_install dtbs -j$(nproc)
  1. Copy over the output/* (lib/modules) into rootfs of memory card (Follow the instructions here to install ubuntu in the memory card):
sudo cp -vfr ./output/* /
sync
  1. Install into the /boot dir of the memory card:
export KV=$(strings ./arch/arm/boot/Image | grep "Linux version" -m 1 | awk '{print $3}')
sudo cp -fv ./arch/arm/boot/zImage /boot/zImage_${KV}
sync
sudo cp -fv ./arch/arm/boot/dts/bpi-m2-zero-v4.dtb /boot/bpi-m2-zero.dtb_${KV}
sync
  1. Update the symlinks to point to new dtb and zImage inside /boot
cd /boot/
sudo ln -sf bpi-m2-zero.dtb_${KV} bpi-m2-zero.dtb
sudo ln -sf zImage_${KV} zImage

Changes from mainline

bpi-m2z-kernel's People

Contributors

mo3rfan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

bpi-m2z-kernel's Issues

grep for kernel version fails for me

The command:
export KV=$(strings ./arch/arm/boot/Image |grep "Linux version"|awk '{print $3}')

gives me KV=5.17.5+ %s

Which I think is incorrect.

This:
export KV=$(strings ./arch/arm/boot/Image |grep "Linux version 5"|awk '{print $3}')

gets me KV=5.17.5+

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.