Forum Discussion
15 Replies
- Altera_Forum
Honored Contributor
smloo,
Are you running a custom board or eval board? Does it partially load then die, does it not load at all? Doug - Altera_Forum
Honored Contributor
Not a custom board. It is Nios II Stratix II 60 Board. Everything works great. Just that, after I compiled the kernel, the flash programmer complains about not able to use the new flash programmer. I am suspecting that something in V1.4 that required changes in order to work with Quartus and Nios 5.1.
Quartus 5.1 and Nios 5.1 started to ship just last Friday. So, I am not sure who else has what I have. Any help anyone can provide will be wonderful. -SM - Altera_Forum
Honored Contributor
smloo,
Check out the Nios 2 flash programmers guide in the document directory of you Nios installation. It shows you how to port the flash programmer to different designs. A must once you start doing custom boards anyway. It will take a while your first time, but becomes pretty easy once you have done it 3 or 4 times. Your system clock needs to be at least 50 MHz. Doug - Altera_Forum
Honored Contributor
I have this problem with the cyclone II board from altera... has anybody upload successfully the kernel into the flash with ide 5.1 ?????
- Altera_Forum
Honored Contributor
I think the command line args to the flash programmer is slightly different since it bails every time I try to invoke it by uploading a filesystem - I haven't looked into what exactly is different. Other than that, I uploaded a kernel to RAM and it ran without problems using the new version.
- Altera_Forum
Honored Contributor
Hello,
As far as I can tell, the syntax of the niosII flash programmer command has slightly changed in v5.1, and the uClinux extension's fucntion "upload" doesn't work anymore. I haven't found yet how to hack this (but this looks like a minor change...). I guess we could work around this by not using the handy "Upload" menu extension and generating the proper flash programmer command manually or by an ad-hoc external script. If anyone has a solution, thanks for posting it ;-) - Altera_Forum
Honored Contributor
Here is the script I use to copy the kernel into the FLASH on a Cyclone 1c12 eval board.
# Creating .flash file for the project, include routine to copy to RAM $SOPC_KIT_NIOS2/bin/elf2flash --base=0x00000000 --end=0x3fffff --reset=0x0 --input=vmlinux --output=vmlinux.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec # Programming flash with the project $SOPC_KIT_NIOS2/bin/nios2-flash-programmer --base=0x00000000 vmlinux.flash - Altera_Forum
Honored Contributor
Hello,
I'm a newbie to Nios II and uCLinux. I've downloaded and installed the Microtronix Nios II Linux Distribution v1.4. I'm going through the Linux Quick Start Guide. Problem is that I have Nios II IDE 5.1 (the distro is written for IDE 5.0). I'm to the point where I can upload the Kernel (vmlinux.flash) to Altera's 1S40 board. I used the command-line workaround to get past the 'upload' menu item being broken. However, when I try to upload the filesystem, I get this: [SOPC Builder]$ nios2-flash-programmer.exe --base=0x200000 romfs.flash Using cable "USB-Blaster [USB-0]", device 1, instance 0x00 Resetting and pausing target processor: OK Base address not aligned on size of device Leaving target processor paused At this point, I've looked and looked for workarounds, etc, but I'm stuck. I'm not sure what "Base address not aligned on size of device" is complaining about. BTW, romfs.flash is generated by the 'upload' menu item. At least it generates the flash file before it chokes. Would someone offer a clue or two? Thanks, Tim - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by thu@Apr 28 2006, 01:39 PM hello,i'm a newbie to nios ii and uclinux.
i've downloaded and installed the microtronix nios ii linux distribution v1.4. i'm going through the linux quick start guide.
problem is that it works for nios ii ide 5.0 and i have nios ii ide 5.1.
i'm to the point where i can upload the kernel (vmlinux.flash to altera's 1s40 board. i used the command-line workaround to get past the 'upload' menu item being broken.
however, when i try to upload the filesystem, i get this:
[sopc builder]$ nios2-flash-programmer.exe --base=0x200000 romfs.flash
using cable "usb-blaster [usb-0]", device 1, instance 0x00
resetting and pausing target processor: ok
base address not aligned on size of device
leaving target processor paused
at this point, i've looked and looked for workarounds, etc, but i'm stuck. i'm not sure what "base address not aligned on size of device" is complaining about.
btw, romfs.flash is generated by the 'upload' menu item. at least it generates the flash file before it chokes.
would someone offer a clue or two?
thanks,
tim
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14797)
--- quote end ---
--- Quote End --- Welcome, and you'd better built nios2 uClinux on Linux, follow this guide, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)
- Altera_Forum
Honored Contributor
Thanks for the welcome.
Unfortunately, I don't have access to a Linux box to build this on. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif