Linux kernel 4.14+ for BPI-R2
Clone or download
Pull request Compare This branch is 685 commits behind frank-w:4.14-main.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Documentation
arch
block
certs
crypto
cryptodev
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
utils
virt
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.travis.yml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
README.md
build.sh
openssl.sh
search.sh

README.md

Kernel 4.14 for BananaPi R2

Build status 4.14-main

Requirements

On a x86/x64-host you need cross compile tools for the armhf architecture (bison and flex-package are needed for kernels >=4.16):

sudo apt install gcc-arm-linux-gnueabihf libc6-armhf-cross u-boot-tools bc make gcc libc6-dev libncurses5-dev libssl-dev bison flex

If you build it directly on the BananaPi-R2 (not recommended) you do not need the crosscompile-packages gcc-arm-linux-gnueabihf and libc6-armhf-cross

Issues

Currently gcc7 is not supported (https://bugs.linaro.org/show_bug.cgi?id=3823)

sudo apt install gcc-5-arm-linux-gnueabihf
sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-7  50
update-alternatives: using /usr/bin/arm-linux-gnueabihf-gcc-7 to provide /usr/bin/arm-linux-gnueabihf-gcc (arm-linux-gnueabihf-gcc) in auto mode
sudo update-alternatives --install /usr/bin/arm-linux-gnueabihf-gcc arm-linux-gnueabihf-gcc /usr/bin/arm-linux-gnueabihf-gcc-5  100
update-alternatives: using /usr/bin/arm-linux-gnueabihf-gcc-5 to provide /usr/bin/arm-linux-gnueabihf-gcc (arm-linux-gnueabihf-gcc) in auto mode

sudo update-alternatives --config arm-linux-gnueabihf-gcc

Usage

  ./build.sh importconfig
  ./build.sh config (To configure manually with menuconfig)
  ./build.sh

Branch details

Kernel upstream + BPI-R2

Kernel versions

Kernel features by version

Feature 4.4 4.9 4.14 4.16 4.17 4.18 4.19 (rc)
PCIe Y Y Y Y ?
SATA Y Y Y Y? Y
2 GMAC Y Y Y N
DSA N Y Y Y Y Y Y
USB Y Y Y Y? ? Y
VLAN Y ?
HW NAT Y Y
HW QOS Y ?
Crypto Y Y Y Y?
WIFI Y Y Y Y Y Y
BT
VIDEO Y N Y Y Y
ACPI ? N Y N Y
Other options -- -- -- -- -- -- --
OpenVPN ? Y Y ? ?
iptables ? Y Y ? ? Y
LXC / Docker ? ? Y ? ?

Symbols:

Symbol Meaning
? Unsure
() Testing

(Testing in seperate branch wlan/hdmi/hwnat/hwqos)

  • HW-NAT only works between LAN and WAN (bridge unclear, wifi not supported)
  • HW-QoS is merged into 4.14-main, but we do not know how to test it
  • ACPI-feature means System is powered off, not only halted (power-consumption ~0.2W, no reboot on reset), reboot-problem with soldered power-switch (see https://github.com/frank-w/BPI-R2-4.14/issues/35). Power-off is also initiated by pressing the power-switch
  • VIDEO is hdmi-output (X-server/framebuffer-console)...here some resolutions are not supported by vendor-driver

kernel 4.4 / uboot: https://github.com/frank-w/BPI-R2-4.4

Links

License

GPL-2.0

Free Software, Hell Yeah!