2009-07-20 10:24:13     tftp not working in 2009R1-RC1

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

2009-07-20 10:24:13     tftp not working in 2009R1-RC1

Loganathan Manokaran (INDIA)

Message: 77731   

 

Hi,

 

I am working with BF527-0.2 revision custom board. I am using 2009R1-RC1 distribution and 2009R1-RC7 toolchain for compiling the kernel.

 

We have LAN 8700 in the custom board. I can able to configure the IP address to the board through ifconfig. But i can't able to do TFTP & pinging the IP address from the board to any of the server. Please let us know if anyting missed out in the kernel setting?

 

Please find the bellow of my teratermoutput.

 

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

   Image Name:   Linux-2.6.28.10-ADI-2009R1

   Created:      2009-07-20  13:54:37 UTC

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    3646821 Bytes =  3.5 MB

   Load Address: 00001000

   Entry Point:  001c1644

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001c1644

Linux version 2.6.28.10-ADI-2009R1 (log) (gcc version 4.1.2 (ADI svn)) #104 Mon Jul 20 19:24:23 IST 2009

Board Memory: 128MB

Kernel Managed Memory: 128MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x0012aec0

  rodata    = 0x0012aec0-0x00189168

  bss       = 0x0018a000-0x0019d278

  data      = 0x0019d278-0x001b4000

    stack   = 0x001b2000-0x001b4000

  init      = 0x001b4000-0x0074a000

  available = 0x0074a000-0x07eff000

  DMA Zone  = 0x07f00000-0x08000000

Hardware Trace Active and Enabled

Boot Mode: 1

Blackfin support (C) 2004-2009 Analog Devices, Inc.

Compiled for ADSP-BF527 Rev 0.2

Blackfin Linux support by   blackfin.uclinux.org/

Processor Speed: 600 MHz core clock and 120 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

Data Cache Enabled for CPU0 (write-back)

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32257

Kernel command line: console=ttyBF1,57600

Configuring Blackfin Priority Driven Interrupts

PID hash table entries: 512 (order: 9, 2048 bytes)

Console: colour dummy device 80x25

console [ttyBF1] enabled

Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)

Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)

Memory available: 121448k/131072k RAM, (5720k init code, 1191k kernel code, 549k data, 1024k dma, 1136k reserved)

Calibrating delay loop... 1191.93 BogoMIPS (lpj=595968)

Security Framework initialized

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

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

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

Blackfin L1 Instruction SRAM: 48 KB (41 KB free)

net_namespace: 288 bytes

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 4096 (order: 3, 32768 bytes)

TCP bind hash table entries: 4096 (order: 2, 16384 bytes)

TCP: Hash tables configured (established 4096 bind 4096)

TCP reno registered

NET: Registered protocol family 1

msgmni has been set to 237

io scheduler noop registered

io scheduler anticipatory registered (default)

io scheduler cfq registered

IR Module enabled

LCD Module enabled

bfin-otp: initialized

Serial: Blackfin serial driver

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

bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 31) is a BFIN-UART

brd: module loaded

bfin_mii_bus: probed

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

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

Driver 'sd' needs updating - please use bus_type methods

m25p80 spi0.1: found m25p80, expected m25p16

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

r8a66597_hcd: driver r8a66597_hcd, 10 Apr 2008

Initializing USB Mass Storage driver...

usbcore: registered new interface driver usb-storage

USB Mass Storage support registered.

usbcore: registered new interface driver libusual

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

TCP cubic registered

NET: Registered protocol family 17

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

Freeing unused kernel memory: 5720k freed

dma_alloc_init: dma_page @ 0x00747000 - 256 pages at 0x07f00000

                           _____________________________________

        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 (2009-07-18 14:54:25 IST) built-in shell (msh)

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

 

root:/>

root:/> ifconfig

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)

 

root:/> ifconfig eth0 172.16.15.44

root:/> ifPHY: 0:01 - Link is Up - 100/Full

eth0      Link encap:Ethernet  HWaddr C2:DD:D9:E2:FE:EA

          inet addr:172.16.15.44  Bcast:172.16.255.255  Mask:255.255.0.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)

 

root:/> ping 172.16.6.84

PING 172.16.6.84 (172.16.6.84): 56 data bytes

QuoteReplyEditDelete

 

 

2009-07-20 10:30:39     Re: tftp not working in 2009R1-RC1

Mike Frysinger (UNITED STATES)

Message: 77732   

 

you didnt add any route information.  please review the documentation:

  docs.blackfin.uclinux.org/doku.php?id=setting_up_the_network

QuoteReplyEditDelete

 

 

2009-07-20 10:51:30     Re: tftp not working in 2009R1-RC1

Loganathan Manokaran (INDIA)

Message: 77734   

 

Hi Mike,

 

I follwed the steps which was mentioned in the doc   docs.blackfin.uclinux.org/doku.php?id=setting_up_the_network. But still i am facing the tftp problem. Please find my teraterm output.

 

root:/>

root:/> ifconfig eth0 172.16.15.44 netmask 255.255.0.0 up

root:/> PHY: 0:01 - Link is Up - 100/Full

 

root:/> ifconfig eth0

eth0      Link encap:Ethernet  HWaddr C2:DD:D9:E2:FE:EA

          inet addr:172.16.15.44  Bcast:172.16.255.255  Mask:255.255.0.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)

 

root:/> route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

172.16.0.0      *               255.255.0.0     U     0      0        0 eth0

root:/> route add default gw 172.16.1.1

root:/> route

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

172.16.0.0      *               255.255.0.0     U     0      0        0 eth0

default         172.16.1.1      0.0.0.0         UG    0      0        0 eth0

root:/> ping -c 3 172.16.6.84

PING 172.16.6.84 (172.16.6.84): 56 data bytes

^C

--- 172.16.6.84 ping statistics ---

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

root:/>

QuoteReplyEditDelete

 

 

2009-07-20 11:00:15     Re: tftp not working in 2009R1-RC1

Mike Frysinger (UNITED STATES)

Message: 77736   

 

so sniff the wire with wireshark to see if packets are actually going out

QuoteReplyEditDelete

 

 

2009-07-20 12:13:49     Re: tftp not working in 2009R1-RC1

Loganathan Manokaran (INDIA)

Message: 77748   

 

Hi Mike,

 

From u-boot we are able to ping the server and also we are able to do the tftp of uImage.

 

in distribution we are facing this problem. can you tell us why this is happening?

 

we will check whether the packets are send out or not?

 

Thank you.

QuoteReplyEditDelete

 

 

2009-07-20 23:13:24     Re: tftp not working in 2009R1-RC1

Sonic Zhang (CHINA)

Message: 77784   

 

We have no problem to run tftp in 2009R1-RC1 uClinux-dist. Please check your hardware or configuration.

QuoteReplyEditDelete

 

 

2009-07-20 23:22:51     Re: tftp not working in 2009R1-RC1

Loganathan Manokaran (INDIA)

Message: 77786   

 

Hi Zhang,

 

Thank you very much, we will check once again the hardware.

 

what are configurations do we need to check? please help us on this.

 

i mentioned earlier that

 

from u-boot we are able to do the ping to the server and we can load and boot uImage using tftp from u-boot.

 

from uimage we are facing problem with tftp is that means there is a problem with hardware?

 

Thank you.

QuoteReplyEditDelete

 

 

2009-07-20 23:44:53     Re: tftp not working in 2009R1-RC1

Sonic Zhang (CHINA)

Message: 77787   

 

Please use the default configuration in 2009R1-RC1 uClinux-dist or just try the prebuild uImage on our web site.

Attachments

    Outcomes