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++

nios2-gcc compiler

Altera_Forum
Honored Contributor II
1,672 Views

Hi, 

 

I am new to uc linux. 

I have downloaded the nios2-gcc tool chain from ftp://ftp.altera.com/outgoing/nios2gcc-20080203.tar.bz2 (ftp://ftp.altera.com/outgoing/nios2gcc-20080203.tar.bz2) on a linux machine and got the file copied to a XP machine. I am unzipping the files using coLinux environmant. It is always ending up in errors. Can any one help me how to untar these files without errors. 

 

Regards, 

Muralidhar
0 Kudos
10 Replies
Altera_Forum
Honored Contributor II
480 Views

You need to follow the instructions in the NIOSwIKI: http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
480 Views

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
480 Views

!!!!! Please remove this silly self-quote post !!!!!!! Same is very impolite ! 

 

The old distribution is not supported any more since a long time. It had been commercially supported by Microtronix, but they don't do that any more.  

 

To do NIOS Linux, you need to install the currently supported distribution and this is only possible in a Linux system 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
480 Views

<div class='quotetop'>QUOTE (mschnell @ Jul 13 2009, 02:54 AM) <{post_snapback}> (index.php?act=findpost&pid=23091)</div> 

--- Quote Start ---  

You need to follow the instructions in the NIOSwIKI: http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux

-Michael[/b] 

--- Quote End ---  

 

0 Kudos
Altera_Forum
Honored Contributor II
480 Views

<div class='quotetop'>QUOTE (Muralidhar @ Jul 21 2009, 04:41 AM) <{post_snapback}> (index.php?act=findpost&pid=23220)</div> 

--- Quote Start ---  

<div class='quotetop'>QUOTE (mschnell @ Jul 13 2009, 02:54 AM) <{post_snapback}> (index.php?act=findpost&pid=23091) 

--- Quote End ---  

 

--- Quote Start ---  

You need to follow the instructions in the NIOSwIKI: http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux

-Michael[/b] 

--- Quote End ---  

 

[/b] 

--- Quote End ---  

 

0 Kudos
Altera_Forum
Honored Contributor II
480 Views

Please remove (clear) the quoting message that does not carry a response. This makes the forum reading less easy. Regarding the other message: please do a decent quoting and not a double-quoting. Please don&#39;t post large captured outputs. Nobody wants to read all this stuff. Only do post the important lines. (Please care to learn how to use decently the forum software and not spoil the bandwidth.) 

 

>>> I am using the following document to build the uclinux environment on Windows.... 

That is not possible. This document describes how to set up the tool chain in Linux. 

 

>>> the following gives you an idea... 

 

I don&#39;t think anybody here is interested in any such ideas. 

 

As already said: developing for NIOS uCLinux in Windows is not supported. (Maybe there is commercial support for this by WindRiver.) I suppose nobody here will answer any Windows related questions. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
480 Views

<div class='quotetop'>QUOTE (Muralidhar @ Jul 21 2009, 04:51 AM) <{post_snapback}> (index.php?act=findpost&pid=23221)</div> 

--- Quote Start ---  

<div class='quotetop'>QUOTE (Muralidhar @ Jul 21 2009, 04:41 AM) <{post_snapback}> (index.php?act=findpost&pid=23220) 

--- Quote End ---  

 

--- Quote Start ---  

<div class='quotetop'>QUOTE (mschnell @ Jul 13 2009, 02:54 AM) <{post_snapback}> (index.php?act=findpost&pid=23091) 

--- Quote End ---  

 

--- Quote Start ---  

You need to follow the instructions in the NIOSwIKI: http://www.nioswiki.com/installnios2linux (http://www.nioswiki.com/installnios2linux

-Michael[/b] 

--- Quote End ---  

 

[/b] 

--- Quote End ---  

 

Hi Michel, 

 

Thank you for your support. I am using the following document to build the uclinux environment on Windows. 

 

http://www.nioswiki.com/operatingsystems/u...ux/nios2colinux (http://www.nioswiki.com/operatingsystems/uclinux/nios2colinux

 

http://www.nioswiki.com/operatingsystems/u...binarytoolchain (http://www.nioswiki.com/operatingsystems/uclinux/binarytoolchain

 

So, I have suceeded upto the reading of nios2-linux-uclibc-gcc -v. 

 

I have used the following coomands to attain it. 

 

localhost ~# echo $PATH 

/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i386- 

pc-linux-gnu/gcc-bin/3.3.5-20050130 

 

localhost ~# PATH=$PATH:/mnt/xp/CoLinux/opt/nios2/bin 

 

localhost ~# nios2-linux-uclibc-gcc -v 

 

Reading specs from /mnt/xp/CoLinux/opt/nios2/bin/../lib/gcc/nios2-linux-uclibc/3 

.4.6/specs 

Configured with: /root/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --pre 

fix=/opt/nios2 --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2 

-linux-uclibc --enable-languages=c,c++ --disable-__cxa_atexit --enable-target-op 

tspace --with-gnu-ld --disable-shared --disable-nls --enable-threads --enable-mu 

ltilib 

Thread model: posix 

gcc version 3.4.6 

 

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

 

So as long as I am logged in I am able to access the nios2-gcc compiler. 

As i logout and log in the root is pointing to linux gcc, not nios. 

 

So how can I continue with NIOS II GCC compiler. 

 

And in the next step of uclinux-Distrubution. I am planning to use atmark dist. 

 

Can you suggest the correct one with the link as atmark is not having support for NIOS II. 

 

Regards, 

Muralidhar 

[/b] 

--- Quote End ---  

 

 

Hi,  

 

In the following DOC it was given that  

 

http://www.nioswiki.com/operatingsystems/uclinux (http://www.nioswiki.com/operatingsystems/uclinux

 

"If you have only a Windows PC, you can still construct a Linux environment using coLinux , which will run under Windows, see Nios2Colinux . You may use VMWare, too. But they may be difficult for a Linux newbie. Note, you cannot use Linux shell to program JTAG on coLinux under Windows. You must use Nios II command shell for Windows to program JTAG in this case". 

 

 

Regards, 

P.Muralidhar 

0 Kudos
Altera_Forum
Honored Contributor II
480 Views

 

--- Quote Start ---  

 

 

--- Quote Start ---  

 

0 Kudos
Altera_Forum
Honored Contributor II
480 Views

<div class='quotetop'>QUOTE (Muralidhar @ Jul 21 2009, 01:20 PM) <{post_snapback}> (index.php?act=findpost&pid=23223)</div> 

--- Quote Start ---  

http://www.nioswiki.com/operatingsystems/uclinux (http://www.nioswiki.com/operatingsystems/uclinux

 

"If you have only a Windows PC, you can still construct a Linux environment using coLinux , which will run under Windows, see Nios2Colinux . You may use VMWare, too. But they may be difficult for a Linux newbie. Note, you cannot use Linux shell to program JTAG on coLinux under Windows. You must use Nios II command shell for Windows to program JTAG in this case".[/b] 

--- Quote End ---  

I should not answer as you again greatly abused the quoting, misusing the Forum software.  

 

Anyway: What is it that you don&#39;t understand in the forum quote?  

 

Developing on Windows is not possible. If you need to run Windows for some other purpose and you have only one PC, you can install VMWare to run Linux additionally. Dis does work, if you have at least 2 GByte RAM, but it&#39;s slower than a natively installed Linux. Building the tool chain and building the software for the NIOS completely is in the Linux environment, Windows is not seen at this point. 

 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
480 Views

First I&#39;d like apologize for bumping an old post.. 

 

 

<div class='quotetop'>QUOTE (Muralidhar @ Jul 13 2009, 09:28 AM) <{post_snapback}> (index.php?act=findpost&pid=23090)</div> 

--- Quote Start ---  

Hi, 

 

I am new to uc linux. 

I have downloaded the nios2-gcc tool chain from ftp://ftp.altera.com/outgoing/nios2gcc-20080203.tar.bz2 (ftp://ftp.altera.com/outgoing/nios2gcc-20080203.tar.bz2) on a linux machine and got the file copied to a XP machine. I am unzipping the files using coLinux environmant. It is always ending up in errors. Can any one help me how to untar these files without errors. 

 

Regards, 

Muralidhar[/b] 

--- Quote End ---  

 

 

I am guessing you&#39;re trying to unzip the files to a non-linux file system such as NTFS. NTFS doesn&#39;t support ext3-style symlinks and that might be where your problem is. Stop all thoughts of developing in Windows only and go install Sun Virtualbox and install a virtualized ubuntu or something like that. Then mount a common drive and write your code in your favorite Windows IDE and save and compile on linux, if you&#39;re so kean on Windows. 

 

 

 

<div class='quotetop'>QUOTE (mschnell @ Jul 21 2009, 02:09 PM) <{post_snapback}> (index.php?act=findpost&pid=23226)</div> 

--- Quote Start ---  

Anyway: What is it that you don&#39;t understand in the forum quote?[/b] 

--- Quote End ---  

 

 

 

I think he&#39;s using it to bump his post. That&#39;s all. 

 

0 Kudos
Reply