linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* RE: After Uncompresseing Linux..., what's next
@ 2002-12-19 16:10 James Don
  2002-12-19 16:39 ` Tom Rini
  2002-12-20 16:14 ` Prakash kanthi
  0 siblings, 2 replies; 26+ messages in thread
From: James Don @ 2002-12-19 16:10 UTC (permalink / raw)
  To: 'Prakash kanthi', LinuxPPC


I just went thru this myself ... ;-)

1.) Get a BDM/JTAG tool look halt the processor after you see " Now booting
the kernel" and look for valid asm at 0x0 ... make sure it mathes your
start.s file ...

2.) Veryfy you have your mem map from ppcboot matching requirements for the
kernel i.e ram (physical=0x0, virtual=0xc0000000) and immr (phys 0xff000000
virtual 0xff000000) ... I had my immr in ppc boot at 0x02200000 this screwed
me for quite a while ... otherwise you have no printk ... the memory map is
very important not to screw with some things depend on it (unless your
careful) ...

3.) verify you SMC1 (uart) is getting proper clocking config ... i.e
bus->brg1 and brg1 is 16 times baud rate ... otherwise you have no printk

4.) and always always keep in mind your RAM refesh could be wrong ...
everyone will tell you this even when it has nothing to do with your problem
... try not to ignore them if you are still stuck ;-) But verifying step 1
should prove your ok ...

Best of luck,
Jim


-----Original Message-----
From: Prakash kanthi [mailto:pkanthi@yahoo.com]
Sent: Wednesday, December 18, 2002 7:14 PM
To: LinuxPPC
Subject: After Uncompresseing Linux..., what's next


Hi there,

I was trying to load linuxppc_2_4_devel onto my board.
It goes through the board info read, UART init and
Uncompressing the linux kernel. But after that, i do
not see any messages and board hangs.

Here is the UART output:
------------------------------------
OS Booting...

loaded at:     00400000 0060D1CC
board data at: 00000030 00000044
relocated to:  00405C24 00405C38
zimage at:     00406290 004A08FF
initrd at:     004A1000 006097CA
avail ram:     0060E000 007F8000

Linux/PPC load: console=ttyS0,9600 console=tty1 ip=on
root=/dev/xsysace/disc0/pa
rt3 rw
Uncompressing Linux...done.
Now booting the kernel
-------------------------------------------

After the last line, it hangs. I get a feeling that,
the uncompressing process is not writing in the memory
starting from 0x00000000 and, after uncompressing, it
is jumping into 0x00000000 and is not able to find
anything.

My questions are,
1. How can i make sure that, the uncompressing process
is going to start writing the data from 0x00000000.

2. How big a space this uncompressing process needs?
And also how much overall memory is required for
running linux. I just have 8MB SDRAM.

3. What is the next step in the booting process? Which
Device (eth, pci, ide, ???) Initialization?

Your help is appreciated.

thanks,
Prakash


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

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: Serious Problem: After Uncompresseing Linux..., what's next
@ 2002-12-23  8:35 Jaap-Jan Boor
  0 siblings, 0 replies; 26+ messages in thread
From: Jaap-Jan Boor @ 2002-12-23  8:35 UTC (permalink / raw)
  To: pkanthi; +Cc: linuxppc-embedded, gary


>
> Hi Folks,
>
> I think finally i have idea as to why boot process was
> failing. After uncompressing linux image, the code
> execution was aborting with an ESR value of
> 0x08000000, which stands for "ILLEGAL INSTRUCTION".
> When i checked the instruction causing this, i figured
> that, 'tlbia' (0x00002384) is the culprit. tlbia is a
> valid instruction in PPC405 instruction set.
>
> I still don;t understand, how come it is getting
> rejected. Am i missing anything? Can anyone please
> throw some light on this?

I don't know anything about your cpu (405) but make
sure you understand any prerequisites for the tlbia
instruction or what it's function is (may be your
instruction cache is totally invalid after this
instruction or your immu settings are not correct)

Jaap-Jan

>
> thanks,
> Prakash
>
>
>
>
> --- Prakash kanthi <pkanthi@yahoo.com> wrote:
> >
> > Gary,
> >
> > I really appreciate your help. Here is what i am
> > doing. Sorry it is little long. But was necessasry.
> >
> > 1. I have a boot loader(xrom.elf) of size around
> > 400KB
> > which basically have menu driven tests along with an
> > option to jump to linux kernel(zImage.initrd.elf).
> >
> > 2. xrom.elf is compiled to start at 0xfffffffc and
> > jump to 0x00000000 to have rest of functionality.
> > zImage.initrd.elf is compiled to start at
> > 0x00400000.
> >
> > 3. I load zImage.initrd.elf first and then xrom.elf
> > (xilinx tool makes sure that they are loaded to
> > corresponding locations based on ELF header).
> >
> > 4. After loading both, i start running xrom.elf and
> > it
> > shows up a menu in my UART terminal. I jump to linux
> > (0x00400000).
> >
> > 5. I see that linux is basically reading the board
> > info, setting UART, prints some boot messages onto
> > it
> > and then performs uncompression (gunzip function
> > takes
> > the rest of linux image and puts the uncompressed
> > code
> > starting from 0x0).
> >
> > 6. Up untill, everything is ok. After this, control
> > jumps to 0x0 and starts executing.
> >
> > My problems are,
> >
> > a. Once the uncompression process is done, i am not
> > sure if the image is copied to 0x0 (i do see value
> > changes in memory starting from 0x0).
> > b. As uncompression process is embedded into
> > zImage.initrd.elf, i do not objdump does not tell me
> > which function it is going to execute after
> > uncompression.
> >
> > Please suggest.
> >
> > Thanks,
> > Prakash
> >
> >
> >
> >
> >
> > --- Gary Thomas <gary@chez-thomas.org> wrote:
> > > On Fri, 2002-12-20 at 09:48, Prakash kanthi wrote:
> > > > I do have xilinx tools and i am working with
> > their
> > > V2P
> > > > product. I completely understands what you are
> > > said.
> > > > But the problem is, right after the
> > uncompression
> > > and
> > > > cpy to 0x00000000, i loose total control because
> > i
> > > > don't have any clue what is getting executed.
> > > >
> > >
> > > What sort of things can you do with the Xilinx
> > > tools?  Is
> > > there any way to set [hardware] breakpoints or
> > > single step?
> > >
> > > > And also, i have my boot monitor code at
> > > 0x00000000,
> > > > before uncompress process overwrites it. I see
> > > that
> > > > some of that code is getting executed after jump
> > > to
> > > > 0x0. I reason i am overwriting 0x0 is because, i
> > > only
> > > > have 8MB RAM.
> > > >
> > >
> > > 8M should be plenty of RAM.
> > >
> > >
> >
> >
> >
>
>
>

---
J.G.J. Boor
Lucent Technologies Nederland b.v.	Room:  BE-525
Optical Networking Group TMS Data 	Phone: +31 (0)35 687 4721
Larenseweg 50, P.O. Box 1168, 		Fax:   +31 (0)35 687 5976
1200 BD, Hilversum, The Netherlands	mailto:jjboor@lucent.com


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

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

end of thread, other threads:[~2003-01-16  8:06 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-19 16:10 After Uncompresseing Linux..., what's next James Don
2002-12-19 16:39 ` Tom Rini
2002-12-20 16:14 ` Prakash kanthi
2002-12-20 16:32   ` Prakash kanthi
2002-12-20 16:49     ` Jim Potter
2002-12-20 17:02       ` Jim Potter
2002-12-20 16:38   ` Gary Thomas
2002-12-20 16:48     ` Prakash kanthi
2002-12-20 16:52       ` Gary Thomas
2002-12-20 17:06         ` Prakash kanthi
2002-12-20 17:22           ` Gary Thomas
2002-12-20 21:59           ` Serious Problem: " Prakash kanthi
2002-12-20 16:47   ` Jim Potter
2002-12-26 22:47   ` Smallest Initrd (ram disk) Prakash kanthi
2002-12-26 22:55     ` Jim Potter
2003-01-13  2:15       ` Prakash kanthi
2003-01-13  7:55         ` Wolfgang Denk
2003-01-14 18:42           ` ramdisk mount problem Prakash kanthi
2003-01-14 18:57             ` Wolfgang Denk
2003-01-15  8:33             ` Frederic Soulier
2003-01-16  4:49               ` Ramdisk details; execve("/bin/sh") output Prakash kanthi
2003-01-16  5:57                 ` Hi Anish
2003-01-16  8:00                   ` Hi Wolfgang Denk
2003-01-16  8:06                 ` Ramdisk details; execve("/bin/sh") output Wolfgang Denk
2002-12-27  0:22     ` Smallest Initrd (ram disk) Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2002-12-23  8:35 Serious Problem: After Uncompresseing Linux..., what's next Jaap-Jan Boor

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