linux-mips
[Top] [All Lists]

Re: 2.6.14 - problem with malta

To: "Kishore K" <hellokishore@gmail.com>, "Ralf Baechle" <ralf@linux-mips.org>
Subject: Re: 2.6.14 - problem with malta
From: "Kevin D. Kissell" <kevink@mips.com>
Date: Sat, 25 Mar 2006 16:41:19 +0100
Cc: <linux-mips@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <f07e6e0603240636x5e496cd2g29316d73490aa300@mail.gmail.com> <20060324165518.GA16567@linux-mips.org> <f07e6e0603250122t6328c09coe37141d14396dc12@mail.gmail.com>
Sender: linux-mips-bounce@linux-mips.org
See below...
----- Original Message -----
From: Kishore K
Sent: Saturday, March 25, 2006 10:22 AM
Subject: Re: 2.6.14 - problem with malta

On 3/24/06, Ralf Baechle <ralf@linux-mips.org> wrote:
On Fri, Mar 24, 2006 at 08:06:43PM +0530, Kishore K wrote:

> hi
> I am trying to bring up the malta board (MIPS 4kec), using the 2.6.14 kernel
> downloaded from linux-mips. The kernel is built with malta_defconfig located
> in arch/mips/configs. After loading this kernel, board halts after printing
> "Linux Started
> Config serial console: console=ttyS0, 38400n8r"
>
> Kernel is built with the tool chain based on gcc 3.3.6, binutils 2.14.90.0.8
> .

Note I generally don't test with HJ.Lu's toolchain at all.  It may be
broken for MIPS, I don't know.  Also due to known bugs in older toolchains
the minimal requirement is binutils 2.16; the vanilla FSF version from
ftp.gnu.org will do.

(2.15 will core dump for some configurations but if it doesn't die, it seems
to do just fine)

Thanks for the reply. I observed the same problem  even when compiled with tool chain based on gcc 3.4.4 binutils 2.15.97 and uclibc- 0.9.27. I 'll try with binutils 2.16. Please note that my malta is based on 4kc but not 4kec.
Ah.  That makes a difference.  In your earlier mssage, you said you had a 4KEc.
The malta_defconfig file by default configures the kernel to be built assuming
MIPS32 Release 2.  The 4KEc is Release 2 compatible, but the older 4Kc and
5K cores are not.   You need to tweak the configuration such that
CONFIG_CPU_MIPS32_R1=y but CONFIG_CPU_MIPS32_R2 is not set
(it's the other way around in the malta_defconfig in the linux-mips git),
and, to be on the safe side, such that CONFIG_SYS_HAS_CPU_MIPS32_R2
isn't set.
 
Your failure was so early that I was wondering what on earth could have
nailed you, but if the kernel was built for Release 2, you would have had
"DI" (disable interrupts) instructions very early on, and these could have
caused a fatal early exception on a Release 1 part.
 
            Regards,
 
            Kevin K.
<Prev in Thread] Current Thread [Next in Thread>