User Tools

Site Tools



en:bpi-r4: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
en:bpi-r4:start [2024/04/21 12:48] – [thermal] franken:bpi-r4:start [2024/05/07 07:56] (current) – [Network] frank
Line 31: Line 31:
  
 {{:en:bpi-r4:bpi-r4_v1.1_top.jpg?direct&400 |}} {{ :en:bpi-r4:bpi-r4_v1.1_bottom.jpg?direct&400|}} {{:en:bpi-r4:bpi-r4_v1.1_top.jpg?direct&400 |}} {{ :en:bpi-r4:bpi-r4_v1.1_bottom.jpg?direct&400|}}
 +
 +
 +
 ===== thermal ===== ===== thermal =====
 +
 +  cat /sys/class/thermal/thermal_zone0/temp
  
 Uses lvts driver Uses lvts driver
Line 80: Line 85:
  
 NETSYS: V2 for mt7986 (bpi-r3) V3 for mt7988 (bpi-r4) NETSYS: V2 for mt7986 (bpi-r3) V3 for mt7988 (bpi-r4)
 +
 +Daniel tells me that lro should be enabled via userspace with
 +
 +  ethtool -N $ifname flow-type tcp4 dst-ip $lan_ip loc 0
 ==== Wifi ==== ==== Wifi ====
  
Line 125: Line 134:
 {{ :en:bpi-r4:bpi-r4-gpio.png?direct&400 |}} {{ :en:bpi-r4:bpi-r4-gpio.png?direct&400 |}}
  
 +===== eeprom =====
 +
 +BPI-R4 has an eeprom on i2c-mux channel 0
 +
 +  [ 1.515672] at24 2-0057: 256 byte 24c02 EEPROM, writable, 1 bytes/write
 +
 +write-mode (wp-gpio is linked to green led):
 +<code>
 +# echo 0 > /sys/devices/platform/gpio-leds/leds/green:status/brightness
 +root@bpi-r4-v11:~
 +# echo "test" > /sys/bus/i2c/devices/2-0057/eeprom
 +root@bpi-r4-v11:~
 +# hexdump -C /sys/bus/i2c/devices/2-0057/eeprom
 +00000000  74 65 73 74 0a ff ff ff  ff ff ff ff ff ff ff ff  |test............|
 +00000010  ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff  |................|
 +*
 +00000100
 +root@bpi-r4-v11:~
 +# echo 1 > /sys/devices/platform/gpio-leds/leds/green:status/brightness
 +root@bpi-r4-v11:~
 +</code>
 +
 +===== rtc =====
 +
 +Battery connection looks like charging circuit for ml2032. You should not connect non-rechargeable battery like cr2032.
 +
 +https://forum.banana-pi.org/t/bpi-r3-bpi-r4-does-the-bpi-r3-r4-have-a-rtc/17763/36
 +
 +Connector is JST with 1.25mm pitch
 +
 +RTC time will survive software reboot
 +<code>
 +# dmesg | grep rtc
 +[    1.479923] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
 +[    1.487390] rtc-pcf8563 2-0051: registered as rtc0
 +[    1.493378] rtc-pcf8563 2-0051: low voltage detected, date/time is not reliable.
 +[    1.500771] rtc-pcf8563 2-0051: hctosys: unable to read the hardware clock
 +root@bpi-r4-v11:~
 +# date -s "2024-04-27 09:55 CEST"
 +Sat Apr 27 07:55:00 UTC 2024
 +root@bpi-r4-v11:~
 +# hwclock -w
 +root@bpi-r4-v11:~
 +# hwclock -r
 +2024-04-27 07:56:23.979830+00:00
 +root@bpi-r4-v11:~
 +# reboot
 +...
 +root@bpi-r4-v11:~
 +# dmesg | grep rtc
 +[    1.480067] rtc-pcf8563 2-0051: registered as rtc0
 +[    1.486061] rtc-pcf8563 2-0051: setting system clock to 2024-04-27T07:56:53 )
 +root@bpi-r4-v11:~
 +# date
 +Sat Apr 27 08:00:46 UTC 2024
 +root@bpi-r4-v11:~
 +</code>
 ===== uboot/ATF ===== ===== uboot/ATF =====
  
Line 130: Line 196:
 currently use these: currently use these:
  
-  * uboot: https://github.com/frank-w/u-boot/tree/2023-10-bpi+  * uboot: https://github.com/frank-w/u-boot/tree/2024-04-bpi
   * ATF: https://github.com/frank-w/u-boot/tree/mtk-atf   * ATF: https://github.com/frank-w/u-boot/tree/mtk-atf
  
en/bpi-r4/start.1713696487.txt.gz · Last modified: 2024/04/21 12:48 by frank