BPI-R64 + Armbian

Hi,

I ported (almost) Armbian to BPI-64, see https://github.com/muravjov/armbian-build .

The images are being built Travis and you may find them at https://github.com/muravjov/armbian-build/releases .

In fact now is only one release with kernel built by @frank-w at https://github.com/frank-w/BPI-R2-4.14/releases/download/CI-BUILD-20200225_203315-c075525e6/linux-image-5.4.22-bpi-r64-main_5.4.22-bpi-r64-main-2_arm64.deb .

How to use:

# get the image
wget https://github.com/muravjov/armbian-build/releases/download/2020-03-02_c539c65/Armbian_20.05.0-trunk_Bananapir64_buster.img.zip

# write to SD card
unzip -p ./Armbian_20.05.0-trunk_Bananapir64_buster.img.zip | pv | sudo dd of=/dev/mmcblk0 bs=10M status=noxfer

# turn on BPI-R64 with the SD card

| __ )|  _ \(_) |  _ \ / /_ | || |  
|  _ \| |_) | | | |_) | '_ \| || |_ 
| |_) |  __/| | |  _ <| (_) |__   _|
|____/|_|   |_| |_| \_\\___/   |_|  
                                    
Welcome to Armbian buster with Linux 5.4.22-bpi-r64-main

No end-user support: built from trunk

System load:   0.39 0.17 0.06   Up time:       1 min
Memory usage:  5 % of 994MB     IP:            
CPU temp:      42�°C           
Usage of /:    4% of 15G    

New to Armbian? Check the documentation first: https://docs.armbian.com


You are using an Armbian preview build !!!

This image is provided AS IS with NO WARRANTY and NO END USER SUPPORT!.

Login/password are standard for Armbian: root/1234

I attached logs:

journalctl -b > journalctl.txt
cp /var/log/armbian-hardware-monitor.log armbian-hardware-monitor.log
dmesg -t > dmesg.txt

armbian-hardware-monitor.log (28.9 KB) dmesg.txt (14.7 KB) journalctl.txt (58.6 KB)

3 Likes

What is missing ?

armbianmonitor -u tells the reader all the details about your Installation, like Kernel-Version and much more

Status:

Ideally, one should build u-boot in Armbian way and make use of /boot/armbianEnv.txt instead of /boot/bananapi/bpi-r64/linux/uEnv.txt .I am not so good at u-boot so it needs time to build it, i try later. But at the same time it is a feature: you can you Armbian and use kernels from @frank-w .

armbianmonitor -u : http://ix.io/2dcB

Also see:

https://github.com/frank-w/BPI-R2-4.14/issues/70

https://github.com/frank-w/BPI-R2-4.14/issues/71

Config options i can add when i’m at home…uboot you should use 2020-04-pwm because also ethernet driver is merged there

Edit: options added

Now with latest kernel update all armbian features works, including zram and wireguard.

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