lkml.org 
[lkml]   [2008]   [Jun]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: bcm33xx port
From
Date

On Sat, 2008-06-07 at 20:19 -0500, Luke -Jr wrote:
> I am working on a port for the bcm33xx platform, which includes a MIPS CPU:
> http://wiki.openwrt.org/BroadcomBCM33xxPort
>
> However, I seem to be hitting problems with memory allocation, as
> load_elf_binary is segfaulting inside padzero/__bzero.

Seems to have issues way before that ;-)

>
> This is my first attempt at real Linux kernel development, so if anyone could
> throw me pointers on how I would approach debugging and fixing this problem,
> I'd really appreciate it. (boot log with early printk is attached)

I'm not too up on MIPS but there're a few things in the log which stand
out to me:

Determined physical RAM map:
memory: 00fa0000 @ 00000000 (usable)
User-defined physical RAM map:
memory: 007a1200 @ 00000000 (usable)

Can you confirm these sizes and locations for RAM? Does anything change
if you don't force the size constraint?

CPU frequency 32.00 MHz

Really? Is your bootloader setting the CPU up correctly before handing
control to Linux?

irq 8: nobody cared (try booting with the "irqpoll" option)

What's on IRQ8, should anyone care at this early stage? Did the
bootloader enable this (should it)?

Reserved instruction in kernel code[#1]:

You're compiling with an appropriate -march switch?

Good luck :-)
--Ben.


\
 
 \ /
  Last update: 2008-06-08 04:07    [W:0.032 / U:0.584 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site