Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
UDF packet writing w. ide cdrw and 2.6 test11
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
gniWkraD
n00b
n00b


Joined: 01 Nov 2003
Posts: 19
Location: Denmark

PostPosted: Mon Dec 15, 2003 10:47 am    Post subject: UDF packet writing w. ide cdrw and 2.6 test11 Reply with quote

I've been trying to get UDF packet writing to work with the 2.6 test11 kernel, but pktsetup won't work. My cdrw is an IDE device on hdd.
Here is what I do:

1) compiled 2.6test11 kernel with UDF and SCSI support.
(there is only one option for UDF, nothing about read or write)

2) after successfull reboot w 2.6 test11: 'emerge udftools'

3) now i can format a UDF cdrw with ' cdrwtool -d /dev/cdroms/cdrom1 -q -t4'
-witch took about 20mins with no errors. After the formatting I can mount the disc with:
'mount -t udf /dev/cdroms/cdrom1 /mnt/cdrom -o rw,noatime' witch gives me a warning about the disc beeing writeprotected,
but otherwise works fine and lets me browse the cd.
(I also tried 'chmod 777 /mnt/cdrom', but i says the disc i write protected)


4) After unmounting the drive I tried to follow the instructions from
http://cvs.linuxfromscratch.org/index.cgi/hints/Attic/cdrw-hint.txt?rev=1.3
so I did the following:

5) 'mknod /dev/pktcdvd0 b 97 0'

6) 'chmod 666 /dev/pktcdvd0'

7) 'pktsetup /dev/pktcdvd0 /dev/cdroms/cdrom1'
Here it fails, I get the error message:
'open packet device: No such device or address'
even though I can verify that both the link to the cdrw and pktcdvd0 block device exists.

Has anybody made this work with an IDE device ? (all the examples are with a scsi device on e.g /dev/sr0)

Regards
Anders -denmark
Back to top
View user's profile Send private message
gniWkraD
n00b
n00b


Joined: 01 Nov 2003
Posts: 19
Location: Denmark

PostPosted: Tue Dec 16, 2003 9:16 am    Post subject: Reply with quote

Ok problem solved...
There is a nice mailing list at
http://lists.suse.com/archive/packet-writing
where the maintainers also hang out :)

Even though packet writing afaik will be a built in feature of kernel 2.6, test11 needs to be patched to make it work.
The patch can found here:
http://w1.894.telia.com/~u89404340/patches/packet/2.5/

1) copy the patch to /usr/src (dont unpack it) and cd to /usr/src/linux

2) asuming that /usr/src/linux points to kernel 2.6test11apply the patch with the folowing command:
Code:
bzip2 -dc ../packet-2.6.0-test11.patch.bz2 | patch -p1


3) now you can enable packet writing in your kernel config:
Devicedrivers->Block Devices->PacketWriting on CD/DVD media, and, ->Enable Write Caching
File systems->CD_ROM/DVD Filesystems-> (mark all here)

4) save, compile and reboot and now the steps in the previous post will leed the way...

NOTE: To format the disc with UDF 1.5 (for compatibility w. e.g. older windows installs) use
Code:
mkudffs -r0x0150 /dev/pktcdvd0

I think the default is UDF 2.01 or something (havent tried)

Cheers
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Tue Jun 15, 2004 12:52 pm    Post subject: Reply with quote

Hei gniWkraD

I'm able to read/play music from Win produced InCD-type dvd's, and would like now to get packet writing to work too on development-sources 2.6.7-rc3.

Am I right in thinking the patch you mention would not apply to that version?

mvh
Back to top
View user's profile Send private message
gniWkraD
n00b
n00b


Joined: 01 Nov 2003
Posts: 19
Location: Denmark

PostPosted: Tue Jun 15, 2004 2:02 pm    Post subject: Reply with quote

jep you need the specific patch for your kernel version

Patches for various kernel versions can be found here:
http://w1.894.telia.com/~u89404340/patches/packet/

It seems that there isnt a patch for 2.6.7 yet, but there are usually out pretty quick.

Cheers!
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Tue Jun 15, 2004 4:51 pm    Post subject: Reply with quote

Thanks, guess I'll have to be patient ;-)

mvh
Back to top
View user's profile Send private message
jdong
n00b
n00b


Joined: 01 Mar 2004
Posts: 41

PostPosted: Fri Jun 25, 2004 4:46 pm    Post subject: Reply with quote

BTW, the 2.6.6 patch patches perfectly onto gentoo-dev-sources 2.6.7-r6.
Back to top
View user's profile Send private message
Cintra
Advocate
Advocate


Joined: 03 Apr 2004
Posts: 2111
Location: Norway

PostPosted: Fri Jun 25, 2004 5:12 pm    Post subject: Reply with quote

Thanks Jdong

I installed the packet-patch for CD-RW on development-sources 2.6.6 OK, but I'm using development-sources 2.6.7 now, and am really waiting for udf for dvd+rw.. so I can drag & drop files to dvd (as with InCD :-) )

regards
Back to top
View user's profile Send private message
manny15
Guru
Guru


Joined: 01 Dec 2002
Posts: 473
Location: USA

PostPosted: Tue Jun 29, 2004 9:27 pm    Post subject: Reply with quote

I've patched 2.6.7-ck2 and everything works just fine except I can't write to the disk as non-root. I can mount it as a normal user but here's the mount point permissions after mounting: drwxr-xr-x 4 root root 1080 Jun 29 17:14 cdrw
As root I can write though. Here's my fstab:
Code:

/dev/pktcdvd/0          /mnt/cdrw       udf       user,rw,noauto,noatime,uid=100 0 0

I though I could make it work my setting uid to my primary group, but same results. Any ideas?
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