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

Downloaded tarball and like to build linux for a custom design with nommu

Altera_Forum
Honored Contributor II
1,573 Views

I am new here and seeking some help to work with a custom design with no mmu. A 

 

I downloaded the tarball nios2-linux-20100621.tar and started working. fter 2 days of trials using nioswiki, 

 

I have created a board and changed kernel configuration and selected nommu and build the linux. I had some problems initially, After 2 days of trials using nioswiki but I could make console working.  

 

After Uncompressing kernel..OK and early_console initialized at 0x..... 

 

It reported as "Linux/Nios II MMU". Console also reported number pages in RAM, Memory available and NR_IRQS 

 

and crashed with unhandled exception. 

 

 

Even after selecting nommu, linux is built with mmu. I tried making branch test-nios2 with git, but got an error connection refused. Tried to clone toolchain_build as I am thinking this is the toolchain I need to use for nommu and hot connection refused. 

 

The wiki is very helpful till now. But I could not find any info regarding building linux for no mmu designs with the new tarball.
0 Kudos
5 Replies
Altera_Forum
Honored Contributor II
538 Views

Do I need to get the 20090929 tarball also to work with designs with out mmu?  

 

Is it not possible with 2010 tarball?  

 

If possible, I want to go this way, as I would like to build for devkit and my board in the same environment by running config. 

 

Right now, I am going with two environments. Also trying to make git working behind proxy/firewall.
0 Kudos
Altera_Forum
Honored Contributor II
538 Views

It should be possible to use the 2010 tarball to also work with NOMMU designs. Make sure you git checkout the test-nios2 branch in the linux-2.6 and the uClinux-dist repository (make sure you git fetch before doing the checkout). Additionaly you need to install the binary toolchain from the nioswiki (you could also build your own, but to get started this should be sufficient) and add them to your $PATH. 

 

Hope that helps. 

 

Tobias
0 Kudos
Altera_Forum
Honored Contributor II
538 Views

Thanks a lot tklauser. That helped. 

 

Now I am able to build a linux image either way. I was thinking i do not need to use test-nios2 branch with 20090929 tarball. 

 

Once check out test-nios2, I need to use ptf file. Adding a board and nios2 header file only works with nios2mmu branch, is that correct? 

 

I am not able to build the toolchain_build due to error(c-parser.c not found). Is this required (any updates?). I have installed the binary tool chain.
0 Kudos
Altera_Forum
Honored Contributor II
538 Views

Correct, the board directory is only available in the nios2mmu branch for now (and thus also copying the header file). 

 

We're currently working on merging nios2nommu support from the unstable branch back into the unstable-nios2mmu. So I hope we will be able to compile either nios2mmu or nios2nommu from the same branch. 

 

If the binary toolchain works for you, you should stick with it for now. There are some problems with building the toolchain on newer systems.
0 Kudos
Altera_Forum
Honored Contributor II
538 Views

binary tool chain is working fine for me and i am making good progress.  

 

thanks again
0 Kudos
Reply