Git Product home page Git Product logo

ruhansa079 / bpi-m2z-kernel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mo3rfan/bpi-m2z-kernel

0.0 0.0 0.0 215.93 MB

Linux kernel based on the mainline 5.17.5 kernel for BananaPi M2 Zero with WiFi + BT

License: Other

Shell 0.33% C++ 0.03% Python 0.12% Perl 0.12% C 98.18% Clojure 0.01% Assembly 0.93% Awk 0.01% UnrealScript 0.01% Makefile 0.22% XS 0.01% Yacc 0.01% Lex 0.01% M4 0.01% Roff 0.02% Gherkin 0.01% sed 0.01% SmPL 0.02% Raku 0.01%

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. Note that the WiFi driver is missing, need to add it via Linux firmware blob(s)

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.1 NOTE: Seems like that the normal arm-linux-gnueabihf- package from Ubuntu's repos is enough for compiling the kernel.

sudo apt install arm-linux-gnueabihf
prepend this to the make command: CROSS_COMPILE=arm-linux-gnueabihf-
  1. Install the following tools and libs:
sudo apt-get install flex bison g++ libgmp3-dev libmpc-dev device-tree-compiler build-essential python3-setuptools python3-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)

3.1 Normal arm-linux-gnueabi cross-compiler:

make INSTALL_MOD_PATH=output ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- m2z_lima_defconfig zImage modules modules_install dtbs -j$(nproc)
  1. Copy over the output/* (lib/modules) into rootfs of memory card
sudo cp -vfr ./output/lib/* /dev/sda2/lib/
sync
  1. Install into the /boot dir of the memory card:
sudo cp -fv ./arch/arm/boot/zImage /dev/sda1/zImage
sync
sudo cp -fv ./arch/arm/boot/dts/bpi-m2-zero-v4.dtb /dev/sda1/bpi-m2-zero.dtb
sync
  1. Install/transfer the correct WiFi radio blob to /lib/firmware
TODO
  1. Copy Buildroot/barebones OS rootfs to SDCard for fast booting. This kernel takes 3s to boot itself, with userspace taking 10s+ to a login shell. (Normal Bookworm rootfs)
TODO

Changes from mainline

bpi-m2z-kernel's People

Contributors

mo3rfan avatar ruhansa079 avatar

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.