User Tools

Site Tools


Translations:
en

en:bpi-r2pro:start

Bananapi-R2 Pro

hardware

  • Rockchip RK3568 Quad-core ARM Cortex-A55 CPU
  • Rockchip RK809 PMIC
  • RTL8367RB-VB-CG Switch chip (datasheet)
    • gmac1/eth0 - only for lan-ports (wan-port directly connected to gmac0/eth1 via RTL8211 PHY)
  • debug-uart is fixed to 1.5 mbaud,which is not supported by common usb2serial adapters (like my cp2102). More info here
    • working adapters: ch340g, ft232rl, cp2104
    • minicom -D /dev/ttyUSB1 -b 1500000
  • ethernet/switch (phy+dsa driver)/poweroff/reset/usb3/sata working in my repo (branch 5.16-next2), pcie sometimes working, leds (green + blue) working (green is ON-indicator)
  • upper usb-Port (usbdrd3_0: usb@fcc00000,bus 2-1) has phy configured in rk3568.dtsi (combphy0 does not exist on rk3566), lower port (usbdrd3_1: usb@fd000000,bus 4-1) is configured in rk356x.dtsi (combphy1)
  • combphy2 is used for sata2 (sata@fc800000)

Software

ATF

Uboot

barebox

alternative to uboot as bootloader, supports ethernet/tftp-boot (wan-port only due to missing switch driver)

barebox

Image creation

Current way is spl-uboot in idblock.bin loading full uboot (fip,uboot.img) on separate partition (p1).

partition-layout from peter geis:

https://gitlab.com/pgwipeout/quartz64_ci/-/blob/main/.gitlab-ci.yml#L103

i use version from manjaro: https://gitlab.manjaro.org/manjaro-arm/applications/manjaro-arm-tools/-/blob/master/lib/functions.sh#L717

This way works with downstream (2017.x) and upstream (2021.10+) uboot. Upstream uboot cannot start linux kernel yet

Linux

Network

  • wan-port directly connected
  • lan-ports over switch
    • 3 switch drivers available, selectable in dts (in next2 tree all drivers are builtin):
      1. vendor phy driver (drivers/net/phy/rtk, CONFIG_RTL8367RB_GSW)
      2. my reduced phy driver (drivers/net/phy/rtl8367s_mdio.c, CONFIG_NET_REALTEK_MDIO)
      3. dsa driver (drivers/net/dsa/realtek/, CONFIG_NET_DSA_REALTEK)

display stuff

vop2 driver (needed for HDMI) based on 5.10 here

vop2 driver is posted to mainline here There some comments,so i wait for v2 before merging into my public tree. Additionally we need config in board dts similar to this and for resolution bug this seems to be needed. Hdmi audio and gpu support was posted too

V2 of vop2 is reported to be broken,maybe caused by clock hack

Rockchip DTS git

debugging
# mount -t debugfs none /sys/kernel/debug/
# cat /sys/kernel/debug/gpio
# cat /sys/kernel/debug/pinctrl
# cat /sys/kernel/debug/regulator/regulator_summary
en/bpi-r2pro/start.txt · Last modified: 2022/01/15 12:31 by frank