Re: Problem with DVD+RW, Oops with 2.6.3
On Wed, 3 Mar 2004, Daniel Dorau wrote:
Hello, I hopy you can give me an advice on how to use packet writing with DVD+RWs. I patched my 2.6.3 for packet writing using a Benq DW800A connected via USB and writing to CDRWs seems to work. If I try to setup a DVD+RW with cdrwtool -d /dev/cdrom -q, however, I get the following error:
1216KB internal buffer setting write speed to 12x Settings for /dev/cdrom: Fixed packets, size 32 Mode-2 disc
I'm going to do a quick setup of /dev/cdrom. The disc is going to be blanked and formatted with one big track. All data on the device will be lost!! Press CTRL-C to cancel now. ENTER to continue.
Initiating quick disc blank wait_cmd: Input/output error Command failed: a1 01 00 00 00 00 00 00 00 00 00 00 - sense 05.30.00 blank disc: Illegal seek
Any idea what's going wrong?
I think you would need to port these patches to 2.6 to make it work: http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/
As a side effect, I found the packet driver realibly oopsing when trying cdrwtool -d /dev/cdrom -g
kernel: klogd 1.4.1#10, log source = /proc/kmsg started. kernel: Inspecting /boot/System.map-2.6.3 kernel: Loaded 32936 symbols from /boot/System.map-2.6.3. kernel: Symbols match kernel version 2.6.3. kernel: No module symbols loaded - kernel modules not enabled. kernel: ------------[ cut here ]------------ kernel: kernel BUG at drivers/block/pktcdvd.c:94!
I think this bug is fixed by the 2.6.4-rc2 patch: http://w1.894.telia.com/~u89404340/patches/packet/2.6/packet-2.6.4-rc2.patch... -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
I think you would need to port these patches to 2.6 to make it work:
http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/
Peter, u want to port the patches to 2.6? I would be interested in helping but i hate duplicating effort! -Nigel
On Mon, 8 Mar 2004, Nigel Kukard wrote:
I think you would need to port these patches to 2.6 to make it work:
http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/
Peter, u want to port the patches to 2.6? I would be interested in helping but i hate duplicating effort!
Please go ahead and port them. (The mrw patch doesn't need porting of course. It's already included in 2.6.) I have the DVD writer in my "production" machine and don't want to upgrade it to 2.6 just yet. -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
Peter, u want to port the patches to 2.6? I would be interested in helping but i hate duplicating effort!
Please go ahead and port them. (The mrw patch doesn't need porting of course. It's already included in 2.6.) I have the DVD writer in my "production" machine and don't want to upgrade it to 2.6 just yet.
Is there any reason why they not included in the mainline kernel tree? (just out of curiosity) -Nigel
On Mon, 8 Mar 2004, Nigel Kukard wrote:
Peter, u want to port the patches to 2.6? I would be interested in helping but i hate duplicating effort!
Please go ahead and port them. (The mrw patch doesn't need porting of course. It's already included in 2.6.) I have the DVD writer in my "production" machine and don't want to upgrade it to 2.6 just yet.
Is there any reason why they not included in the mainline kernel tree? (just out of curiosity)
There are three patches to consider: * The dvd+rw patch written by Andy Polyakov. I've adapted it to 2.4.23 and the cdrw packet writing patch, but it needs further adaption to the 2.6 kernel. The patch doesn't support IDE drives in native mode yet. Also, it contains some #ifdefs that probably need some investigation and cleaning up before inclusion in 2.6. * The cdrw packet writing patch. Very unintrusive nowadays, but it would be nice to at least fix the problem that prevents it to work with ide-cd on some hardware before inclusion in 2.6. * The dvd-rw packet writing patch. Small patch. Depends on the cdrw packet writing code. Links to patches: http://w1.894.telia.com/~u89404340/patches/packet/2.6/packet-2.6.4-rc2.patch... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00003_dv... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00004_dv... -- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
There are three patches to consider:
* The dvd+rw patch written by Andy Polyakov. I've adapted it to 2.4.23 and the cdrw packet writing patch, but it needs further adaption to the 2.6 kernel. The patch doesn't support IDE drives in native mode yet. Also, it contains some #ifdefs that probably need some investigation and cleaning up before inclusion in 2.6.
* The cdrw packet writing patch. Very unintrusive nowadays, but it would be nice to at least fix the problem that prevents it to work with ide-cd on some hardware before inclusion in 2.6.
* The dvd-rw packet writing patch. Small patch. Depends on the cdrw packet writing code.
Links to patches:
http://w1.894.telia.com/~u89404340/patches/packet/2.6/packet-2.6.4-rc2.patch... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00003_dv... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00004_dv...
Ok, i've made quite a bit of progress. i'll post a patch before the end of today, but so far testing is going GOOD!! Thanks guys for all your help! The only thing is there will have to be a split off of the packet writing code on this one. and i've combined the dvd+rw & dvd-rw, let me know if this is ok. Thanks again!
On Mon, Mar 22 2004, Nigel Kukard wrote:
There are three patches to consider:
* The dvd+rw patch written by Andy Polyakov. I've adapted it to 2.4.23 and the cdrw packet writing patch, but it needs further adaption to the 2.6 kernel. The patch doesn't support IDE drives in native mode yet. Also, it contains some #ifdefs that probably need some investigation and cleaning up before inclusion in 2.6.
* The cdrw packet writing patch. Very unintrusive nowadays, but it would be nice to at least fix the problem that prevents it to work with ide-cd on some hardware before inclusion in 2.6.
* The dvd-rw packet writing patch. Small patch. Depends on the cdrw packet writing code.
Links to patches:
http://w1.894.telia.com/~u89404340/patches/packet/2.6/packet-2.6.4-rc2.patch... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00003_dv... http://w1.894.telia.com/~u89404340/patches/packet/2.4/extra/2.4.23/p00004_dv...
Ok, i've made quite a bit of progress.
i'll post a patch before the end of today, but so far testing is going GOOD!!
Thanks guys for all your help!
The only thing is there will have to be a split off of the packet writing code on this one. and i've combined the dvd+rw & dvd-rw, let me know if this is ok.
Not having seen what you did, I can say that generally you don't want to combine patches. Keep the nicely logically seperated. Eases integration and bug fixing. -- Jens Axboe
Ok, i've made quite a bit of progress.
i'll post a patch before the end of today, but so far testing is going GOOD!!
Thanks guys for all your help!
The only thing is there will have to be a split off of the packet writing code on this one. and i've combined the dvd+rw & dvd-rw, let me know if this is ok.
Not having seen what you did, I can say that generally you don't want to combine patches. Keep the nicely logically seperated. Eases integration and bug fixing.
cool, i'll split them all off and make sure my patches apply cleanly ontop of the current packet writing patch. -Nigel
Hi Guys, Ok, I've fixed the port of DVD+-RW support for 2.6.4. As far as I can see everything works this time. I've also reduced the size of the patch quite a bit. Testing would be greatly appreciated. Patches can be found here.... http://www.lbsd.net//display.php?page=downloads Regards Nigel Kukard
participants (3)
-
Jens Axboe
-
Nigel Kukard
-
Peter Osterlund