Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

FlashProgrammer has some problem!

Altera_Forum
Honored Contributor II
2,439 Views

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
0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

The wiki page is updated. 

You have to build uClinux with uClinux-dist and test the image from sdram, before trying flash programmer.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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&#39;t find "cd arch/nios2nommu/boot" dir. Is my NIOSII Command shell has some problem?
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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&#39;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!
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

That&#39;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.

0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

Dear,hippo 

thanks you for your reply. 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

If you jtag uart, then you must have nios2 terminal connected. 

NOTE, you can use JTAG UART console during development. But if you don&#39;t connect a nios2-terminal, the program will hang. So you shouldn&#39;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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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&#39;t connect a nios2-terminal, the program will hang. so you shouldn&#39;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
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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&#39;t connect a nios2-terminal, the program will hang. so you shouldn&#39;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&#39;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&#39;s problem? 

 

NiosQ
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
1,128 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
1,041 Views

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.
0 Kudos
Reply