Hi Wentao, thanks again,
I tried your suggestions, and I get a 'page allocation failure' on boot. I've pasted the boot output below. Currently, I'm setting PAGE_OFFSET to 0 and zones_size[ZONE_DMA] to 64M >> PAGE_SHIFT. Also, zones_size[ZONE_NORMAL] is being set to (end_mem - PAGE_OFFSET)>>PAGE_SHIFT. Is this correct?
Thanks in advance,
Ryan
uClinux/Nios II
Altera Nios II support © 2004 Microtronix Datacom Ltd.
KERNEL -> TEXT=0x40000000-0x40132b9c DATA=0x40132ba0-0x40160000 BSS=0x40179350-0
x4017937d
KERNEL -> MEM=0x4017a000-0x41000000 STACK=0x41000000-0x41000000
setup_arch: No persistant network settings signature at 43FF0000
Built 1 zonelists
Kernel command line: root=/dev/mtdblock0 ro
PID hash table entries: 4096 (order: 12, 65536 bytes)
Dentry cache hash table entries: 262144 (order: 8, 1048576 bytes)
Inode-cache hash table entries: 131072 (order: 7, 524288 bytes)
Mem_init: start=4017a000, end=41000000
Memory available: 4608k/16384k RAM, 0k/0k ROM (1226k kernel code, 281k data)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
NET: Registered protocol family 16
Serial: JTAG UART driver $Revision: 1.3 $
ttyJ0 at MMIO 0xc4000808 (irq = 0) is a jtag_uart
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
smc_probe: 75000 Khz Nios
SMSC LAN91C111 Driver (v2.1), (Linux Kernel 2.6)
eth0: SMC91C11xFD(rev:1) at 0x4400a000 IRQ:2 MEMSIZE:8192b NOWAIT:0 ADDR: 00:07:
ed:00:00:00
smc_probe: 75000 Khz Nios
Using anticipatory io scheduler
Microtronix map: Found 1 x16 devices at 0x0 in 16-bit bank
Amd/Fujitsu Extended Query Table at 0x0040
Microtronix map: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
RedBoot partition parsing not available
Using Microtronix development partition definition
Creating 2 MTD partitions on "Microtronix map":
0x00200000-0x00800000 : "romfs"
0x00000000-0x00200000 : "loader/kernel"
NET: Registered protocol family 2
IP: routing cache hash table of 8192 buckets, 64Kbytes
swapper: page allocation failure. order:10, mode:0x20
Stack from 40bd1ef0:<0>
<0> 0000000a<0> 4002dbe8<0> 00000020<0> 00000000<0> 00000001<0> deadbeef<
0> deadbeef<0> deadbeef<0>
<0> deadbeef<0> 4016c2e8<0> 4016c8ac<0> 4013c394<0> 0000000a<0> deadbeef<
0> 4002dc18<0> 4016b1c4<0>
<0> 00000000<0> 00000000<0> 401782f0<0> 4013d284<0> 4013d284<0> 4016b8ec<
0> deadbeef<0> deadbeef<0>
<0> 4016c2e8<0> 4016c8ac<0> 00000000<0> 4016c898<0> 40000274<0> deadbeef<
0> deadbeef<0> deadbeef<0>
<0> 401756a0<0> 400044c4<0> 401756a0<0> deadbeef<0> deadbeef<0> deadbeef<
0> deadbeef<0> 401756a0<0>
<0> 40bd1f98<0> 40008b34<0> deadbeef<0> deadbeef<0> 40002fb4<0> 00000000<
0> 00000000<0> 00000000<0>
Call Trace:<0>
<0> [<40007768>]<0> [<400001b0>]<0> [<40000150>]<0> [<400044b4>]<0>
TCP: Hash tables configured (established 262144 bind 65536)
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:
cpu 0 hot: low 32, high 96, batch 16
cpu 0 cold: low 0, high 32, batch 16
HighMem per-cpu: empty
Free pages: 888kB (0kB HighMem)
Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:222 slab:318 mapped:0 pa
getables:0
DMA free:0kB min:12kB low:24kB high:36kB active:0kB inactive:0kB present:16384kB
protections[]: 0 0 0
Normal free:888kB min:1020kB low:2040kB high:3060kB active:0kB inactive:0kB pres
ent:1064960kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:
0kB
protections[]: 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
Normal: 0*4kB 1*8kB 1*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048
kB 0*4096kB = 888kB
HighMem: empty
DMA per-cpu:
cpu 0 hot: low 2, high 6, batch 1
cpu 0 cold: low 0, high 2, batch 1
Normal per-cpu:
cpu 0 hot: low 32, high 96, batch 16
cpu 0 cold: low 0, high 32, batch 16
HighMem per-cpu: empty
Free pages: 888kB (0kB HighMem)
Active:0 inactive:0 dirty:0 writeback:0 unstable:0 free:222 slab:318 mapped:0 pa
getables:0
DMA free:0kB min:12kB low:24kB high:36kB active:0kB inactive:0kB present:16384kB
protections[]: 0 0 0
Normal free:888kB min:1020kB low:2040kB high:3060kB active:0kB inactive:0kB pres
ent:1064960kB
protections[]: 0 0 0
HighMem free:0kB min:128kB low:256kB high:384kB active:0kB inactive:0kB present:
0kB
protections[]: 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
Normal: 0*4kB 1*8kB 1*16kB 1*32kB 1*64kB 0*128kB 1*256kB 1*512kB 0*1024kB 0*2048
kB 0*4096kB = 888kB
HighMem: empty
Kernel panic - not syncing: Out of memory and no killable processes...