Forum Discussion
Altera_Forum
Honored Contributor
16 years agonios2-linux on DE0 (Cyclone III /EP3C16F484)
Hi,
today I wanted to try out running linux on my DE0 board [1] which I thought should be possible. I followed the tutorial on [2] which uses also a cyclone III. Compiling the source and so on -- using the default settings -- went quite fine, however when downloading the linux.initramfs.gz to the board I get a download error due to failed verification similar to this user here: [3] So I tried using compiling the source with custom-fpga.h - however this fails horribly due to several missing defines :/ Can somebody perhaps help me creating a valid SOPC file which is compatible with the nios2-linux for my board? Which components are absolutely necessary for linux to run on niosII ? Help is really appreciated as I tried to get it working for the last few days (and creating/modifing many many systems ://) Thanks!11 Replies
- Altera_Forum
Honored Contributor
Here are the links - wasn't allowed to post them in the post above.
[1] http://de0.terrasic.com [2] http://www.nioswiki.com/linux . [3] http://www.alteraforum.com/forum/showthread.php?t=19667 sorry for the inconvenience - Altera_Forum
Honored Contributor
Hi,
I think that components that are necessary to run uclinux with MMU are: 1-CPU 2-OnChip_Memory 3-Sdram 4-Timer 5-Jtag_Uart Once you have compiled the project follow the second link you have posted of nioswiki, it's very well explained I think. I hope that I have helped you - Altera_Forum
Honored Contributor
Hey,
yes thank you very much. Now I'm getting these errors
Where do I get the right values for these from ? J ust copy them from the default_mmu.h and hope the best? Unfortunately they aren't defined in my custom_fpga.h ://data2/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c: In function 'main': /data2/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: 'KERNEL_REGION_BASE' undeclared (first use in this function) /data2/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: (Each undeclared identifier is reported only once /data2/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:134: error: for each function it appears in.) /data2/nios2-linux/linux-2.6/arch/nios2/kernel/asm-offsets.c:136: error: 'FAST_TLB_MISS_EXCEPTION_ADDR' undeclared (first use in this function) - Altera_Forum
Honored Contributor
Ah - adding the tightly coupled instruction / data masters and recreating the system it worked and the system compiled quite fine - even downloading worked.
However after downloading and attaching a nios2-terminal nothing is displayed :/
Any ideas?/cygdrive/c/altera/DE0_NIOS_SDCARD $ nios2-download -g linux.initramfs.gz Using cable "USB-Blaster ", device 1, instance 0x00 Pausing target processor: OK Initializing CPU cache (if present) OK Downloaded 2108KB in 36.6s (57.5KB/s) Verified OK Starting processor at address 0xC1800000 /cygdrive/c/altera/DE0_NIOS_SDCARD $ nios2-terminal.exe 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) - Altera_Forum
Honored Contributor
Hi,
Any ideas I do the same, well I only write nios2-terminal the command that you wrote my terminal didn't found it. - Altera_Forum
Honored Contributor
Because you dont have nios2-terminal in your PATH variable.
Put this: locate nios2-terminal - Altera_Forum
Honored Contributor
Pete123, vikonilov,
Check the Virginia Tech CCM Lab wiki page. It provides detailed information on how to install uClinux on NIOS2 in general, and Terasic DE2-70, DE4 and DE0-Nano board in particular. Tony - Altera_Forum
Honored Contributor
Can you show where to find it?
- Altera_Forum
Honored Contributor
My bad. Here is my posting showing the links for the different fpga boards:
http://www.alteraforum.com/forum/showthread.php?t=29447 Let me know if you face any problem accessing the links. Thanks, - Altera_Forum
Honored Contributor
No problem with accessing those links. Thanks. Will be useful.