linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* MMU problems on MPC860P
@ 2000-09-15 16:40 G. Guével
  2000-09-15 17:19 ` Dan Malek
  0 siblings, 1 reply; 5+ messages in thread
From: G. Guével @ 2000-09-15 16:40 UTC (permalink / raw)
  To: linuxppc-embedded


Hello,

I have a MBX MPC860 board and a montavista linux kernel 2.2.13 which works
very well.

I want to port this kernel on a MPC860P proprietary board called pLines.
I can execute my kernel init until the last execve command which launches
the sh command.
I can get my ip address from a bootp server and mount a network file system.

When the execve is run the following functions are called :
do_load_elf_binary - flush_old_exec - exec_mmap - new_page_tables -
SET_PAGE_DIR
This last function calls an asm instruction, ie "mtspr M_TWB 1DF00".
On the MBX board it is "mtspr M_TWB 1DE00".

This instruction sets the tablewalk level one base value.

If I comment this instruction, I can have the ash application which crashes
when calling other applications.
If I uncomment this instruction I have nothing.

If I add an infinitely printk loop after the mtspr, printk works during 2 to
3 s then cpu crashes.
But printk seems not to be sure while page manipulation.

Any help on this subject will be welcome.

Thanks to all
Sorry for my poor english language, je suis français.

Bye
Gerard Guevel


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* MMU problems on MPC860P
@ 2000-09-19 17:51 G. Guivel
  2000-09-19 22:15 ` Dan Malek
  0 siblings, 1 reply; 5+ messages in thread
From: G. Guivel @ 2000-09-19 17:51 UTC (permalink / raw)
  To: linuxppc-embedded


Dan wrote:
> You may just want to hop over to the MontaVista web site and use the
2.2.14 kernel from CDK 1.2.


I made a new kernel from cllf(rpxclassic) board with MPC860T.

I have the same problems than with the 2.2.13 kernel.

It seems that Linux does not clear all mmu registers.

Which registers must be cleared by the previous monitor ?

I use my personal monitor which does not deal with mmu.

I don't know if EPPC-BUG makes some special actions before
loading Linux loader.

If you have some idea.

Thanks

Gerard


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread
* MMU problems on MPC860P
@ 2000-09-28 14:28 Girard Guivel
  0 siblings, 0 replies; 5+ messages in thread
From: Girard Guivel @ 2000-09-28 14:28 UTC (permalink / raw)
  To: linuxppc-embedded


I had problems to port linux2.2.14 on my own board.
I thaught it was because I use a MPC860P and not MPC860 or MPC860T.

My mistake was to map IMMR to 0x50000000.
IMMR must be mapped over 0x80000000 (like 0xFA200000)
because Linux uses 2Gb of virtual ram.

So linux2.2.14 works fine on a MPC860P.

Thanks to Dan for his help and ideas.


Gerard


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2000-09-28 14:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-09-15 16:40 MMU problems on MPC860P G. Guével
2000-09-15 17:19 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
2000-09-19 17:51 G. Guivel
2000-09-19 22:15 ` Dan Malek
2000-09-28 14:28 Girard Guivel

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).