monitor in mpc860fads
hi,
now i have a mpc860fads board, maybe there is a debug monitor inside it.
but i dont know how to check it. i also dont know what i need on host end to communicate with the monitor. some guide book is appreciated.
I am newbie in this area, hope some expertise point out a way for me.
thanks
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
execve system call question
Hi!
I'm debugging a custom MPC755 board
with linuxppc_devel from montavista rsync, and /opt/hardhat/devkit/ppc/7xx/target for NFS root. It booted and stoped after the message.
--------------------------------------------------------
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IP-Config: Complete:
device=eth0, addr=203.239.17.200, mask=255.255.255.0, gw=203.239.17.57,
host=dogoil, domain=, nis-domain=(none),
bootserver=203.239.17.57, rootserver=203.239.17.57, rootpath=NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 100003/2 on 203.239.17.57 Looking up port of RPC 100005/1 on 203.239.17.57
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 76k init
--------------------------------------------------------
I traced the code and the point of stopping is after calling execve("/sbin/init", argv_init, envp_init)
in init/main.c
I was trying to trace more, but it was impossible
because of the complexity of the code.
Is there any method to debug this?
I'm debugging it for a month.
Please help me.
- Sangmoon Kim -
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
Well, after that command, the filesystem takes
place. You can't put anything in the kernel. The procedure for calling and executing init works fine. Is the root filesystem correct? Have you tried to upload a ramdisk image in ram? If you are sure that all these are correct, then do you have a JTAG Debugger? (OCD Commander ...)
D. Meidanis
Quoted 8 lines · --- Sangmoon Kim
Hi!
I'm debugging a custom MPC755 board
withlinuxppc_develfrom montavista rsync, and/opt/hardhat/devkit/ppc/7xx/targetfor NFS root. It booted and stoped after the message.
--------------------------------------------------------
Quoted 8 lines
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IP-Config: Complete:device=eth0, addr=203.239.17.200,
Quoted 10 lines
mask=255.255.255.0, gw=203.239.17.57,
host=dogoil, domain=, nis-domain=(none), bootserver=203.239.17.57,
rootserver=203.239.17.57, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 100003/2 on 203.239.17.57 Looking up port of RPC 100005/1 on 203.239.17.57
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 76k init
--------------------------------------------------------
Quoted 9 lines
I traced the code and the point of stopping is after calling
execve("/sbin/init", argv_init, envp_init)ininit/main.cI was trying to trace more, but it was impossible
because of the complexity of the code.
Quoted 8 lines
Is there any method to debug this?
I'm debugging it for a month.Please help me.
- Sangmoon Kim -
=====
-------------------------------------------------
Dhmhtrios Meidanis
-Degree in Mathematics, University of the Aegean. -Master in Computer Architecture and Digital
Systems, University of Crete.
Greece.
-------------------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to Sangmoon KimQuoted 7 lines · In message <[email protected]> you…
I traced the code and the point of stopping is after calling
execve("/sbin/init", argv_init, envp_init)
ininit/main.cI was trying to trace more, but it was impossible
because of the complexity of the code.
It's not impossible. In fact, it's quite simple.
You're running with root filesystem over NFS, so just start up a network sniffer (like ethereal) and check all NFS requests and replys. Probably something is missing in your root filesystem. Something essential, like /dev/console or so.
Quoted 1 line
Is there any method to debug this?
Yes, attach a BDI2000 and check where you are...
Quoted 1 line
I'm debugging it for a month.
Urghhh...
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Use C++ to confuse your enemies; use C to produce stable code.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to Sangmoon KimQuoted 8 lines · Sangmoon Kim
and
/opt/hardhat/devkit/ppc/7xx/targetfor NFS root.VFS: Mounted root (nfs filesystem).
Is there any method to debug this?
I'm debugging it for a month.
I'll suggest:
1) turn on debugging on the nfs server
2) generate a trivial hello world program and put it instead of /sbin/init. So to be sure it's a ppc executable. Start with a static linked one,it's a bit difficult to do dynamic linking right at the first time ;-)
Bye!
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to None AtallHi None Atall!
I think the root file system is correct because it's from Hard Hat Linux. I tried some ramdisk images but the result was the same.
And I don't have JTAG debugger.
Thank you for the replay.
----- Original Message -----
From: "None Atall" <[email protected]>
To: "Sangmoon Kim" <[email protected]>; "linuxppc-embedded" <[email protected]>
Sent: Tuesday, February 26, 2002 10:11 PM
Subject: Re: execve system call question
Quoted 63 lines
Well, after that command, the filesystem takes place. You can't put anything in the kernel. The procedure for calling and executing init works fine. Is the root filesystem correct? Have you tried to upload a ramdisk image in ram? If you are sure that all these are correct, then do you have a JTAG Debugger? (OCD Commander ...)
D. Meidanis
Quoted 8 lines · --- Sangmoon Kim
Hi!
I'm debugging a custom MPC755 board
withlinuxppc_develfrom montavista rsync, and/opt/hardhat/devkit/ppc/7xx/targetfor NFS root. It booted and stoped after the message.--------------------------------------------------------
Quoted 8 lines
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 1024 buckets, 8Kbytes
TCP: Hash tables configured (established 8192 bind 8192)
IP-Config: Complete:device=eth0, addr=203.239.17.200,Quoted 10 lines
mask=255.255.255.0, gw=203.239.17.57,
host=dogoil, domain=, nis-domain=(none), bootserver=203.239.17.57,
rootserver=203.239.17.57, rootpath=
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. Looking up port of RPC 100003/2 on 203.239.17.57 Looking up port of RPC 100005/1 on 203.239.17.57
VFS: Mounted root (nfs filesystem).
Freeing unused kernel memory: 76k init--------------------------------------------------------
Quoted 9 lines
I traced the code and the point of stopping is after calling
execve("/sbin/init", argv_init, envp_init)ininit/main.cI was trying to trace more, but it was impossible
because of the complexity of the code.Quoted 8 lines
Is there any method to debug this?
I'm debugging it for a month.Please help me.
- Sangmoon Kim -
=====
-------------------------------------------------
Dhmhtrios Meidanis
Review
Quoted 5 lines
(quoted diff) +0
-3-Degree in Mathematics, University of the Aegean. -Master in Computer Architecture and Digital Systems, University of Crete. Greece. -------------------------------------------------
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to Christian PellegrinHi Cristian Pellegrin!
I tried the 'hello world' thing.
but it didn't worked.
Thank you for the reply.
----- Original Message -----
From: "Christian Pellegrin" <[email protected]>
To: "Sangmoon Kim" <[email protected]>
Cc: "linuxppc-embedded" <[email protected]>
Sent: Tuesday, February 26, 2002 10:27 PM
Subject: Re: execve system call question
Quoted 13 lines · Sangmoon Kim
Quoted 9 lines
and
/opt/hardhat/devkit/ppc/7xx/targetfor NFS root.VFS: Mounted root (nfs filesystem).
Is there any method to debug this?
I'm debugging it for a month.I'll suggest:
Quoted 10 lines
1) turn on debugging on the nfs server
2) generate a trivial hello world program and put it instead of
/sbin/init. So to be sure it's a ppc executable. Start with a static linked one,it's a bit difficult to do dynamic linking right at the first time ;-)Bye!
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to Wolfgang DenkHi Wolfgang Denk.
Quoted 4 lines
You're running with root filesystem over NFS, so just start up a network sniffer (like ethereal) and check all NFS requests and replys. Probably something is missing in your root filesystem. Something essential, like
/dev/consoleor so.
The root file system is from Hardhat Linux. I think it's correct because so many people use it without complain. and the /dev/console exist. I tried ramdisk. But the result was same.
Thank you for the reply.
----- Original Message -----
From: "Wolfgang Denk" <[email protected]>
To: "Sangmoon Kim" <[email protected]>
Cc: "linuxppc-embedded" <[email protected]>
Sent: Tuesday, February 26, 2002 10:21 PM
Subject: Re: execve system call question
Quoted 23 lines
Quoted 7 lines · In message <[email protected]> you…
I traced the code and the point of stopping is after calling
execve("/sbin/init", argv_init, envp_init)
ininit/main.cI was trying to trace more, but it was impossible
because of the complexity of the code.It's not impossible. In fact, it's quite simple.
You're running with root filesystem over NFS, so just start up a network sniffer (like ethereal) and check all NFS requests and replys. Probably something is missing in your root filesystem. Something essential, like
/dev/consoleor so.Quoted 1 line
Is there any method to debug this?
Yes, attach a BDI2000 and check where you are...
Quoted 1 line
I'm debugging it for a month.
Quoted 11 lines
Urghhh...
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] Use C++ to confuse your enemies; use C to produce stable code.
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Re: execve system call question
In reply to Sangmoon KimQuoted 2 lines · In message <[email protected]> you…
I think the root file system is correct because it's from Hard Hat Linux.
Not necessarily so. You may have made some mistakes when selecting and installing the packages.
Quoted 2 lines
I tried some ramdisk images but the result was the same. And I don't have JTAG debugger.
Get yourself a BDI2000 then.
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: [email protected] If something is different, it's either better or worse, and usually
both. - Larry Wall
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/