Forum Discussion
Altera_Forum
Honored Contributor
13 years agoRunning uClinux on the DE2-115
Hi all,
Have anyone successfully run the uClinux on a DE2-115? I was able to get the uClinux version 3.1 to run on the NEEK kit and would like to try it on the DE2-115, but run into "Pausing target processor: not responding" problem. Sometime I got it to download, but it always end up "Verify failed between address". I realize the DE2-115 have DDR instead of DDR2 in the NEEK, and the nios.h in uClinux only have DDR2_TOP_BASE for the base address. Do I have to change it to DDR_TOP_BASE? or does it really matter to the uClinux? Any help is greatly appreciated. Thanks.28 Replies
- Altera_Forum
Honored Contributor
Hello!
I'm trying to launch uClinux on DE2-115 too. I'm using sdram to download initramfs zImage to it, and there is no verifying problem with it. Can you contact me (I can't PM you because of low number of messages). vadya90 at gmail.com - Altera_Forum
Honored Contributor
I just put together a kind of how-to for uClinux on DE2-115. You'll find it here: http://82.145.55.202/uclinux_nios2_custom_hardware.pdf
- Altera_Forum
Honored Contributor
I just recently put together a how-to for uClinux on DE2-115. Hope this info is helpful.
http://82.145.55.202/uclinux_nios2_custom_hardware.pdf - Altera_Forum
Honored Contributor
Hi,
I successfully got the uClinux to run on the DE2-115 board, but I am still a newbie and wouldn't claim myself an expert to this subject. I will try to answer your problem if you able to post any failure message. Were you able to download your zImage? - Altera_Forum
Honored Contributor
Hello!
Ok. My main problem is that after nios2-download nothing happens. And so, I don't know what's the problem. zImage is successfully downloaded, As terminal i tried to use both nios2-terminal and uart terminal. Do you use qsys or sopcbuilder and device tree or not? Maybe someone knows, how uClinux can boot if I download only zImage.initramfs.gz? Is u-boot integrated into it? I use sdram for this image. Should reset address point to base address of sdram in this case? - Altera_Forum
Honored Contributor
--- Quote Start --- Hi, I successfully got the uClinux to run on the DE2-115 board, but I am still a newbie and wouldn't claim myself an expert to this subject. I will try to answer your problem if you able to post any failure message. Were you able to download your zImage? --- Quote End --- apparently everyone is have problems getting UClinux to work on the DE2-115 how about a newbie friendly step by step tutorial on how u implemented it? that would be a great help for everybody :) - Altera_Forum
Honored Contributor
Hi vdvoznyuk,
"as terminal i tried to use both nios2-terminal and uart terminal." I use nios2-termainal only "do you use qsys or sopcbuilder" I use qsys. SOPC Builder is going away very soon. and device tree or not? I have device tree build from the QSYS sopcinfo. Basically, you have to have device tree in all the latest uClinux version (3.1, 3.7) how uclinux can boot if i download only zimage.initramfs.gz? is u-boot integrated into it? Yes, the boot loader should be already included. The default boot copier is automatically and transparently added to your system when you convert your executable file to flash programming files. Unless you wanted to have a custom boot copier, which I don't even have on my design. i use sdram for this image. should reset address point to base address of sdram in this case? Absolutely not, the reset address I have is pointing at the flash memory which where my zIMage/firmware store at. It really depend on your design, but the DE2-115 has flash memory for you to store the zImage. Definite not pointing at the sdram because the boot copier will copy the zImage to the sdram where it will be executed. Things I would recommend are: - Correct the reset address to point to the right memory device - I have the same problem you have couple days ago, but no one responded my help request. Firmware was able to load but wouldn't start up. Nonetheless, I bypassed it. Make sure your uClinux Kernel memory base address is align with the hardware sdram base address. Which uClinux version are you using 3.1 or 3.7? I got both of them working. There are difference in between. 3.1 is with nios.h for hard coding in the base address, and 3.7 is through the menuconfig -> platform options. Let me know if this helps. Thanks. - Altera_Forum
Honored Contributor
- Altera_Forum
Honored Contributor
That's an excellent reference. Thanks for the post.
- Altera_Forum
Honored Contributor
--- Quote Start --- I have written a document on how to get uClinux up and running on DE2-115 board, see attached file. Hope it will be useful. --- Quote End --- Thank you so much !!!