linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* bug in early_uart_init()?  linuxppc_2_4_devel
@ 2002-12-18  1:01 Brad Parker
  2002-12-19  0:14 ` After Uncompresseing Linux..., what's next Prakash kanthi
  0 siblings, 1 reply; 16+ messages in thread
From: Brad Parker @ 2002-12-18  1:01 UTC (permalink / raw)
  To: LinuxPPC


I think there's a bug in early_uart_init() from linuxppc_2_4_devel.
It sets up a structure and calls early_serial_setup() which crashes
because "req->line" is huge.

early_uart_init() does

  ...
  serial_req.line = rs_table[0].port;
  ...

and then calls early_serial_setup() in drivers/char/serial.c, which
uses "line" as an index into rs_table. I'm not sure how that's
supposed to work, since in my case port is 0xf40005f0 :-) As a hack I
changed it to

  ...
  serial_req.line = rs_table[0].magic;
  ...

since the magic # is zero (and seems to be often an index). And that
works, but it's a hack.  Seems like "port" will always be a rather
largish hex number.

What's up with ocp_uart?  Is there a document which describes what the
ocp code is trying to do?

This is a for a ibm 403GCX, so the following are defined

CONFIG_40x=y
CONFIG_4xx=y
CONFIG_403GCX=y

-brad

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

^ permalink raw reply	[flat|nested] 16+ messages in thread
* 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; 16+ 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] 16+ messages in thread

end of thread, other threads:[~2002-12-20 17:22 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-18  1:01 bug in early_uart_init()? linuxppc_2_4_devel Brad Parker
2002-12-19  0:14 ` After Uncompresseing Linux..., what's next Prakash kanthi
2002-12-19  1:09   ` Jim Potter
2002-12-19 15:46   ` Tom Rini
  -- strict thread matches above, loose matches on Subject: below --
2002-12-19 16:10 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 16:47   ` Jim Potter

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