Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

kernel init problem

Hi

We have developed our own board with an Altera Stratix II and NIOS II Standard CPU. We download the kernel (2.6.16.11) to the SDRAM (32MB) using nios2-download, and nios2-terminal gives us the following output:

uClinux/Nios II

Altera Nios II support © 2004 Microtronix Datacom Ltd.

KERNEL -> TEXT=0x04000000-0x04173da8 DATA=0x04173da8-0x04182000 BSS=0x042520a0-0

x042520cf

KERNEL -> MEM=0x4253000-0x6000000 STACK=0x6000000-0x6000000

No Command line passed

Done setup_arch

Built 1 zonelists

Kernel command line:

trap_init reached

init_IRQ done

PID hash table entries: 256 (order: 8, 4096 bytes)

oom-killer: gfp_mask=0xd0, order=0

Stack from 04181e74:<0>

<0> 00000000<0> 04037d8c<0> 00000000<0> 00000042<0> 041765b0<0> 041765b0<0> 00000000<0> 00000000<0>

<0> 000000d0<0> 04173db0<0> 00000000<0> 0403937c<0> 00000000<0> deadbeef<0> deadbeef<0> 04181f04<0>

<0> deadbeef<0> 00000000<0> 00000000<0> 000000d0<0> 00000000<0> 04181f24<0> 040393e0<0> 04159b38<0>

<0> 00000000<0> 04159b38<0> 0406faec<0> 0424713e<0> deadbeef<0> deadbeef<0> 00000000<0> 04159b38<0>

<0> 00000000<0> 04159b30<0> 040706a0<0> 04181f40<0> 00000000<0> deadbeef<0> deadbeef<0> deadbeef<0>

<0> ffffffff<0> 00000000<0> deadbeef<0> 04000654<0> 00000000<0> 00000001<0> 00000000<0> 00000001<0>

Call Trace:<0>

<0> [<04005728>]<0> [<04004c0c>]<0> [<04005740>]<0> [<04000110>]<0>

Mem-info:

DMA per-cpu:

cpu 0 hot: high 6, batch 1 used:0

cpu 0 cold: high 2, batch 1 used:0

DMA32 per-cpu: empty

Normal per-cpu: empty

HighMem per-cpu: empty

Free pages: 0kB (0kB HighMem)

Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:0 slab:0 mapped:0 pagetables:0

DMA free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:32768kB pages_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0 0

DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0 0

Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0 0

HighMem free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pages_scanned:0 all_unreclaimable? no

lowmem_reserve[]: 0 0 0 0

DMA: 0*4kB 0*8kB 0*16kB 0*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB

0*4096kB = 0kB

DMA32: empty

Normal: empty

HighMem: empty

0 pages of RAM

0 free pages

0 reserved pages

0 pages shared

0 pages swap cached

Kernel panic - not syncing: Out of memory and no killable processes...

We have found out that this has something to do with the call to local_irq_enable() in init/main.c (around line 500). If we comment out this line, the execution continues and stops after the "Memory available: " line. Reported memory on this line is correct.

We have a Altera Stratix II with Nios II evaluation board, and the kernel runs fine on this board.

We have successfully run memory tests using the memtest example included in the Nios II 6.0 examples.

Our board also have an SMC91111 ethernet controller.

Anyone has any ideas on how to solve this problem?

Regards

Hein Gustavsen

12 Replies