From: Christoph Plattner <christoph.plattner@alcatel.at>
To: "Rafael E. Herrera" <raffo@neuronet.pitt.edu>
Cc: Christoph Plattner <christoph.plattner@dot.at>,
parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] Initial setup of the `glibc' in the target rootfile system
Date: Thu, 22 Feb 2001 09:34:01 +0100 [thread overview]
Message-ID: <3A94CEF9.F171DE3F@alcatel.at> (raw)
In-Reply-To: 3A94C3B5.EF59259C@neuronet.pitt.edu
First of all, the make install has to be done twice !
One time for the tool chain to find the things like crt?.o, libs, etc..
For this the builtin tree is defined (given by --prefix).
make install user-defined-trusted-dirs=/lib
The second time install it to the nfs root file system
make install user-defined-trusted-dirs=/lib \
install_root=/tftpboot/nfsroot
For the target the `/lib' is the builtin search path, for the
cross tool chain the '/usr/parisc/hppa-linux/lib' (in my case).
AND A VERY IMPORTANT POINT: You have to run `ldconfig'. I tried
this on the target machine (apollo 720) by booting from the
NFS-ROOT of palinux-0.5 (I copied the contents of the CD to a
path exported by NFS). After booting I mounted my new NFSROOT to
`/mnt' and run
ldconfig -v -r /mnt
After that I could boot from the new root file system starting the
`init' process (but nothing else....)
Another test to do is to use host's ldconfig fore that work:
ldconfig -v -r /tftpboot/apollo/root
or something like this...
Cheers
Christoph P.
"Rafael E. Herrera" wrote:
>
> Christoph Plattner wrote:
> >
> > I have found the method working here.
> >
> > The GLIBC must be built with the line:
> >
> > make user-defined-trusted-dirs=/lib
> >
> > This adds the `/lib' to the internal trusted search path, which is
> > defined in the generated files ./elf/trusted-dirs.{st,h}. After
> > this the normal installation to the configured prefix (in my
> > case /usr/parisc/hppa-linux)
> >
> > make install user-defined-trusted-dirs=/lib
> >
> > and the installation to the NFS root directory can be done by repeating
> > install with
> >
> > make install user-defined-trusted-dirs=/lib
> > install_root=/tftpboot/apollo/root
> >
> > On the workstation (booted from the palinux-0.5 root file system) I
> > mounted my new NFS root to /mnt and used the command
> >
> > ldconfig -v -r /mnt
>
> I'd like to summarize the previously discussed procedure to build glibc
> on the target machine to install in the nfsroot tree.
>
> Assume the evironment vars for the build tree are
>
> MACH=i386-linux
> DEST=/mnt/parisc
> ROOT=/mnt
> (The NFS root exported from the directory /tftpboot/nfsroot)
>
> # The configuration command would be:
> # (--prefix seems to be ignored when using install_root later)
>
> HOSTCC=gcc CC=hppa-linux-gcc $ROOT/source/glibc/configure \
> --prefix=$DEST --build=$MACH --host=hppa-linux \
> --target=hppa-linux --with-headers=$ROOT/source/linux/include \
> --disable-profile --without-cvs --enable-add-ons
>
> # The build command
>
> make user-defined-trusted-dirs=/lib
>
> # the install command
>
> make install user-defined-trusted-dirs=/lib \
> install_root=/tftpboot/nfsroot
>
> Sadly, the boot process stops when init starts. Any comments?
> --
> Rafael
>
> _______________________________________________
> parisc-linux mailing list
> parisc-linux@lists.parisc-linux.org
> http://lists.parisc-linux.org/cgi-bin/mailman/listinfo/parisc-linux
--
+--------V--------+ Christoph.Plattner@alcatel.at
| A L C A T E L | -----------------------------
+-----------------+ Phone: +43 1 27722 3706
T A S Fax: +43 1 27722 3955
next prev parent reply other threads:[~2001-02-22 8:34 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-08 22:49 [parisc-linux] Initial setup of the `glibc' in the target root file system Christoph Plattner
2001-02-09 3:56 ` Alan Modra
2001-02-18 10:28 ` [parisc-linux] Initial setup of the `glibc' in the target rootfile system Christoph Plattner
2001-02-18 11:19 ` Alan Modra
2001-02-18 16:49 ` [parisc-linux] Initial setup of the `glibc' in the target rootfilesystem Christoph Plattner
2001-02-22 7:45 ` [parisc-linux] Initial setup of the `glibc' in the target rootfile system Rafael E. Herrera
2001-02-22 8:34 ` Christoph Plattner [this message]
2001-02-24 5:56 ` Rafael E. Herrera
2001-02-24 6:26 ` Ulrich Drepper
2001-02-24 7:27 ` Rafael E. Herrera
2001-02-24 7:42 ` Ulrich Drepper
2001-02-24 8:15 ` Rafael E. Herrera
2001-02-24 8:26 ` Alan Modra
2001-02-27 19:52 ` Christoph Plattner
2001-02-24 7:53 ` Alan Modra
2001-02-24 8:04 ` Ulrich Drepper
2001-02-24 8:21 ` Alan Modra
2001-02-24 8:43 ` Ulrich Drepper
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=3A94CEF9.F171DE3F@alcatel.at \
--to=christoph.plattner@alcatel.at \
--cc=christoph.plattner@dot.at \
--cc=parisc-linux@lists.parisc-linux.org \
--cc=raffo@neuronet.pitt.edu \
/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