|
附件为rtunicpg-2.0.17.15
测试环境为萤火虫RK3399 官方Ubuntu20.04,adb连接,其他方式类似
(1)插好usb网卡,开机
(2)传输并解压rtunicpg
- adb push c:/tmp/rtunicpg-2.0.17.15.zip /home/
复制代码 然后在shell里
- <div>cd /home
- unzip rtunicpg-2.0.17.15.zip
- cd rtunicpg-2.0.17.15
- ls
- cd rtunicpg
- ls</div>
复制代码 此时进入了rtunicpg-2.0.17.15目录,里边文件如下:
- 8156APFL.cfg EE8154BvC.cfg EF8152B.dat EF8154vA.cfg
- EE8150B.cfg EE8154BvC.dat EF8152BPU.cfg EF8154vB.cfg
- EE8150B.dat EE8154CvA.cfg EF8153BvA.cfg EF8154vB.dat
- EE8152B.cfg EE8154CvA.dat EF8153BvB.cfg EF8156AG.cfg
- EE8152B.dat EE8154vA.cfg EF8153BvB.dat EF8156AG.dat
- EE8152BPU.cfg EE8154vB.cfg EF8153BvC.cfg EF8156AP.cfg
- EE8153BvA.cfg EE8154vB.dat EF8153CvA.cfg EF8156AP.dat
- EE8153BvB.cfg EE8156AG.cfg EF8153CvA.dat EF8156B.cfg
- EE8153BvB.dat EE8156AG.dat EF8153DvA.cfg EF8156B.dat
- EE8153BvC.cfg EE8156AP.cfg EF8153DvA.dat EF8156BG.cfg
- EE8153CvA.cfg EE8156AP.dat EF8153vA.cfg EF8156BG.dat
- EE8153CvA.dat EE8156B.cfg EF8153vB.cfg EF8156.cfg
- EE8153DvA.cfg EE8156B.dat EF8153vB.dat EF8156.dat
- EE8153DvA.dat EE8156BG.cfg EF8153vC.cfg EF8158vA.cfg
- EE8153vA.cfg EE8156BG.dat EF8153vC.dat EF8158vA.dat
- EE8153vB.cfg EE8156.cfg EF8153vD.cfg EFNodeID.cfg
- EE8153vB.dat EE8156.dat EF8153vD.dat rtunicpg-aarch64-armv8
- EE8153vC.cfg EE8158vA.cfg EF8154BvB.cfg rtunicpg-aarch64-gnu
- EE8153vC.dat EE8158vA.dat EF8154BvB.dat rtunicpg-armv8
- EE8153vD.cfg EENodeID.cfg EF8154BvC.cfg rtunicpg-i686
- EE8153vD.dat EF8150B.cfg EF8154BvC.dat rtunicpg-mips64el-64r2
- EE8154BvB.cfg EF8150B.dat EF8154CvA.cfg rtunicpg-mipsel-32r2
- EE8154BvB.dat EF8152B.cfg EF8154CvA.dat rtunicpg-x86_64
复制代码
rtunicpg-aarch64-gnu就是ARM64的量产程序
(3)查看网卡信息
- ./rtunicpg-aarch64-gnu /s
复制代码 如果不能执行先加一下可行性属性再重试
- chmod +x rtunicpg-aarch64-gnu
复制代码 接下来写入mac地址
a. 如果是新机执行
./rtunicpg-aarch64-gnu /efuse
最后会提示写入efuse的工具版本、剩余字节数、写入次数
请注意并不是无限次数!
EFuse PG Version(CFG Version) = V2.13(1.021) V2.17(1.026)
EFuse Remain 111 Bytes!!!
EFuse Write Count = 2
b. 修改mac地址
./rtunicpg-aarch64-gnu /efuse /nodeid AABBCCDDEEFF
输出如下:
- <div>*************************************************************************
- * EFUSE/EEPROM/FLASH Programming Utility for *
- * Realtek USB FE/GbE/2.5GbE Family Ethernet Controller *
- * Version : v2.0.17.15 *
- * Copyright (C) 2022 Realtek Semiconductor Corp.. All Rights Reserved. *
- *************************************************************************
- Realtek, rtunicpg-aarch64-gnu, v2.0.17.15,01/17/2022
- - RTL8153BvB - 03 - 00 00 01 - 02
- Current select card #0
- This is RTL8153BvB
- #0 Flash Manufacturer :
- #0 Unknown Manufacturer
- #0 Flash Manufacturer ID : 0xFFFF
- #0 Flash Device ID : 0xFF
- EEPROM does not exist!!!
- --- Program Efuse ---
- EFuse Write Count = 2
- Num Of Chaged Item = 0x1
- Write NODEID to EFuse
- RTUNicPG : (CFG MAC) AA BB CC DD EE FF
- RTUNicPG : 0x7fa2d757f2, 0x7fd690c030, 9
- RTUNicPG : 25 C0 00 AA BB CC DD EE FF 00 00
- RTUNicPG : 25 C0 00 AA BB CC DD EE FF 00 00
- RTUNicPG : lastEndByte = 54, lastMatchByte = 4b
- RTUNicPG : Index = 6, StartIndex = 0
- RTUNicPG : (NIC MAC) AA BB CC DD EE FF
- Write Mac Address = AA BB CC DD EE FF Successfully
- EFuse Remain 102 Bytes!!!
- EFuse Write Count = 3
- PG EFuse is Successful!!!</div>
复制代码
|
|