From: Luciano Rocha <luciano@eurotux.com>
To: Alon Bar-Lev <alon.barlev@gmail.com>,
ldm@flatcap.org, ntfs-3g-devel@lists.sourceforge.net,
LKML <linux-kernel@vger.kernel.org>,
linux-ntfs-dev@lists.sourceforge.net
Subject: Re: ldminfo compilation
Date: Wed, 12 Dec 2007 16:40:59 +0000 [thread overview]
Message-ID: <20071212164059.GA30348@bit.office.eurotux.com> (raw)
In-Reply-To: <20071212152953.GA26544@bit.office.eurotux.com>
[-- Attachment #1: Type: text/plain, Size: 2482 bytes --]
On Wed, Dec 12, 2007 at 03:29:55PM +0000, Luciano Rocha wrote:
> On Wed, Dec 12, 2007 at 04:57:39PM +0200, Alon Bar-Lev wrote:
> > On 12/12/07, Luciano Rocha <luciano@eurotux.com> wrote:
> > > Those are for the kernel module setting the partition tables. If you're
> > > only interested in the ldminfo utility:
> > > make -C ldmutil CPP='g++ -static'
> > >
> > > Substitute g++ for the C++ compiler you want to use.
> >
> > Hi!
> > Thank you for your reply!
> >
> > I don't really understand how to use the output of ldmutil in order to
> > do the dmsetup... All the instructions are for ldminfo...
>
> Ah, sorry. Somehow I got the impression that the ldmutil directory
> included the ldminfo binary. I'll see if I can compile the ldminfo
> statically in an older system I have.
OK, the statically compiled version is at:
ftp://gil.di.uminho.pt/pub/users/strange/ldminfo
sha1sum: 71c1451f9cbd1a4256bb072d4c930418acc8e2fb
Anyway, how to compile with the sources of:
- linux-2.4.20
- linux-ldm-0.0.8
ldm=linux-ldm-0.0.8
kernel=linux-2.4.20
1. Decompress linux-ldm-0.0.8:
curl -s http://dl.sourceforge.net/sourceforge/linux-ntfs/$ldm.tar.bz2 \
| tar xjf -
2. Enter the directory:
cd $ldm
3. Decompress the Linux kernel sources:
curl -s ftp://ftp.di.uminho.pt/pub/kernel/v2.4/$kernel.tar.bz2 \
| tar xjf -
4. Change test/Makefile to compile ldminfo statically:
sed -e 's/ -o/ -static &/' -i test/Makefile
5. Correct KERNEL path in Makefile:
sed -e "s,KERNEL.*=.*,KERNEL = $PWD/$kernel," -i Makefile
6. Force i386 arch in Makefile:
sed -e 's/-march=.*/-march=i386/' -i Makefile
7. Generate kernel's option files:
yes n | make -C $kernel ARCH=i386 oldconfig dep
8. Compile ldminfo and ldmutil:
make ARCH=i386
This worked on a Centos 3.8, 32bits but running x86_64 kernel, but not
on my Fedora 8. YMMV.
Shell script:
ldm=linux-ldm-0.0.8
kernel=linux-2.4.20
curl -s http://dl.sourceforge.net/sourceforge/linux-ntfs/$ldm.tar.bz2 \
| tar xjf - &&
cd $ldm &&
curl -s ftp://ftp.di.uminho.pt/pub/kernel/v2.4/$kernel.tar.bz2 \
| tar xjf - &&
sed -e 's/ -o/ -static &/' -i test/Makefile &&
sed -e "s,KERNEL.*=.*,KERNEL = $PWD/$kernel," -i Makefile &&
sed -e 's/-march=.*/-march=i386/' -i Makefile &&
yes n | make -C $kernel ARCH=i386 oldconfig dep &&
make ARCH=i386
--
Luciano Rocha <luciano@eurotux.com>
Eurotux Informática, S.A. <http://www.eurotux.com/>
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-12-12 16:41 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-12 14:39 Alon Bar-Lev
2007-12-12 14:52 ` Luciano Rocha
2007-12-12 14:57 ` Alon Bar-Lev
2007-12-12 15:29 ` Luciano Rocha
2007-12-12 16:40 ` Luciano Rocha [this message]
2007-12-12 22:59 ` Alon Bar-Lev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071212164059.GA30348@bit.office.eurotux.com \
--to=luciano@eurotux.com \
--cc=alon.barlev@gmail.com \
--cc=ldm@flatcap.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-ntfs-dev@lists.sourceforge.net \
--cc=ntfs-3g-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®