您的位置: OpenADSP社区论坛 -> Blackfin专区 -> 新手上路 -> In ADSP-EDU_BF53X MAC address问题
本帖共有791个阅读者
发表帖子 发表投票 回复主题
In ADSP-EDU_BF53X MAC address问题
saryee(论坛新手)
saryee
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:186
积分:16
注册时间:2012/7/24
楼主信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
In ADSP-EDU_BF53X MAC address问题
在U-Boot中显示出了正确的MAC address.
Net:   MAC:   DE:AD:BE:EF:01:02

但载入系统后
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
eth0: dm9000 at 20200000,20200020 IRQ 33 MAC: ff:ff:ff:ff:ff:ff

请问是什么问题?如何解决?

谢谢!

U-Boot 1.1.6 (ADI-2008R1) (Jul  5 2011 - 11:56:19)

CPU:   ADSP bf533-0.3 (Detected Rev: 0.6)
Board: ADI BF533 EZ-Kit Lite board
       Support: http://blackfin.uclinux.org/
Clock: VCO: 550 MHz, Core: 550 MHz, System: 110 MHz
RAM:   32 MB
Flash:  2.1 MB
In:    serial
Out:   serial
Err:   serial
Net:   MAC:   DE:AD:BE:EF:01:02
I2C:   ready
Hit any key to stop autoboot:  0
## Booting image at 20040000 ...
   Image Name:   Linux-2.6.22.16-ADI-2008R1-svn
   Created:      2012-06-21   9:43:11 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    1679419 Bytes =  1.6 MB
   Load Address: 00001000
   Entry Point:  001ce000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 1ce000
Linux version 2.6.22.16-ADI-2008R1-svn (root@localhost.localdomain) (gcc version
4.1.2 (ADI svn)) #3581 Thu Jun 21 17:43:04 CST 2012
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Warning: limiting memory to 31MB due to hardware anomaly 05000263
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF531 Rev 0.3
Warning: Compiled for Rev 3, but running on Rev 6
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 550 MHz core clock and 110 MHz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
  text      = 0x00001000-0x00142050
  rodata    = 0x00143000-0x0019a4ec
  data      = 0x0019b000-0x001ce000
    stack   = 0x0019c000-0x0019e000
  init      = 0x001ce000-0x002d1000
  bss       = 0x002d1000-0x002e3c30
  available = 0x002e3c30-0x01eff000
  DMA Zone  = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists.  Total pages: 7874
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 conso
le=tty0 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x25
console handover: boot [early_BFuart0] -> real [tty0]
Linux version 2.6.22.16-ADI-2008R1-svn (root@localhost.localdomain) (gcc version
4.1.2 (ADI svn)) #3581 Thu Jun 21 17:43:04 CST 2012
early printk enabled on early_BFuart0
Hardware Trace Active and Enabled
Warning: limiting memory to 31MB due to hardware anomaly 05000263
Reset caused by Software reset
Blackfin support (C) 2004-2007 Analog Devices, Inc.
Compiled for ADSP-BF531 Rev 0.3
Warning: Compiled for Rev 3, but running on Rev 6
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 550 MHz core clock and 110 MHz System Clock
Board Memory: 32MB
Kernel Managed Memory: 32MB
Memory map:
  text      = 0x00001000-0x00142050
  rodata    = 0x00143000-0x0019a4ec
  data      = 0x0019b000-0x001ce000
    stack   = 0x0019c000-0x0019e000
  init      = 0x001ce000-0x002d1000
  bss       = 0x002d1000-0x002e3c30
  available = 0x002e3c30-0x01eff000
  DMA Zone  = 0x01f00000-0x02000000
Instruction Cache Enabled
Data Cache Enabled (write-through)
Built 1 zonelists.  Total pages: 7874
Kernel command line: root=/dev/mtdblock0 rw earlyprintk=serial,uart0,57600 conso
le=tty0 console=ttyBF0,57600
Configuring Blackfin Priority Driven Interrupts
PID hash table entries: 128 (order: 7, 512 bytes)
Console: colour dummy device 80x25
console handover: boot [early_BFuart0] -> real [tty0]
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 28480k/32768k RAM, (1036k init code, 1284k kernel code, 635k d
ata, 1024k dma, 312k reserved)
Blackfin Scratchpad data SRAM: 4 KB
Blackfin Instruction SRAM: 16 KB (7 KB free)
Security Framework v1.0.0 initialized
Mount-cache hash table entries: 512
NET: Registered protocol family 16
Blackfin GPIO Controller
Blackfin DMA Controller
ezkit_init(): registering device resources
Generic PHY: Registered new driver
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
fuse init (API version 7.8)
io scheduler noop registered
io scheduler anticipatory registered (default)
io scheduler cfq registered
bfin-t350mcqb: 480x272 16-bit RGB FrameBuffer initializing...
dma_alloc_init: dma_page @ 0x01c35000 - 256 pages at 0x01f00000
xxxxxxxxxxxxxxopen########
Console: switching to colour frame buffer device 68x19
device register OK
Can't find cmos camera!
Can't find any valid video input, ppi device register failed.
Dynamic Power Management Controller Driver v0.1: major=10, minor = 254
bfin-wdt: initialized: timeout=20 sec (nowayout=0)
Serial: Blackfin serial driver
bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
dm9000 Ethernet Driver
eth%d: Invalid ethernet MAC address.  Please set using ifconfig
eth0: dm9000 at 20200000,20200020 IRQ 33 MAC: ff:ff:ff:ff:ff:ff
input: Blackfin 533 Keyboard as /class/input/input0
poll 531 key alive
        <6>BF5xx TouchScreen successfully loaded
input: BF5xx TouchScreen as /class/input/input1
poll 531 ts alive
        <6>rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
Advanced Linux Sound Architecture Driver Version 1.0.12rc1 (Thu Jun 22 13:55:50
2006 UTC).
ALSA device list:
  #0:
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting the system clock to 1970-01-01 00:21:43 (1303)
Freeing unused kernel memory: 1036k freed
                           _____________________________________
        a8888b.           / Welcome to the uClinux distribution \
       d888888b.         /       _     _                         \
       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |
       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |
       8'    .88       \        | |   | |  _ \| | | | \  /        |
       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |
      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |
     dP   .    Y8b.       \   For embedded processors including   |
    d8:'  "  `::88b        \    the Analog Devices Blackfin      /
   d8"         'Y88b        \___________________________________/
  :8P    '      :888
   8a.   :     _a88P         For further information, check out:
._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/
\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/
/     \.___.d|    .'           - http://www.uclinux.org/
`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

Have a lot of fun...
New MMC/SD card found: 29 MB(31129600 bytes)
spi_mmc: spi_mmc1


BusyBox v1.4.1 (2012-06-21 10:37:47 CST) Built-in shell (msh)
Enter 'help' for a list of built-in commands.

root:/>

Good good study and day day up!
等级:论坛新手 参考IP地址:*.*.*.*
2013/10/11 6:25:39
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
1信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
你在uC下重新配置一下MAC地址,记得uC和uboot配置是不关联的,要重新配置

这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/10/11 11:34:00
saryee(论坛新手)
saryee
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:186
积分:16
注册时间:2012/7/24
2信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
谢谢!
因为烧写的是光盘里的uImage.norflash,我以为都应该是配置好了的。
我会试一试重新配置。

Good good study and day day up!
等级:论坛新手 参考IP地址:*.*.*.*
2013/10/11 23:38:56
saryee(论坛新手)
saryee
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:186
积分:16
注册时间:2012/7/24
3信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
我用的是光盘上带的u-boot和uImage.

我修改了Mac和IP,试着ping我的主机,但不通。
而且网络接口上的led订没有亮。
USB转网络接口转接器上的LED也没有亮。

root:/> ifconfig eth0 down                                                      
root:/> ifconfig eth0 hw ether DE:AD:BE:EF:01:02                                
root:/> ifconfig eth0 up                                                        
eth0: link down                                                                
root:/> ifconfig eth0 up                                                        
root:/> ifconfig -a                                                            
eth0      Link encap:Ethernet  HWaddr DE:AD:BE:EF:01:02                        
          inet addr:169.254.253.8  Bcast:169.254.253.255  Mask:255.255.255.0    
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
                    Interrupt:33                                                
                                                                                
lo        Link encap:Local Loopback                                            
          inet addr:127.0.0.1  Mask:255.0.0.0                                  
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                              
          RX packets:62 errors:0 dropped:0 overruns:0 frame:0                  
          TX packets:62 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:0                                            
                                                                                
root:/> ping 169.254.253.252                                                    
PING 169.254.253.252 (169.254.253.252): 56 data bytes                          
                                                                                
--- 169.254.253.252 ping statistics ---                                        
15 packets transmitted, 0 packets received, 100% packet loss                                                                              
root:/> ifconfig -a                                                            
eth0      Link encap:Ethernet  HWaddr DE:AD:BE:EF:01:02                        
          inet addr:169.254.253.8  Bcast:169.254.253.255  Mask:255.255.255.0    
          UP BROADCAST MULTICAST  MTU:1500  Metric:1                            
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0                    
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0                  
          collisions:0 txqueuelen:1000                                          
                    Interrupt:33                                                
                                                                                
lo        Link encap:Local Loopback                                            
          inet addr:127.0.0.1  Mask:255.0.0.0                                  
          UP LOOPBACK RUNNING  MTU:16436  Metric:1                              
          RX packets:77 errors:0 dropped:0 overruns:0 frame:0                  
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0                
          collisions:0 txqueuelen:0                                            
                                                                                
root:/>


Good good study and day day up!
等级:论坛新手 参考IP地址:*.*.*.*
2013/10/15 0:33:24
尊贵身份标志
andy(论坛版主)
andy
头衔:社区公民
帮派:无帮无派
帖数:2287
金钱:11132
积分:2263
注册时间:2011/6/8
4信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
需要先配置一下IP,如:
ifconfig eht0 192.168.1.5


这家伙很懒,什么也没有留下!
等级:论坛版主 参考IP地址:*.*.*.*
2013/10/15 17:37:42
saryee(论坛新手)
saryee
头衔:社区公民
帮派:无帮无派
帖数:14
金钱:186
积分:16
注册时间:2012/7/24
5信息 | 留言 | Email | 主页 | 编辑 | 管理 | 离线
Thanks Andy!

1)
ifconfig eth0 down
ifconfig eth0 hw ether DE:AD:BE:EF:01:02
ifconfig eth0 169.254.253.18 netmask 255.255.255.0 up

2)
我用了个交换器。之前我是直接将开发板通过转换器连到计算机。
现在是开发板-交换器。交换器-主机。

然后就通了。

谢谢!

Good good study and day day up!
等级:论坛新手 参考IP地址:*.*.*.*
2013/10/15 22:44:22
Powered by OpenADSP Copyright © 2010 www.Openadsp.com. All rights reserved.159190 Call, 1 Queries, Processed in 0.046997 second(s),