Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sun 23 Sep 2018, 02:42
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
[UDFTools] difficulties appling a patch.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [6 Posts]  
Author Message
Bm


Joined: 16 Apr 2006
Posts: 513
Location: Brussels

PostPosted: Sat 21 Oct 2006, 13:30    Post subject:  [UDFTools] difficulties appling a patch.  

Having some problems with UDF and UDFTools, I found this web page http://www.linuxfromscratch.org/blfs/view/6.1/multimedia/udftools.html
Not using packet writing I am only concerned by the UDFTools patch.

After download I tried to apply the patch but didn't succeed.

Code:
sh-3.00# bzcat udftools-1.0.0b3.patch.bz2 | patch -Np1 && ./configure --prefix=/usr && make
can't find file to patch at input line 44
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From: Peter Osterlund <petero2@telia.com>
|Subject: Re: [RFC][PATCH] Control pktcdvd with an auxiliary character device
|To: linux-kernel@vger.kernel.org
|Cc: Christoph Hellwig <hch@infradead.org>, Arnd Bergmann <arnd@arndb.de>,
|        Jens Axboe <axboe@suse.de>, Andrew Morton <akpm@osdl.org>
|Date: Wed Jul 14 02:17:27 2004 +0200
|
|Peter Osterlund <petero2@telia.com> writes:
|
|> Peter Osterlund <petero2@telia.com> writes:
|>
|> > Christoph Hellwig <hch@infradead.org> writes:
|> >
|> > > On Sun, Jul 11, 2004 at 01:20:45AM +0200, Arnd Bergmann wrote:
|> > > > These are actually incorrect definitions since the ioctl argument is
|> > > > not a pointer to unsigned int but instead just an int. However, that's
|> > > > too late to fix without breaking the existing tools.
|> > >
|> > > The tools need to change anyway to get away from the broken behaviour to
|> > > issue in ioctl on the actual block device to bind it..
|> >
|> > OK, I'll create a patch that gets rid of the ioctl interface and uses
|> > an auxiliary character device instead to control device bindings.
|>
|> Here is a patch for 2.6.7-mm7 that does that. The driver creates a
|> misc character device and bind/unbind of the block devices are
|> controlled by ioctl commands on the char device.
|>
|> This patch needs corresponding changes in the pktsetup user space
|> program. I'll post a patch for pktsetup as a separate message.
|
|And here is a patch for udftools-1.0.0b3 that updates the pktsetup
|program to make it able to use the character device for block device
|setup/teardown.
|
|---
|
| udftools-1.0.0b3-petero/pktsetup/pktsetup.c |  245 +++++++++++++++++++++++++++-
| 1 files changed, 238 insertions(+), 7 deletions(-)
|
|diff -puN pktsetup/pktsetup.c~pktsetup-char-dev pktsetup/pktsetup.c
|--- udftools-1.0.0b3/pktsetup/pktsetup.c~pktsetup-char-dev     2004-07-12 19:57:51.000000000 +0200
|+++ udftools-1.0.0b3-petero/pktsetup/pktsetup.c        2004-07-14 00:34:02.471317888 +0200
--------------------------
File to patch:

But I don't know which file I have to patch.
Someone an idea?

_________________
Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini
Back to top
View user's profile Send private message 
GuestToo
Puppy Master

Joined: 04 May 2005
Posts: 4078

PostPosted: Sat 21 Oct 2006, 15:59    Post subject:  

that is a patch for the file pktsetup.c in udftools-1.0.0b3/pktsetup/

you could unzip the patch file by typing:

bunzip2 udftools-1.0.0b3.patch.bz2

it's just a text file ... then you could put it in the same dir as the file pktsetup.c, then open a console window in that dir (so that the working dir is the dir that pktsetup.c is in) ... then type:

patch udftools-1.0.0b3.patch

but i think the patched udf tools needs a kernel recompiled with the packet writing patch ... i don't know if the packet writing drivers in the latest kernels has this patch already or not
Back to top
View user's profile Send private message 
Bm


Joined: 16 Apr 2006
Posts: 513
Location: Brussels

PostPosted: Sat 21 Oct 2006, 17:02    Post subject:  

Thank you.
he referenced web site announced two patches.
One for packet writing and indeed a kernel recompilation is needed.
The second one for UDFTools, which so I understand use (or could use) packet writing.

I don't use packet writing. It doesn't work for me when I tried pktsetup as Ted Dog does.

I use modprobe UDF and then mount 'the UDF device'

So probably these patches aren't for my sitation.

BTW, is there some prog which can give information on the level of software and respectif patches?
I tried Xproc. It gives some info, but nothing on f.e. UDF or packet writing.

_________________
Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 4013
Location: Heart of Texas

PostPosted: Sat 21 Oct 2006, 23:36    Post subject:  

Need newer patch, I'll boot my main developing computer "Big Dog" and get those for you, I have been using my little pups (DVD w/o harddrive) machines tring to get the same clear DVD play back as on pre 2.10 series for a week. The LFS site patch is dated.
Back to top
View user's profile Send private message 
Ted Dog


Joined: 13 Sep 2005
Posts: 4013
Location: Heart of Texas

PostPosted: Sat 21 Oct 2006, 23:55    Post subject:  

http://umn.dl.sourceforge.net/sourceforge/linux-udf/udftools-1.0.0b3.tar.gz
http://web.telia.com/~u89404340/patches/packet/udftools-1.0.0b3.patch.bz2

Both downloaded to my /mnt/hda4.
main udftools, untarred unzipped using pupzip
Code:
cd /mnt/hda4/udftools-1.0.0b3
bzip2 -dc ../udftools-1.0.0b3.patch.bz2 | patch -p1
Back to top
View user's profile Send private message 
Bm


Joined: 16 Apr 2006
Posts: 513
Location: Brussels

PostPosted: Sun 22 Oct 2006, 05:52    Post subject:  

On the first link I get: couldn't read file, but as I already had udftools-1.0.0b3.tar.gz I use that one again. I already had the patch from that site, but downloaded again.

I unpacked udftools again, applied the patch (worked this time) and compiled again.

But I still can't set up a packet device
Code:
# pktsetup /dev/pktcdvd0 /dev/cdrom
open packet device: No such device or address
And f.e. udffsck isn't doing anything apparently, altho the dvd rewriter is funcioning as a big floppy with modeprobe udf and mount -t udf /dev/hdd /mnt/hdd
_________________
Puppy Linux 2.02 SMkey, KDE354mini, wine0.9.20, devx-qt-renamed.
Puppy Linux 2.10r1 SMkey, JWM, devx_qt_renamed_210, KDE355mini
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [6 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0650s ][ Queries: 13 (0.0205s) ][ GZIP on ]