GithubHelp home page GithubHelp logo

lasertooth / rpikernel Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dronebridge/rpikernel

0.0 1.0 0.0 271 KB

Sources of the current kernel used for the DroneBridge Raspberry Pi images & its patch files

License: GNU General Public License v3.0

Shell 100.00%

rpikernel's Introduction

RPiKernel

Sources of the current kernel used for the DroneBridge Raspberry Pi images & its patch files. Kernel source files contain the https://github.com/aircrack-ng/rtl8812au driver. It is experimental and not patched to output max power. Current branch is 5.20.x. You might want to update the files in the /drivers/net/wireless/rtl8812au folder

Building (cross compile)

Compile for Armv6 (Pi0) & Armv7 (Pi2+) using the instructions given here:

Copy the db.txt to drivers/net/wireless and enable CONFIG_CFG80211_INTERNAL_REGDB=y in the .conf files, if you want to built a new kernel without using the provided source code under "releases" in this repository.

  1. Rename the provided config files for both architectures to .conf depending what kernel you are building and copy them to the root folder of the sources (/linux/.conf).
  2. KERNEL=kernel or KERNEL=kernel7
  3. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig to configure the kernel for your needs
  4. Compile the kernel using make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- zImage modules dtbs -j 8 where 8 is your CPU core count
  5. Use the correct location of your mounted SD card/DroneBridge patitions (see raspberrypi.org docs). We use /dev/sddx here:
mkdir mnt
mkdir mnt/fat32
mkdir mnt/ext4
sudo mount /dev/sdd1 mnt/fat32
sudo mount /dev/sdd2 mnt/ext4
sudo make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- INSTALL_MOD_PATH=mnt/ext4 modules_install
sudo cp arch/arm/boot/zImage mnt/fat32/$KERNEL.img
sudo cp arch/arm/boot/dts/*.dtb mnt/fat32/
sudo cp arch/arm/boot/dts/overlays/*.dtb* mnt/fat32/overlays/
sudo cp arch/arm/boot/dts/overlays/README mnt/fat32/overlays/
sudo umount mnt/fat32
sudo umount mnt/ext4

How to apply patches

To apply the patches copy the .patch file to the kernel root src directory run patch -p0 < db_kernel_xxx.patch

Credits

  • Initial patches provided by rodizio1 in the EZ-Wifibroadcast project
  • Updated patches, move to Kernel 4.14.66 and integration of aircrack-ng/rtl8812au driver for DroneBridge by seeul8er

rpikernel's People

Contributors

seeul8er avatar

Watchers

James Cloos 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.