public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] 'usb start' works very unstable
Date: Sat, 07 Aug 2010 17:47:56 +0200	[thread overview]
Message-ID: <20100807154756.AD4D11536EF@gemini.denx.de> (raw)
In-Reply-To: <20100807163957.52c1cceb@mosly>

Dear Sergei Trofimovich,

In message <20100807163957.52c1cceb@mosly> you wrote:
>
> > > Heh, capacity is reported incorrectly, but it works am I'm able
> > > to load kernel from there.
> > The reason for this is that the multiplication 488397168 x 512 will
> > overflow a 32 bit integer as used in "disk/part.c"; this shouldbe
> > fixed...
> 
> This issue is still here:

Sorry for not being clear. What I meant was: this is a bug that needs
to be fixed (patches welcome).


> And I can't reproduce it anymore with 'u-boot/master'.
> Rebooted 3 times and I have stable detection \o/.

Good. At least one problem solved.

>     $sudo openocd -f /usr/share/openocd/scripts/board/sheevaplug.cfg
>     Open On-Chip Debugger 0.5.0-dev-00466-g28ddefd (2010-08-06-22:54)
> ...
>     > reset

Hm... I am not sure what exactly the OpenOCD debugger does when you
run the reset command; eventually it performs some initializations
(defined in sheevaplug.cfg ?), and/or prevents others. The CPU may, or
may not, be in the virgin state expected by U-Boot.

Detach the debugger, and perform a real hard reset instead. Or try to
configure the debugger not to perform any initializations (i. e. the
equivalent of the "reset run" command on BDI2000/30000).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Democracy is mob rule, but with income taxes.

  reply	other threads:[~2010-08-07 15:47 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-07  7:18 [U-Boot] 'usb start' works very unstable Sergei Trofimovich
2010-08-07 11:22 ` Wolfgang Denk
2010-08-07 13:39   ` Sergei Trofimovich
2010-08-07 15:47     ` Wolfgang Denk [this message]
2010-08-07 19:35       ` Prafulla Wadaskar
2010-08-07 20:57       ` Sergei Trofimovich
2010-08-08  9:05         ` [U-Boot] [PATCH] disk/part.c: 'usb storage' avoiding overflow when output capacity Sergei Trofimovich
2010-08-08 10:01           ` Sergei Shtylyov
2010-08-08 12:05             ` Sergei Trofimovich
2010-08-09  5:38               ` Prafulla Wadaskar
2010-08-09 18:19                 ` Sergei Trofimovich
2010-08-10 21:10               ` Wolfgang Denk
2010-08-07 19:47     ` [U-Boot] 'usb start' works very unstable Prafulla Wadaskar
2010-08-07 22:27       ` Wolfgang Denk

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=20100807154756.AD4D11536EF@gemini.denx.de \
    --to=wd@denx.de \
    --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