Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.

linux kernel coredump...

Altera_Forum
Honored Contributor I
772 Views

Mr Kazu: 

Hi. 

I'm sorry that issue of nios2-download command is not clear. 

The methord of making​ nios2-download command run well is to use the 1 core instead of 4 cores. The proj 'DE2_115_NIOS_HOST_MOUSE_VGA' was modeled on 'NiosII_Quad_Core' with the same components & their addresses. so the nios2-download command works fine. When the linux kernel Image was downloaded, I program the NiosII_Quad_Core.sof to the DE2-115 board.4 cores with mmu +adaptor could read the kernel from the flash and work well. 

I forget that I have changed the reset vector of the boot cpu in the proj 'NiosII_Quad_Core' to boot cpu from the flash instead of memory_monitor according to your web site. Is it right?  

So the core dumped contents are the same for both 'nios2-terminal < linux.initramfs.srec' and 'nios2-download -g zImage'. Could you give some clue ?Thank you. 

&#9474; &#9474; NiosII FPGA configuration (CUSTOM_FPGA) ---> &#9474; &#9474; &#9474; &#9474; HW mul support &#9474; &#9474; &#9474; &#9474; HW mulx support &#9474; &#9474; &#9474; &#9474; HW div support &#9474; &#9474; &#9474; &#9474; (0x10000000) Offset address for uImage.flash &#9474; &#9474; &#9474; &#9474; Passed kernel command line from u-boot &#9474; &#9474; &#9474; &#9474; (0x00500000) Link address offset for booting &#9474; &#9474; &#9474; &#9474; GPIO interface &#9474; &#9474; &#9474; &#9474; < > Enable NiosII PIO driver &#9474; &#9474; &#9474; &#9474; Symmetric multi-processing support &#9474; &#9474; &#9474; &#9474; (4) Maximum number of CPUs (2-32) &#9474; &#9474; &#9474; &#9474; Use Multicore Adapter for SMP support r1: c026ec90 r2: c0354000 r3: c0354000 r4: c0354000 r5: 00000001 r6: 00000000 r7: 00000000 r8: 00000000 r9: 00000008 r10: 00000171 r11: c035aacc r12: c0356a3c r13: c0356a40 r14: ffffffe4 r15: c020d81c ra: c026f520 fp: deadbeef sp: c025ef9c gp: deadbeef ea: c026f614 estatus: 00000000 Unaligned access from kernel mode, this might be a hardware problem, dump registers and restart the instruction BADADDR 0xdeadbf0f cause 7 op-code 0xb800283a kindly regards
0 Kudos
1 Reply
Altera_Forum
Honored Contributor I
68 Views

Hi, 

 

 

--- Quote Start ---  

r1: c026ec90 r2: c0354000 r3: c0354000 r4: c0354000 r5: 00000001 r6: 00000000 r7: 00000000 r8: 00000000 r9: 00000008 r10: 00000171 r11: c035aacc r12: c0356a3c r13: c0356a40 r14: ffffffe4 r15: c020d81c ra: c026f520 fp: deadbeef sp: c025ef9c gp: deadbeef ea: c026f614 estatus: 00000000 Unaligned access from kernel mode, this might be a hardware problem, dump registers and restart the instruction BADADDR 0xdeadbf0f cause 7 op-code 0xb800283a  

--- Quote End ---  

 

 

Please get the objdump file from your 'vmlinux' and check the instruction that is located at '0xc026f614'. The opcode is really '0xb800283a' (0x**00283a means the 'ret' instruction, but 'b8' means that it refers r23 not ra) ? The exception code '7' means that the Nios2 CPU will jump to misaligned target '0xdeadbf0f'. 

 

Kazu
Reply