mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Luke -Jr <luke@dashjr.org>
To: "linux-kernel" <linux-kernel@vger.kernel.org>
Subject: bcm33xx port
Date: Sat, 7 Jun 2008 20:19:38 -0500	[thread overview]
Message-ID: <200806072019.42108.luke@dashjr.org> (raw)

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

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.

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)

Thanks,

Luke

[-- Attachment #2: kernel.log --]
[-- Type: text/x-log, Size: 3671 bytes --]

Linux version 2.6.25.4-svn11266-dirty8 (luke-jr@tsuruki) (gcc version 4.1.2 (Gentoo 4.1.2 p1.1)) #105 Fri Jun 6 22:46:18 CDT 2008
Broadcom BCM963xx prom init
Boot loader is : CFEv2
console [early0] enabled
CPU revision is: 00028000 (Broadcom BCM33xx)
Determined physical RAM map:
 memory: 00fa0000 @ 00000000 (usable)
User-defined physical RAM map:
 memory: 007a1200 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal          0 ->     1953
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0:        0 ->     1953
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 1938
Kernel command line: console=ttyS0,38400 mem=8000000
Primary instruction cache 8kB, VIPT, 2-way, linesize 16 bytes.
Primary data cache 4kB, 2-way, VIPT, no aliases, linesize 16 bytes
Synthesized clear page handler (26 instructions).
Synthesized copy page handler (46 instructions).
PID hash table entries: 32 (order: 5, 128 bytes)
calculating r4koff... 0000fa00(64000)
CPU frequency 32.00 MHz
irq 8: nobody cared (try booting with the "irqpoll" option)
Call Trace:
[<80017124>] dump_stack+0x8/0x34
[<80050a74>] __report_bad_irq+0x44/0xd8
[<80050dcc>] note_interrupt+0x2c4/0x308
[<80051fac>] handle_level_irq+0xfc/0x120
[<80010a18>] plat_irq_dispatch+0x190/0x1c8
[<80011484>] ret_from_irq+0x0/0x4
[<80110b68>] start_kernel+0x228/0x3b4

handlers:
[<8004f8b0>] (no_action+0x0/0x8)
Disabling IRQ #8
console handover: boot [early0] -> real [ttyS0]
Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory: 5992k/7812k available (849k kernel code, 1820k reserved, 171k data, 592k init, 0k highmem)
Calibrating delay loop (skipped)... 0.00 BogoMIPS preset
Mount-cache hash table entries: 512
Broadcom BCM963xx Watchdog timer
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
bcm963xx_serial driver v2.0
brd: module loaded
Freeing unused kernel memory: 592k freed
Warning: unable to open an initial console.
Reserved instruction in kernel code[#1]:
Cpu 0
$ 0   : 00000000 10000400 00000000 004e1ffc
$ 4   : 004e014c 00000000 00000ef4 00000ef4
$ 8   : 00000034 004e0fcc 004e010c 801a15c0
$12   : 00080000 9696cd55 0000014a 000058ad
$16   : 004e5cac 801c9600 801ca780 00000000
$20   : 004e010c 801d9e90 004e010c 00000006
$24   : f1c27a83 8001b170
$28   : 801d8000 801d9c88 004e010c 800aa1fc
Hi    : 00000000
Lo    : 00000000
epc   : 800c66f4 __bzero+0x38/0x164     Not tainted
ra    : 800aa1fc padzero+0x5c/0x74
Status: 10000403    KERNEL EXL IE
Cause : 00808028
PrId  : 00028000 (Broadcom BCM33xx)
Process init (pid: 1, threadinfo=801d8000, task=801d7868)
Stack : 800aafcc 800aabec 801ca780 00000080 80083b00 80083ad0 00006012 00000000
        ffffffff 004e010c 004dd2d4 0049d2d4 00400000 00000000 801d7868 8007ffc4
        00000000 00000000 004dd2d4 0049d2d4 00400000 801d9cdc 004e5cac 80495600
        00000001 00000000 00400000 801f6ea0 00000000 8078b980 8010cd70 801ca780
        fffffffe 8010cae0 801d9e90 fffffff8 80110000 00000000 80100000 8007bf54
        ...
Call Trace:
[<800c66f4>] __bzero+0x38/0x164
[<800aa1fc>] padzero+0x5c/0x74
[<800aafcc>] load_elf_binary+0x948/0x145c
[<8007bf54>] search_binary_handler+0x78/0x18c
[<800aa0dc>] load_script+0x25c/0x270
[<8007bf54>] search_binary_handler+0x78/0x18c
[<8007df84>] do_execve+0x18c/0x258
[<8001570c>] sys_execve+0x4c/0x78
[<80018390>] stack_done+0x20/0x3c


Code: 30c8003c  01244821  24840040 <ac85ffc0> ac85ffc4  ac85ffc8  ac85ffcc  ac85ffd0  ac85ffd4
Kernel panic - not syncing: Attempted to kill init!

             reply	other threads:[~2008-06-08  1:26 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-08  1:19 Luke -Jr [this message]
2008-06-08  2:04 ` Ben Nizette
2008-06-08  2:13 Luke -Jr
2008-06-08  3:19 ` Maciej W. Rozycki
2008-06-08  4:32   ` Luke -Jr
2008-06-08 12:53     ` Maciej W. Rozycki
2008-06-08 18:56       ` Luke -Jr
2008-06-08 19:53         ` Kevin D. Kissell
2008-06-08 20:14           ` Maciej W. Rozycki
2008-06-08 20:20           ` Luke -Jr
2008-06-08 19:59         ` Maciej W. Rozycki
2008-06-08 20:27           ` Luke -Jr
2008-06-08 22:13             ` Maciej W. Rozycki
2008-06-08 23:36               ` Luke -Jr
2008-06-09  6:40                 ` Geert Uytterhoeven
2008-06-09  6:05               ` Luke -Jr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200806072019.42108.luke@dashjr.org \
    --to=luke@dashjr.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®