Forum Discussion
Altera_Forum
Honored Contributor
21 years ago<div class='quotetop'>QUOTE </div>
--- Quote Start --- I think the zones_size[ZONE_NORMAL] shall be the actual size of your sram. and the hole for DMA_ZONE shall be 1G-128M. Of course all sizes are in pages. But I have never tried this, so not quite sure about this.[/b] --- Quote End --- I think I'm getting closer --- new panic message below. It seems to now be recognizing the 128MB in ZONE_DMA, and 16MB in ZONE_NORMAL, but it's still hiccupping near the end of the boot process. Any thoughts? Thanks again. Ryan uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. KERNEL -> TEXT=0x40000000-0x40132cb0 DATA=0x40132cb0-0x40160000 BSS=0x40179350-0 x4017937d KERNEL -> MEM=0x4017a000-0x41000000 STACK=0x41000000-0x41000000 setup_arch: No persistant network settings signature at 43FF0000 start_mem is 0x4017a000 virtual_end is 0x41000000 Built 1 zonelists Kernel command line: root=/dev/mtdblock0 ro PID hash table entries: 1024 (order: 10, 16384 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Mem_init: start=4017a000, end=41000000 Memory available: 6264k/16384k RAM, 0k/0k ROM (1227k 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 Loading Quantapoint LIDAR Processor Driver v. 0.1 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 TCP: Hash tables configured (established 524288 bind 65536) NET: Registered protocol family 1 NET: Registered protocol family 17 VFS: Mounted root (romfs filesystem) readonly. Freeing unused kernel memory: 48k freed (0x40160000 - 0x4016b000) Warning: unable to open an initial console. sh: page allocation failure. order:5, mode:0xd0 Stack from 40b4fd58:<0> <0> 00000005<0> 4002dc2c<0> 00000000<0> 00000010<0> 00000000<0> 00000001< 0> 000000d0<0> 000000d0<0> <0> 0000000d<0> 40182e6c<0> 40182e60<0> 409f00a0<0> 40182e60<0> 40a06400< 0> 4002dc5c<0> 40031a6c<0> <0> 00000000<0> 40032318<0> 00000011<0> 00009b50<0> 00004036<0> 4013582c< 0> 4017e620<0> 00000001<0> <0> 000119b6<0> 00000001<0> 40031f68<0> 00000000<0> 40037cec<0> deadbe00< 0> 00000000<0> 00000000<0> <0> 00000080<0> 4099ccc0<0> 00000001<0> 0000c514<0> 000012b0<0> 00000004< 0> 40a2dba0<0> ffffe000<0> <0> 4004a060<0> 40047644<0> 00006873<0> 00000000<0> 40b4e000<0> 00000000< 0> 00000002<0> 401353b0<0> Call Trace:<0> <0> [<400681c0>]<0> [<4002d698>]<0> [<40047fe0>]<0> [<40048238>]<0> <0> [<40004558>]<0> [<400030d0>]<0> [<40002b70>]<0> Allocation of length 72118 from process 12 failed DMA per-cpu: cpu 0 hot: low 16, high 48, batch 8 cpu 0 cold: low 0, high 16, batch 8 Normal per-cpu: cpu 0 hot: low 2, high 6, batch 1 cpu 0 cold: low 0, high 2, batch 1 HighMem per-cpu: empty Free pages: 204kB (0kB HighMem) Active:3 inactive:0 dirty:0 writeback:0 unstable:0 free:51 slab:396 mapped:0 pag etables:0 DMA free:0kB min:340kB low:680kB high:1020kB active:0kB inactive:0kB present:131 072kB protections[]: 0 0 0 Normal free:204kB min:40kB low:80kB high:120kB active:12kB inactive:0kB present: 16384kB 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: 7*4kB 8*8kB 5*16kB 1*32kB 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048 kB 0*4096kB = 204kB HighMem: empty Unable to allocate RAM for process text/data, errno 12 munmap of non-mmaped memory by process 12 (sh): 4017e640 Kernel panic - not syncing: Attempted to kill init!