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
Next revisionBoth sides next revision
en:bpi-r4:start [2024/04/16 08:07] – [openwrt] franken:bpi-r4:start [2024/04/21 13:25] – [GPIO] frank
Line 35: Line 35:
 Uses lvts driver Uses lvts driver
  
-Thermalpad size: https://forum.banana-pi.org/t/banana-pi-bpi-r4-heatsink-and-case-design/16638/53?u=frank-w+Thermalpad size: https://forum.banana-pi.org/t/banana-pi-bpi-r4-heatsink-and-case-design/16638/53
  
 +==== testing fan ====
 +
 +by default first trip point is set to 40°C and second is 85°C...for testing the fan it is a bit high when using a passive heatsink. so just set first to 35 and second to 45.
 +<code>
 +root@bpi-r4-v11:/sys/class/thermal/thermal_zone0
 +# cat trip_point_4_temp
 +40000
 +root@bpi-r4-v11:/sys/class/thermal/thermal_zone0
 +# cat trip_point_3_temp
 +85000
 +root@bpi-r4-v11:/sys/class/thermal/thermal_zone0
 +# echo 45000 > trip_point_3_temp
 +root@bpi-r4-v11:/sys/class/thermal/thermal_zone0
 +# echo 35000 > trip_point_4_temp
 +root@bpi-r4-v11:/sys/class/thermal/thermal_zone0
 +</code>
 ===== Network ===== ===== Network =====
  
Line 109: Line 125:
 {{ :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>
 ===== uboot/ATF ===== ===== uboot/ATF =====
  
en/bpi-r4/start.txt · Last modified: 2024/05/13 17:48 by frank