Log in

View Full Version : Ubuntu UDF patch


addisor
11th February 2008, 18:27
iv'e just tried installing a UDF 2.5 patch to my gutsy install so that I can play Blu-ray DVD's with DumpHD and now appear to have made a mess of my /etc/fstab file.

I did this
wget http://www.strapp.co.uk/files/udf-$( uname -r ).ko
sudo mv udf-$( uname -r ).ko /lib/modules/$( uname -r )/kernel/fs/udf/udf.ko and followed the rest of the text,

dmesg grep | UDF reveals nothing, I fiddle with my /etc/fstab and now have this

/dev/hdc /media/cdrom0 auto 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/scd0 /media/cdrom0 iso9660,udf user,noauto 0 0

How do I get the UDF patch to work? when i try and mount dvd I get told i dont have the right privilege

nm
11th February 2008, 22:31
Did you run sudo depmod -a and actually load the module: sudo modprobe udf?

What guide did you follow?

addisor
12th February 2008, 09:58
Just try this from www.strapp.co.uk

rob@rob-desktop:~$ wget http://www.strapp.co.uk/files/udf-$( uname -r ).ko
--13:24:10-- http://www.strapp.co.uk/files/udf-2.6.22-14-generic.ko
=> `udf-2.6.22-14-generic.ko'
Resolving www.strapp.co.uk... 212.159.9.131
Connecting to www.strapp.co.uk|212.159.9.131|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,677,013 (1.6M) [application/x-object]

100%[====================================>] 1,677,013 213.76K/s ETA 00:00

13:24:18 (213.92 KB/s) - `udf-2.6.22-14-generic.ko' saved [1677013/1677013]

rob@rob-desktop:~$ sudo mv udf-$( uname -r ).ko /lib/modules/$( uname -r )/kernel/fs/udf/udf.ko
rob@rob-desktop:~$ dmesg | grep UDF
rob@rob-desktop:~$ sudo depmod -a
rob@rob-desktop:~$ sudo modprobe udf
FATAL: Error inserting udf (/lib/modules/2.6.22-14-generic/kernel/fs/udf/udf.ko): Invalid module format

nm
12th February 2008, 18:30
Your signature says that you're using a 64-bit kernel. 32-bit modules won't work in it.

addisor
12th February 2008, 22:14
Thanks, it suddenly dawned on me, while your there, When I did demod -a, could it have messed my sound up as alsa SPDIF no longer works and I can't get it back!!!

Going to give up on blu-ray for a while.

Shinigami-Sama
12th February 2008, 23:31
Thanks, it suddenly dawned on me, while your there, When I did demod -a, could it have messed my sound up as alsa SPDIF no longer works and I can't get it back!!!

Going to give up on blu-ray for a while.

I'd say try running a linux distro that doesn't try to keep you using legacy packages

but I don't blame you on giving up on blu-ray
now if only the studios would follow suit...

nm
12th February 2008, 23:51
Thanks, it suddenly dawned on me, while your there, When I did demod -a, could it have messed my sound up as alsa SPDIF no longer works and I can't get it back!!!
It shouldn't do that by itself (depmod just updates the module dependency lists, which is standard procedure when installing new modules). I'd say the SPDIF problem was caused by something else--especially if analog sound output still works.

addisor
15th February 2008, 17:13
yea it is quire bizzare, DVD's with DTS work over spdif but XMMS and avi files from file have no sound over spdif, what do you think?

What would a better linux distro be then?

nm
15th February 2008, 19:23
yea it is quire bizzare, DVD's with DTS work over spdif but XMMS and avi files from file have no sound over spdif, what do you think?
Then you'll just need to select the correct output (IEC958) in the settings of those programs, or tune your .asoundrc to use dmix and redirect output to S/PDIF. For example, I have the following settings in ~/.asoundrc for my Envy24HT (which has digital ouput as hw:0,1 device):pcm.envyspdifdmix {
type dmix
ipc_key 1024
slave {
pcm "hw:0,1"
format S32_LE
period_time 0
buffer_time 0
period_size 2048
buffer_size 32768
rate 48000
}
}

pcm.dsp0 {
type plug
slave.pcm envyspdifdmix
}

pcm.!default {
type plug
slave.pcm envyspdifdmix
}

pcm.!iec958 {
type plug
slave {
pcm "hw:0,1"
format S32_LE
}
}
Note that this probably won't work directly on your hardware. I may be able to give more appropriate settings if you show the output of aplay -l, which lists available playback devices.

What would a better linux distro be then?
Each user has their preferences, and I think Ubuntu is as good base for Blu-ray/HD-DVD playback as any distribution. All you need to do is compile your own kernel with whatever patches needed.

addisor
16th February 2008, 16:21
rob@rob-desktop:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
rob@rob-desktop:~$

Any help would be great?

nm
16th February 2008, 18:10
Ok, ALC883 should duplicate PCM output to S/PDIF automatically, but it can be disabled in the ALSA mixer (http://alsa.opensrc.org/Hda) (for ALSA > 1.0.14rc3). Perhaps that's what has happened? Try to tweak the output settings with alsamixer.

You may also need to specify the right model when loading the module, if it is not detected correctly. I doubt this is the case since aplay -l lists digital output.

bmnot
18th February 2008, 19:39
I've been trying the UDF 2.5 patch for Gutsy for a while, and had almost given up. I got it to work today.

Please see this thread

http://ubuntuforums.org/showthread.php?t=449658

There's is a precompiled udf.ko file. You only need to replace your udf.ko with this one (Make a backup first, just incase).

Worked for me. I can finally mount blu-ray discs.

addisor
18th February 2008, 23:09
Do you know if this is 64bit or 32bit patch? I need 64bit.

bmnot
19th February 2008, 04:46
That's for 32-bit. I don't know if it'll work for 64-bit, but you could try it after you make a backup of udf.ko

nm
19th February 2008, 09:29
That's for 32-bit. I don't know if it'll work for 64-bit, but you could try it after you make a backup of udf.ko
He already tried a 32-bit version and it will not work, as can be seen in the first few posts of this thread.

evade
19th February 2008, 13:35
The zen kernel is prepatched for UDF and a bunch of other great features.

http://www.mattparnell.com/zen-kernel.html

addisor
19th February 2008, 15:04
Just tired the latest 32bit patch on 7.10 64 and again no success!! never mind I persevere. Not sure what to actually do with the ZEN suggestion? advice?

evade
19th February 2008, 15:12
it's simple, just install the packages and reboot.

addisor
19th February 2008, 15:18
Took the ZEN plunge!!! made a bit of progress,

rob@rob-desktop:~$ dmesg | grep UDF
[ 69.589510] UDF-fs: minUDFReadRev=250 (max is 201)
[ 97.888006] UDF-fs: minUDFReadRev=250 (max is 201)

That never used to happen and also modprobe doesn't error.

Except when I put a blu-ray in this still happens

Invalid mount option when attempting to mount the volume '32005129_LAYER_CAKE'.

Were nearly there, come on guys???

nm
19th February 2008, 16:27
What do you have in /etc/fstab?

addisor
19th February 2008, 16:38
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1
UUID=6b95cd41-e9b7-4e9a-b1ef-6a17471a9f77 / ext3 defaults,errors=remount-ro 0 1
# /dev/sda2
UUID=5b519497-e62f-467b-9ef7-49c556e5142a /home ext3 defaults 0 2
# /dev/hda1
UUID=565540eb-bdaf-4de8-b3c1-991117c5d964 /media/hda1 ext3 defaults 0 2
# /dev/sda3
UUID=16788ee1-2615-41eb-8f49-c7686f128c65 /media/sda3 ext3 defaults 0 2
# /dev/hda5
UUID=487bd919-6692-41eb-ae08-db1d647c5668 none swap sw 0 0
# /dev/sda5
UUID=de30a1ae-caf3-4eed-92e8-4ab5c63994a5 none swap sw 0 0
/dev/scd0 /media/cdrom0 iso9660,udf user,noauto,exec 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,utf8 0 0

nm
19th February 2008, 16:56
/dev/scd0 /media/cdrom0 iso9660,udf user,noauto,exec 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto,utf8 0 0
You seem to have two drives with the same mountpoint. This could cause problems if you happen to use them simultaneously.

Which one is your Blu-ray drive? scd0 is probably a SATA drive and hdc is PATA. If the first one is Blu-ray, try swapping the filesystem order to "udf,iso9660". If it's the other one, remove ",utf8" from the line because that's not an option for UDF mounts.

addisor
19th February 2008, 17:56
I've only got one drive.

rob@rob-desktop:~$ dmesg | grep scsi
[ 24.186903] scsi0 : sata_nv
[ 24.187098] scsi1 : sata_nv
[ 25.576918] scsi 0:0:0:0: Direct-Access ATA ST380815AS 3.AA PQ: 0 ANSI: 5
[ 25.583505] scsi 1:0:0:0: CD-ROM PIONEER BD-ROM BDC-202 1.01 PQ: 0 ANSI: 5
[ 25.584376] scsi2 : sata_nv
[ 25.584699] scsi3 : sata_nv
[ 26.345921] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 26.345946] scsi 1:0:0:0: Attached scsi generic sg1 type 5
[ 26.412852] sr0: scsi3-mmc drive: 32x/32x writer dvd-ram cd/rw xa/form2 cdda tray
[ 26.412914] sr 1:0:0:0: Attached scsi CD-ROM sr0


end of fstab now looks like this and still no joy!

/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0

nm
19th February 2008, 18:36
Then one of those lines is unnecessary and instead of /dev/scd0 or /dev/hdc you can use /dev/sr0 at the beginning.

How about mounting manually:sudo mkdir /media/bd
sudo mount -t udf /dev/sr0 /media/bd
Take a look at dmesg right after that if it fails.

bmnot
19th February 2008, 20:32
Took the ZEN plunge!!! made a bit of progress,

rob@rob-desktop:~$ dmesg | grep UDF
[ 69.589510] UDF-fs: minUDFReadRev=250 (max is 201)
[ 97.888006] UDF-fs: minUDFReadRev=250 (max is 201)

That never used to happen and also modprobe doesn't error.

Except when I put a blu-ray in this still happens

Invalid mount option when attempting to mount the volume '32005129_LAYER_CAKE'.

Were nearly there, come on guys???

Thats what I used to get with a default Ubuntu install.

addisor
20th February 2008, 15:42
now have this as only line in fstab

/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto,exec 0 0


rob@rob-desktop:~$ sudo mkdir /media/bd
rob@rob-desktop:~$ sudo mount -t udf /dev/sr0 /media/bd
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

rob@rob-desktop:~$ dmesg | tail
[ 39.409094] Bluetooth: RFCOMM ver 1.8
[ 42.815520] NET: Registered protocol family 17
[ 46.092533] NET: Registered protocol family 10
[ 46.092678] lo: Disabled Privacy Extensions
[ 51.508757] eth0: no IPv6 routers present
[ 182.088778] UDF-fs: minUDFReadRev=250 (max is 201)
[ 182.165682] Unable to identify CD-ROM format.
[ 227.883366] UDF-fs: minUDFReadRev=250 (max is 201)
[ 227.960762] Unable to identify CD-ROM format.
[ 252.764082] UDF-fs: minUDFReadRev=250 (max is 201)
rob@rob-desktop:~$


As you can see still no joy!

nm
20th February 2008, 17:05
Did you check that you're actually running the zen kernel (cat /proc/version)?
Apparently you still don't have UDF 2.5 support.

addisor
20th February 2008, 17:19
Ah your appear to be right, just looked at the Zen site again, do I need to install headers and image?

addisor
20th February 2008, 17:28
Its a tough world, just tried installing zen Linux kernel binary image for version 2.6.24-zen1-amd64 and it fails to install using the Gdebi installer. that appears to be why no success on dvd mount! check out the screenshot of failed install

evade
20th February 2008, 23:07
We can't see your error.

Try installing it from the command line.

eg

sudo dpkg -i packagename.deb

if that fails post the the reults here.

evade
21st February 2008, 14:08
Ok we can see it now.

Try downloading the files again.

maybe from the command line:

wget http://www.mattparnell.com/zen/2.6.24-zen1/x86_64/linux-headers-2.6.24-zen1-x64_2.6.24-zen1-x64-10.00.Custom_amd64.deb

wget http://www.mattparnell.com/zen/2.6.24-zen1/x86_64/linux-image-2.6.24-zen1-x64_2.6.24-zen1-x64-10.00.Custom_amd64.deb

sudo dpkg -i linux-headers-2.6.24-zen1-x64_2.6.24-zen1-x64-10.00.Custom_amd64.deb

sudo dpkg -i linux-image-2.6.24-zen1-x64_2.6.24-zen1-x64-10.00.Custom_amd64.deb

addisor
21st February 2008, 19:04
I emailed Matt Parnel and this was reply

Sorry...that was a bad build, try this older version. I will rebuild a
new one soon. http://www.mattparnell.com/zen/2.6.24-rc6-zen0/AMD64/
Let the Doom9 guys know if you wouldn't mind.

This i did and still get

rob@rob-desktop:~$ sudo mount -t udf /dev/sr0 /media/bd
mount: block device /dev/scd0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/scd0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

rob@rob-desktop:~$ dmesg | tail
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM ver 1.8
NET: Registered protocol family 17
Clocksource tsc unstable (delta = 6830012272 ns)
NET: Registered protocol family 10
lo: Disabled Privacy Extensions
eth0: no IPv6 routers present
UDF-fs: minUDFReadRev=250 (max is 201)
ISOFS: Unable to identify CD-ROM format.
UDF-fs: minUDFReadRev=250 (max is 201)
rob@rob-desktop:~$ cat /proc/version
Linux version 2.6.24-rc6-zen0-amd64 (root@matt-laptop) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP PREEMPT Sun Jan 6 20:43:30 CST 2008

nm
21st February 2008, 20:03
Then it doesn't contain the required UDF 2.5 patch afterall.

evade
22nd February 2008, 00:10
Sorry about that. Its ancestor the kamikazie kernel did so I assumed it would too.

ilikenwf
11th March 2008, 01:51
Ok..I'm the guy that builds the prebuilt debs....

I just talked to one of the Zen devs, and he has added UDF 2.5 to the master-devel and master-light branches of the Zen kernel. I will compile a master-devel set at some point, but until then, it isn't that hard to build yourself. Pretty much follow the wiki tutorial (https://wiki.ubuntu.com/ZenKernel), except to get the sources, you can either download the current sources from the git site (it will tarball and allow you to download if you go here (http://repo.or.cz/w/linux-2.6/zen-sources.git?a=tree;h=master-devel;hb=master-devel) and click "Snapshot.") Wait, and it should present you with a tar. For git, if you already have the source, just checkout the master-devel branch. If you haven't gotten the sources, make an empty dir in /usr/src, cd into it and run git initialize. Then, run git clone git://repo.or.cz/linux-2.6/zen-sources.git master-devel and wait for the download. Then configure and compile like I have instructed in the wiki (https://wiki.ubuntu.com/ZenKernel).

sl1pkn07
11th March 2008, 17:44
the ZEN kernel is equal to the official kernel? (but adding udf 2.5 patch)

ilikenwf
11th March 2008, 18:13
the ZEN kernel is equal to the official kernel? (but adding udf 2.5 patch)

Actually, it isn't only equal, but better.

sl1pkn07
11th March 2008, 18:27
but add, or not add udf 2.5 patch... (see previous post)(official build)

ilikenwf
11th March 2008, 19:44
but add, or not add udf 2.5 patch... (see previous post)(official build)

I don't think the official has added the UDF patch. Zen is adding it. I will release a 2.6.25 version soon, which will include the UDF patch for you.

sl1pkn07
12th March 2008, 01:00
oks :)

addisor
13th March 2008, 19:13
I installed the latest zen kernel linux-image-2.6.25-rc3-zen0_amd64_amd64.deb and have some nvidia issues that i'm trying to resolve thru ubuntu forum.

If you say UDF 2.5 should work, how can I recognise a blu-ray DVD for playing either thru decrypt or dumphd. I still get an error message when putting blu-ray in drive.

invalid mount option when attempting to mount the volume '32005129_LAYER_CAKE'.

ilikenwf
8th April 2008, 17:37
I'll try to get this straightened out....

It may take a little while, as I am a college student and am constantly busy.