2010-07-06 00:48:37     bf518f-ezbrd 以太网无法使用

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2010-07-06 00:48:37     bf518f-ezbrd 以太网无法使用

weixin zhan (CHINA)

Message: 90930   

 

bf518f-ezbrd评估板中, uClinux跑起来后, 无法访问以太网, 如ping 192.168.0.2不通, 而在u-boot的时候是没有问题的

 

root:/> ifconfig100/Full0: Black

eth0      Link encap:Ethernet  HWaddr 26:0C:EA:B3:80:DC__________________________________     SW<      0   0%

          inet addr:192.168.0.15  Bcast:192.168.0.255  Mask:255.255.255.0lcome to the uClinux distribution \  0% [events/0]helper]  1

Advanced Li

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1_     _                         \VSZ %MEM %CPU

ALSA device l

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0   /       | |   |_|            __  __ (TM)  |

NET: Register

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |C (9

          collisions:0 txqueuelen:1000yslogd -n 0% nic  99% id

       8'  

          RX bytes:0 (0.0 B)  TX byt                                 

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0including   |domain=, nis-domain=(none),tchdogd -f -s root

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 Devices Blackfin      /otpath= 0% [khelper]  1 root     S  

          collisions:0 txqueuelen:0        'Y88b        \_____________

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)0:01 - Link is Up - 100/Fullt     SW 

  :8P 

 

root:/> ping 192.168.0.15   

   8a.   :     _a88

PING 192.168.0.15 (192.168.0.15): 56 data bytes  0%   0% [pdflush]

  244     1 root   

  

root:/> ping 192.168.0.2

PING 192.168.0.2 (192.168.0.2): 56 data bytes

^C

--- 192.168.0.2 ping statistics ---

43 packets transmitted, 0 packets received, 100% packet loss

root:/> route print

BusyBox v1.13.4 (2010-07-05 02:23:55 EDT) multi-call binary

 

Usage: route [{add|del|delete}]

 

Edit kernel routing tables

 

Options:

        -n      Don't resolve names

        -e      Display other/more information

        -A inet Select address family

 

root:/> route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

192.168.0.0     *               255.255.255.0   U     0      0        0 eth0

default         192.168.0.1     0.0.0.0         UG    0      0        0 eth0

root:/>

root:/>

 

 

 

 

 

请问这是为何?

TranslateQuoteReplyEditDelete

 

 

2010-07-06 01:53:58     Re: bf518f-ezbrd 以太网无法使用

Sonic Zhang (CHINA)

Message: 90933   

 

Which blackfin Linux release do you use? What is the board version?

 

Please try the prebuilt 2009R1.1 kernel image for bf518-ezbrd from this web site.

QuoteReplyEditDelete

 

 

2010-07-06 03:01:21     Re: bf518f-ezbrd 以太网无法使用

weixin zhan (CHINA)

Message: 90935   

 

i use Image is  uImage-bf518f-ezbrd-2009R1.1-RC4

 

board version is bf518f ez-board REV 1.0  2009

TranslateQuoteReplyEditDelete

 

 

2010-07-06 03:35:16     Re: bf518f-ezbrd 以太网无法使用

Sonic Zhang (CHINA)

Message: 90945   

 

We have no problem with the same board and kernel image.

 

Please paste the whole bootup log here. Include uboot part.

 

 

 

Sonic

QuoteReplyEditDelete

 

 

2010-07-06 05:49:14     Re: bf518f-ezbrd 以太网无法使用

weixin zhan (CHINA)

Message: 90952   

 

Early:start.S: Init Registersc (nowayout=0)       

NET:

Early:start.S: Find ourselves   

Advanced Linux Sound Ar

Early:start.S: Lower to 15.0.18rc3.em clock to 1999-

Early: Board init flash00616)          

ALSA

Early: Board early init flash

  No soundcards found.    

Early: Init CPLB tablesic registered000 - 256

Early: Exceptions setuped protocol family 17

Early: Turn on ICACHE        

rtc-bfin r

Early: Turn on DCACHEm clock to 1999-03-31

Early: Init global data)5, mask=255.255.255.0,

Early: IRQ init             

Early: Environment init

dma_alloc_init: dma_p

Early: Baudrate init6 pages at 0x03f0000

Early: Serial init),              

Early: Console init flash

IP-Config: Complete:ver

Early: End of early debuggingeth0, addr=192.168.0.15, mask

 

 

U-Boot 2008.10 (ADI-2009R1.1-rc1)            

              

  

RAM:   64 MB          __

Flash:  4 MB____________

*** Warning - bad CRC, using default environment                       

        a8888b.     

 

In:    serialo the uClinux

Out:   serial\   | |   |_|

Err:   serial  __ (TM)  |

Net:   Warning: Generating 'random' MAC address    /       _     _                         \

Blackfin EMAC___  _   _ \

MAC:   26:0C:EA:B3:80:DC          

       8P"Y

gd: 03f3ff80       | | 

|-flags: 3   __  __ (

|-board_type: 0  | |  _ \| | |

|-baudrate: 9600               

|-have_console: 1|88  _____/     

|-ram_size: 0 _   _ \ \/ /

|-reloc_off: 0|__          

|-env_addr:           

   

   |-bi_boot_params: 0    \____||_|_| |_|\__

   |-bi_memstart: 0                 

   |-bi_memsize: 4000000                

 

 

   |-bi_flashstart: 20000000r embedded processors includ

   |-bi_flashsize: 400000                       

   \-bi_flashoffset: 0

    d8:'  "  `::88b

Hit any key to stop autoboot:  0ckfin      /r further informatio

Using Blackfin EMAC device                 

   d8"

TFTP from server 192.168.0.2; our IP address is 192.168.0.15tp://blackfin.uclinux.org/                                

Filename 'uImage'. :888  

\    YP

Load address: 0x1000000a88P         For furthe

Loading: #############################################################      

/     \.

                                               

Bytes transferred = 3824023 (3a5997 hex)f fun...      

          i

 

 

BusyBox v

## Booting kernel from Legacy Image at 01000000 ...)                                                

   Image Name:   Linux-2.6.28.10-ADI-2009R1.1in commands.AST  MTU:1500  Metric:1         

   Created:      2010-07-05   9:14:44 UTC

root:/>     

root:/>ckets:0

root:/>0

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)   root  sys   usr     

          TX packets:0 errors:0

dev

   Data Size:    3823959 Bytes =                             

i2c-0

bootconsole [early_BFuart0] enabled3                tty54           

early printk enabled on early_BFuart0isions:0 txque

kmsg                st

Board Memory: 64MBty30            

Kernel Managed Memory: 64MB B)                      

Memory map:  

log 

  fixedcode = 0x00000400-0x00000490y31               tty562.168.0.2 (1

  text      = 0x00001000-0x001107e0               

               

  available = 0x00702000-0x03eff000 M

null                tty10     

  DMA Zone  = 0x03f00000-0x04000000                   

          UP

Hardware Trace Active and Enabled            tty11               t

Boot Mode: 3      tty60

Blackfin support (C) 2004-2009 Analog Devices, Inc.ped:0 overru

pts                 tty12           

Compiled for ADSP-BF518 Rev 0.0

          TX packets:12 error

Warning: Compiled for Rev 0, but running on Rev 1tty13               tty38               tty62

 

Blackfin Linux support by   blackfin.uclinux.org/    

ram1                tty14               tty39

Processor Speed: 400 MHz core c                           

255.0:bf518f-ezbrd:eth0:off      vcs01 - Link is Down

Configuring Blackfin Priority Driven Interruptsm2                tty20               tty45  

PID hash table entries: 256 (order: 8, 1024 bytes)            

PHY: 0:01 - L

ram3                t

Console: colour dummy device 80x25  - 100/Full                    

 

 

 

 

 

 

 

 

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)             tty49QST>        

Early:start.S: Init Register

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)                          

E

root:/dev> topower to 15  

 

Memory available: 56760k/65536k RAM, (5600k init code, 1085k kernel code, 487k d cachedinit flash                           

Early: Init CPLB tabl

CPU:   9% u

ata, 1024k dma, 576k reserved)  0% io   0% irq   0% sirq 

 

Calibrating delay loop... 796.67 BogoMIPS (lpj=1593344)n DCACHE

Load average: 0.00 0.00 0.00 1/20 247al data

Security Framework initializedPID  PPID USER     STAT   VSZ

Mount-cache hash table entries: 512

Early: Baudrate init     

  24

Blackfin Scratchpad data SRAM: 4 KB% -/bin/shEarly: Console init flash

Blackfin L1 Data A SRAM: 16 K                          

   80     2 root     SW<      0   0%   0% [kswapd0] dc     

brd: module loaded      

   |-bi_b

bfin_mii_bus: probed     SW<      0   0%

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:01, irq=-1, mdc_    2 root     SW<      0   0%   0% [watchdog/0]        

   |-bi_flashsize: 40

clk=2500000Hz(mdc_div=15)@sclk=80MHz)t     SW<      0   0%   0% [events/0]

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1   SW<      0   0%   0% [kthreadd]          

TFTP from server 192.16

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_b              

Filename 'uImage'.     

 

 

 

 

 

 

 

 

 

 

 

 

 

        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|            -   blackfin.uclinux.org/

\    YP"    `| 8P  `.          -   docs.blackfin.uclinux.org/

/     \.___.d|    .'           -   www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    -   www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.13.4 (2010-07-05 02:23:55 EDT) built-in shell (msh)

Enter 'help' for a list of built-in commands.

 

root:/>

TranslateQuoteReplyEditDelete

 

 

2010-07-06 08:11:45     Re: bf518f-ezbrd 以太网无法使用

Mike Frysinger (UNITED STATES)

Message: 90957   

 

networking doesnt work in 2009R1.1 with newer bf518f-ezbrds.  it has been fixed in trunk.  please search the forums for a workaround:

  blackfin.uclinux.org/gf/forummessage/85082

Attachments

    Outcomes