Ticket #5354 (closed defect: fixed)

Opened 7 years ago

Last modified 5 years ago

OFW needs USB retry

Reported by: wmb@… Owned by: wmb@…
Priority: normal Milestone: Future Release
Component: ofw - open firmware Version:
Keywords: Cc:
Action Needed: never set Verified: no
Deployments affected: Blocked By:
Blocking:

Description

Some USB mass storage devices, in particular a Kingston Datatraveler 1G owned by edsiper, apparently need some extra time before they will respond to READ_CAPACITY commands.

Retrying the command after a delay appears to work.

Change History

  Changed 7 years ago by wmb@…

Fixed by svn 751.

  Changed 7 years ago by jg

  • milestone changed from Never Assigned to Future Release

  Changed 7 years ago by wmb@…

  • status changed from new to closed
  • resolution set to fixed

  Changed 7 years ago by wmb@…

Test procedure:

Execute this command on a laptop with a Kingston Datatraveler 1G USB FLASH key:

ok dir u:\

Observe that it works with Q2D08 but fails with Q2D07. (I don't have one of these keys; the problem was reported by edsiper and another customer, and the fix verified by them both).

  Changed 7 years ago by erikos

Test sample: I have a Kingston Datatraveler 1G USB but could not verify the issue. On two machines with q2D07 the 'dir u:\' command worked fine.

follow-up: ↓ 7   Changed 7 years ago by frankprindle

Where can I get OFW Q2D08? The wiki lists Q2D07 as the latest. Will Q2D08 work with build 656?

I have a similar problem with Q2D07 - a 2GB Kingston DataTraveler (that comes up as "Kingston DataTraveler 2.0 1.00 PQ: 0 ANSI: 2" in the dmesg, and is designated DT100/2GB on the stick itself - on the metal USB plug, that is) is not recognized by OFW ("dir disk:\" says unable to read, won't boot from, etc) though "p2" shows it is on the USB. AND, if I plug it in when sugar is up, it automounts in /media but does not show up in the sugar journal as a USB drive.

It throws the following messages in dmesg: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! FAT: Filesystem panic (dev sda1) [this message only comes up sometimes]

fat_free_clusters: deleting FAT entry beyond EOF File system has been set read-only

A Sony stick that I have, also 2GB, works fine in every way, though it still emits the "FAT: utf8..." message (but not the panic.) Both sticks are formetted FAT, but even if I copy an ext3 OS image to it, so it is then formatted ext3, the OFW (Q3D07) still won't see it.

So does Q2D08 fix ALL these issues?

in reply to: ↑ 6   Changed 7 years ago by frankprindle

Whoops, I meant Q2D07!!

OFW (Q3D07) still won't see it. So does Q2D08 fix ALL these issues?

follow-up: ↓ 9   Changed 7 years ago by wmb@…

You might as well upgrade all the way to Q2D13.

http://wiki.laptop.org/go/OLPC_Firmware_q2d13

I doubt that it will fix the Linux/Sugar problems.

Your description of what you did leaves me wondering if the partition information is inconsistent with the actual size of the device. Copying FS images onto media tends to cause that. In fact, using random Linux commands to put stuff onto media has a high probability of inconsistencies between the actual media size, what is listed in the partition table, and the actual filesystem layout, both in terms of sizes and filesystem types. Linux gives you enough rope to hang yourself, and there are lots of hangings.

in reply to: ↑ 8   Changed 7 years ago by frankprindle

Replying to wmb@firmworks.com:

Linux gives you enough rope to hang yourself, and there are lots of hangings.

But you see, the problem occurs with the Kingston stick fresh out of the box too. All formatted FAT by the manufacturer.

And I did follow the directions in http://wiki.laptop.org/go/OS_images_for_USB_disks to the letter, which yields a stick that boots fine if I use the Sony stick instead of the Kingston.

follow-up: ↓ 11   Changed 7 years ago by frankprindle

The Kingston works perfectly now that I flashed q2d13. Thanks folks for the pointer!!!

in reply to: ↑ 10   Changed 6 years ago by hhardy

  • status changed from closed to reopened
  • next_action set to never set
  • resolution deleted

Fix needs to go into a production build... see http://rt.laptop.org/Ticket/Display.html?id=28173

rt ticket contents follows:

Mitch has made necessary changes, they need to go into a production build.

--HH

Grrrrrr.

So, I've been looking at version logs vis-a-vis http://dev.laptop.org/ticket/5354 - the bug about the Datatraveler 1G.

OS656 includes Q2D07 firmware. Q2D07 was released on Dec 7, 2007, 5 weeks before OS 656 was released (Jan 18, 2008).

I fixed that bug on Dec 5, 2007, i.e. two days before Q2D07 was released, but was not permitted to include the fix in Q2D07 because of concerns that it would break something. The fix first appeared in Q2D08, dated Jan 5, 2008.

I updated http://wiki.laptop.org/go/USB_drive#USB_drives_and_firmware with an extensive discussion of different ways to work around the problem.

We need a better release qualification/testing methodology. The current status quo, in which it is nearly impossible to actually fix bugs that are discovered while testing the candidate release, leaves much to be desired. - Hide quoted text -

Mitch Bradley wrote:

See also http://dev.laptop.org/ticket/8088

Adam Holt wrote:

Mitch,

(1) The 2 keys are on their way to you, tho I hear they may be stuck in shipping for a week or more.

(2) Since this problem is so common around the world (as users all try to upgrade from 656 to 8.2) many of our Support Volunteers have asked me if there is a known list of incompatible keys?

(3) Better yet, can you update this page with all known workarounds when you have results? http://wiki.laptop.org/go/USB_drive#USB_drives_and_firmware

Cheers! --A.

Mitch Bradley wrote:

Two is plenty.

Mitch Bradley 615 Olinda Road Makawao, HI 96768

I'll analyze them promptly upon receipt.

Adam Holt wrote:

Dear Mitch,

Wad suggests I mail 2 of these to you, since none of the USB flash drives worked after trying to reflash 767 in Belgium. Wad took a look and it's not the Windows "U3" partition issue. This is the large batch of USB memory sticks Henry Hardy bought a few weeks ago.

What physical address should I send them to?

And is 2 enough?

Henry asks that you CC him here. Thanks, --A!

--HH.

Replying to frankprindle:

The Kingston works perfectly now that I flashed q2d13. Thanks folks for the pointer!!!

  Changed 5 years ago by wmb@…

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.