* Re: Linux 2.4.17 bug, mmap of /dev/mem
@ 2002-02-27 21:04 David Ashley
2002-02-27 21:06 ` Dan Malek
0 siblings, 1 reply; 10+ messages in thread
From: David Ashley @ 2002-02-27 21:04 UTC (permalink / raw)
To: dan; +Cc: linuxppc-embedded
I've traced the problem down to arch/ppc/mm/hashtable.S. When
there is a page fault, the function hash_page gets called. This does
some hashing and writes the hash values into a table located at
0xc0180000. That is the default value, before patching. These writes are
what is corrupting the linux kernel, because they are on top of linux
itself.
In arch/ppc/mm/ppc_mmu.c the function MMU_init_hw is called, but
since the 8260 doesn't have the CPU_FTR_HPTE_TABLE feature, the
hash table is never allocated and the hash_page_patch_* never get updated.
Turning on the CPU_FTR_HPTE_TABLE for the 8260 doesn't fix the problem.
I'm out of my depth here. This is a bug in linux, I know that much. But I
don't know what is supposed to happen during a page fault. So I need help
in resolving this.
Thanks--
Dave
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Linux 2.4.17 bug, mmap of /dev/mem
2002-02-27 21:04 Linux 2.4.17 bug, mmap of /dev/mem David Ashley
@ 2002-02-27 21:06 ` Dan Malek
2002-02-27 21:47 ` gdbserver ppc8xx Owen Green
0 siblings, 1 reply; 10+ messages in thread
From: Dan Malek @ 2002-02-27 21:06 UTC (permalink / raw)
To: David Ashley; +Cc: linuxppc-embedded
David Ashley wrote:
> I've traced the problem down to arch/ppc/mm/hashtable.S. When
> there is a page fault, the function hash_page gets called.
In the case of a 603 core, hash_page is called for DSI (Data Access)
faults. However, if the feature indicates there is no HPTE, the
hash_page function is patched to simply return. You can't look at
the code in hashtable.S and know how it is going to work for a particular
implementation because it is patched at initialization to change
it's behavior.
> .....This does
> some hashing and writes the hash values into a table located at
> 0xc0180000.
When your kernel boots, does it print a message to indicate it has allocated
a hash table?
> In arch/ppc/mm/ppc_mmu.c the function MMU_init_hw is called, but
> since the 8260 doesn't have the CPU_FTR_HPTE_TABLE feature, the
> hash table is never allocated and the hash_page_patch_* never get updated.
Oh, I just looked at a variety of different versions back to 2.4.11, and it
is patched just as I described above.
-- Dan
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* gdbserver ppc8xx
2002-02-27 21:06 ` Dan Malek
@ 2002-02-27 21:47 ` Owen Green
2002-02-27 22:03 ` Wolfgang Denk
2002-02-28 8:01 ` Christian Pellegrin
0 siblings, 2 replies; 10+ messages in thread
From: Owen Green @ 2002-02-27 21:47 UTC (permalink / raw)
To: linuxppc-embedded
Hi all,
could anyone tell me where can I find a gdbserver that
works with mpc8xx processor? Where can I find sources
that compiles for 8xx?
I have already tried with mvista HHL2.0 Journeyman
edition but I got something like:
#gdbserver :7777 /bin/test
Process /bin/test created; pid = 48
getprotobyname:Sucess.
Exiting
#
What could be wrong? Any tip will be very appreciate.
Thanks in advance,
Owen.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdbserver ppc8xx
2002-02-27 21:47 ` gdbserver ppc8xx Owen Green
@ 2002-02-27 22:03 ` Wolfgang Denk
2002-02-28 8:01 ` Christian Pellegrin
1 sibling, 0 replies; 10+ messages in thread
From: Wolfgang Denk @ 2002-02-27 22:03 UTC (permalink / raw)
To: Owen Green; +Cc: linuxppc-embedded
In message <20020227214749.38142.qmail@web20110.mail.yahoo.com> you wrote:
>
> could anyone tell me where can I find a gdbserver that
> works with mpc8xx processor? Where can I find sources
Well, use the one that came with HHL-2.0?
> that compiles for 8xx?
gdb-5.1 sources?
> I have already tried with mvista HHL2.0 Journeyman
> edition but I got something like:
> #gdbserver :7777 /bin/test
> Process /bin/test created; pid = 48
> getprotobyname:Sucess.
> Exiting
> #
> What could be wrong? Any tip will be very appreciate.
What do you think getprotobyname() does? [Hint: man getprotobyname -
pay special attention to the FILES section]. Hint2: There may be
other networ related files missing on your system, too, like
/etc/services, or /lib/libnss_*
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Veni, Vidi, VISA:
I came, I saw, I did a little shopping.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread* Re: gdbserver ppc8xx
2002-02-27 21:47 ` gdbserver ppc8xx Owen Green
2002-02-27 22:03 ` Wolfgang Denk
@ 2002-02-28 8:01 ` Christian Pellegrin
2002-02-28 13:50 ` Owen Green
1 sibling, 1 reply; 10+ messages in thread
From: Christian Pellegrin @ 2002-02-28 8:01 UTC (permalink / raw)
To: Owen Green; +Cc: linuxppc-embedded
On Wed, 27 Feb 2002, Owen Green wrote:
>
> Hi all,
>
> could anyone tell me where can I find a gdbserver that
> works with mpc8xx processor? Where can I find sources
> that compiles for 8xx?
>
> I have already tried with mvista HHL2.0 Journeyman
> edition but I got something like:
> #gdbserver :7777 /bin/test
> Process /bin/test created; pid = 48
> getprotobyname:Sucess.
> Exiting
> #
> What could be wrong? Any tip will be very appreciate.
>
just copy /etc/protocols from whatever distro you like. Bye!
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: gdbserver ppc8xx
2002-02-28 8:01 ` Christian Pellegrin
@ 2002-02-28 13:50 ` Owen Green
0 siblings, 0 replies; 10+ messages in thread
From: Owen Green @ 2002-02-28 13:50 UTC (permalink / raw)
To: Christian Pellegrin; +Cc: linuxppc-embedded
--- Christian Pellegrin <chri@infis.univ.trieste.it>
wrote:
> On Wed, 27 Feb 2002, Owen Green wrote:
>
> > edition but I got something like:
> > #gdbserver :7777 /bin/test
> > Process /bin/test created; pid = 48
> > getprotobyname:Sucess.
> > Exiting
> > #
> just copy /etc/protocols from whatever distro you
> like. Bye!
>
This did not work, I got the getprotobyname: Sucess,
what means my /etc/protocols have the entry for tcp.
Thanks anyway.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: gdbserver ppc8xx
@ 2002-03-01 10:07 Goddeeris Frederic
2002-03-01 10:49 ` Christian Pellegrin
2002-03-01 17:01 ` Owen Green
0 siblings, 2 replies; 10+ messages in thread
From: Goddeeris Frederic @ 2002-03-01 10:07 UTC (permalink / raw)
To: 'Owen Green ', 'Christian Pellegrin '
Cc: 'linuxppc-embedded@lists.linuxppc.org '
Did you try using strace? This can give you info about why gdbserver quits.
I also had a problem with gdbserver and this is the way I solved it...
Fred
-----Original Message-----
From: Owen Green
To: Christian Pellegrin
Cc: linuxppc-embedded@lists.linuxppc.org
Sent: 2/28/02 2:50 PM
Subject: Re: gdbserver ppc8xx
--- Christian Pellegrin <chri@infis.univ.trieste.it>
wrote:
> On Wed, 27 Feb 2002, Owen Green wrote:
>
> > edition but I got something like:
> > #gdbserver :7777 /bin/test
> > Process /bin/test created; pid = 48
> > getprotobyname:Sucess.
> > Exiting
> > #
> just copy /etc/protocols from whatever distro you
> like. Bye!
>
This did not work, I got the getprotobyname: Sucess,
what means my /etc/protocols have the entry for tcp.
Thanks anyway.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2002-03-01 17:14 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-27 21:04 Linux 2.4.17 bug, mmap of /dev/mem David Ashley
2002-02-27 21:06 ` Dan Malek
2002-02-27 21:47 ` gdbserver ppc8xx Owen Green
2002-02-27 22:03 ` Wolfgang Denk
2002-02-28 8:01 ` Christian Pellegrin
2002-02-28 13:50 ` Owen Green
-- strict thread matches above, loose matches on Subject: below --
2002-03-01 10:07 Goddeeris Frederic
2002-03-01 10:49 ` Christian Pellegrin
2002-03-01 17:01 ` Owen Green
2002-03-01 17:14 ` Mark Hatle
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).