• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Upgraded to open u-boot -> tftp not working anymore.  (Read 3404 times)
tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« on: June 07, 2009, 11:14:01 AM »

I've upgraded U-boot according to this guide: http://plugcomputer.org/plugwiki/index.php/Das_U-boot_plug_support
I can boot from flash, but tftp is not working anymore. Also ping doesn't do anything (but i didn't try that with the old u-boot, so i don't know, what it's supposed to do). The IP-addresses are correct. Any idea?

Code:
U-Boot 2009.06-rc2-02174-ge5f7c16 (Jun 07 2009 - 11:48:25)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> printenv
bootdelay=3
baudrate=115200
x_bootargs=console=ttyS0,115200 mtdparts=orion_nand:512k(uboot),1m@4m(psm),3m@1m(kernel),13m@5m(rootfs) rw
x_bootcmd_kernel=nand read 0x100000 0x6400000 0x300000
x_bootargs_root=root=/dev/mtdblock3 rw rootfstype=jffs2
ethaddr=00:50:43:6c:e8:fd
ethact=egiga0
ipaddr=10.10.10.20
serverip=10.10.10.4
console=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
bootcmd=nand read.e 0x800000 0x100000 0x400000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
bootargs_root=ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs
stdin=serial
stdout=serial
stderr=serial

Environment size: 633/131068 bytes
Marvell>> tftpboot 0x2000000 uImage
Using egiga0 device
TFTP from server 10.10.10.4; our IP address is 10.10.10.20
Filename 'uImage'.
Load address: 0x2000000
Loading: *

It stops right here ... print's one '*' and nothing more ...
Logged

hammerinhank
Newbie
*

Karma: 0
Posts: 24


View Profile
« Reply #1 on: June 08, 2009, 11:52:02 AM »

I've run into this on both the Sheeva plug and Freescale's ARM SOC dev boards.  I would also guess that the light is out on the network connector on the plug.  This seems to happen mostly when you reset it with a paper clip in the hole, but happened to me doing other things as well, while booting. 

The solution that I found works is to ping your NFS server.  It will reinitialize the chip, and the light will come on.  Network connectivity should resume.
Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #2 on: June 08, 2009, 01:16:46 PM »

Thanks for the advise. I checked, an both LEDs are on. Ping doesn't work either. I also tried to make a soft-reset after my hard-reset and try then: no luck. I guess it's a U-Boot-Problem. I'm able to boot from NFS, as long as i get the kernel from NAND.
Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #3 on: June 08, 2009, 04:27:50 PM »

I flashed the U-boot supplied by marvell and tftp worked again, i flashed u-boot from git and it didn't work again.

Am i really the only one experiencing this or is this probably a recent regression in marvells u-boot-git or did noone update his/her u-boot?
Logged

prafulla
Global Moderator
Newbie
*****

Karma: 0
Posts: 21


View Profile
« Reply #4 on: June 09, 2009, 08:38:54 AM »

Hi,
First of all sorry for late reply,

I have tested my board with uboot.git and works properly for tftp.
I will again download, build and test the code that you are using.
Meanwhile May you send me the log for following u-boot commands?
1. md f1010000
2. md f1072000 (readings up to f10726ff

Regards..
Prafulla . .
Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #5 on: June 09, 2009, 09:59:30 AM »

Hi prafulla,

thanks for helping! Here is the output:

Code:
Marvell>> md f1010000
f1010000: 01111111 11113322 00001111 00100000    ...."3..........
f1010010: 00000000 00000000 00000000 00000000    ................
f1010020: 00000000 00000000 00000000 00000000    ................
f1010030: 00925e96 00000002 00000001 00000000    .^..............
f1010040: 00000000 00000000 00000000 00000000    ................
f1010050: 00180007 00000000 00000000 00000000    ................
f1010060: 00000000 00000000 00000000 00000000    ................
f1010070: 00000000 00000000 00000000 00000060    ............`...
f1010080: 00000000 a9403302 00410a03 00000010    .....3@...A.....
f1010090: 12121212 12121212 12121112 11121112    ................
f10100a0: 00001212 00000000 00000000 00000000    ................
f10100b0: 00000000 00000000 00121212 00000005    ................
f10100c0: 00000000 03950000 00000000 00000000    ................
f10100d0: af001000 00000000 00000080 ffff0000    ................
f10100e0: 1b1b1b9b 011b1b1b 00000000 00000000    ................
f10100f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072000
f1072000: 00000000 0c001140 00000000 000000e0    ....@...........
f1072010: 000100ff 00000000 00000000 00000000    ................
f1072020: 00000000 00000000 00000000 00000000    ................
f1072030: 00000000 00000000 00000000 00000000    ................
f1072040: 00000000 00000000 00000000 00000000    ................
f1072050: 00000000 00000000 00000000 00000000    ................
f1072060: 00000000 00000000 00000000 00000000    ................
f1072070: 00000000 00000000 00000000 00000000    ................
f1072080: 00000010 00000000 00000000 e7438c10    ..............C.
f1072090: 00000000 00000000 00000000 00000000    ................
f10720a0: 00000000 00000000 00000000 00000000    ................
f10720b0: 00010002 00000000 00000000 00000000    ................
f10720c0: 00000000 00000000 00000000 00000000    ................
f10720d0: 00000000 00000000 00000000 00000000    ................
f10720e0: 00000000 00000000 00000000 00000000    ................
f10720f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072100
f1072100: 00000000 00000000 00000000 00000000    ................
f1072110: 00000000 00000000 00000000 00000000    ................
f1072120: 00000000 00000000 00000000 00000000    ................
f1072130: 00000000 00000000 00000000 00000000    ................
f1072140: 00000000 00000000 00000000 00000000    ................
f1072150: 00000000 00000000 00000000 00000000    ................
f1072160: 00000000 00000000 00000000 00000000    ................
f1072170: 00000000 00000000 00000000 00000000    ................
f1072180: 00000000 00000000 00000000 00000000    ................
f1072190: 00000000 00000000 00000000 00000000    ................
f10721a0: 00000000 00000000 00000000 00000000    ................
f10721b0: 00000000 00000000 00000000 00000000    ................
f10721c0: 00000000 00000000 00000000 00000000    ................
f10721d0: 00000000 00000000 00000000 00000000    ................
f10721e0: 00000000 00000000 00000000 00000000    ................
f10721f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072200
f1072200: 00000000 00000000 00000000 00000000    ................
f1072210: 00000000 00000000 00000000 00000000    ................
f1072220: 00000000 00000000 00000000 00000000    ................
f1072230: 00000000 00000000 00000000 00000000    ................
f1072240: 00000000 00000000 00000000 00000000    ................
f1072250: 00000000 00000000 00000000 00000000    ................
f1072260: 00000000 00000000 00000000 00000000    ................
f1072270: 00000000 00000000 00000000 00000000    ................
f1072280: 00000000 00000000 00000000 00000000    ................
f1072290: 0000003f 00000fff 00000000 00000000    ?...............
f10722a0: 00000000 00000000 00000000 00000000    ................
f10722b0: 00000000 00000000 00000000 00000000    ................
f10722c0: 00000000 00000000 00000000 00000000    ................
f10722d0: 00000000 00000000 00000000 00000000    ................
f10722e0: 00000000 00000000 00000000 00000000    ................
f10722f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072300
f1072300: 00000000 00000000 00000000 00000000    ................
f1072310: 00000000 00000000 00000000 00000000    ................
f1072320: 00000000 00000000 00000000 00000000    ................
f1072330: 00000000 00000000 00000000 00000000    ................
f1072340: 00000000 00000000 00000000 00000000    ................
f1072350: 00000000 00000000 00000000 00000000    ................
f1072360: 00000000 00000000 00000000 00000000    ................
f1072370: 00000000 00000000 00000000 00000000    ................
f1072380: 00000000 00000000 00000000 00000000    ................
f1072390: 00000000 00000000 00000000 00000000    ................
f10723a0: 00000000 00000000 00000000 00000000    ................
f10723b0: 00000000 00000000 00000000 00000000    ................
f10723c0: 00000000 00000000 00000000 00000000    ................
f10723d0: 00000000 00000000 00000000 00000000    ................
f10723e0: 00000000 00000000 00000000 00000000    ................
f10723f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072400
f1072400: 03c00000 00000000 00018000 00000006    ................
f1072410: 00008100 00000000 00000000 01000038    ............8...
f1072420: 00000000 00000000 00000000 00000000    ................
f1072430: 00000000 00000000 00000000 01e20218    ................
f1072440: 00000000 00001c2c 00000000 00238488    ....,.........#.
f1072450: 00000018 00000000 000121bd 00000000    .........!......
f1072460: 00000000 00010000 00000000 00000000    ................
f1072470: 00000010 00000000 0000001e 00000040    ............@...
f1072480: 00000000 00000000 00000000 0002003b    ............;...
f1072490: 00020000 00000000 00000000 00000000    ................
f10724a0: 00000001 0000000c 0000c815 0000a600    ................
f10724b0: 00000000 00000000 00000000 000100c0    ................
f10724c0: 00000001 0000000c 0000c815 0000a600    ................
f10724d0: 00000000 00000000 00000000 000000ff    ................
f10724e0: 00007fff 00000009 00000024 0000ffff    ........$.......
f10724f0: 00000000 00028b0a 002660ce 00000000    .........`&.....
Marvell>> md f1072500
f1072500: 00000000 00000000 00000000 00000000    ................
f1072510: 00000000 00000000 00000000 00000000    ................
f1072520: 00000000 00000000 00000000 00000000    ................
f1072530: 00000000 00000000 00000000 00000000    ................
f1072540: 00000000 00000000 00000000 00000000    ................
f1072550: 00000000 00000000 00000000 00000000    ................
f1072560: 00000000 00000000 00000000 00000000    ................
f1072570: 00000000 00000000 00000000 00000000    ................
f1072580: 00000000 00000000 00000000 00000000    ................
f1072590: 00000000 00000000 00000000 00000000    ................
f10725a0: 00000000 00000000 00000000 00000000    ................
f10725b0: 00000000 00000000 00000000 00000000    ................
f10725c0: 00000000 00000000 00000000 00000000    ................
f10725d0: 00000000 00000000 00000000 00000000    ................
f10725e0: 00000000 00000000 00000000 00000000    ................
f10725f0: 00000000 00000000 00000000 00000000    ................
Marvell>> md f1072600
f1072600: 00000000 00000000 00000000 00000000    ................
f1072610: 00000000 00000000 00000000 00000000    ................
f1072620: 00000000 00000000 00000000 00000000    ................
f1072630: 00000000 00000000 00000000 00000000    ................
f1072640: 00000000 00000000 00000000 00000000    ................
f1072650: 00000000 00000000 00000000 00000000    ................
f1072660: 00000000 00000000 00000000 00000000    ................
f1072670: 00000000 00000000 00000000 00000000    ................
f1072680: 00000000 00000000 00000000 00000000    ................
f1072690: 00000000 00000000 00000000 00000000    ................
f10726a0: 00000000 00000000 00000000 00000000    ................
f10726b0: 00000000 00000000 00000000 00000000    ................
f10726c0: 00000000 00000000 00000000 00000000    ................
f10726d0: 00000000 00000000 00000000 00000000    ................
f10726e0: 00000000 00000000 00000000 00000000    ................
f10726f0: 00000000 00000000 00000000 00000000    ................

This is actually from this version now:
Code:
U-Boot 2009.06-rc2-02174-ge5f7c16 (Jun 07 2009 - 11:48:25)
Marvell-Sheevaplug
Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #6 on: June 10, 2009, 12:08:06 PM »

Hi,

i saw that you are using a newer version, so i updated to the same version as you tested. The problems still remained, so i defined DEBUG as requested. Here's the log:

Code:
Marvell>> reset
resetting ...


U-Boot 2009.06-rc2-02207-g14c575a-dirty (Jun 10 2009 - 21:00:20)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
smi_reg_read:(adr 0, off 21) value= 1070
smi_reg_read:(adr 0, off 0) value= 1140
smi_reg_read:(adr 0, off 0) value= 1140
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> set serverip 10.10.10.4
Marvell>> ping 10.10.10.4
smi_reg_read:(adr 0, off 1) value= 796d
smi_reg_read:(adr 0, off 1) value= 796d
Using egiga0 device
#### paperclip-reset after a minute ####

U-Boot 2009.06-rc2-02207-g14c575a-dirty (Jun 10 2009 - 21:00:20)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
smi_reg_read:(adr 0, off 21) value= 1070
smi_reg_read:(adr 0, off 0) value= 1140
smi_reg_read:(adr 0, off 0) value= 1140
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> set serverip 10.10.10.4
Marvell>> dhcp uImage
smi_reg_read:(adr 0, off 1) value= 796d
smi_reg_read:(adr 0, off 1) value= 796d
BOOTP broadcast 1

#### paperclip-reset necessary ####
Logged

prafulla
Global Moderator
Newbie
*****

Karma: 0
Posts: 21


View Profile
« Reply #7 on: June 11, 2009, 02:30:23 AM »

Hi

I wonder how you are getting "paperclip-reset" messages!!! This is not from u-boot, there is no such string in entire u-boot source code. is this comming as a result of pressing board reset? if yes then I am not getting it at all, then I think we are on different platforms. just to confirm the hardware I am using is "Sheeva plug, MODEL: 003-SP1001, SKU#:RD88F6281-BPLUG-A", is this the same that you are using?
evenif your answer is yes/no other u-boot is functional on your board, so there must be some problem in u-boot.git s/w.

how you can help me to solve this?.....:-(
Do you have wireshark installed on your host? if not, can you install and check the packets are going out.

Meanwhile I will try to implement some hooks in code and will present it to you to test on your board.
 
Thanks and Regards..
Prafulla . .

FYI: my log with debug is:
Code:
U-Boot 2009.06-rc2-02207-g14c575a-dirty (Jun 11 2009 - 18:28:16)
Marvell-Sheevaplug                     
                                       
SoC:   Kirkwood 88F6281_A0
DRAM:  512 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
smi_reg_read:(adr 0, off 21) value= 1040
smi_reg_read:(adr 0, off 0) value= 1140
smi_reg_read:(adr 0, off 0) value= 1140
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
Marvell>> dhcp uImage
smi_reg_read:(adr 0, off 1) value= 796d
smi_reg_read:(adr 0, off 1) value= 796d
BOOTP broadcast 1
kwgbe_recv: Received 348 byte Packet @ 0x5e1780 (cmd_sts= 2fa0d806)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 348 byte Packet @ 0x5e1d80 (cmd_sts= 2fa0d806)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
DHCP client bound to address 10.31.131.123
Using egiga0 device
TFTP from server 192.168.5.30; our IP address is 10.31.131.123
Filename 'uImage'.
Load address: 0x800000
Loading: ## Warning: gatewayip needed but not set
kwgbe_recv: Received 66 byte Packet @ 0x5e2380 (cmd_sts= 2cc7fffe)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 66 byte Packet @ 0x5e2980 (cmd_sts= 2cc7fffe)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 73 byte Packet @ 0x5e1780 (cmd_sts= 2fa29c9e)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 98 byte Packet @ 0x5e1d80 (cmd_sts= 2fa0d51e)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 1520 byte Packet @ 0x5e2380 (cmd_sts= 2fa2c9d6)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
#kwgbe_recv: Received 1520 byte Packet @ 0x5e2980 (cmd_sts= 2fa2c9d6)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 1520 byte Packet @ 0x5e1780 (cmd_sts= 2fa2c9d6)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 1520 byte Packet @ 0x5e1d80 (cmd_sts= 2fa2c9d6)
kwgbe_recv: Sending Received packet to upper layer (NetReceive)
kwgbe_recv: Received 1520 byte Packet @ 0x5e2380 (cmd_sts= 2fa2c9d6)

Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #8 on: June 11, 2009, 02:55:45 AM »

Hello,

sorry, the lines marked with #### are of course comments from me, so that you know what's going on (it hung completely).

just to confirm the hardware I am using is "Sheeva plug, MODEL: 003-SP1001, SKU#:RD88F6281-BPLUG-A", is this the same that you are using?

Yes, when i turn my unit around, there's a sticker with "Sheeva Plug, MODEL: 003-SP1001, SKU #: RD-88F6281-BPLUG-A", so it's the same. One difference might be, that my unit is from the most recent production run at globalscale. I received mine only a week ago.

I didn't use wireshark yet, but i'll look into it. But that has to wait until the weekend, i'm busy 'til friday. Can you upload a binary of your uboot.git, just to be sure that there are no compiler issues? Not that i expect that, but it's very mysterious that it runs on your hardware but doesn't work on mine. I'm as puzzled as you are.

how you can help me to solve this?.....:-(
Since i'm just an (experienced) linux user and i know nothing about the internals of the kernel and uboot not much ... but i can do anything you tell me to do, of course.




Logged

prafulla
Global Moderator
Newbie
*****

Karma: 0
Posts: 21


View Profile
« Reply #9 on: June 11, 2009, 09:56:29 PM »

Hi
Thanks for your support ....
I think we should take this tread on the email untill we resolve this, my email-id is prafulla@marvell.com, pls ping to me, so if we are online we will sort it out faster

Just FYI: I am using gigabit ethenet as communication backbone, what is yours?
BTW: What compiler you are using? I am using the same one whose reference is provided on ewiki

I will send you the binary, I dont know how to attach it to this log.. if not I will post it on the same ewiki documentation page

Regards..
Prafulla . .

Logged

tschaboo
Newbie
*

Karma: 0
Posts: 15


View Profile
« Reply #10 on: June 11, 2009, 11:48:24 PM »

Ack.
Logged

dieterk
Newbie
*

Karma: 0
Posts: 21


View Profile
« Reply #11 on: June 22, 2009, 07:47:13 AM »

Hi,

are there any news regarding this toppic?
It seems my board has exactly the same problems.
Can I do anything to help debugging?

Remarks:
@Prafulla:
I've done a test as you mentioned a few lines above.
It seems that this is an issue regarding 100MBit/Gigabit.
If I use a 100MBit/s Switch the error is shown.
With a Gigabit uplink network seems to be working!

Thanks,
Dieter

Ack.
« Last Edit: June 22, 2009, 07:55:39 AM by dieterk » Logged

dieterk
Newbie
*

Karma: 0
Posts: 21


View Profile
« Reply #12 on: June 22, 2009, 11:11:28 AM »

This issue is allready fixed by Prafulla.

Updated driver can be found here:

http://lists.denx.de/pipermail/u-boot/2009-June/054314.html



Hi,

are there any news regarding this toppic?
It seems my board has exactly the same problems.
Can I do anything to help debugging?

Remarks:
@Prafulla:
I've done a test as you mentioned a few lines above.
It seems that this is an issue regarding 100MBit/Gigabit.
If I use a 100MBit/s Switch the error is shown.
With a Gigabit uplink network seems to be working!

Thanks,
Dieter

Ack.
Logged

prafulla
Global Moderator
Newbie
*****

Karma: 0
Posts: 21


View Profile
« Reply #13 on: June 23, 2009, 06:22:30 AM »

Hi
sorry being late...
u-boot-kw.git at git.marvell.com is updated for latest u-boot release, this also includes this tftp fix
please pull it.

Regards..
Prafulla . .
 
Logged

Pages: [1]
Print
Jump to: