- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi everyone,
I am working on Nios2-linux with MMU for Stratix 2- EP2S60F672C3N. The linux-2.6 is using kernel 3.1.0-rc7. It uses Device Tree. I followed http://www.alterawiki.com/wiki/devicetree. Everything else is set to default. Got error during make. :cry:. So, if anyone have successfully compiled the nios2-linux with mmu and downloaded it to FPGA board, could you please help me. There is no proper tutorial available. Thank you. MoganeshLink Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would be much more clear if You'd use the pastebin.com and post the log with the error. Remember to post all the settings You've used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
With help and guidance, i managed to compile it. But still I do not know what to select and not select in menuconfig. But, somehow I managed to compile it. Problem occur when nios2-terminal.
nuar@nuar-desktop:~/Programs/nios2-linux/uClinux-dist/images$ nios2-download -g zImage.initramfs.gz
rpm: Command not found.
Using cable "USB-Blaster ", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 3942KB in 34.5s (114.2KB/s)
Verified OK
Starting processor at address 0xC3500000
nuar@nuar-desktop:~/Programs/nios2-linux/uClinux-dist/images$ nios2-terminalnios2-terminal: connected to hardware target using JTAG UART on cable
nios2-terminal: "USB-Blaster ", device 1, instance 0
nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)
Linux version 3.1.0-rc7-01765-g9b1c815 (nuar@nuar-desktop) (gcc version 4.1.2)# 18 Thu Sep 29 13:50:51 MYT 2011
bootconsole enabled
early_console initialized at 0xe4001020
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat c2550f8c, node_mem_map c25667a0
DMA zone: 64 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 8128 pages, LIFO batch:0
pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
pcpu-alloc: 0
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128
Kernel command line: init=/bin/init
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Memory available: 26920k/5522k RAM (2189k kernel code, 3332k data)
NR_IRQS:32
Calibrating delay loop... 77.82 BogoMIPS (lpj=155648)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
Switching to clocksource timer
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 52
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
ttyJ0 at MMIO 0x4001020 (irq = 1) is a Altera JTAG UART
console enabled, bootconsole disabled
console enabled, bootconsole disabled
mousedev: PS/2 mouse device common for all mice
TCP cubic registered
NET: Registered protocol family 17
Freeing unused kernel memory: 2740k freed (0xc2225000 - 0xc24d2000)
Oops: Exception in kernel mode, sig: 4
r1: c2000cc0 r2: 00000000 r3: 00004ff8 r4: 80000000
r5: 00004b98 r6: 00000468 r7: ffffe000 r8: 00000002
r9: c381c8e8 r10: c255bfe0 r11: 00000000 r12: 00000001
r13: c3058de0 r14: c255cbb4 r15: 00000001
ra: c0001004 fp: 00000006 sp: c3c19d5c gp: 00000000
ea: c20b5d24 estatus: 00000001
Kernel panic - not syncing: Attempted to kill init!
http://pastebin.com/1ie5e906 Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Check your command line args, you may not tell the kernel where the ramdisk is, so the kernel can not find the init binary.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page