Forum Discussion

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

problem with custom board

Hello everybody!

I try out to run Linux with MMU on a custom board with EP3C25 Cyclone III FPGA. (interrupt vector is in sdram, irq 0 is set to sys_clk_timer)

I successfully started a simple "hello world" in niosII eds with my sopc configuration (without mmu) without any problems.

Then I followed the description on nioswiki.com to create a linux image (Linux for NiosII Processor with mmu).

I changed nios.h/config.c to fix compiler errors (using defines of custom_fpga.h).

But after downloading the image to external sdram and starting terminal I always get the following error message:

[NiosII EDS]$ nios2-download -g zImage.initramfs.gz

Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

Pausing target processor: OK

Initializing CPU cache (if present)

OK

Downloaded 2890KB in 49.6s (58.2KB/s)

Verified OK

Starting processor at address 0xC0D00000

/cygdrive/c/Data/Transfer

[NiosII EDS]$ nios2-terminal

nios2-terminal: connected to hardware target using JTAG UART on cable

nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0

nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

Uncompressing Linux... Ok, booting the kernel.

Linux version 2.6.30-00512-g81d0c3c-dirty (vadmin@vadmin) (gcc version 4.1.2)# 1

68 Mon Apr 12 01:08:45 EDT 2010

console [early0] enabled

Early printk initialized

Linux/Nios II-MMU

init_bootmem_node(?,0xb99, 0x800, 0x1000)

free_bootmem(0xb99000, 0x467000)

reserve_bootmem(0xb99000, 0x100)

Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2032

Kernel command line:

NR_IRQS:32

PID hash table entries: 32 (order: 5, 128 bytes)

Dentry cache hash table entries: 1024 (order: 0, 4096 bytes)

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)

We have 4096 pages of RAM

Memory available: 4424k/3681k RAM, 0k/0k ROM (1017k kernel code, 2663k data)

Calibrating delay loop... 11.87 BogoMIPS (lpj=59392)

Mount-cache hash table entries: 512

init_BSP(): registering device resources

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

Have i missed anything?
No RepliesBe the first to reply