- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, everybody
I'm newbie for niosII uClinux. I want NiosII boot from CFI Flash but I open NIOSII Command Shell can't find "cd arch/nios2nommu/boot" dir. Is my NIOSII Command shell has some problem? Need you help! thank you for your give me some suggest! NiosQLink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by niosq@Feb 9 2007, 11:52 PM hi, everybody
i'm newbie for niosii uclinux. i want niosii boot from cfi flash but i open niosii command shell can't find "cd arch/nios2nommu/boot" dir. is my niosii command shell has some problem?
need you help!
thank you for your give me some suggest!
niosq
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21419)
--- quote end ---
--- Quote End --- PS: I am used QuartusII 6.0 version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The wiki page is updated.
You have to build uClinux with uClinux-dist and test the image from sdram, before trying flash programmer.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Feb 10 2007, 11:11 AM the wiki page is updated.
you have to build uclinux with uclinux-dist and test the image from sdram, before trying flash programmer.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21427)
--- quote end ---
--- Quote End --- Hi,hippo I has to build uClinux-dist and test the image from sdram. I will following wiki page try out flash programmer, but when I open NIOSII Command Shell can't find "cd arch/nios2nommu/boot" dir. Is my NIOSII Command shell has some problem?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The wiki page is changed. There is no need to "cd arch/nios2nommu/boot" now.
If you have tried from sdram, you should know where is the zImage. ~/uClinux-dist/images. If you work on Linux, open a normal terminal shell. If you work on Windows, you have to copy the zImage to a temp window dir. And work in that dir.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Feb 12 2007, 02:59 AM the wiki page is changed. there is no need to "cd arch/nios2nommu/boot" now.
if you have tried from sdram, you should know where is the zimage. ~/uclinux-dist/images.
if you work on linux, open a normal terminal shell.
if you work on windows, you have to copy the zimage to a temp window dir. and work in that dir.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21442)
--- quote end ---
--- Quote End --- thx,hippo I saw it! I following your FLASH PROGRAMMER userguide but when I open Nios2 Command Shell and excute "nios2-configure-sof DE2_NET.sof", display follwoing error message: Searching for SOF file: in . DE2_NET.sof Error: Can't scan JTAG chain. Error code 87. I have try out nios2-configure-sof standard.sof ,but display same error message. How to slove it! I need your help! Thanks you again!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
PS: when I open Linux shell terminal (coLinux) and excute "nios2-configure-sof DE2_NET.sof" display following message.
NiosQ@localhost ~/uClinux-dist $ nios2-configure-sof DE2_NET.sof -bash: nios2-configure-sof: command not found- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by niosq@Feb 12 2007, 04:07 AM ps: when i open linux shell terminal (colinux) and excute "nios2-configure-sof de2_net.sof" display following message.
niosq@localhost ~/uclinux-dist $ nios2-configure-sof de2_net.sof
-bash: nios2-configure-sof: command not found
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21444)
--- quote end ---
--- Quote End --- Sorry! I found it must powerup on DE2 board. I used NiosII command shell it can work! but when I open Linux shell terminal (coLinux) and excute "nios2-configure-sof DE2_NET.sof" display following message. NiosQ@localhost ~/uClinux-dist $ nios2-configure-sof DE2_NET.sof -bash: nios2-configure-sof: command not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That's right. You cannot use Linux shell to program jtag on coLinux under windows. You can only use Linux shell to program jtag on Native Linux.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear,hippo
thanks you for your reply. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,hippo
I used DE2 board. Can I programmer Hardware.sof and zImage noto CFI Flash? Or hardware.sof need programmer to EPCS flash? regards NiosQ- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is hardware wired on DE2 board.
The sof for fpga must go EPCS. The zImge can go eithter EPCS or CFI flash. But the zImage might be too large for EPCS.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Feb 12 2007, 11:17 PM it is hardware wired on de2 board.
the sof for fpga must go epcs.
the zimge can go eithter epcs or cfi flash.
but the zimage might be too large for epcs.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21490)
--- quote end ---
--- Quote End --- Hi,hippo thx again for your reply. I will program sof on EPCS and zImage on CFI Flash. But I fund one Question. How does select in kernel menuconfig? NiosQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The zImage is loaded to sdram by a altera supplied boot loader. So there is nothing to do with kernel config.
Since you want to boot from cfi flash, you must make sure the Nios2 reset vector in SOPC builder pointed to cfi flash. Though it should be the default.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Feb 13 2007, 09:45 AM the zimage is loaded to sdram by a altera supplied boot loader. so there is nothing to do with kernel config.
since you want to boot from cfi flash, you must make sure the nios2 reset vector in sopc builder pointed to cfi flash. though it should be the default.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=21517)
--- quote end ---
--- Quote End --- Hi,hippo Sorry for my question. If i program zImage on CFI Flash then how to display boot message on PC? Is use NiosII IDE or need other terminal? NiosQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you jtag uart, then you must have nios2 terminal connected.
NOTE, you can use JTAG UART console during development. But if you don't connect a nios2-terminal, the program will hang. So you shouldn't use JTAG UART console for standalone or production. You must disable JTAG UARTconsole then. You still need a console device after disabling JTAG UART console, otherwise the init task will exit and panic. You may use Nios serial uart as console, or use Virtual Terminal (actually it can be dummy) as console. If you use serial uart, you use RS232 cable with hyper-terminal on Window, or minicom and kermit on Linux.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Mar 19 2007, 08:45 PM if you jtag uart, then you must have nios2 terminal connected.
note, you can use jtag uart console during development. but if you don't connect a nios2-terminal, the program will hang. so you shouldn't use jtag uart console for standalone or production. you must disable jtag uartconsole then. you still need a console device after disabling jtag uart console, otherwise the init task will exit and panic. you may use nios serial uart as console, or use virtual terminal (actually it can be dummy) as console.
if you use serial uart, you use rs232 cable with hyper-terminal on window, or minicom and kermit on linux.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22351)
--- quote end ---
--- Quote End --- thank you for your give me some suggest!^^ I will trying out it. NiosQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Mar 19 2007, 08:45 PM if you jtag uart, then you must have nios2 terminal connected.
note, you can use jtag uart console during development. but if you don't connect a nios2-terminal, the program will hang. so you shouldn't use jtag uart console for standalone or production. you must disable jtag uartconsole then. you still need a console device after disabling jtag uart console, otherwise the init task will exit and panic. you may use nios serial uart as console, or use virtual terminal (actually it can be dummy) as console.
if you use serial uart, you use rs232 cable with hyper-terminal on window, or minicom and kermit on linux.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22351)
--- quote end ---
--- Quote End --- Hi,hippo I following "FlashProgrammer" doc program flash. If you use EPCS flash, find out and change the sof path and epcs base below. Open a Linux shell terminal, (or a Nios2 command shell on Windows) # config the fpga nios2-configure-sof your_system.sof# change to your uClinux image dir cd ~/uClinux-dist/images# Creating .flash file for the FPGA configuration sof2flash --epcs --input=$SOPC_KIT_NIOS2/examples/verilog/niosII_cycloneII_2c35/standard/standard.sof --output=standard.flash# Programming flash with the FPGA configuration nios2-flash-programmer --epcs --base=0x00900800 standard.flash# Creating .flash file for the project elf2flash --epcs --after=standard.flash --input=zImage --output=epcs_controller.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_epcs.srec# Programming flash with the project nios2-flash-programmer --epcs --base=0x00900800 epcs_controller.flash I'm disable Jtag uart and enable serial uart, I use RS232 cable with hyper-terminal on Window. Powerup DE2 board but it has on response. What's problem? NiosQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you test the new sof with serial uart and uClinux image using jtag download?
You should make them work before flash programming. You sould not use nios2-terminal in this case, use RS232 cable and a terminal emulater, such as Hyper-terminal on Windows, or minicom on Linux.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo@Mar 22 2007, 09:39 PM did you test the new sof with serial uart and uclinux image using jtag download?
you should make them work before flash programming.
you sould not use nios2-terminal in this case,
use rs232 cable and a terminal emulater, such as hyper-terminal on windows, or minicom on linux.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=22447)
--- quote end ---
--- Quote End --- Hi ,hippo I tested the new sof with serial uart and uClinux image using jtag download. I will use RS232 cable and Hyper-terminal run it,but it has not response. I will try out again. I have one question the "reset address" is "offset + address" in SOPC Builder? NiosQ
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The reset address in SOPC builder has nothing to do with uclinux.
If you want to boot uclinux from epcs, select epcs as reset address. If you want to boot from cfi flash, select cfi flash as reset address. First, you should make RS232 work using jtag download.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page