Debian install BPI-R2

Hello,

I bought 2 Bananapi R2 a few months ago. When I plug in and keep the power button pressed, 3 LEDs light up (blue, green, red) and when I release the button they go out. Nothing is displayed on the screen connected via HDMI either. I tried pushing multiple images to an SD card, I have the same behavior. I am a RaspberryPi user and expected to have such an easy time deploying an OS on BananaPi. I want to install Debian 10 or RaspiOS on a SD card and boot from it. Could someone help me?

Thank you,

Ben

Hdmi is available only in linux if hdmi driver is included and your monitor is supporting resolution configured. For debugging problems before hdmi is working you need debug-uart

You can try my [BPI-R2 new image] debian 10 buster image with Kernel 4.19.62

Afair i had included hdmi driver

Make sure your boot switch is in position “1” to boot from sdcard first and press powerbutton at least 10 seconds

in august 2020 i’ve uploaded updated image with newer uboot and kernel 5.4

bpi-r2-buster_5.4.58.img.gz

My BPI R2 still not able to boot using the image. I try to flash the SD using BalenaEtcher and also dd from a virtual machine with the sd attached to it:

dd if=bpi-r64_debian_stretch_4.19.20.img of=/dev/sdb bs=1M

I can see the partition on the SD :

root@host:~#fdisk -l /dev/sdb
Disk /dev/sdb: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Disk model: Card  Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x349e4233

Device     Boot  Start      End  Sectors  Size Id Type
/dev/sdb1       204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/sdb2       729088 14940159 14211072  6.8G 83 Linux

All files look to be there :

root@host:~# mount /dev/sdb1 /mnt
root@host:~# find /mnt/
/mnt/
/mnt/bananapi
/mnt/bananapi/bpi-r64
/mnt/bananapi/bpi-r64/linux
/mnt/bananapi/bpi-r64/linux/dtb
/mnt/bananapi/bpi-r64/linux/dtb/4.19.0-r64-main.dtb
/mnt/bananapi/bpi-r64/linux/dtb/4.19.20-r64-main.dtb
/mnt/bananapi/bpi-r64/linux/dtb/4.19.20-r64-main-gpio.dtb
/mnt/bananapi/bpi-r64/linux/uImage_4.19.0-r64-main
/mnt/bananapi/bpi-r64/linux/uImage_4.19.20-r64-main
/mnt/uEnv.txt
/mnt/uEnv.txt~
/mnt/System Volume Information
/mnt/System Volume Information/WPSettings.dat
/mnt/System Volume Information/IndexerVolumeGuid
root@host:~# umount /mnt
root@host:~# mount /dev/sdb2 /mnt/
root@host:~# ls -l /mnt/
total 88
drwxr-xr-x  2 root root  4096 Feb  3  2019 bin
drwxr-xr-x  2 root root  4096 Feb  3  2019 boot
drwxr-xr-x  4 root root  4096 Feb  3  2019 dev
drwxr-xr-x 56 root root  4096 Feb 11  2019 etc
drwxr-xr-x  2 root root  4096 Feb  3  2019 home
drwxr-xr-x 12 root root  4096 Feb 11  2019 lib
drwx------  2 root root 16384 Feb  3  2019 lost+found
drwxr-xr-x  2 root root  4096 Feb  3  2019 media
drwxr-xr-x  2 root root  4096 Feb  3  2019 mnt
drwxr-xr-x  2 root root  4096 Feb  3  2019 opt
drwxr-xr-x  2 root root  4096 Feb  3  2019 proc
drwx------  3 root root  4096 Feb  3  2019 root
drwxr-xr-x  4 root root  4096 Feb  3  2019 run
drwxr-xr-x  2 root root  4096 Feb  3  2019 sbin
drwxr-xr-x  2 root root  4096 Feb  3  2019 srv
drwxr-xr-x  2 root root  4096 Feb  3  2019 sys
drwxrwxrwt  7 root root  4096 Feb  3  2019 tmp
drwxr-xr-x 10 root root  4096 Feb  3  2019 usr
drwxr-xr-x 11 root root  4096 Feb  3  2019 var

I notice a boot flag were not there I added it on /dev/sdb1 :

root@host:~# fdisk -l /dev/sdb
Disk /dev/sdb: 14.9 GiB, 15931539456 bytes, 31116288 sectors
Disk model: Card  Reader
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x349e4233

Device     Boot  Start      End  Sectors  Size Id Type
/dev/sdb1  *    204800   729087   524288  256M  c W95 FAT32 (LBA)
/dev/sdb2       729088 14940159 14211072  6.8G 83 Linux 

Am I missing something ?

The right image :slight_smile: you try to flash r64 image

:rofl: I downloaded the right one but not flashed with the right. :rofl: It work with the right image. I happy to get my BPI running with the OS I want.

Hello,

Iptables modules are missing.

For example : root@bpi-r2:~# modprobe xt_multiport modprobe: FATAL: Module xt_multiport not found in directory /lib/modules/5.4.58-bpi-r2-main

The package linux-image-armmp contains the modules but it is for another kernel as the one provided for Bananapi R2.

How can I add/install modules for the kernel provided by bananapi ?

Thank you for your help

You can build own kernel from my repo…your current running kernel is from 5.4-main branch,but i have updated it…

Using known steps for building kernel and before building go into menuconfig via

./build.sh config

And enable the module you want, then build and install to sdcard