Changes

Jump to: navigation, search

DESK-MX8M-L/Deployment/MAC Address programming

No change in size, 06:58, 22 June 2022
no edit summary
If the <code>ethaddr</code> is set and saved in the u-boot environment, it's value is used as the MAC Address:
u-boot=> setenv ethaddr 00:50:C2c2:1E1e:AFaf:CBa8
u-boot=> saveenv
Saving Environment to MMC... Writing to MMC(1)... OK
</pre>
In the following example the MAC address <code>00:50:c2:1e:af:cda8</code> is stored in the SOC:
* (in case of presence) clear the <code>ethaddr</code> u-boot variable
<pre class="workstation-terminal">
* program the MAC address in the OPTs with the following commands:
<pre class="workstation-terminal">
u-boot=> fuse prog 9 0 c21eafcdc21eafa8Programming bank 9 word 0x00000000 to 0xc21eafcd0xc21eafa8...
Warning: Programming fuses is an irreversible operation!
This may brick your system.
<pre>
u-boot=> fuse prog -y 9 0 c21eafcdc21eafa8
u-boot=> fuse prog -y 9 1 0050
</pre>
Hit any key to stop autoboot: 0
u-boot=> print ethaddr
ethaddr=00:50:c2:1e:af:cda8
u-boot=>
</pre>
For the second ethernet interface, the above procedure should be repeated in a similar way, except of ''the correct ''eFuse register should be used'':
The MAC address should be divided in ''low'' 16 bit and ''high'' 32 bits, for example MAC address <code>00:50:c2:1e:af:cea9</code> is stored in the SOC using:
<pre>
fuse prog -y 9 1 afce0000afa90000
fuse prog -y 9 2 0050c21e
</pre>
<pre class="workstation-terminal">
root@desk-mx8mp:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:c2:1e:af:cda8
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
eth1 Link encap:Ethernet HWaddr 00:50:c2:1e:af:cea9
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
8,221
edits

Navigation menu