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

how to upload the linux in EP2C35 Board

Altera_Forum
Honored Contributor II
2,097 Views

Dear all 

 

I have only a board of EP2C35 (Altera dev kit), but i don't known how to run the linux . i select the Cyclone dev kit or stratixii config.but when i select the Upload the kernel  

i find the next message  

 

------------------------------------------------ 

Microtronix Linux Extensions 

Version 1.4, Built June 20, 2005 

------------------------------------------------ 

(note: only Altera-provided flash components will 

work, since install.ptf was not found. This will 

probably be fine for you.) 

The flash programmer has been updated. Please see the 

documentation for instructions on how to update your command line. 

 

The flash programmer has been updated. Please see the 

documentation for instructions on how to update your command line. 

 

usage: nios2-flash-programmer [-h/--help] [-c/--cable <cable name>] 

[-d/--device <device index>] [-i/--instance <instance>] 

[-s/--sidp <address>] [-I/--id <id>] [-t/--timestamp <timestamp>] 

-b/--base <address> [-e/--epcs] 

<action> [-g/--go] 

 

actions can be either:  

[--erase-all | --erase <bytes>] [--no-keep-nearby] [--verify] <file>* 

--read <filename> [--read-bytes <start>+<size>] 

 

-h/--help Print this message 

-Q/--quiet Don&#39;t print anything if everything works 

--debug Print debug information 

 

-c/--cable <cable name> Specifies which JTAG cable to use (not needed if 

you only have one cable) 

-d/--device <device index> Specifies in which device you want to look for the 

Nios II debug core (1 = device nearest TDI etc.) 

-i/--instance <instance> Specifies the INSTANCE value of the debug core 

(not needed if there is exactly one on the chain) 

 

-s/--sidp <address> Base-address of System ID peripheral on target 

-I/--id <system-id-value> Unique ID code for target system 

-t/--timestamp <time-stamp> Timestamp for target-system (when last generated) 

--accept-bad-sysid Continue even if the system ID comparison fails 

 

-b/--base <address> Base address of FLASH/EPCS to operate on 

-e/--epcs This operation is on an EPCS flash 

-E/--erase <start>+<size> Erase a range of bytes in the flash, or the entire 

--erase-all flash before/instead of programming it. 

-P/--program Program flash from the input files (the default) 

--no-keep-nearby Don&#39;t preserve bytes which need to be erased but 

which aren&#39;t specified in the input file 

-Y/--verify Verify that contents of flash match input files 

<filename>* The names of the file(s) to program or verify 

 

-R/--read <file> Read flash contents into file 

-B/--read-bytes <start>+<size> Specify which bytes to read 

 

-g/--go Run processor from reset vector after program. 

 

Input files should be in Motorola S-Record format. Addresses within the files 

are interpreted as offsets from the base address of the flash. Output files 

written by the tool are in the same format. 

 

The flash programmer supports all CFI flashes which use the AMD programming 

algorithm (CFI algorithm 2) or the Intel algorithm (1 or 3). 

 

 

 

i don&#39;t how to continual it . pls help me ! thanks !
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
802 Views

I have know the "upload" can&#39;t work in the NIOSII 5.1 . so I must use the Flash Programmer.

0 Kudos
Altera_Forum
Honored Contributor II
802 Views

Hi Alex, 

 

You are correct; the nios2-flash-programmer command syntax is changed in 5.1. 

 

1) Start a Nios II SDK Shell (SOPC builder --> Tools --> Nios II SDK Shell) 

 

2) At the CYGWIN command-line, type.... 

nios2-flash-programmer --base=0x0000000 {yourPath}/vmlinux.flash 

 

If all goes well, uploading to the device should take a minute or so. 

Later, you can use exactly the same method to upload &#39;romfs.flash&#39; also.
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

was the linux downloaden into ram? 

 

 

it run on ram.  

 

i do not know why we need upload into flash! 

 

 

what that means? 

 

thank you!!
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

 

--- Quote Start ---  

originally posted by iriver@Apr 11 2006, 08:14 PM 

was the linux downloaden into ram? 

 

 

it run on ram.  

 

i do not know why we need upload into flash! 

 

 

what that means? 

 

thank you!! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14242) 

--- quote end ---  

 

--- Quote End ---  

 

nios2 linux run on ram, of course. 

but you have to load the object code of linux to ram and then run it. 

 

during development, you can use usb jtag cable to do the download to sdram without writing the flash. the command is "nios2-download -g vmlinux (or zImage)" , it is faster than flash programmer. but you have to download sof with quartusII before nios2-download. 

 

when you want to build a product, you need to write your sof and linux to flash (cfi or epcs), so it don&#39;t need a jtag cable connected to PC. 

 

You should really follow the buildroot guide. 

 

if you can read Chinese, you can read the translated, 

how to run the uClinux in NIOS2 in Chinese by Alex.liu. 

http://www.icwin.net/showartitle.asp?art_id=8313&cat_id=52 (http://www.icwin.net/showartitle.asp?art_id=8313&cat_id=52)
0 Kudos
Altera_Forum
Honored Contributor II
802 Views

 

--- Quote Start ---  

originally posted by hootsmon@Feb 15 2006, 07:40 PM 

you are correct;  the nios2-flash-programmer command syntax is changed in 5.1. 

 

1) start a nios ii sdk shell (sopc builder --> tools --> nios ii sdk shell) 

 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12731) 

--- quote end ---  

 

--- Quote End ---  

 

 

To all you noobies, in 5.1, there is no Nios II SDK Shell menu item under tools. In fact, if you&#39;re following the "Linux Quick Start Guide", you do all this not in SOPC builder, but in the Eclipse IDE. As such, there is no way to launch the SDK Shell from the Eclipse IDE. 

 

To fire up the Nios II SDK Shell, do this: 

 

Start-->Programs-->Altera-->Nios II 5.1-->Nios II SDK Shell
0 Kudos
Reply