[BPI-R3] Debian Bullseye Image

hi

i recreate the kernel again , backup the boot dir and overwrite the old files with the new kernel , now he boot again and i have my mpls and vrf lite

holger

Ok,but still wonder why uenv.txt setting is not recognized…

Do you have

  • /dev/mmcblk0p5 mounted to /boot
  • A itb file from deb-package with kernel version number in /boot
  • An uEnv.txt in /boot with line fit=<filename of itb>

?

root@bpir3:/home/glaess# mount | grep blk
/dev/mmcblk0p6 on / type ext4 (rw,relatime)
/dev/mmcblk0p5 on /boot type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

root@bpir3:/home/glaess# ls -l /boot
insgesamt 31478
drwxr-xr-x 2 root root     2048  2. Mai 12:42 6_1_50
-rwxr-xr-x 1 root root    21335  2. Mai 12:38 bpi-r3.dtb
-rwxr-xr-x 1 root root  8671816  2. Mai 12:38 bpi-r3.itb
-rwxr-xr-x 1 root root 23534144  2. Mai 12:38 uImage_nodt

i hope that helps as answer. all file from my own build kernel package

You do not need uImage_nodt and dtb…only the itb. The other 2 files are for making tests with overlays or using separate dtb. And i see no uEnv.txt there…default value for fit var is bpi-r3.itb,so this is why it works

Hello. I burned the Debian Bullseye Image to the SD card. Is there a possibility to connect via LAN? I don’t have a UART. After booting from the SD card, I don’t get an IP asres and thus I don’t have a connection via SSH.

R3 should have 192.168.1.1 on lan-ports. If your Client has address (also manually assignable) in this /24 subnet you should be able to ping r3 and connect vis ssh.

Are you sure r3 is succesful booted? For deeper analysis uart is required.

Btw. Current Debian stable is bookworm. I have automatic builds (from my BPI-Router-Images repo) on my gdrive.

https://drive.google.com/drive/folders/1A5S7_82Bg4EYxjzdQ5FKyBw9Qi2C3uK-?usp=drive_link

Hello. Thanks a lot for the response. I burned Bookworm to an SD card. I managed to connect to the Banana Pi via LAN. I connected a parent router with internet access to the WAN. Unfortunately Banana Pi is not connected to the internet. Need to set something up? Without internet I am not able to do the next setup steps. By the way. What is the WiFi password r3_ap0?

It depends what your settings are set for internet on r3 (from dhcp). Check dns-settings and routes. For client internet you will need nat on wan and forward enabled via sysctl.

Wifi settings are in /etc/hostapd/ afair i had set default pw to 12345678

Thanks for the info. I managed to get both wlan0 and wlan1 working, which I included in bridge lanbr0 and let them distribute ip addresses from the bridge pool. It totally works. Just one small problem that I can’t seem to resolve. After rebooting the Banana Pi wlan0 and wlan1 broadcast wifi but won’t connect the client until I run systemctl restart systemd-networkd via ssh. What is wrong? Do both wlan0 and wlan1 really have the same MAC address?

Not used wifi in bridges yet,so cannot tell this,but afair wifi interfaces should have their own mac

And you can set the bridge in hostapd.conf, do not do that from systemd-networkd, if perhaps you did that.

Will Docker work on this image? So far, trying to start the container ends with an error:

docker: Error response from daemon: Failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error setting cgroup config for procHooks process: bpf_prog_query(BPF_CGROUP_DEVICE) failed: invalid argument: unknown

I guess you need to add BPF_CGROUP_DEVICE to kernel. I have only added required options to kernel. It is no complete kernel for every usecase…but the you can still use the inage and replace kernel

Do you have a guide on how to do this? Or can I use this?

git clone --depth 1 https://github.com/armbian/build
cd build

./compile.sh

cd output/kernel
make menuconfig

make -j$(nproc)

sudo make modules_install
sudo cp arch/arm/boot/zImage /boot/vmlinuz-$(make kernelrelease)
sudo cp System.map /boot/System.map-$(make kernelrelease)
sudo cp .config /boot/config-$(make kernelrelease)


Armbian is completely different system and i guess official one does not support r3,maybe use erics version.

But when you use my debian image you can build+install kernel with the build.sh from my kernel repo

Did you mean CONFIG_BPF_SYSCALL?

I would have to check if I have CONFIG_BPF_SYSCALL enabled… From an older .config I can see from here that I have that set to Y, so I assume on latest version it is the same.

So radek can use archlinuxarm, or extract the kernel from the package, which is a simple archive.

No, he needs bpf support in cgroups, so CONFIG_CGROUP_BPF but this depends on syscall.

Only copied previous from the error message without searching for exact config option

That I do not have set (yet).

It’s a pity that there is no full-fledged Linux image. My goal is to build a linux server on a bpi-r3 with a wifi router, NAS, print server, docker, etc. For users with less experience with kernel compilations, this is very complicated.

It is a dev-board…we did much work to get it as easy as possible :slight_smile:

Every user has different requirements and build all possible options into it…that makes testing more time consuming…so i added the common options and for specific things users have to add it.