Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Réf. : Compiling a 2.6 kernel for Mips
@ 2005-09-28 13:01 Florian DELIZY
  2005-09-28 13:38 ` Yoann Allain
  0 siblings, 1 reply; 4+ messages in thread
From: Florian DELIZY @ 2005-09-28 13:01 UTC (permalink / raw)
  To: Yoann Allain; +Cc: linux-mips

[-- Attachment #1: Type: text/plain, Size: 2171 bytes --]

> Hi,

> I am no more a newbie but I still need some help to build kernels :
> I am working on the Wintegra Evaluation Board (WEB777) and I used the 
> 2.4 kernel Wintegra gave me with the patch for that board.
> I tried to adapt the patch for the 2.6 kernel but it doesn't work. I 
> traced the kernel to find it crashed very early before displaying 
anything.
> In fact the host processor makes an address and tries to read it but 
> this makes an exception :

> * Exception 0x02 (user) : TLB (load or instruction fetch) *
> * in address: 80101ea8
> ClockDiv2+0xe38:
> [80101ea8] 8c820000 lw          r2,0x0000(r4)


> r0(zero): 00000000 r1(AT)  : 1000fc00 r2(v0)  : 0000001c r3(v1)  : 
80360000
> r4(a0)  : 0000001c r5(a1)  : 803919f0 r6(a2)  : 0000000d r7(a3)  : 
8038df8c

That would help a lot if you could objdump your kernel and give us 10 
instructions before (at least) 
and 10 instructions after it, you could try an :

mips-linux-objdump -DSz vmlinux | grep -U 20 '^\[80101ea8\]'

and send the output (that should ouput around 20 lines (which will 
hopefully contain some C code also,
assuùing that you compiled the code with debug informations. Moreover you 
can also tell us in which 
symbol (function) is located the address 0x80101ea8.


> I think this is a problem of host processor misconfiguration, but don't 
> find out exactly what it is... To make the address in R4, the processor 
> reads some zeroes where in 2.4 kernel, it doesn't and the address read 
> in 2.4 is something like 0xbf010f1c.
> I don't know if this can help but here are the few functions before 
crash:

> kernel_entry
>    J start_kernel
>             cpu_probe() (WEB777 patch)
>             prom_init() (WEB777 patch)
>                   setup_prom_printf() (WEB777 patch)
>                   wds_prom_printf() (WEB777 patch)
>                            putPromChar() (WEB777 patch)
>                            --> CRASH

You should also start to figure out which variable/pointer anything is 
consulted to get this adress (0x0000001c) 
which might then help to understand you're problem.

Regards

Florian Delizy


[-- Attachment #2: Type: text/html, Size: 3256 bytes --]

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

end of thread, other threads:[~2005-09-29 12:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 13:01 Réf. : Compiling a 2.6 kernel for Mips Florian DELIZY
2005-09-28 13:38 ` Yoann Allain
2005-09-29  6:21   ` Brett Foster
2005-09-29 12:08     ` Yoann Allain

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox