BPI-R64 + Armbian

Do you ise latest uboot (with switch driver and pwm/binman fix) from my repo?

Nope, I just use your old build u-boot-mtk_r64_sd_mt7531_gcc8.3.bin

I am short on time to do it.

Is it that important to use latest uboot?

This file is imho version 2014-04 from bpi-r64 branch.

As a first test you can use this branch (change build.conf to bpi-r64 first): https://github.com/frank-w/u-boot/tree/2020-04-bpi-pwm

I will rebase next days to remove reverted commits and to update uboot to rc3/rc4

And it will be similar for Bananapi-r2 ?

There is support for BPI R2 in Armbian, you may download image with kernel 4.19, https://www.armbian.com/bananapi-r2/

or build image with latest 5.4 kernel with command

./compile.sh BOARD="bananapir2" BRANCH="dev" RELEASE="buster" CARD_DEVICE="/dev/mmcblk0" \
KERNEL_ONLY="no" KERNEL_CONFIGURE="no" INSTALL_HEADERS="yes" BUILD_DESKTOP="no" BUILD_MINIMAL="yes"

Yes, but this kernel does not support hdmi and wifi

You can build image with latest 5.4 kernel with command

./compile.sh BOARD="bananapir2" BRANCH="dev" RELEASE="buster" CARD_DEVICE="/dev/mmcblk0" \
KERNEL_ONLY="no" KERNEL_CONFIGURE="no" INSTALL_HEADERS="yes" BUILD_DESKTOP="no" BUILD_MINIMAL="yes"

But still only mainline-kernel,right? So no hdmi and internal wifi…

No, that command “git clone”-s your repo, so there will be latest kernel I believe.

Ah ok, i was not aware that they include my repo…

It’s DEV & more or less entirely a community contribution. Currently broken in the packaging areas which we otherwise fix with one patch. Now … some rework is needed to get this working again.

But 4.19.y is functional again as/on the level it was before …

in 4.19 at least vlan is not working…have patched 5.4 to get this, but it’s not compatible with 4.19 (can be applied but does not work)

i have currently 5.4 running on my main-router and except a WARN_ONCE for mt7612e wifi-card and some hostapd-messages (need self-compiled hostapd on stretch) i have no problems

I try this command, but I get an error:

[ o.k. ] Using config file [ /home/victor/armbian/build/userpatches/config-example.conf ]
[ o.k. ] Command line: setting BOARD to [ bananapir2 ]
[ o.k. ] Command line: setting BRANCH to [ dev ]
[ o.k. ] Command line: setting RELEASE to [ buster ]
[ o.k. ] Command line: setting CARD_DEVICE to [ /dev/mmcblk0 ]
[ o.k. ] Command line: setting KERNEL_ONLY to [ no ]
[ o.k. ] Command line: setting KERNEL_CONFIGURE to [ no ]
[ o.k. ] Command line: setting INSTALL_HEADERS to [ yes ]
[ o.k. ] Command line: setting BUILD_DESKTOP to [ no ]
[ o.k. ] Command line: setting BUILD_MINIMAL to [ yes ]
[ error ] ERROR in function source [ main.sh:272 ]
[ error ] Kernel branch not defined for this board [ dev ]
[ o.k. ] Process terminated
1 Like

Is it possible to install your kernel in armbian? For example 4.19.X. for BPI-R2 ?

Basicly this should be possible, but i don’t know way to change the kernelfile to be booted in uboot for armbian…i guess the way is bit different

Well, that’s all clear.

Then another question: Is there any instruction on how to configure in armbian internal wifi for PI-R2. By default, it is disabled, and an attempt to use a wifi script causes an error.

I guess armbian kernel has not included the wifi driver which is too large and dirty.

The armbian website says: onboard wireless is too fragile, disabled by default.

This probably means that there are probably drivers, but do you need to enable them somehow when building the kernel? But unfortunately the link on their site is not working, error 404. Has anyone tried this?

I guess (if they included driver) the code is taken from my repo and should be located in drivers/misc/mediatek

If you have this folder (does not exist in mainline) you can enable it with these options

I see that it is mentioned as not working but works so far…just ignore comment.but this thread is about r64…