Openmoko Bug #676: dfu-upload on GTA02v1 causes data corruption
Openmoko Public Trac
bugs at docs.openmoko.org
Sun Aug 10 06:12:21 CEST 2008
#676: dfu-upload on GTA02v1 causes data corruption
----------------------------------+-----------------------------------------
Reporter: laforge at openmoko.org | Owner: willie_chen at openmoko.com
Type: defect | Status: reopened
Priority: normal | Milestone:
Component: u-boot | Version: current svn head
Severity: normal | Resolution:
Keywords: | Blocking:
Blockedby: |
----------------------------------+-----------------------------------------
Changes (by mmontour):
* priority: high => normal
* status: closed => reopened
* resolution: fixed =>
Comment:
Re-opening because I have seen an IRC report that suggests dfu-util -U
data corruption is still present with production GTA02, and because I can
reproduce it on my production GTA01Bv4.
Prior to this test I executed "nand erase kernel" from the u-boot console.
I then downloaded a kernel image, uploaded it to a different filename, and
compared the results. As shown by the following log, no errors were
reported but the uploaded file differs from the downloaded one at byte
offset 12289.
Host PC is Intel x86_64, OpenSuSE 10.3. u-boot is u-boot-
gta01bv4-1.3.1+gitr52+dc633f4be2527f844158aa5085c278b0c3039d3f-r0.bin and
dfu-util was downloaded today from
http://buildhost.openmoko.org/daily/workdir/deploy/glibc/tools/dfu-
util-0.1+svnr4160
----
root at tuxbox:/scratch/moko> ./dfu-util-0.1+svnr4160 -R -d 0x1457:0x5119 -a
kernel -D
./uImage-2.6.24+gitr0+7a1370a816b9348dd8f36a667905dd3533cefc9b-r4-om-
gta01.bin
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
Opening USB Device 0x1457:0x5119...
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
Found Runtime: [0x1457:0x5119] devnum=9, cfg=0, intf=0, alt=3,
name="kernel"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x1000
bytes_per_hash=36019
Starting download: [##################################################]
finished!
state(2) = dfuIDLE, status(0) = No error condition is present
Done!
Resetting USB to switch back to runtime mode
root at tuxbox:/scratch/moko> ./dfu-util-0.1+svnr4160 -R -d 0x1457:0x5119 -a
kernel -U ./kernel.dat
dfu-util - (C) 2007 by OpenMoko Inc.
This program is Free Software and has ABSOLUTELY NO WARRANTY
Opening USB Device 0x1457:0x5119...
Claiming USB DFU Runtime Interface...
Determining device status: state = appIDLE, status = 0
Device really in Runtime Mode, send DFU detach request...
Resetting USB...
Opening USB Device...
Found Runtime: [0x1457:0x5119] devnum=11, cfg=0, intf=0, alt=3,
name="kernel"
Claiming USB DFU Interface...
Setting Alternate Setting ...
Determining device status: state = dfuIDLE, status = 0
dfuIDLE, continuing
Transfer Size = 0x1000
Resetting USB to switch back to runtime mode
root at tuxbox:/scratch/moko> ls -l
uImage-2.6.24+gitr0+7a1370a816b9348dd8f36a667905dd3533cefc9b-r4-om-
gta01.bin kernel.dat
-rw-r--r-- 1 root root 2097152 2008-08-09 20:52 kernel.dat
-rw-r--r-- 1 mmontour users 1800952 2008-08-09 20:48
uImage-2.6.24+gitr0+7a1370a816b9348dd8f36a667905dd3533cefc9b-r4-om-
gta01.bin
root at tuxbox:/scratch/moko> cmp
uImage-2.6.24+gitr0+7a1370a816b9348dd8f36a667905dd3533cefc9b-r4-om-
gta01.bin kernel.dat
uImage-2.6.24+gitr0+7a1370a816b9348dd8f36a667905dd3533cefc9b-r4-om-
gta01.bin kernel.dat differ: byte 12289, line 63
--
Ticket URL: <https://docs.openmoko.org/trac/ticket/676#comment:6>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac
More information about the buglog
mailing list