Changes

Jump to: navigation, search

Physical devices mapping (BELK/BXELK)

1,028 bytes added, 11:12, 10 April 2019
UART0
|-
|}
 
== Temperature sensor ==
Bora SOM has a [http://www.ti.com/lit/ds/symlink/tmp422.pdf TMP421AIDCN] temperature sensor onboard.
 
The following commands can be issued from command line in order to get the SOM temperatue:
* read the PCB temperature
<pre>
root@bora:~# cat /sys/devices/soc0/amba/e0004000.i2c/i2c-0/0-004f/hwmon/hwmon1/temp1_input
</pre>
the returned value has to be divided by 1000 for a °C temperature
* read the CPU temperature
<pre>
root@bora:~# cat /sys/devices/soc0/amba/e0004000.i2c/i2c-0/0-004f/hwmon/hwmon1/temp2_input
</pre>
the returned value has to be divided by 1000 for a °C temperature
 
Moreover, the SOC has an internal temperature sensor device which can be read using the followgin shell script:
<pre>
root@bora:~# cat temp.sh
#!/bin/sh
 
# Tcpu
TEMP_RAW=`cat $path_dev_soc_adc/in_temp0_raw`
TEMP_OFFSET=`cat $path_dev_soc_adc/in_temp0_offset`
TEMP_SCALE=`cat $path_dev_soc_adc/in_temp0_scale`
TEMP=`awk "BEGIN {print (($TEMP_RAW+$TEMP_OFFSET)*$TEMP_SCALE)/1000}"`
 
echo "Cpu Temp: ${TEMP}
</pre>
8,154
edits

Navigation menu