From: Wolfgang Denk <wd@denx.de>
To: dony <dony.he@huawei.com.cn>
Cc: Brendan.Simon@ctam.com.au, Grant Carter <gcarter@eng.uct.ac.za>,
linuxppc-embedded <linuxppc-embedded@lists.linuxppc.org>
Subject: Re: Cross-compile dynamic apps for mpc860 on ix86
Date: Mon, 24 Jan 2000 09:02:11 +0100 [thread overview]
Message-ID: <200001240802.JAA26818@denx.local.net> (raw)
In-Reply-To: Your message of "Mon, 24 Jan 2000 14:46:03 +0800." <388BF52B.213CCD61@huawei.com.cn>
In message <388BF52B.213CCD61@huawei.com.cn> dony wrote:
>
> Here are some notes:
> 1 Make sure you copy all your libraries under $(prefix)/$(target)/lib and $(prefix)/lib/gcc-lib to your target's root
> filesystem /lib.
I don't think you will need the gcc-lib files on your target (as long
as you don't want to compile / linke on the target).
> powerpc-linux-gcc -O2 -mcpu=860 -Wl,--rpath,lib -o mytest mytest.c
> An easyest way to test this is to replace your target NFS root filesystem's /bin/sh with the above "mytest" and
Adding "init=<your_path>/mytest" will do as well.
[I don't think it is a good idea to modify files on the NFS server
just for testing things. You might forget to change something back to
the original state, or in bigger projects there might be other users
trying to use the same NFS server.]
> reset your board. And running "rpc.nfsd -F -d call" on your x86 host to monitor whether it can run correctly. If not, what file
> it cannot find? In my case , First , it can not find "/etc/ld.so.preload" and "/etc/ld.so.cache". then I run "touch
> /tftpboot/etc/{ld.so.preload,ld.so.cache}". Then reset. And continue monitoring.
Again, I don't think this is a good idea. You will be creating some
files that are not really needed. For instance, "/etc/ld.so.preload"
is *NOT* needed at all.
> > Does any body out there in linuxppc-embedded land have a clue as to what could be causing the segfaults ?
> > Can someone suggest a way of getting more debugging information. I'm using nfsd with "-F -d" call options at the moment.
>
> I think this is enough to debug your problem. This is what I use.
Grrrgh. You cannot really debug anything this way.
For instance, you will never be able to know if a failing attempt to
open a non-existing file (like "/etc/ld.so.preload") is a critical
error or just a feature that may beuseful under some very special
circumstances.
> > I can see the ld.so.1 gets called which causes lots of reads from ld-2.1.2.so and then that's it. I would expect to get
> > calls to libc.so.6 but it never gets that far.
>
> Then where does it go after it accesses ld.so.1?
Good question - do you still claim you can find this out just by
looking at the NFS transfers?
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
You young'uns. That was *long* before AltaVista, DejaNews, or even
(gasp) the *Web*! In fact, we typed that thread on steam-powered card
punchers, and shipped it around via Pony Express.
-- Randal Schwartz in <8cwww1cd0d.fsf@gadget.cscaper.com>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2000-01-24 8:02 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-31 2:29 Please help me dony
1999-12-27 8:42 ` Raphael Bossek
2000-01-02 7:23 ` dony
1999-12-30 2:11 ` Brendan J Simon
[not found] ` <38701F3A.FAD6263E@huawei.com.cn>
1999-12-30 4:23 ` Brendan J Simon
[not found] ` <38704D0B.94438516@huawei.com.cn>
1999-12-30 6:46 ` Brendan J Simon
1999-12-30 13:25 ` Charles Lepple
2000-01-03 11:48 ` Cannot booting the kernel dony
2000-01-04 0:46 ` Brendan J Simon
[not found] ` <38715DAE.B6CBC772@huawei.com.cn>
[not found] ` <3871572F.FA4E7842@ctam.com.au>
[not found] ` <38717C52.ECF1AFFD@huawei.com.cn>
[not found] ` <3871953B.345DDA23@ctam.com.au>
[not found] ` <38754F28.B6B4CE70@huawei.com.cn>
[not found] ` <38754419.20D95C5A@ctam.com.au>
[not found] ` <3876A6E5.3488738B@huawei.com.cn>
[not found] ` <3876C6FD.794BD1BF@ctam.com.au>
[not found] ` <387A87DF.4ED23CA6@huawei.com.cn>
[not found] ` <387A81F3.702B29A2@ctam.com.au>
[not found] ` <387C4D8D.9C058F1C@huawei.com.cn>
[not found] ` <387D3212.A4E9904F@ctam.com.au>
2000-01-13 7:10 ` Cross-compile Applications for 860 on x86 dony
2000-01-13 22:09 ` Brendan J Simon
[not found] ` <387DAFAF.DB0096C7@huawei.com.cn>
[not found] ` <387E460F.B007CE56@ctam.com.au>
[not found] ` <387E7F82.99AF83CE@huawei.com.cn>
[not found] ` <387E7AF5.A92A6122@ctam.com.au>
[not found] ` <387E9927.48689C08@huawei.com.cn>
[not found] ` <387EBEB9.B69B1680@ctam.com.au>
2000-01-14 8:31 ` dony
2000-01-14 11:01 ` Wolfgang Denk
[not found] ` <387F0D81.48F7CABE@iname.com>
2000-01-14 17:13 ` Wolfgang Denk
[not found] ` <38827CD5.D7A44261@huawei.com.cn>
2000-01-17 3:56 ` Jim Lewis
2000-01-17 3:26 ` dony
2000-01-17 4:35 ` Jim Lewis
2000-01-16 2:01 ` Brendan J Simon
[not found] ` <388ABF55.5BD3A031@eng.uct.ac.za>
[not found] ` <388B9C86.8970590A@ctam.com.au>
[not found] ` <388BA902.B41A2E11@huawei.com.cn>
2000-01-24 3:00 ` Cross-compile dynamic apps for mpc860 on ix86 Brendan J Simon
2000-01-24 5:03 ` Wolfgang Denk
2000-01-24 6:46 ` dony
2000-01-24 8:02 ` Wolfgang Denk [this message]
[not found] ` <000401bf5016$4757c420$0201a8c0@home>
1999-12-31 8:37 ` Please help me dony
[not found] ` <000c01bf5086$3e358d80$0201a8c0@home>
2000-01-01 1:58 ` dony
[not found] ` <001801bf50e1$6d3ad8a0$0201a8c0@home>
2000-01-01 8:46 ` dony
1999-12-31 8:40 ` dony
[not found] <388BEE23.A42DFCB5@huawei.com.cn>
2000-01-24 8:02 ` Cross-compile dynamic apps for mpc860 on ix86 Wolfgang Denk
2000-01-25 0:02 ` Brendan John Simon
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=200001240802.JAA26818@denx.local.net \
--to=wd@denx.de \
--cc=Brendan.Simon@ctam.com.au \
--cc=dony.he@huawei.com.cn \
--cc=gcarter@eng.uct.ac.za \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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;
as well as URLs for NNTP newsgroup(s).