Hello Peter.
Yesterday i have download your new version of packet writing patch
(packet-2.4.18-pre4-2.patch.bz2) and have applied it to kernel source tree
(pure 2.4.17) with no rejects.
Have successfully compile kernel (UDF driver is built in, pktcdvd layer is
accessable as loadable module) with UDF write support.
Reboot ..
rm /dev/pktcdvd0
mknod /dev/pktcdvd0
/./sbin/insmod /lib/modules/2.4.17/kernel/drivers/block/pktcdvd.o
pktsetup /dev/pktcdvd0 /dev/cdrom
# Try to format CDRW disk with UDF fs.
cdrwtool -d /dev/cdrom -q
--------- cdrwtool responce ----------
using device /dev/cdrom
1312KB 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.
Initiating quick disc blank
Disc capacity is 275744 blocks (551488KB/538MB)
Formatting track
Writing UDF structures to disc
7200 (EET) /-120
--------- end ---------
Kernel messages from /var/log/messages :
Jan 23 14:49:19 my kernel: pktcdvd: v0.0.2k 09/05/2001 Jens Axboe (axboe@suse.de)
Jan 23 14:50:20 my kernel: pktcdvd: writer hdc sucessfully registered
As you can see formatting with cdrwtool takes about 20 minutes and not finished
(CDRW LED backs to normal light (yellow); cdrwtool stop responding and lock the CDRW drive).
On reboot i also have see next messages on screen (interrupt loss):
Jan 23 15:30:22 my kernel: hdc: lost interrupt
Jan 23 15:31:03 my last message repeated 4 times
Jan 23 15:32:04 my last message repeated 6 times
....
After reboot Windows DirectCD (Linux can't process disk) recognize filesystem disk of CDRW disk as
.. CDFS.
The same situation with packet-2.4.17.patch for 2.4.17 kernel.
Whats up ?????
I don't wanna use Windows anymore to format CDRW disk .. but
inspite of that DirectCD support for my drive is too expensive (~200 Mbytes) this program
has stability and usability features (for example quick disk UDF formatting takes ~ 3 minutes).
Mail list related to linux-udf project (which contain udf tools) seems not worked.
I use:
software: RedHat 7.2 (patched kernel 2.4.17, gcc-2.95-3) .
hardware: IDE Mitsumi CDRW 4805 (4x8x32), AMD K6-2 300 Mhz.
Please help me.
Thanks.
Regards,
Sergiy Kudryk.
P.S. I attach kernel configuration file.
--- Peter Osterlund
I have made a new version of the packet patch available here:
http://w1.894.telia.com/~u89404340/patches/packet/packet-2.4.18-pre4-2.patch...
Changes since the 2.4.18-pre2 version:
packet-2.4.18-pre4-2:
- Don't do unnecessary work in pkt_release_dev and pkt_open. Unless it is the first open/last close, very little needs to be done.
- Don't flush the cache on last close if the device was only opened for reading.
- When opening/closing the packet block device, call blkdev_get and blkdev_put on the underlying cdrom device. This makes drive locking work automatically, and also gives better handling if the tray is open or the drive is not ready when you try to mount a filesystem.
packet-2.4.18-pre4:
- Fixed kernel hangs after I/O errors.
- Make sure not to overflow the "read speed" value in pkt_set_speed().
packet-2.4.18-pre3:
- Made it possible to set up/tear down the pktcdvd device even if there is no disc in the drive.
- Don't lock the drive door at setup time, only keep the door locked while the device is opened for read or write.
-- Peter Osterlund - petero2@telia.com http://w1.894.telia.com/~u89404340
__________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/