Forum Discussion
Altera_Forum
Honored Contributor
8 years agoThank you so much for making it clear. Now I changed the path to only the mmu toolchain. I can perform a build but when I load it to the FPGA there is kernel panic. How can I resolve that?
s$ cp /home/developer/altera/nios2-linux/uClinux-dist/linux-2.6.x/arch/nios2/boot/zImage myzImage
developer@1604:/opt/intelFPGA_lite/16.1/nios2eds$ nios2-download -g myzImage
Using cable "USB-Blaster ", device 1, instance 0x00
Pausing target processor: OK
Initializing CPU cache (if present)
OK
Downloaded 5708KB in 29.4s (194.1KB/s)
Verified OK
Starting processor at address 0xC1000000
developer@1604:/opt/intelFPGA_lite/16.1/nios2eds$ nios2-terminal
nios2-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.5.0-rc4-01329-ga227997-dirty (developer@1604) (gcBUG: failure at /home/developer/altera/nios2-linux/linux-2.6/arch/nios2/kernel/time.c:112/nios2_late_time_init()!
Kernel panic - not syncing: BUG!
I had to make these changes to make it build: To build this thing on 64-bit ubuntu I had to do the following: $ LIBRARY_PATH=/usr/lib/x86_64-linux-gnu append the toolchain-mmu to your path $ PATH=$PATH:/home/developer/altera/nios2-linux/toolchain-mmu/x86-linux2/bin edit line 373 in /home/developer/altera/nios2-linux/linux-2.6/kernel/timeconst.pl and remove the define so that the conditions looks like: if (!@val) comment out line 2 //#define _POSIX_C_SOURCE 199309 in the file /home/developer/altera/nios2-linux/uClinux-dist/user/mtd-utils/36d8de81049c9c908740b690c664b5bd3703ccd6/serve_image.c edit the file /home/developer/altera/nios2-linux/uClinux-dist/vendors/Altera/nios2/Makefile and remove the references to syslog.conf and sc.cfg on line 12 Now the thing builds. But there is kernel panic.