linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Kernel not returning from M8xx_cpm_reset
@ 2002-11-21  2:03 Francis Yu <francisy@luxn.com>
  0 siblings, 0 replies; 2+ messages in thread
From: Francis Yu <francisy@luxn.com> @ 2002-11-21  2:03 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Hello,
I have ported the ppcboot 1.2.0 over to my hardware. I went into some
problem when I wanted to run the TQM_860L linux (version 2.4.4). The kernel
would not print anything after it was launched by the ppcboot. When I
stopped it, it shows that it is engaged in some kind of timer loop. When I
traced the function calls, I found that it never returns from the function
<va_to_pte>, and I have no idea how does it end up in the timer loop from
<va_to_pte>.
The followings are what I have found thus far. Could anybody please shed
some light into this. Thanks.
Francis Yu


=> bootm 400000
## Booting image at 00400000 ...
   Image Name:   Linux-2.4.4
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)
   Data Size:    605331 Bytes = 591.1 kB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
## Current stack ends at 0x00F9BC18 => set upper limit to 0x00800000
## cmdline at 0x007FFF00 ... 0x007FFF00
bd address  = 0x00F9BFC4
memstart    = 0x00000000
memsize     = 0x01000000
flashstart  = 0xFFE00000
flashsize   = 0x00200000
flashoffset = 0x00000000
sramstart   = 0x00000000
sramsize    = 0x00000000
immr_base   = 0xFA000000
bootflags   = 0x00000001
intfreq     =     50 MHz
busfreq     =     50 MHz
ethaddr     = 00:10:EC:00:1D:0B
IP addr     = 192.168.1.65
baudrate    =   9600 bps
No initrd
## Transferring control to Linux (at address 00000000) ...

Nothing else was shown from this point on. I went in there to trace the
Kernel and found the followings:

Kernel started executing at 0x00000000, it went through some setups and then
jumped to the following sequences:
<start_kernel> ;
<setup_arch>;
<m8xx_setup_arch>;
<m8xx_cpm_reset>;
<va_to_pte>, passing 0x1b7000 as parameter;
Inside <va_to_pte>

 $0000AB24 mr.      R3,R3			(R3=0x1b7000)
 $0000AB28 blt      0xab34
 $0000AB2C lwz      R9,0x2c(R2)		(R2=0x156020, R9=0)
 $0000AB30 b        0xab3c
 $0000AB34 lis      R9,0x15
 $0000AB38 addi     R9,R9,0x5f9c
 $0000AB3C lwz      R11,0xc(R9)		(R11=0x7cdc3378 ???)
 $0000AB40 rlwinm   R3,R3,0x0,0x0,0x13	(R3=0x1b7000)
 $0000AB44 rlwinm   R9,R3,0xc,0x14,0x1d	(R9=0)
 $0000AB48 add      R0,R11,R9			(R0=0x7cdc3378)
 $0000AB4C cmpwi    R0,0x0......		(Starting accessing
non-existing memory here!!!)


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

^ permalink raw reply	[flat|nested] 2+ messages in thread
* RE: Kernel not returning from M8xx_cpm_reset
@ 2002-11-21 19:35 Francis Yu <francisy@luxn.com>
  0 siblings, 0 replies; 2+ messages in thread
From: Francis Yu <francisy@luxn.com> @ 2002-11-21 19:35 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


Hi,
I guessed I have made the mistake of changing the KERNELBASE to 0x00000000.
After reading some of the emails on the subject, I changed back to
0xC0000000, and Voila! I start to see a whole bunch of kernel messages being
dump on me. I am very excited at this point. I have not analyzed the
messages yet, but I just want to put out this notice so that you can ignore
my previous email. Thanks.
Francis

-----Original Message-----
From: Francis Yu <francisy@luxn.com> [mailto:francisy@luxn.com]
Sent: Wednesday, November 20, 2002 6:03 PM
To: 'linuxppc-embedded@lists.linuxppc.org'
Subject: Kernel not returning from M8xx_cpm_reset


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

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

end of thread, other threads:[~2002-11-21 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-21  2:03 Kernel not returning from M8xx_cpm_reset Francis Yu <francisy@luxn.com>
  -- strict thread matches above, loose matches on Subject: below --
2002-11-21 19:35 Francis Yu <francisy@luxn.com>

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