linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Problems starting up system on a MPC823FADS
@ 1998-12-16 18:05 Magnus Damm
  1998-12-18 18:10 ` Dan Malek
  0 siblings, 1 reply; 6+ messages in thread
From: Magnus Damm @ 1998-12-16 18:05 UTC (permalink / raw)
  To: linuxppc-dev



>I try to get a linux system up and running on a Motorola MPC823FADS
 
I'm currently running linux on MPC860ADS and the MBX.

MBX: 
Works fine. 
I've succeeded loading linux from my floppydrive (yea!) and via ethernet. 

MPC860ADS:
I use MPC8BUG to set up some registers and load vmlinux.
today it runs linux from initrd. I've mounted nfs and it works fine.
But nfs as root doesn't.

I added some debug printouts to open() and nfs read() and compared 
nfs with initrd.

initrd:

VFS: Mounted root (ext2 filesystem).
open file '/dev/console' returns 0x00000000
open file '/etc/ld.so.preload' returns 0xfffffffe
open file '/etc/ld.so.cache' returns 0xfffffffe
open file '/lib/libtermcap.so.2' returns 0x00000003
open file '/lib/libc.so.6' returns 0x00000003
open file '/etc/nsswitch.conf' returns 0xfffffffe
open file '/lib/libnss_compat.so.1' returns 0xfffffffe
open file '/usr/lib/libnss_compat.so.1' returns 0xfffffffe
open file '/lib/libnss_files.so.1' returns 0xfffffffe
open file '/usr/lib/libnss_files.so.1' returns 0xfffffffe
open file '//.bashrc' returns 0xfffffffe
open file '//.bash_history' returns 0xfffffffe
open file '/etc/termcap' returns 0xfffffffe
bash#

nfs:

VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 36k init 28k prep
open file '/dev/console' returns 0x00000000
nfs: read(bin/sh, 128@0)
nfs: read(bin/sh, 160@52)
nfs: read(bin/sh, 13@244)
nfs: read(lib/ld.so.1, 128@0)
nfs: read(lib/ld.so.1, 96@52)
open file '/etc/ld.so.preload' returns 0xfffffffe
open file '/etc/ld.so.cache' returns 0xfffffffe
open file '/lib/libtermcap.so.2' returns 0x00000003
open file '/lib/libc.so.6' returns 0x00000003
open file '/etc/nsswitch.conf' returns 0xfffffffe
open file '/lib/libnss_compat.so.1' returns 0xfffffffe
open file '/usr/lib/libnss_compat.so.1' returns 0xfffffffe
open file '/lib/libnss_files.so.1' returns 0xfffffffe
open file '/usr/lib/libnss_files.so.1' returns 0xfffffffe
open file '' returns 0xfffffffe
open file '/usr/local/bin/' returns 0x00000003
reading 80 bytes from handle 0x00000003 - returned 4294967275
reading 1024 bytes from handle 0x00000003 - returned 4294967275

[nothing more]

>I switched from gcc-2.8.1 to egcs-1.1b as a cross compiler (x86 -->
>PPC), but without any success. 

I think I've got the same problem as you have.

I use egcs-2.91.57. It generates code that works on my MBX-board.

I've read the mbx-documentation several times, and I don't think
it tells us everything about the register-setups.

My guess is that our boot-code/script doesn't initialize everything.
Or the ethernetdriver assumes more than the ethernetaddress.

>Probably one of you can give me even the slightest hint, 
>how I could get any futher!

I suppose you've setup DER, ICR and ICTRL correctly?

I know that Dan Malek has got boot-code for the FADS, right Dan?

Another thing:

There seem to be quit a lot of people around hacking embedded linux.

Why not create a board.h file?

board.h:

#if defined(CONFIG_MBX)
#include <mbx.h>
#elif defined(CONFIG_FADS)
#include <fads.h>
#elif defined(CONFIG_ADS)
#include <ads.h>
#else
#error "No board"
#endif

Cheers /

Magnus


[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

^ permalink raw reply	[flat|nested] 6+ messages in thread
* Problems starting up system on a MPC823FADS
@ 1998-12-14 12:48 Helmut Buchsbaum
  1998-12-16 22:27 ` Dan Malek
  0 siblings, 1 reply; 6+ messages in thread
From: Helmut Buchsbaum @ 1998-12-14 12:48 UTC (permalink / raw)
  To: LinuxPPC Dev


I try to get a linux system up and running on a Motorola MPC823FADS
board. Here is how far I could get up till now:
 
1) I download the boot code with the compressed kernel image with
MPC8BUG to my board. I only adopted the boot code slightly to feed the
correct board info data, set up the correct clocks, etc., since my board
has no boot prom.

2) The boot code decompresses the image properly and starts it.

3) Setting up MMU works fine, the kernel initializes SMC1 (my console)
and SMC2 for UART and SCC2 for ethernet (I adopted Dan's drivers for the
MPC823, wasn't a big deal ;-) 

4) After resolving some trouble in our local network, I managed to mount
root via nfs.

But:

Now the kernel tries to load & exec /sbin/init and /lib/ld.so.1. Loading
via nfs seems to work fine (haven't had any trouble with this part) but
when the kernel sets up the memory for this process I realized a strange
behaviour after executing the SET_PAGE_DIR macro: after setting the
M_TWB register, the CPU never again reacts on any additional breakpoints
I set! This prevents me from tracking down the problem why /sbin/init is
obviously not started (but nevertheless the kernel becomes idle!).

BTW, why must the M_TWB be set in SET_PAGE_DIR ?

I switched from gcc-2.8.1 to egcs-1.1b as a cross compiler (x86 -->
PPC), but without any success. Probably one of you can give me even the
slightest hint, how I could get any futher!


-- Helmut Buchsbaum


*********************************************************
* Helmut Buchsbaum               * Siemens AG Austria   *
* Tel:   ++43-1-1707-36686       * EZE PN 5             *
* Fax:   ++43-1-1707-55169       * Erdberger Laende 26  *
*                                * A-1030 Vienna/Europe *
*********************************************************
* mailto:Helmut.Buchsbaum@siemens.at                    *
*        buc@eze22.siemens.co.at                        *
*********************************************************

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]

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

end of thread, other threads:[~1998-12-18 18:10 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <H0000b360900f795@MHS>
1998-12-17  9:59 ` Problems starting up system on a MPC823FADS Helmut Buchsbaum
1998-12-17 19:28   ` Dan Malek
1998-12-16 18:05 Magnus Damm
1998-12-18 18:10 ` Dan Malek
  -- strict thread matches above, loose matches on Subject: below --
1998-12-14 12:48 Helmut Buchsbaum
1998-12-16 22:27 ` Dan Malek

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