Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant burn with cdrecord and LITEON 52246S =>buffer underr
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
lectrix
n00b
n00b


Joined: 03 Apr 2003
Posts: 17
Location: austria

PostPosted: Thu Aug 21, 2003 3:57 pm    Post subject: cant burn with cdrecord and LITEON 52246S =>buffer underr Reply with quote

I simply cant burn anything, i always get buffer underruns, or what "looks like to be one"... :x


i tried enabling/disabling udma, nothing changed.
i tried to force speed at 8x, nothing.

i don't know what i could try else, here is some important information on my enviroment.

burner: LITE-ON LTR-52246S
Code:

root@localhost hdd # cat /proc/ide/hdd/settings
name                    value           min             max             mode
----                    -----           ---             ---             ----
breada_readahead        0               0               0               rw
current_speed           66              0               69              rw
dsc_overlap             1               0               1               rw
file_readahead          0               0               2097151         rw
ide_scsi                0               0               1               rw
init_speed              12              0               69              rw
io_32bit                0               0               3               rw
keepsettings            0               0               1               rw
max_kb_per_request      64              1               127             rw
nice1                   1               0               1               rw
number                  3               0               3               rw
pio_mode                write-only      0               255             w
slow                    0               0               1               rw
unmaskirq               0               0               1               rw
using_dma               1               0               1               rw

root@localhost hdd # cat /proc/ide/hdd/driver   
ide-cdrom version 4.99




fifo buffer is 32mb:
Code:
#export CDR_FIFOSIZE=32m


dma is enabled on cdrom:
Code:

#hdparm -d /dev/hdd
/dev/hdd:
 using_dma    =  1 (on)


hd speed is:
Code:

#hdparm -tT /dev/hdc
/dev/hdc:
 Timing buffer-cache reads:   1264 MB in  2.00 seconds = 633.58 MB/sec
 Timing buffered disk reads:   60 MB in  3.07 seconds =  19.54 MB/sec


1st try:
Code:

#cdrecord speed=24 -dummy -v  -eject dev=ATAPI:0,1,0 -pad -audio /home/lectrix/tmp/waves/*




2nd try:
Code:

#cdrecord driveropts=burnfree speed=24 -dummy -v  -eject dev=ATAPI:0,1,0 -pad -audio /home/lectrix/tmp/waves/*

.......
Forcespeed is OFF.
Starting to write CD/DVD at speed 24 in dummy TAO mode for single session.
Last chance to quit, starting dummy write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Starting new track at sector: 0
Track 01:   55 of   55 MB written (fifo 100%) [buf  95%]  51.0x.
WARNING: padding up to secsize.
Track 01: Total bytes read/written: 58406588/58407216 (24833 sectors).
Starting new track at sector: 24985
Track 02:   32 of   32 MB written (fifo  96%) [buf  93%]  60.4x.
WARNING: padding up to secsize.
Track 02: Total bytes read/written: 34550972/34553232 (14691 sectors).
Starting new track at sector: 39828
Track 03:   33 of   33 MB written (fifo  96%) [buf  19%]  66.0x.
WARNING: padding up to secsize.
Track 03: Total bytes read/written: 34882748/34884864 (14832 sectors).
Starting new track at sector: 54812
Track 04:   29 of   62 MB written (fifo  96%) [buf  96%]  66.0x.
CDB:  2A 00 00 01 08 BC 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 02 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x02 (invalid address for write) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.281s timeout 40s

write track data: error after 30481920 bytes
cdrecord: The current problem looks like a buffer underrun.
cdrecord: It looks like 'driveropts=burnfree' does not work for this drive.
cdrecord: Please report.
cdrecord: Make sure that you are root, enable DMA and check your HW/OS set up.
Writing  time:   35.135s
Average write speed 124.1x.
Min drive buffer fill was 15%
Fixating...
WARNING: Some driFixating time:   20.706s
BURN-Free was never needed.
cdrecord: fifo had 2559 puts and 2496 gets.
cdrecord: fifo was 0 times empty and 327 times full, min fill was 90%.
ves don't like fixation in dummy mode.



3rd try:
Code:

#cdrecord speed=8 -dummy -v  -eject dev=ATAPI:0,1,0 -pad -audio /home/lectrix/tmp/waves/*


4th try:
Code:

root@localhost lectrix # cdrecord driveropts=burnfree speed=8 -dummy -v -eject dev=ATAPI:0,1,0 -pad -audio /home/lectrix/tmp/waves/*
Cdrecord 2.01a14 (i686-pc-linux-gnu) Copyright (C) 1995-2003 Jörg Schilling
TOC Type: 0 = CD-DA
scsidev: 'ATAPI:0,1,0'
devname: 'ATAPI'
scsibus: 0 target: 1 lun: 0
Warning: Using ATA Packet interface.
Warning: The related libscg interface code is in pre alpha.
Warning: There may be fatal problems.
Using libscg version 'schily-0.7'
Driveropts: 'burnfree'
atapi: 1
Device type    : Removable CD-ROM
Version        : 0
Response Format: 2
Capabilities   :
Vendor_info    : 'LITE-ON '
Identifikation : 'LTR-52246S      '
Revision       : '6S0C'
Device seems to be: Generic mmc CD-RW.
Current: 0x0009
Profile: 0x000A
Profile: 0x0009 (current)
Profile: 0x0008
Profile: 0x0002
Using generic SCSI-3/mmc   CD-R/CD-RW driver (mmc_cdr).
Driver flags   : MMC-3 SWABAUDIO BURNFREE FORCESPEED
Supported modes: TAO PACKET SAO SAO/R96P SAO/R96R RAW/R16 RAW/R96P RAW/R96R
Drive buf size : 1422080 = 1388 KB
FIFO size      : 33554432 = 32768 KB
Track 01: audio   55 MB (05:31.10) no preemp pad     
Track 02: audio   32 MB (03:15.86) no preemp pad     
Track 03: audio   33 MB (03:17.74) no preemp pad     
Track 04: audio   62 MB (06:12.87) no preemp pad     
Track 05: audio   31 MB (03:09.83) no preemp pad     
Track 06: audio   37 MB (03:42.45) no preemp pad     
Track 07: audio   47 MB (04:43.92) no preemp pad     
Track 08: audio   40 MB (04:00.32) no preemp pad     
Track 09: audio   45 MB (04:27.99) no preemp pad     
Track 10: audio   37 MB (03:44.52) no preemp pad     
Track 11: audio   44 MB (04:22.84) no preemp pad     
Track 12: audio   51 MB (05:06.10) no preemp pad     
Track 13: audio   44 MB (04:22.45) no preemp pad     
Track 14: audio   47 MB (04:44.44) no preemp pad     
Track 15: audio   36 MB (03:38.90) no preemp pad     
Track 16: audio   33 MB (03:17.01) no preemp pad     
Track 17: audio   45 MB (04:28.43) no preemp pad     
Total size:      733 MB (72:38.98) = 326924 sectors
Lout start:      733 MB (72:40/74) = 326924 sectors
Current Secsize: 2048
ATIP info from disk:
  Indicated writing power: 4
  Is not unrestricted
  Is not erasable
  Disk sub type: Medium Type A, low Beta category (A-) (2)
  ATIP start of lead in:  -14888 (96:43/37)
  ATIP start of lead out: 359849 (79:59/74)
Disk type:    unknown dye (reserved id code)
Manuf. index: -1
Manufacturer: unknown (not in table)
Blocks total: 359849 Blocks current: 359849 Blocks remaining: 32925
Forcespeed is OFF.
Starting to write CD/DVD at speed 8 in dummy TAO mode for single session.
Last chance to quit, starting dummy write    0 seconds. Operation starts.
Waiting for reader process to fill input buffer ... input buffer ready.
BURN-Free is ON.
Starting new track at sector: 0
Track 01:    1 of   55 MB written (fifo  98%) [buf  92%]  66.7x.cdrecord: Input/output error. write_g1: scsi sendcmd: no error
CDB:  2A 00 00 00 03 45 00 00 1B 00
status: 0x2 (CHECK CONDITION)
Sense Bytes: 70 00 05 00 00 00 00 0A 00 00 00 00 21 02 00 00 00 00
Sense Key: 0x5 Illegal Request, Segment 0
Sense Code: 0x21 Qual 0x02 (invalid address for write) Fru 0x0
Sense flags: Blk 0 (not valid)
cmd finished after 0.847s timeout 40s

write track data: error after 1968624 bytes
cdrecord: The current problem looks like a buffer underrun.
cdrecord: It looks like 'driveropts=burnfree' does not work for this drive.
cdrecord: Please report.
cdrecord: Make sure that you are root, enable DMA and check your HW/OS set up.
Writing  time:    8.127s
Average write speed 537.7x.
Fixating...
WARNING: Some drives don't like fixation in dummy mode.
Fixating time:   37.462s
BURN-Free was never needed.
cdrecord: fifo had 542 puts and 32 gets.
cdrecord: fifo was 0 times empty and 15 times full, min fill was 98%.


Any help is appreciated... Thanks!!
_________________
huh, was that me?!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 41405
Location: 56N 3W

PostPosted: Thu Aug 21, 2003 7:01 pm    Post subject: Reply with quote

lectrix,

It looks like you are trying to use the new IDE CD writing. Its known to be slow because it doesn't yet use DMA, even if its enabled.

Its not clear from your post if the source hdd and the cdrom are on the same cable. This is a bad idea as the data has to travel the same cable from the hdd to the motherboard then back to the cdrom. The IDE cable cannot overlap commands to different drives. If your CD is hdd, try to use anything except hdc as a source.

You will get better performance if you set up your cdrom as a fake scsi device but the advice about not using hdc as a source still stands.

Regards,

NeddySeagoon
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
lectrix
n00b
n00b


Joined: 03 Apr 2003
Posts: 17
Location: austria

PostPosted: Thu Aug 21, 2003 8:53 pm    Post subject: Reply with quote

okay, that piece of information lead me to using the generic scsi driver - which where already compiled as modules... for some reasons i didnt use them... however, here is what i did:

1. appended "hdd=ide-scsi" in grub.conf
Code:
kernel (hd0,0)/boot/bzImage root=/dev/hda3 acpi=off hdd=ide-scsi

2. added ide-scsi to modules.autoload:
Code:

ide-scsi
sg


3. reboot
4. cdrecord -scanbus (no complaining about /dev/pg* anylonger)
Code:

scsibus0:
        0,0,0     0) 'LITE-ON ' 'LTR-52246S      ' '6S0C' Removable CD-ROM
        0,1,0     1) *
        0,2,0     2) *
        0,3,0     3) *
        0,4,0     4) *
        0,5,0     5) *
        0,6,0     6) *
        0,7,0     7) *

5.
Code:
cdrecord -v -eject speed=32 dev=0,0,0 -audio /home/lectrix/tmp/waves/**

finally works!!

oh, i wasnt using the harddisk on the same cable with the cdrw, anyway, thanks for that hint too!

thanks & regards,
stefan:
_________________
huh, was that me?!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum