#Appunti Rob roadrunner

<abstract>
Raccolta di appunti iniziali roadrunner Rob
</abstract>

<br>
Nuova compilazione 4.19.78 su Ubuntu 18.04 LTS<br>
installare i seguenti pacchetti: bison, flex e libssl-dev<br>



<br>
vecchi appunti
<br>

home/roadrunner/START è la directory di test roadrunner<br>
4/1/2018 
at91bootstrap attivo: 3.8.8:00033<br>
kernel attivo e funzionante: 4.9.40+ Aug 3 2017 20:23:12<br>
<br>
nuovo setup

ERROR: in https://www.acmesystems.it/download_roadrunner il link bootloader non va!!!!



<h2>Nuova microSD</h2>
@article='microsd_format'

<h2>at91bootstrap</h2>
@article='at91bootstrap_3_8'<br>
ok secondo articolo ACME
sembra però che bisogna entrare in at91bootstrap prima di fare il checkout. Verificare se va tutto bene

<h2>Kernel</h2>
@article='compile_linux_kernel'

<h2>Dougg Gilbert Utilities for armhf</h2>
<ul>
<li><a href="./sama5d3_utils-0.92.tgz">sama5d3_utils-0.92.tgz</a></li>
</ul>


<h2>How to compile Douglas Gilbert Utilities on roadrunner board</h2>
<pre class="terminal">
apt-get update
apt-get dist-upgrade
apt-get install build-essential
...
root@roadrunner:~# tar -xvzf sama5d3_utils-0.92.tgz 
....
....
root@roadrunner:~# cd sama5d3_utils-0.92
root@roadrunner:~/sama5d3_utils-0.92# ls
ChangeLog  Makefile  build_debian.sh  debian  doc  readme.txt  src
root@roadrunner:~/sama5d3_utils-0.92# make
....
....
root@roadrunner:~/sama5d3_utils-0.92# make install
....
....
</pre>

<h2>SAMA5D27 PIO Configuration Registers</h2>
<ul>
<li>PIOA: 0xFC038004 [0]
<li>PIOB: 0xFC038044 [1]
<li>PIOC: 0xFC038084 [2]
<li>PIOD: 0xFC0380C4 [3]
<li>PIOD0: 0xFC0380C4
<li>PIOD1: 0xFC0380C5
<li>PIOD2: 0xFC0380C6
<li>PIOD3: 0xFC0380C7
<li>PIOD4: 0xFC0380C8
<li>PIOD5: 0xFC0380C9
<li>PIOD6: 0xFC0380CA
<li>PIOD7: 0xFC0380CB
<li>PIOD8: 0xFC0380CC
<li>PIOD9: 0xFC0380CD
<li>PIOD10: 0xFC0380CE
<li>PIOD11: 0xFC0380CF
<li>PIOD12: 0xFC0380D0
<li>PIOD13: 0xFC0380D1
<li>PIOD14: 0xFC0380D2
<li>PIOD15: 0xFC0380D3
<li>PIOD16: 0xFC0380D4
<li>PIOD17: 0xFC0380D5
<li>PIOD18: 0xFC0380D6
<li>PIOD19: 0xFC0380D7
<li>PIOD20: 0xFC0380D8
<li>PIOD21: 0xFC0380D9
<li>PIOD22: 0xFC0380DA
<li>PIOD23: 0xFC0380DB
<li>PIOD24: 0xFC0380DC
<li>PIOD25: 0xFC0380DD
<li>PIOD26: 0xFC0380DE
<li>PIOD27: 0xFC0380DF
<li>PIOD28: 0xFC0380E0
<li>PIOD29: 0xFC0380E1
<li>PIOD30: 0xFC0380E2
<li>PIOD31: 0xFC0380E3
</ul>

<h2>How to read PIO configuration</h2>
Using the Dougg Gilbert Utilities:<br>
<pre>
root@roadrunner:~/sama5d3_utils-0.92# mem2io -i fc038004 -r
405
root@roadrunner:~/sama5d3_utils-0.92# mem2io -i fc038044 -r                     
0
root@roadrunner:~/sama5d3_utils-0.92# mem2io -i fc038084 -r                     
0
root@roadrunner:~/sama5d3_utils-0.92# mem2io -i fc0380C4 -r                     
1
root@roadrunner:~/sama5d3_utils-0.92# 
</pre>

<h2>Differences between RoadRunner and RoadRunner 1.1 boards</h2>
<ul>
<li>J1-20 was PIOBU2. In the 1.1 release it is connected to PIOBU0 and works as RAM_SHDN_ON<br>
When set to logic level "1" it maintains powered the RAM even in shutdown state. Use it to maintain active the main external 3.3V regulator when the SHDN line goes low (shutdown) to achieve Suspend To RAM state of operation (refer to .... for info on Suspend To RAM).<br>
<li>J2-96 was 3V3_OUT. In the 1.1 release it is ADVREF. Connecting it to 3V3_OUT will bring 3.3V to the VREF pin of the SAMA5D27. Connecting it to a different voltage will decrease the voltage range of the A/D converter onboard.<br> 
</ul>