Forum Discussion
Altera_Forum
Honored Contributor
20 years agokernel 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 t...
Altera_Forum
Honored Contributor
20 years agoHi Heing and Hippo,
I need some more understanding on this topic, If my nios2_system.h has following <div class='quotetop'>QUOTE </div> --- Quote Start --- ---------------------------------------------------------------------------- # define na_high_res_timer 0x809209e0# define na_high_res_timer_irq 3 # define na_sys_clk_timer 0x80920940# define na_sys_clk_timer_irq 0 /* Redefining high_res_timer -> timer0 */# undef na_high_res_timer# undef na_high_res_timer_irq # define na_timer0 ((np_timer*) 0x809209e0)# define na_timer0_irq 3 ------------------------------------------------------------------------------------------[/b] --- Quote End --- Does this means even na_sys_clk_timer_irq number is 0 (Zero), na_sys_clk_timer_irq is not been used as timer0. And due to same reason I am facing following crashLinux version 2.6.11-uc0 (root@rdvd3) (gcc version 3.4.6)# 9 Thu Jul 13 18:29:12
IST 2006
uClinux/Nios II
Altera Nios II support (C) 2004 Microtronix Datacom Ltd.
setup_arch: No persistant network settings signature at 007F0000
Built 1 zonelists
Kernel command line:
PID hash table entries: 128 (order: 7, 2048 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 14296k/16384k RAM, 0k/0k ROM (1408k kernel code, 486k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
scheduling while atomic: swapper/0x04000002/0
Stack from 0116fdf0:<0>
<0> 04000002<0> 01149fa4<0> 01162438<0> 011620c8<0> 01162434<0> 01160034<
0> 00000000<0> 000000d0<0>
<0> 00000001<0> 00000000<0> 04000000<0> ffffe000<0> 0116fe28<0> 0114b1a4<
0> 01162438<0> 00000000<0>
<0> 00000000<0> 0102fae0<0> 00000000<0> 00000000<0> 00000010<0> 00000010<
0> 00000000<0> fffffff4<0>
<0> 011cd0d0<0> 00000b00<0> ffffe000<0> 01160034<0> 00000b00<0> 0120ad60<
0> 00000001<0> 0102fcec<0>
<0> 01009568<0> 0121e7e0<0> 00000010<0> 00000001<0> 000000d0<0> ffffffff<
0> 0116ff28<0> 00000000<0>
<0> deadbeef<0> deadbeef<0> 00000000<0> 00000000<0> 0116ff28<0> 00000001<
0> 00000b00<0> ffffffff<0>
Call Trace:<0>
<0> <0> <0> <0> <0>
<0> <0> <0> <0> <0>
<0> <0> <0> <0> <0>
<0> <0> <0> <0> <0>
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 14220kB (0kB HighMem)
Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:3555 slab:21 mapped:0 pa
getables:0
DMA free:14220kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:16384k
B pages_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pag
es_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
HighMem free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pa
ges_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
DMA: 2097664*4kB 1*8kB 0*16kB 0*32kB 0*64kB 1*128kB 1*256kB 1*512kB 1*1024kB 0*2
048kB 3*4096kB = 8404872kB
Normal: empty
HighMem: empty
Kernel panic - not syncing: Out of memory and no killable processes... OR some times I get following bootup crash if I change vmlinux size (add or remove files from my file system, or add-remove any device support) oom-killer: gfp_mask=0xd0
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 12148kB (0kB HighMem)
Active:0 inactive:18755125 dirty:0 writeback:0 unstable:0 free:3037 slab:287 map
ped:0 pagetables:0
DMA free:12148kB min:512kB low:640kB high:768kB active:0kB inactive:75020500kB p
resent:16384kB pages_scanned:457899 all_unreclaimable? no
lowmem_reserve: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pag
es_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:
0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
DMA: 1*4kB 2*8kB 2097664*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 1*2
048kB 2*4096kB = 33574772kB
Normal: empty
HighMem: empty
oom-killer: gfp_mask=0xd0
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 12148kB (0kB HighMem)
Active:0 inactive:18755125 dirty:0 writeback:0 unstable:0 free:3037 slab:287 map
ped:0 pagetables:0
DMA free:12148kB min:512kB low:640kB high:768kB active:0kB inactive:75020500kB p
resent:16384kB pages_scanned:457899 all_unreclaimable? no
lowmem_reserve: 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pag
es_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
HighMem free:0kB min:128kB low:160kB high:192kB active:0kB inactive:0kB present:
0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve: 0 0 0
DMA: 1*4kB 2*8kB 2097664*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 1*1024kB 1*2
048kB 2*4096kB = 33574772kB
Normal: empty
HighMem: empty
oom-killer: gfp_mask=0xd0
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu: empty
HighMem per-cpu: empty
.
.
..
.
. Is this crash none other than because of same reason. waiting for reply, thanks, Ankur