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

erreur compiling Linux on Neek using neek_ocm_spi_mmu.zip

Altera_Forum
Honored Contributor II
1,324 Views

Hi guys, 

I have a problem in the compilation of linux with MMU on my NEEK. 

I have followed these steps. 

1) www.niosftp.com/pub/linux/nios2-linux-20090929.tar 

2) extract and checkout 

3) setup the good path to toolchain-mmu/x86-linux2/bin 

4) make menuconfig with "Default all settings" 

5) make and it completly compile until the end and the creation of the image. 

 

Then now i want to compile it for my neek. So 

1) www.niosftp.com/pub/boards/neek/neek_ocm_spi_mmu.zip and extract 

2) with n2sdk (installed on my Centos5) i ran  

sopc-create-header-files --single custom_fpga.h 

3) I copy it to the good location in linux-2.6/arch/nios2/include/asm 

4) make menuconfig and select "Customize Kernel Settings" in order to select my custom_fpga in the nest screen. 

5) I didn't modify anything else in the config 

6) make and it makes error.  

 

(it is a translation from french) 

 

... 

LD fs/proc/proc.o 

LD fs/proc/build-in.o 

LD fs/build-in.o 

make[2]: *** wait: No child process. Stop 

make[1]: *** [sub-make] Erreur 2 

make[1]: going out of the directory /home/Adrien/nios2-linux/linux-2.6 

make: *** [linux] Erreur 1 

 

Do you have any idea ?
0 Kudos
7 Replies
Altera_Forum
Honored Contributor II
581 Views

Hi.  

I just have used another harware. This one : 

http://www.nioswiki.com/@api/deki/files/296/=neek_web_server_mmu.zip 

This is the exemple hardware on the page  

http://www.nioswiki.com/linux/creating_a_nios_ii_design_with_an_mmu 

Then i follow the same step (except that i did not run sopc-create-header-files because custom_fpga.h was allready in the directory) 

And there is no error at all. All the images have been generated. 

 

Why did I have errors with the previous hardware ?
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Please unselect altera tse net driver, and select ethoc for neek_ocm_spi_mmu. 

 

- Hippo
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Is it in the "Customize Kernel Settings" ? I have not find ethoc and tse net driver.

0 Kudos
Altera_Forum
Honored Contributor II
581 Views

http://nioswiki.com/operatingsystems/uclinux/ethernet 

 

Device Drivers -->Network device support ─> 

[*] Network device support 

[*] Ethernet (10 or 100Mbit) 

The new Kernel mainline driver could be used for OpenCores MAC (nios2-test or unstable-nios2mmu branch)  

 

[*] OpenCores 10/100 Mbps Ethernet MAC support 

[ ]Altera Triple Speed Ethernet MAC support(SLS)
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Ok 

 

+  

[*] Network device support ---> 

| | 

| +  

[*] Ethernet (10 or 100Mbit) ---> 

| | | 

| | + < > Altera Triple Speed Ethernet Mac Support (SLS) 

| | | 

| | + <*> OpenCores 10/100 Mbps Ethernet MAC Support 

 

So just invert these two selections. 

Now it compiles without errors. But it do not start after nios2-terminal while the previous hardware (neek web server mmu) et the previous kernel configuration, the normal booting messages appears.
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Please make sure you use the correct sof. There is prebuild image for your try out, and related config files in the u-boot page, 

 

http://nioswiki.com/extrem_guide_to_kill_neek_with_u-boot
0 Kudos
Altera_Forum
Honored Contributor II
581 Views

Ok. It works ! 

 

My problem was that I did not have regenerated the file custom_fpga.h (with sopc-create-header-files) includes in neek_ocm_spi_mmu.zip (nor from www.niosftp.com (http://www.niosftp.com) nor from www.nioswiki.com) (And actually they are the the same hardware).
0 Kudos
Reply