public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Tetsuyuki Kobayashi <koba@kmckk.co.jp>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC][PATCH] net: nfs: extend NFS_TIMEOUT
Date: Tue, 26 Jun 2012 17:21:46 +0900	[thread overview]
Message-ID: <4FE9711A.2090602@kmckk.co.jp> (raw)
In-Reply-To: <4FE90756.30009@kmckk.co.jp>

Hello,

(2012/06/26 9:50), Tetsuyuki Kobayashi wrote:

> (06/26/2012 06:34 AM), Wolfgang Denk wrote:
> 
>> In message<4FE85B13.5080902@kmckk.co.jp>  you wrote:
>>> I tried nfs command on KZM-A9-GT board and it fails every time with "ERROR: Cannot umount".
>>
>> KZM-A9-GT board?  This is an out of tree port, isn't it?
> Not yet, but trying now.
> 
>>
>> Are you sure the problems are not in the board specific code?
> OK. I will try the same thing on an in-tree board (maybe, panda board) to check if this is board specific or not.

I did on a panda board. It has the same problem and this patch solves it. So this is not board specific problem. Please consider to change global setting of NFS_TIMEOUT in nfs.c.
I hope someone else tries nfs command on the other board.



Following is the detail I did:

The default config of pand board disables NFS command.
So add this line in omap4_panda.h
#define COFNIG_CMD_NFS
(This line must be after #include configs/omap4_common.h>

I had trouble to use network on a panda board at the source from u-boot master git.
Instead, I used source code from Linaro git.
(I think this is another issue. Just focus NFS timeout now.)

Before applying the patch: error occurs like this.

Panda # usb start
(Re)start USB...
USB:   Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
       scanning bus for ethernet devices... 1 Ethernet Device(s) found
Panda # setenv ipaddr 192.168.1.162
Panda # setenv serverip 192.168.1.110
Panda # nfs /export/tmp/uImage
Waiting for Ethernet connection... done.
Using sms0 device
File transfer via NFS from server 192.168.1.110; our IP address is 192.168.1.162
Filename '/export/tmp/uImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############################################T T *** ERROR: Cannot umount
Panda #


After applying the patch: it seems OK.

Panda # usb start
(Re)start USB...
USB:   Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
       scanning bus for ethernet devices... 1 Ethernet Device(s) found
Panda # setenv ipaddr 192.168.1.162
Panda # setenv serverip 192.168.1.110
Panda # nfs /export/tmp/uImage
Waiting for Ethernet connection... done.
Using sms0 device
File transfer via NFS from server 192.168.1.110; our IP address is 192.168.1.162
Filename '/export/tmp/uImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##############################################
done
Bytes transferred = 2230644 (220974 hex)
Panda #

--
Tetsuyuki Kobayashi

  reply	other threads:[~2012-06-26  8:21 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-25 12:35 [U-Boot] [RFC][PATCH] net: nfs: extend NFS_TIMEOUT Tetsuyuki Kobayashi
2012-06-25 21:34 ` Wolfgang Denk
2012-06-26  0:50   ` Tetsuyuki Kobayashi
2012-06-26  8:21     ` Tetsuyuki Kobayashi [this message]
2012-06-26  8:52       ` Wolfgang Denk
2012-06-26 15:30         ` Joe Hershberger
2012-06-26 18:34           ` Scott Wood
2012-06-26 18:45             ` Joe Hershberger
2012-06-27  4:32           ` Tetsuyuki Kobayashi
2012-07-03 11:22           ` [U-Boot] [RFC][PATCH] net: nfs: make NFS_TIMEOUT configurable Tetsuyuki Kobayashi
2012-07-03 13:47             ` Joe Hershberger
2012-07-03 14:13               ` Tetsuyuki Kobayashi
2012-07-04  2:47                 ` [U-Boot] [RFC][PATCH v2] " Tetsuyuki Kobayashi
2012-07-04  5:40                   ` Wolfgang Denk
2012-07-04  8:25                     ` [U-Boot] [RFC][PATCH v3] " Tetsuyuki Kobayashi
2012-07-12  7:30                       ` Tetsuyuki Kobayashi
2012-07-12 16:16                         ` Joe Hershberger
2012-07-12 16:30                           ` Tom Rini
2012-07-12 16:40                             ` Joe Hershberger
2012-07-12 21:48                               ` Tetsuyuki Kobayashi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4FE9711A.2090602@kmckk.co.jp \
    --to=koba@kmckk.co.jp \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox