1 |
José Romildo Malaquias <j.romildo@×××××.com> wrote: |
2 |
|
3 |
> On Fri, Nov 20, 2009 at 04:48:25PM +0100, Joerg Schilling wrote: |
4 |
> > José Romildo Malaquias <j.romildo@×××××.com> wrote: |
5 |
> > |
6 |
> > > > There was a report for broken Pioneer formware that hits in -v mode and |
7 |
> > > > causes the firmware from the drive to through away the data before writing |
8 |
> > > > it to the medium. |
9 |
> > > |
10 |
> > > Do you mean a test without -V or -v ? |
11 |
> > |
12 |
> > Without -v, as in this case cdrecord does not read the drives buffer fill ratio. |
13 |
> > It seems that there is a bug in Pioneer firmware that is triggered by calling |
14 |
> > SCSI get buffer cap (0x5C)and that results in throwing away the DMA data. |
15 |
> |
16 |
> Good news! |
17 |
> |
18 |
> With the command (without using the -v option) |
19 |
> |
20 |
> $ script -f -c "cdrecord -V debug=2 -sao -eject speed=8 fs=256m driveropts=burnfree /var/tmp/image.iso" cdrecord.log |
21 |
> |
22 |
> cdrecord completed successfully. The sha1 sums (calculated in a |
23 |
> different computer) for both the image and the recorded media are |
24 |
> identical! |
25 |
|
26 |
OK, could you please use an original cdrecord without your recent self made |
27 |
patch and then apply this patch: |
28 |
|
29 |
|
30 |
------- cdrecord.c ------- |
31 |
--- /tmp/sccs.RvayQW So Nov 29 18:48:57 2009 |
32 |
+++ cdrecord.c So Nov 29 18:47:24 2009 |
33 |
@@ -2590,7 +2590,7 @@ |
34 |
if (fper >= 0) |
35 |
printf(" (fifo %3d%%)", fper); |
36 |
#ifdef BCAP |
37 |
- if (bsize > 0) { /* buffer size known */ |
38 |
+ if (bsize > 0 && bytes > bsize) { /* buffer size known */ |
39 |
scgp->silent++; |
40 |
per = (*dp->cdr_buffer_cap)(scgp, (long *)0, &bfree); |
41 |
scgp->silent--; |
42 |
|
43 |
|
44 |
This should avoid some calls to the buffer cap function before the drive's |
45 |
internal buffer was filled the first time. |
46 |
|
47 |
Then please test again with -v |
48 |
|
49 |
Jörg |
50 |
|
51 |
-- |
52 |
EMail:joerg@××××××××××××××××××××××××.de (home) Jörg Schilling D-13353 Berlin |
53 |
js@××××××××××××.de (uni) |
54 |
joerg.schilling@××××××××××××××××.de (work) Blog: http://schily.blogspot.com/ |
55 |
URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily |