Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
<section begin=History/>
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
|-
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|2023/08/01
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|DESK-MP1-L-1.0.0 release
|-
|}
<section end=History/>
<section begin=Body/>
 
== MAC Address programming ==
Every network adapter has a Media Access Control address (usually shortened to MAC address). A MAC address is a six-byte identifying number permanently embedded in the firmware of the adapter, and is readable by the network and the operating system of the device on which the adapter is installed.
==== eFuse bank registers ====
ETRA family uses the Bank0 Word0Word 57, Word1 Word 58 for storing the MAC addresseaddress. The MAC values should be properly divided into the in two registers for correct programming.
The related 57, 58, OTP registers will be used for the purposes illustrated in this AN.
{{ImportantMessage|text='''Warning!!''' eFuse programming is a permanent and non -reversible action. Pay attention to the values and commands used during MAC programming.}}
==== eth0 read current value ====
U-boot uses the <code>fuse sense</code> command for to read the MAC address value into the eFuse
<pre class="workstation-terminal">
</pre>
If the value is 0 in both cells, they have ''not been locked''.
If instead the value is 40000000 the cell has been '''locked'''.
==== eth0 eFuse programming ====
U-Boot uses the <code>fuse prog</code> command for writing the MAC address into the eFuse. The MAC address should be divided in high 16 bit and low 32 bitstwo parts, for example MAC address <code>AB:CD:12:34:56:78</code> for eth0 is then divided into :
<pre class="workstation-terminal">
----
[[Category:ETRA]] [[Category:ETRA_SBC]]
8,226
edits