User Tools

Site Tools



en:bpi-r2pro:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
en:bpi-r2pro:start [2023/03/11 09:16] – [ATF] franken:bpi-r2pro:start [2024/02/17 13:49] frank
Line 10: Line 10:
 http://opensource.rock-chips.com/wiki_Boot_option http://opensource.rock-chips.com/wiki_Boot_option
 ===== hardware ===== ===== hardware =====
 +v0.0:
 +{{:en:bpi-r2pro:r2pro_00_top.jpg?direct&400 |}}{{ :en:bpi-r2pro:r2pro_00_bottom.jpg?direct&400|}}
 +
 +----
 +
 +v1.0:
 +{{:en:bpi-r2pro:r2pro_top.jpg?direct&400 |}}{{ :en:bpi-r2pro:r2pro_bottom.jpg?direct&400|}}
 +
 +==== specification ====
 +
  
   * Rockchip RK3568 Quad-core ARM Cortex-A55 CPU [[https://wiki.radxa.com/Rock3/hardware|TRM (Technical Reference Manual) ]]   * Rockchip RK3568 Quad-core ARM Cortex-A55 CPU [[https://wiki.radxa.com/Rock3/hardware|TRM (Technical Reference Manual) ]]
Line 16: Line 26:
     * v00:RTL8367RB-VB-CG Switch chip ([[https://drive.google.com/drive/folders/1EruavDemzSxQUi7GbHw8AMbC8nplEjKF|datasheet]])     * v00:RTL8367RB-VB-CG Switch chip ([[https://drive.google.com/drive/folders/1EruavDemzSxQUi7GbHw8AMbC8nplEjKF|datasheet]])
       * gmac1/eth0 - only for lan-ports (wan-port directly connected to gmac0/eth1 via RTL8211 PHY)       * gmac1/eth0 - only for lan-ports (wan-port directly connected to gmac0/eth1 via RTL8211 PHY)
-    * 1.0: mt7531be chip ([[https://drive.google.com/file/d/1aVdQz3rbKWjkvdga8-LQ-VFXjmHR8yf9/view?usp=sharing|datasheet]])+    * 1.0: MT7531BE chip ([[https://drive.google.com/file/d/1aVdQz3rbKWjkvdga8-LQ-VFXjmHR8yf9/view?usp=sharing|datasheet]])
       * vendor provides phy driver,dsa driver mainline but will need some changes       * vendor provides phy driver,dsa driver mainline but will need some changes
       * gmacs now swapped (gmac1 for wan,gmac0 with switch for lan)       * gmacs now swapped (gmac1 for wan,gmac0 with switch for lan)
Line 45: Line 55:
 There is a merge-request for basic support (bl31 without scmi and no ddr init): There is a merge-request for basic support (bl31 without scmi and no ddr init):
  
-https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16952/+https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/16952/8
- +
-I have merged it to my repo here:+
  
 +I have merged v11 to my repo here (only compilation tested yet):
  
 +https://github.com/frank-w/u-boot/tree/rk-atf
 ==== Uboot ==== ==== Uboot ====
 https://github.com/rockchip-linux/u-boot/blob/next-dev/configs/rk3568_defconfig https://github.com/rockchip-linux/u-boot/blob/next-dev/configs/rk3568_defconfig
Line 60: Line 70:
  
 :!: R2pro is supported only till 2022-04 as 2022-07 contains Patches that break atf inclusion :!: 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://github.com/frank-w/u-boot/tree/2023-04-bpi
  
 default boot way is via BPI-BOOT/extlinux/extlinux.conf default boot way is via BPI-BOOT/extlinux/extlinux.conf
Line 85: Line 97:
     append earlycon=uart8250,mmio32,0xfe660000 console=tty1 fbcon=map:0 console=ttyS2,1500000n8     append earlycon=uart8250,mmio32,0xfe660000 console=tty1 fbcon=map:0 console=ttyS2,1500000n8
 </code> </code>
 +
 +This is about to be changed with this u-boot patch series: https://patchwork.ozlabs.org/project/uboot/patch/20230409084454.v9.8.I4cf7708a1ba953b9abd81375d93af34665c7b251@changeid/
 +
 +So i'm adding fit booting and builtin env like for r64 and r3 for 2023.07+
 +
 +  BPI-R2PRO> ls $device $partition
 +  BPI-R2PRO> setenv fit bpi-r2pro-netnext.itb
 +  BPI-R2PRO> run buildargs
 +  BPI-R2PRO> fatload $device $partition $loadaddr $fit
 +  10845897 bytes read in 937 ms (11 MiB/s)
 +  BPI-R2PRO> bootm $loadaddr
 +
 +R2pro will be supprted as own board in uboot 2024.01.
 +
 +Pcie is usable too,but needs manual enabling regulators
 +
 +https://www.mail-archive.com/u-boot@lists.denx.de/msg488399.html
 +
 +
 +=== tftp ===
 +
 +  run buildargs
 +  tftp $loadaddr 192.168.0.10:6.6-main-bpi-r2pro.itb
 +  bootm $loadaddr
 ==== barebox ==== ==== barebox ====
 alternative to uboot as bootloader, supports ethernet/tftp-boot (wan-port only due to missing switch driver) alternative to uboot as bootloader, supports ethernet/tftp-boot (wan-port only due to missing switch driver)
Line 123: Line 159:
  
 Started my own work here: https://github.com/frank-w/BPI-R2-4.14/tree/5.16-next2 Started my own work here: https://github.com/frank-w/BPI-R2-4.14/tree/5.16-next2
 +
 +=== thermal ===
 +
 +  root@bpi-r2pro:~# cat /sys/class/thermal/thermal_zone0/temp                                                                               
 +  37222                                                                                                                                     
 +  root@bpi-r2pro:~# cat /sys/class/thermal/thermal_zone1/temp                                                                               
 +  35000 
  
 === Network === === Network ===
Line 163: Line 206:
   # mount -t debugfs none /sys/kernel/debug/   # mount -t debugfs none /sys/kernel/debug/
   # cat /sys/kernel/debug/gpio   # cat /sys/kernel/debug/gpio
-  # cat /sys/kernel/debug/pinctrl+  # cat /sys/kernel/debug/pinctrl/pinctrl-handles
   # cat /sys/kernel/debug/regulator/regulator_summary   # cat /sys/kernel/debug/regulator/regulator_summary
 +  # cat /sys/kernel/debug/clk/clk_summary
  
 === other === === other ===
en/bpi-r2pro/start.txt · Last modified: 2024/04/27 20:21 by frank