All of lore.kernel.org
 help / color / mirror / Atom feed
From: George G. Davis <davis_g@comcast.net>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] tftp problem
Date: Mon, 10 May 2004 11:28:38 -0400	[thread overview]
Message-ID: <20040510152838.GC8530@mvista.com> (raw)
In-Reply-To: <20040510090812.82531C109F@atlas.denx.de>

On Mon, May 10, 2004 at 11:08:07AM +0200, Wolfgang Denk wrote:
> In message <A5F3D6A490BAD1118AAE00A0C94C2664034025EA@CORREO> you wrote:
> >
> > We're using u-boot 1.0.0 to boot Linux on a Lubbock based platform. We've
> 
> Why are you posting the very same message twice  from  two  different
> mail addresses?
> 
> Please NEVER do this again!!!!
> 
> > We know that the tftp server works because we've tested it with other
> > clients. But with tftp in u-boot we're only able to transfer little files
> > (1, 2 Kb).. 
> 
> What happens then? Is there an error mesaage or what? Did you try  to
> debug the problem?
> 
> > Which can be the problem?? Newer versions work fine??
> 
> Ummm... did you try it out? If yes, what was the result? If not, why not???

FWIW, I've noticed that the Lubbock SMC_inb macro in drivers/lan9196.h is
broken. Take a look at that Lubbock SMC_inb macro definition:

#define SMC_inb(p)	({ \
	unsigned int __p = (unsigned int)(SMC_BASE_ADDRESS + (p * 4)); \
	unsigned int __v = *(volatile unsigned short *)((__p) & ~1); \
	if (__p & 1) __v >>= 8; \
	else __v &= 0xff; \
	__v; })


I believe that definition should be rewritten as follows (ignoring issues
of coding style or personal preferences : ):

#define SMC_inb(p)	({ \
	unsigned int __p = (unsigned int)(SMC_BASE_ADDRESS + ((p) * 4)); \
	unsigned int __v = *(volatile unsigned short *)(__p & ~4); \
	if (__p & 4) __v >>= 8; \
	else __v &= 0xff; \
	__v; })


I don't have a Lubbock target so I can't vouch for the accuracy of my
assertion. But it clearly seems broken as currently written. Also have a
look at the Lubbock kernel lan91c96 support to review those macros there
and draw your own conclusions.

I have no idea if this will help with this problem. But it probably won't
hurt. : )

HTH!

--
Regards,
George

  reply	other threads:[~2004-05-10 15:28 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-10  7:44 [U-Boot-Users] tftp problem Martinez Sonia
2004-05-10  9:08 ` Wolfgang Denk
2004-05-10 15:28   ` George G. Davis [this message]
2004-05-21 15:01     ` [U-Boot-Users] tftp problem -> Solved Sonia Martinez
  -- strict thread matches above, loose matches on Subject: below --
2004-05-10  7:57 [U-Boot-Users] TFTP PROBLEM Sonia Martinez
2004-05-10  9:08 ` Masami Komiya
2004-05-10 13:21   ` Sonia Martinez
2004-05-10 15:23     ` Masami Komiya
2004-05-10 20:20 ` DeLaGarza, Robert
2004-05-10 21:35   ` Tolunay Orkun

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=20040510152838.GC8530@mvista.com \
    --to=davis_g@comcast.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.