[Dvd-devel] Got native ATAPI DMA with linux-2.6 working
Harald Welte <[email protected]> Mon, 24 Nov 2003 17:28:13 +0100
| Newsgroups | gmane.linux.dvdrtools.devel |
|---|---|
| Message-ID | <[email protected]> |
--===============0859378239== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline --UugvWAfsgieZRqgk Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! After merging native ATAPI DMA writing to cdrdao earlier this evening, I also did the trick for dvdrtools-0.1.5. It was even easier - everything needed was merging a recent libscg (from cdrtools-2.01a19) into dvdrtools. So what did I do? - rm -rf libscg/* - copy cdrtools-2.01/libscg/* to libscg/* - delete the cdrtools Makefile/Target files - copy dvdrtools-style GNU Makefile.am from dvdrtools-0.1.5 to libsct/* - apply the following trivial patch: --- dvdrtools-0.1.5/libscg/Makefile.am 2003-01-04 22:32:10.000000000 +0100 +++ dvdrtools-0.1.5atapi/libscg/Makefile.am 2003-11-21 22:14:30.000000000 += 0100 @@ -5,7 +5,7 @@ libscg_a_LIBADD =3D @scsi_lib@ =20 libscg_a_SOURCES =3D scsitransp.c scsihack.c scsiopen.c scgsettarget.c \ - scsierrs.c scgtimes.c \ + scsierrs.c scgtimes.c scsihelp.c \ rdummy.c =20 AM_CFLAGS =3D -DUSE_PG - aclocal/automake/configure/make I've put the resulting tarball online at ftp://ftp.gnumonks.org/pub/patches/dvdtools-0.1.5atapi.tar.bz2 there you go: # ./dvdrecord dev=3DATAPI:0,0 -dao -v -eject /space/ss.iso dvdrtools v0.1.4 Portions (c) 2002-2003 Ark Linux <[email protected]> This program is free software; you can redistribute it and/or modify it und= er the terms of the GNU General Public License as published by the Free Softwa= re Foundation; either version 2, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT= ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS F= OR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; see the file COPYING. If not, write to the Free Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. Based on: Cdrecord 1.11a15 (powerpc-unknown-linux-gnu) Copyright (C) 1995-2001 J=F6rg Schilling TOC Type: 1 =3D CD-ROM scsidev: 'ATAPI:0,0' devname: 'ATAPI' scsibus: 0 target: 0 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' atapi: 1 Device type : Removable CD-ROM Version : 0 Response Format: 2 Capabilities :=20 Vendor_info : 'MATSHITA' Identifikation : 'DVD-R UJ-815A ' Revision : 'D101' Device seems to be: Generic mmc2 DVD. Using generic SCSI-3/mmc DVD-R(W) driver (mmc_mdvd). Driver flags : SWABAUDIO BURNFREE=20 Supported modes: PACKET SAO Drive buf size : 1671168 =3D 1632 KB FIFO size : 4194304 =3D 4096 KB Track 01: data 2095 MB =20 Total size: 2406 MB (238:22.58) =3D 1072694 sectors Lout start: 2406 MB (238:24/44) =3D 1072694 sectors Current Secsize: 2048 ATIP start of lead in: -150 (00:00/00) Disk type: unknown dye (reserved id code) Manuf. index: 255 Manufacturer: unknown (not in table) Blocks total: 2298496 Blocks current: 2298496 Blocks remaining: 1225802 Starting to write CD/DVD at speed 2 in write mode for single session. Last chance to quit, starting real write in 0 seconds. Operation starts. Waiting for reader process to fill input buffer ... input buffer ready. trackno=3D0 BURN-Free is ON. Performing OPC... Sending CUE sheet... =2E/dvdrecord: WARNING: Drive returns wrong startsec (0) using -150 Starting new track at sector: 0 Track 01: 1198 of 2095 MB written (fifo 100%). --=20 - Harald Welte <[email protected]> http://www.gnumonks.org/ =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D Programming is like sex: One mistake and you have to support it your lifeti= me --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/wjGdXaXGVTD0i/8RAipxAJ9o0U7Va6qXymHogGT8RdP5wLO/4ACgsCIT QEwSdWSsa0OG5BVCL8Ci3bY= =8Oyv -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- --===============0859378239== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Dvdrtools-devel mailing list [email protected] http://mail.nongnu.org/mailman/listinfo/dvdrtools-devel --===============0859378239==--