Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
!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:#ededed; padding:5px; color:#000000" |2024/02/01/30! | style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |Preliminary DESK-MX9-L-5.0.0 releasedocumentation
|}
<section end=History/>
__FORCETOC__
<section begin=Body/>
<section begin=Body/>[[File:TBD.png | thumb| center | 600px| This page is still in progress...]]
== MAC Address programming ==
=== Platform supported===
In this Application Note, we will describe how to use the i.MX8M MX93x eFuse for programming and using the MAC address(es) and it applies to the following DAVE <code>i.MX8M family</code> products:* [[AURA SOM | AURA SOM]]
{{ImportantMessage|text=This Application Note has been validated in the [[AURA SOM | AURA SOM]]. The commands used have been not validated in the other platform yet.}}
=== Permanent storage areas ===
Some SOCs provide programmable OTPs for security, MAC addressaddresses, boot modes, etc. Usually, some of these are general-purpose registers and can be managed by the user.
In other cases, an external permanent storage device can be used for storing permanent settings like the MAC address: for the i.MX9 MX93x product family, DAVE proposes to use the ''General Purposes eFuses'' (OTP blocks) on SoC itself for storing permanently the MAC address(es).
=== MAC address programming on i.MX9 MX93x family ===
==== MAC address configuration in u-boot====
==== eFuse bank registers ====
i.MX9 MX93x family uses the Bank39 Word3, Word4, and Word5 (if the SoC has two ethernet interfaces) for storing the MAC addresses. The MAC values should be properly divided into the three registers for correct programming.
{{ImportantMessage|text='''Warning!!''' eFuse programming is a permanent and non -reversible action. Pay attention to the values and commands used during MAC programming.}}
==== 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 into high 16 bit bits and low 32 bits, for . For example MAC address <code>AB:CD:12:34:56:78</code> for eth0 is then divided into :
<pre>
==== eFuse locking ====
The OTP eFuse registers should be locked in order to avoid unwanted registers (and then MAC addresses) modifications. OTP lock grants that the MAC values cannot be modified anymore.
{{ImportantMessage|text=If not locked yet, OTP bits can be set to ''''1'''' but not reversed to ''''0'''' value, so some modifications can be applied if the eFuse registers are not locked.}}
{{ImportantMessage[[File:TBD.png |text=Documentation not yet available}}200px]]
==== eFuse reading ====
root@desk-mx93:~#
</pre>
 
<section end=Body/>
8,226
edits