Difference between revisions of "AIR 020 Development"
From ESS-WIKI
Line 1: | Line 1: | ||
+ | |||
+ | == Flash Mac Address == | ||
+ | |||
+ | === <span style="color:#0000CD;">GBE in eeprom</span> === | ||
+ | <pre>$ sudo ./eeprom $SOC $mac_address</pre> | ||
+ | |||
+ | Where SOC | ||
+ | <pre> 186 : TX2-NX | ||
+ | 194 : XavierNX | ||
+ | 210 : Nano | ||
+ | </pre> | ||
+ | |||
+ | === <span style="color:#0000CD;">Intel I210</span> === | ||
+ | <pre>$ sudo -s | ||
+ | $ BDF=`lspci | grep 210 | awk '{print $1}'` | ||
+ | $ setpci -s $BDF COMMAND=0007 | ||
+ | </pre> | ||
+ | |||
+ | Get NIC | ||
+ | <pre>$./EepromAccessTool</pre> | ||
+ | |||
+ | Flash I210 address with mac_address = D4E5F6123456 ( If mac address = D4:E5:F6:12:34:56 ) | ||
+ | <pre>$ ./EepromAccessTool -nic=<NIC> -f=Dev_Start_I210_Copper_NOMNG_8Mb_A2_3.25_0.03.hex -mac=$mac_address</pre> | ||
+ | |||
+ | Cold reboot the device. | ||
== Tools == | == Tools == | ||
=== Test Command === | === Test Command === | ||
+ | |||
'''JP5.1.0''' | '''JP5.1.0''' | ||
+ | |||
==== '''GPIO Expander''' ==== | ==== '''GPIO Expander''' ==== | ||
Revision as of 07:40, 23 May 2023
Contents
Flash Mac Address
GBE in eeprom
$ sudo ./eeprom $SOC $mac_address
Where SOC
186 : TX2-NX 194 : XavierNX 210 : Nano
Intel I210
$ sudo -s $ BDF=`lspci | grep 210 | awk '{print $1}'` $ setpci -s $BDF COMMAND=0007
Get NIC
$./EepromAccessTool
Flash I210 address with mac_address = D4E5F6123456 ( If mac address = D4:E5:F6:12:34:56 )
$ ./EepromAccessTool -nic=<NIC> -f=Dev_Start_I210_Copper_NOMNG_8Mb_A2_3.25_0.03.hex -mac=$mac_address
Cold reboot the device.
Tools
Test Command
JP5.1.0
GPIO Expander
- GPIO0 (228) : gpio-419 (PN.01)
- GPIO1 (118) : gpio-440 (PQ.05)
- GPIO2 (127) : gpio-318 (PCC.01)
- GPIO3 (206) : gpio-443 (PR.00)
- GPIO4 (208) : gpio-437 (PQ.02)
- GPIO5 (211) : gpio-453 (PS.04)
- GPIO6 (212) : gpio-436 (PQ.01)
- GPIO7 (218) : gpio-321 (PCC.04)
1).Switch to root
ubuntu@localhost:~ sudo -s
2).Commnad : where <GPIO> : gpio number and <LEVEL> : high(1)/low(0)
For example, pull up GPIO0 to high.
root@localhost:/home/ubuntu# echo 419 > /sys/class/gpio/export root@localhost:/home/ubuntu# echo out > /sys/class/gpio/PN.01/direction root@localhost:/home/ubuntu# echo 1 > /sys/class/gpio/PN.01/value
Reference
JP 4.5.1 / JP 4.6.1
AIR-020-RS-485
Calculate GPIO value from pin number