Ticket #6230 (closed defect: fixed)

Opened 9 months ago

Last modified 3 months ago

Open Firmware copy-nand fails using SD slot (B4 XO)

Reported by: garycmartin Owned by: wmb@…
Priority: normal Milestone:
Component: ofw - open firmware Version:
Keywords: sd copy-nand Cc:
Action Needed: Verified: no
Blocked By: Blocking:

Description

Was just shipped a B4 for development work, and first task was to get it upto date. Under both firmware Q2D03 and Q2D07, using a 2Gb SD card in the XO slot failed at the copy-nand stage. OF would draw all the nand blocks during erase (with about 11 bad red blocks), then mark a top chunk in yellow, then fail before writing the first green block. SDHCI: command ready timeout, Bad read of .img file. WIPING CORRUPT NAND IMAGE. Your build was probably corrupted, blah, blah, blah (no it wasn't, all md5s were good).

After downloading and trying 3 different XO os release builds (os656, os655, os653), I eventually took out the SD card, placed it in my camera, and patched the camera in via USB. Worked, happy as larry, no errors.

Interestingly the SD card in the XO slot had no troble being accessed and used from the Journal, or the terminal, and was even happy to do a firmware flash direct from the Open Firmware prompt. It just seemed the copy-nand does something different/wonky when copying from the the SD. I can't believe that a USB cable dangling off the back of a camera with an SD card in it is a more robust connection than a direct SD in the XO slot...

Change History

Changed 8 months ago by grumbel

Same issue here, also a B4, tested with two different SD card brands, same error message. Used a PSP via USB to do the upgrade in the end, which worked fine.

Changed 8 months ago by wmb@…

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

sdhci.fth is not maintaining a count of simultaneous opens, so when copy-nand opens the .crc file and then closes it, the close operation turns off the host controller.

The fix is in svn 811.

Workaround:

ok patch noop ?open-crcs copy-nand ok copy-nand sd:\os656.img

That disables the CRC check, which prevents the bug from happening.

Changed 3 months ago by gregorio

  • milestone deleted

Milestone Never Assigned deleted

Note: See TracTickets for help on using tickets.