Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12608 Discussions

uClinux Unhandled exception #0 in kernel mode @web_server example

Altera_Forum
Honored Contributor II
1,074 Views

Hello. 

I used Cyclone III web_server example to launch uClinux on my Cyclone III start kit. 

The reference sof & zImage works fine and I can see the uClinux logo. 

But when I compile zImage by myself with dts extrated from reference sopcinfo and download to the starter kit, I got below error. 

I am new to uClinux & niosII and could not find any clue for several days. 

Would you please help me? 

sopcinfo, dts and configuration files are attached. 

Best regards, 

=================== 

$ nios2-download -g images/zImage 

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

Pausing target processor: OK 

Initializing CPU cache (if present) 

OK 

Downloaded 4049KB in 81.8s (49.4KB/s) 

Verified OK  

Starting processor at address 0xC1000000 

 

uClinux-dist$ nios2-terminal 

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

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

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

Linux version 3.5.0-rc4-01329-ga227997 (julycat@july-sie) (gcc version 4.1.2)# 80 Thu Sep 20 16:58:00 CST 2012 

bootconsole [early0] enabled 

early_console initialized at 0xe8002000 

On node 0 totalpages: 8192 

free_area_init_node: node 0, pgdat c0576104, node_mem_map c058c960 

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] 0  

Built 1 zonelists in Zone order, mobility grouping on. Total pages: 8128 

Kernel command line:  

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: 26768k/5670k RAM (2256k kernel code, 3413k data) 

NR_IRQS:64 

Calibrating delay loop...  

Unhandled exception# 0 in kernel mode (badaddr=0x00000100) 

r1: c0235748 r2: fffedb08 r3: fffedb08 r4: c0569eb0 

r5: 00000000 r6: c0569eb0 r7: 00000000 r8: c0580150 

r9: 616c6500 r10: c057bc98 r11: c057b890 r12: 00000000 

r13: c057b891 r14: c057bc9a r15: 79616c65 

ra: 00249474 fp: deadbeef sp: c0565fc4 gp: deadbeef 

ea: 00249484 estatus: 00000001 

opcode: 0x30800017
0 Kudos
0 Replies
Reply