en:bpi-r2pro:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:bpi-r2pro:start [2022/02/28 07:33] – [hardware] frank | en:bpi-r2pro:start [2024/04/27 20:21] (current) – [Linux] frank | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BananaPi R2 Pro ====== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | http:// | ||
+ | |||
+ | Official uboot/ | ||
+ | |||
+ | Informations about boot-chain: | ||
+ | http:// | ||
+ | ===== hardware ===== | ||
+ | v0.0: | ||
+ | {{: | ||
+ | |||
+ | ---- | ||
+ | |||
+ | v1.0: | ||
+ | {{: | ||
+ | |||
+ | ==== specification ==== | ||
+ | |||
+ | |||
+ | * Rockchip RK3568 Quad-core ARM Cortex-A55 CPU [[https:// | ||
+ | * Rockchip RK809 PMIC | ||
+ | * switch: | ||
+ | * v00: | ||
+ | * gmac1/eth0 - only for lan-ports (wan-port directly connected to gmac0/eth1 via RTL8211 PHY) | ||
+ | * 1.0: MT7531BE chip ([[https:// | ||
+ | * vendor provides phy driver,dsa driver mainline but will need some changes | ||
+ | * gmacs now swapped (gmac1 for wan,gmac0 with switch for lan) | ||
+ | * debug-uart is fixed to 1.5 mbaud,which is not supported by common usb2serial adapters (like my cp2102). More info [[https:// | ||
+ | * working adapters: ch340g, ft232rl, cp2104 | ||
+ | * minicom -D / | ||
+ | * on v1.0 micro-usb can be used as debug-uart too | ||
+ | * ethernet/ | ||
+ | * upper usb-Port (usbdrd3_0: usb@fcc00000, | ||
+ | * combphy2 is used for sata2 (sata@fc800000) | ||
+ | * [[GPIO]] | ||
+ | * if emmc is bootable, it will be booted first, sdcard boot is only possible when pressing sw1 while poweron (till bl2 is shown) | ||
+ | ===== Software ===== | ||
+ | |||
+ | my board had a broken bootchain on emmc which prevents bootup from sdcard. Board can be booted up when pressing switch labeled " | ||
+ | |||
+ | dd if=/ | ||
+ | |||
+ | erasing the first 2M was not enough (should delete the idbloader at block 64)... | ||
+ | ==== ATF ==== | ||
+ | |||
+ | Currently only binaries, no source | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | There is a merge-request for basic support (bl31 without scmi and no ddr init): | ||
+ | |||
+ | https:// | ||
+ | |||
+ | I have merged v11 to my repo here (only compilation tested yet): | ||
+ | |||
+ | https:// | ||
+ | ==== Uboot ==== | ||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | My own work: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | :!: R2pro is supported only till 2022-04 as 2022-07 contains Patches that break atf inclusion | ||
+ | |||
+ | 2023-04 got patches to support r2ro again: https:// | ||
+ | |||
+ | default boot way is via BPI-BOOT/ | ||
+ | |||
+ | < | ||
+ | menu title Select the boot mode | ||
+ | #timeout 1/10s | ||
+ | TIMEOUT 50 | ||
+ | DEFAULT linux | ||
+ | |||
+ | LABEL linux | ||
+ | #KERNEL bpi-r2pro.itb | ||
+ | linux Image_5.17.gz | ||
+ | fdt rk3568-bpi-r2-pro.dtb | ||
+ | initrd / | ||
+ | #APPEND root=/ | ||
+ | append earlycon=uart8250, | ||
+ | |||
+ | LABEL linux-5.18-hdmi | ||
+ | #KERNEL bpi-r2pro.itb | ||
+ | linux Image_5.18_hdmi.gz | ||
+ | fdt rk3568-bpi-r2-pro-hdmi.dtb | ||
+ | initrd / | ||
+ | #APPEND root=/ | ||
+ | append earlycon=uart8250, | ||
+ | </ | ||
+ | |||
+ | This is about to be changed with this u-boot patch series: https:// | ||
+ | |||
+ | So i'm adding fit booting and builtin env like for r64 and r3 for 2023.07+ | ||
+ | |||
+ | BPI-R2PRO> | ||
+ | BPI-R2PRO> | ||
+ | BPI-R2PRO> | ||
+ | BPI-R2PRO> | ||
+ | 10845897 bytes read in 937 ms (11 MiB/s) | ||
+ | BPI-R2PRO> | ||
+ | |||
+ | R2pro will be supprted as own board in uboot 2024.01. | ||
+ | |||
+ | Pcie is usable too,but needs manual enabling regulators | ||
+ | |||
+ | https:// | ||
+ | |||
+ | |||
+ | === tftp === | ||
+ | |||
+ | run buildargs | ||
+ | tftp $loadaddr 192.168.0.10: | ||
+ | bootm $loadaddr | ||
+ | ==== barebox ==== | ||
+ | alternative to uboot as bootloader, supports ethernet/ | ||
+ | |||
+ | [[barebox]] | ||
+ | ==== Images ==== | ||
+ | |||
+ | Debian/ | ||
+ | https:// | ||
+ | |||
+ | Armbian: | ||
+ | |||
+ | Source/ | ||
+ | |||
+ | Download: | ||
+ | https:// | ||
+ | |||
+ | ==== Image creation ==== | ||
+ | |||
+ | Current way is spl-uboot in idblock.bin loading full uboot (fip, | ||
+ | |||
+ | partition-layout from peter geis: | ||
+ | |||
+ | https:// | ||
+ | |||
+ | i use [[https:// | ||
+ | |||
+ | This way works with downstream (2017.x) and upstream (2021.10+) uboot. [[Barebox]] does not need uboot partition, | ||
+ | ==== Linux ==== | ||
+ | |||
+ | https:// | ||
+ | |||
+ | https:// | ||
+ | |||
+ | precompiled kernel/ | ||
+ | |||
+ | https:// | ||
+ | |||
+ | Started my own work here: https:// | ||
+ | |||
+ | openwrt (currently only pull request): | ||
+ | https:// | ||
+ | |||
+ | === thermal === | ||
+ | |||
+ | root@bpi-r2pro: | ||
+ | 37222 | ||
+ | root@bpi-r2pro: | ||
+ | 35000 | ||
+ | |||
+ | === Network === | ||
+ | |||
+ | * wan-port directly connected | ||
+ | * lan-ports over switch | ||
+ | * v00: 3 switch drivers available, selectable in dts (in next2 tree all drivers are builtin): | ||
+ | - vendor phy driver (drivers/ | ||
+ | - my reduced phy driver (drivers/ | ||
+ | - dsa driver (drivers/ | ||
+ | * v1.0: | ||
+ | * phy driver working in 5.17 | ||
+ | * dsa driver detects switch/ | ||
+ | |||
+ | Further trees (like 5.17-r2pro*) will not contain the full phy driver,only my reduced version and dsa. | ||
+ | |||
+ | === display stuff === | ||
+ | |||
+ | vop2 driver (needed for HDMI) | ||
+ | |||
+ | V5 seems to work good for 720p, 1080p and 4k | ||
+ | |||
+ | https:// | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Have hdmi output, hdmi audio, gpu works with peters defconfig. | ||
+ | |||
+ | needs actual userspace (e.g. ubuntu 21.10) and ppa: | ||
+ | https:// | ||
+ | |||
+ | in wayland/ | ||
+ | |||
+ | apt install gnome weston gl2mark | ||
+ | | ||
+ | weston-info shows resolution | ||
+ | |||
+ | === debugging === | ||
+ | |||
+ | # mount -t debugfs none / | ||
+ | # cat / | ||
+ | # cat / | ||
+ | # cat / | ||
+ | # cat / | ||
+ | |||
+ | === other === | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | Sound / [[Alsa]] | ||
en/bpi-r2pro/start.txt · Last modified: 2024/04/27 20:21 by frank