ubnt解决方案
查看: 4748|回复: 3

[求助] RT3050F TTL/Telnet修改MAC地址

[复制链接]

191

回帖

863

积分

433 小时

在线时间

中尉

注册时间
2012-8-2
金币
493 个
威望
10 个
荣誉
4 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2013-11-18 17:50
U-Boot 1.1.3 (Jul  6 2010 - 14:04:15)

Board: Ralink APSoC DRAM:  32 MB
relocate_code Pointer at: 81b80000
spi_wait_nsec: 3e
spi deice id: c2 20 16 c2 20 (2016c220)
find flash: mx25l3205d
raspi_read: from:30000 len:1000
*** Warning - bad CRC, using default environment

============================================
Ralink UBoot Version: 3.3
--------------------------------------------
ASIC 3052_MP2 (Port5<->None)
DRAM component: 256 Mbits SDR
DRAM bus: 16 bit
Total memory: 32 MBytes
Flash component: SPI Flash
Date:Jul  6 2010  Time:14:04:15
============================================
icache: sets:256, ways:4, linesz:32 ,total:32768
dcache: sets:128, ways:4, linesz:32 ,total:16384

##### The CPU freq = 320 MHZ ####

SDRAM bus set to 16 bit
SDRAM size =32 Mbytes

Please choose the operation:
   1: Load system code to SDRAM via TFTP.
   2: Load system code then write to Flash via TFTP.
   3: Boot system code via Flash (default).
   4: Entr boot command line interface.
   9: Load Boot Loader code then write to Flash via TFTP.                     1

You choosed 4
                                                                                   0


4: System Enter Boot Command Line Interface.

U-Boot 1.1.3 (Jul  6 2010 - 14:04:15)
RT3052 # ?
?       - alias for 'help'
bootm   - boot application image from memory
cp      - memory copy
erase   - erase SPI FLASH memory
go      - start application at address 'addr'
help    - print online help
ledoff   -set led off
ledon    -set led on
md      - memory display
mdio   - Ralink PHY register R/W command !!
mm      - memory modify (auto-incrementing)
mw      - memory write (fill)
nm      - memory modify (constant address)
printenv- print environment variables
reset   - Perform RESET of the CPU
saveenv - save environment variables to persistent storage
setenv  - set environment variables
tftpboot- boot image via network using TFTP protocol
tftpd    -load the data by tftp protocol
version - print monitor version
RT3052 #

该用哪个命令修改MAC地址,请高手指教。







偶来啦。。。。。。。

191

回帖

863

积分

433 小时

在线时间

中尉

注册时间
2012-8-2
金币
493 个
威望
10 个
荣誉
4 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2013-11-19 18:17
哪位大侠知道,帮个忙。

1215

回帖

5557

积分

696 小时

在线时间

中校

科技痴

灌水天才

注册时间
2013-2-16
金币
4261 个
威望
1 个
荣誉
0 个
累计签到:334 天
连续签到:0 天
[LV.365]无线熟人
发表于 2014-1-5 16:36
本帖最后由 Alpha-X 于 2014-1-5 16:44 编辑

首先输入 printenv (以显示全部 U-Boot 变量),注意其中一行是 ethaddr=xx:xx:xx:xx:xx:xx,这个 ethaddr (不同机子可能不一样:macaddr / mac 等等)应该就是 MAC 地址。然后输入:
  1. setenv ethaddr yy:yy:yy:yy:yy:yy
  2. saveenv
复制代码
这个 yy:yy:yy:yy:yy:yy 就是新 mac 地址。再 printenv 确定修改成功,然后重启。
注意:修改 U-Boot 变量之前记得记下所有内容,以备需要恢复时用。

U-Boot 参考资料
U-Boot Quick Reference (英语)

191

回帖

863

积分

433 小时

在线时间

中尉

注册时间
2012-8-2
金币
493 个
威望
10 个
荣誉
4 个
累计签到:9 天
连续签到:0 天
[LV.20]漫游旅程
发表于 2014-1-10 09:44
Alpha-X 发表于 2014-1-5 16:36
首先输入 printenv (以显示全部 U-Boot 变量),注意其中一行是 ethaddr=xx:xx:xx:xx:xx:xx,这个 ethaddr ...

谢谢。这个方法我知道,就是没法固定在固件里,恢复出厂的话,就又回到原来的MAC地址了。
偶来啦。。。。。。。

站点统计 | Archiver | 手机版 | 无线门户 ( 粤ICP备11076993号|粤公网安备44010602008359号 ) |网站地图

GMT+8, 2024-4-17 03:59

返回顶部 返回列表