Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 2 additions & 56 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,56 +1,2 @@

Kernel 4.16 with patchwork from mediatek for BPI-R2

## Requirements

Need cross compile tools for the armhf architecture and additional bison and flex-package:
```sh
sudo apt-get install gcc-arm-linux-gnueabihf libc6-armhf-cross u-boot-tools bc make gcc libc6-dev libncurses5-dev libssl-dev bison flex
```

## Usage

./build.sh importconfig
./build.sh config
./build.sh

## Branch details

Kernel upstream branch are:
* 4.16, 4.14, 4.9

Kernel upstream + BPI-R2
* 4.16_main, 4.14_main, 4.9_main

## Kernel version

Kernel breakdown features by version

| | 4.4 | 4.9 | 4.14 | 4.16|
|----------| --- | --- | --- | ---|
| PCIe | Y | Y | Y | Y | Y |
| SATA | Y | Y | Y | Y | Y |
| 2 GMAC | Y | Y | N | N | N |
| DSA | N | Y | Y | Y | Y |
| VLAN | | | | | |
| HW NAT | | Y | Y | | |
| HW QOS | | Y | Y | | |
| Crypto | Y | Y | Y | Y | Y |
| WIFI | | | | | |
| BT | | | | | |
| VIDEO | Y | N | N | N | N |
| AUDIO | Y | N | N | N | N |

## Links

* BPI-R2: http://www.banana-pi.org/r2.html
* Kernel: https://www.kernel.org/
* linux-mediatek: https://patchwork.kernel.org/project/linux-mediatek/list/
* kernelci: https://kernelci.org/boot/mt7623n-bananapi-bpi-r2/

License
----

GPL-2.0

**Free Software, Hell Yeah!**
Kernel 4.16 from mediatek for BPI-R2
Please refer to [README.md](https://github.com/frank-w/BPI-R2-4.14/blob/4.14-main/README.md)
2 changes: 1 addition & 1 deletion drivers/gpu/drm/mediatek/mtk_dpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,7 @@ static int mtk_dpi_probe(struct platform_device *pdev)
struct device *dev = &pdev->dev;
struct mtk_dpi *dpi;
struct resource *mem;
struct device_node *ep, *bridge_node;
struct device_node *ep, *bridge_node = NULL;
int comp_id;
const struct of_device_id *match;
int ret;
Expand Down
4 changes: 2 additions & 2 deletions drivers/gpu/drm/mediatek/mtk_drm_fbdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,17 @@ static int mtk_fbdev_probe(struct drm_fb_helper *helper,

info = drm_fb_helper_alloc_fbi(helper);
if (IS_ERR(info)) {
err = PTR_ERR(info);
DRM_DEV_ERROR(dev->dev, "failed to allocate framebuffer info, %d\n",
err);
err = PTR_ERR(info);
goto out;
}

fb = mtk_drm_framebuffer_create(dev, &mode, private->fbdev_bo);
if (IS_ERR(fb)) {
err = PTR_ERR(fb);
DRM_DEV_ERROR(dev->dev, "failed to allocate DRM framebuffer, %d\n",
err);
err = PTR_ERR(fb);
goto out;
}
helper->fb = fb;
Expand Down