2011-01-22 22:50:42     BF516 network cann't work

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

2011-01-22 22:50:42     BF516 network cann't work

Bill Xie (CHINA)

Message: 97624   

 

Hi,

 

     in my board using smsc 8710 phy, it work fine  in Linux version 2.6.28.10-ADI-2009R1.1 version. Now the system update to 2.6.34.7-ADI-2010R1 version. When kernel boot from flash, the other pc cannot ping to the blackfin board.The network is ok in u-boot. If in u-boot do the ping action or tftp action, then boot kernl from flash, the board network is ok. Now I cannot find out the reason .

 

Log Message:

 

     U-Boot 2010.06 (ADI-2010R1-RC2) (Jan 20 2011 - 00:31:34)

 

CPU:   ADSP bf516-0.1 (Detected Rev: 0.1) (spi flash boot)

Board: ADI BF518F EZ-Board board

       Support:   blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 80 MHz

RAM:   32 MiB

SF: Detected W25Q32 with page size 256, total 4 MiB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

SF: Detected W25Q32 with page size 256, total 4 MiB

 

MAC address:FF:FF:FF:FF:FF:FF

Warning: Generating 'random' MAC address

Net:   bfin_mac

Hit any key to stop autoboot:  3     2     1     0

SF: Detected W25Q32 with page size 256, total 4 MiB

4096 KiB W25Q32 at 0:2 is now current device

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

   Image Name:   bf518-2.6.34.7-ADI-2010R1

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1703840 Bytes = 1.6 MiB

   Load Address: 00001000

   Entry Point:  001f0b54

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001f0b54

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 797.90 BogoMIPS (lpj=3989504)

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (10 KB free)

Blackfin L1 Data B SRAM: 32 KB (32 KB free)

Blackfin L1 Instruction SRAM: 32 KB (23 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezbrd_init(): registering device resources

bio: create slab <bio-0> at 0

bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs_base@ffc00500, dma channel@7

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

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 29) is a BFIN-UART

m25p80 spi0.2: w25Q32 (4096 Kbytes)

Creating 3 MTD partitions on "m25p80":

0x000000000000-0x000000019000 : "bootloader(spi)"

0x000000019000-0x00000039c000 : "linux kernel(spi)"

0x00000039c000-0x000000400000 : "file system(spi)"

bfin_mii_bus: probed

bfin_mac: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0:00, irq=-1, mdc_clk=2500000Hz(mdc_div=15)@sclk=80MHz)

bfin_mac bfin_mac.0: Blackfin on-chip Ethernet MAC driver, Version 1.1

bfin-wdt: initialized: timeout=20 sec (nowayout=0)

dma_alloc_init: dma_page @ 0x011fd000 - 256 pages at 0x01f00000

TCP cubic registered

NET: Registered protocol family 17

Freeing unused kernel memory: 968k freed

PHY: 0:00 - Link is Up - 100/Full

sh: can't execute '[-e': No such file or directory

no sd card file find in /dev

sh: can't execute './init.sh': No such file or directory

init: Booting to single user mode

 

 

BusyBox v1.16.2 (2011-01-19 08:23:28 CST) hush - the humble shell

 

/ #ifconfig

eth0      Link encap:Ethernet  HWaddr 52:78:77:39:2B:29

          inet addr:192.168.0.209  Bcast:192.168.0.255  Mask:255.255.255.0

          UP BROADCAST RUNNING 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

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

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:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0

          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

 

 

 

Best Regards

 

-Bill

QuoteReplyEditDelete

 

 

2011-01-22 22:55:50     Re: BF516 network cann't work

Mike Frysinger (UNITED STATES)

Message: 97625   

 

if you arent actually a bf518f-ezbrd, you shouldnt be using the bf518f-ezbrd files.  you need to create your own configurations without random DSA support.

QuoteReplyEditDelete

 

 

2011-01-23 00:02:55     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97626   

 

  Thank you.

 

    you need to create your own configurations without random DSA support.

 

       I donnt know how to  create configuration without random DSA support. Please give me the doc for reference.

 

  

QuoteReplyEditDelete

 

 

2011-01-23 01:24:33     Re: BF516 network cann't work

Mike Frysinger (UNITED STATES)

Message: 97627   

 

create your own board resources file and board config files, and only add platform resources which your board actually has

QuoteReplyEditDelete

 

 

2011-01-23 01:29:14     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97628   

 

     I not chose DSA support to compile uClinux. if create a new configuration also copy from bf518bf-ezbrd configuration, I think the network is also cann't work as this do. Maybe I donnt understand your meaning.

 

  Thank you.

QuoteReplyEditDelete

 

 

2011-01-23 01:40:29     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97629   

 

Mike,

 

     Thank you. If my board is not have some devices or is not using resources, this resources are all disable in bf518 ezbrd configure.

QuoteReplyEditDelete

 

 

2011-01-23 04:55:12     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97630   

 

  In the bfin_mac.c file, mac rx interrput is not responce, Does phy smsc 8710 is not configure right?

QuoteReplyEditDelete

 

 

2011-01-23 21:25:13     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97631   

 

   The MAC and phy driver is not have any question by compared uClinux-2010 and uClinux-2009. I'm so puzzel that

 

not found out reason.

QuoteReplyEditDelete

 

 

2011-01-24 04:25:03     Re: BF516 network cann't work

Bill Xie (CHINA)

Message: 97639   

 

In ezbrd.c file  setting MAC  peripherals only suport RMII PHY, but in my board need MII mode. so need modify

 

bfin_mac_peripherals. Now, the uClinux-2010 kernel network work fine in my system.

QuoteReplyEditDelete

 

 

2011-01-24 17:48:10     Re: BF516 network cann't work

Mike Frysinger (UNITED STATES)

Message: 97656   

 

this is why you need to be creating your own board file and reviewing the contents of it rather than modifying files that are not for your board.

Attachments

    Outcomes