#11521 NORM 1.75-fi: 1.75: USB flash drive works in Linux but not OFW
Zarro Boogs per Child
bugtracker at laptop.org
Sun Mar 4 20:02:29 EST 2012
#11521: 1.75: USB flash drive works in Linux but not OFW
-------------------------------------------+--------------------------------
Reporter: bert | Owner: Quozl
Type: defect | Status: assigned
Priority: normal | Milestone: 1.75-firmware
Component: ofw - open firmware | Version: Development firmware
Resolution: | Keywords:
Next_action: diagnose | Verified: 0
Deployment_affected: | Blockedby:
Blocking: |
-------------------------------------------+--------------------------------
Comment(by Quozl):
Thanks.
I was able to use the image to prepare a USB drive and test it with
Q4D04jd. The test was to read the file from start to end, to see if I
could induce an error. The test worked without error.
This excludes partitioning and filesystem format as the cause, leaving
only a hardware problem that OpenFirmware does not recover from.
However, there is another slim possibility. If the system you used to
create the zeroes file (A) is different to the system you use to copy .zd
files (B), then please do the folllowing using that system (B):
* copy the zeroes file from the USB drive to the system,
* delete the file from the USB drive,
* copy the zeroes file to the USB drive from the system,
Then provide the image again.
References:
* http://wiki.laptop.org/go/Forth_Lesson_23#read_a_large_file
Modified test script:
{{{
h# 100000 value /buf
0 value handle
: raf ( "file" -- ) \ read a file
safe-parse-word
$open-canonical-file to handle /buf alloc-mem >r
" size" handle $call-method drop ( input-file-size
)
dup ." size = 0x" . cr ( input-file-size
)
begin ?dup while ( #remaining )
r@ /buf " read" handle $call-method ( #remaining #read
)
dup /buf = if [char] . else [char] : then emit ( #remaining #read
)
- ( #remaining' )
repeat
cr r> /buf free-mem handle close-dev
;
}}}
Observed output:
{{{
ok raf u:\zeroes
size = 0x3d6e9000
......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................:
ok
}}}
--
Ticket URL: <http://dev.laptop.org/ticket/11521#comment:8>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system
More information about the Bugs
mailing list