linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Problem porting linux 2.6 on IBM405EP based boards
@ 2006-12-13 17:26 Vijay Sampath
  2006-12-13 18:34 ` Scott Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Vijay Sampath @ 2006-12-13 17:26 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,

I am trying to port a timesys reference kernel based on 2.6.16 to our
IBM 405 EP based board. I enabled early console print and some debug
prints, and after initial configuration, snippet A below is as far as
the bootup got.

Then in head_4xx.S, I commented out the tlbia instruction (right before jump
to start_kernel). This was not because I knew what I was
doing, but the debugger indicated that I was having a TLB exception,
and that is how the code is in our working 2.4 port of the kernel.

After this, the code started executing start_kernel, but stopped
shortly thereafter (snippet B). After this every time I press a key,
the following line gets printed:

$T0740:30300a00;01:c0621fb0;#45

Its possible that I have something configured wrong, but
any guidance on what that message could possibly mean would be
appreciated. Also any information on how the tlbia instruction was
working on other platforms would also help.

Thanks,

Vijay


========snippet A======================
Transfering control to downloaded image at [0x400000]
loaded at:     00400000 00612134
zimage at:     0040582D 00524D87
initrd at:     00525000 0060FBA5
avail ram:     00613000 00800000

Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit

========snippet B======================
Transfering control to downloaded image at [0x400000]
loaded at:     00400000 00612134
zimage at:     0040582D 00524D87
initrd at:     00525000 0060FBA5
avail ram:     00613000 00800000

Linux/PPC load:
Uncompressing Linux...done.
Now booting the kernel
id mach(): done
MMU:enter
MMU:hw init
MMU:mapin
MMU:setio
MMU:exit
setup_arch: enter
setup_arch: bootmem
paging: exit
tb_ticks_per_jiffy: 512000


$T0740:30300a00;01:c0621fb0;#45

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

* Re: Problem porting linux 2.6 on IBM405EP based boards
  2006-12-13 17:26 Problem porting linux 2.6 on IBM405EP based boards Vijay Sampath
@ 2006-12-13 18:34 ` Scott Wood
  2006-12-14  3:03   ` Vijay Sampath
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Wood @ 2006-12-13 18:34 UTC (permalink / raw)
  To: Vijay Sampath; +Cc: linuxppc-embedded

Vijay Sampath wrote:
> After this, the code started executing start_kernel, but stopped
> shortly thereafter (snippet B). After this every time I press a key,
> the following line gets printed:
> 
> $T0740:30300a00;01:c0621fb0;#45
> 
> Its possible that I have something configured wrong, but
> any guidance on what that message could possibly mean would be
> appreciated.

That looks like output from a GDB stub.  You may want to try turning off 
GDB support in your kernel in order to (probably) get an oops message 
instead (you may need to do something special to hook printk up to the 
early debug console).  Alternately, you could try attaching to it with GDB.

-Scott

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

* Re: Problem porting linux 2.6 on IBM405EP based boards
  2006-12-13 18:34 ` Scott Wood
@ 2006-12-14  3:03   ` Vijay Sampath
  0 siblings, 0 replies; 3+ messages in thread
From: Vijay Sampath @ 2006-12-14  3:03 UTC (permalink / raw)
  To: Scott Wood; +Cc: linuxppc-embedded

Oh. KGDB. Makes perfect sense. Cool will try to setup a serial
debugger or try and enable printks or try and debug with emulator with
no kgdb. Currently printks don't work (although ppc specific prints
ppc_md.progress() appear on the console). What does it take to get
printk to work early on? Regardless I have enough to proceed now.

Vijay

On 12/13/06, Scott Wood <scottwood@freescale.com> wrote:
> Vijay Sampath wrote:
> > After this, the code started executing start_kernel, but stopped
> > shortly thereafter (snippet B). After this every time I press a key,
> > the following line gets printed:
> >
> > $T0740:30300a00;01:c0621fb0;#45
> >
> > Its possible that I have something configured wrong, but
> > any guidance on what that message could possibly mean would be
> > appreciated.
>
> That looks like output from a GDB stub.  You may want to try turning off
> GDB support in your kernel in order to (probably) get an oops message
> instead (you may need to do something special to hook printk up to the
> early debug console).  Alternately, you could try attaching to it with GDB.
>
> -Scott
>

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

end of thread, other threads:[~2006-12-14  3:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13 17:26 Problem porting linux 2.6 on IBM405EP based boards Vijay Sampath
2006-12-13 18:34 ` Scott Wood
2006-12-14  3:03   ` Vijay Sampath

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