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

MMU Custom Cyclone II make error

Altera_Forum
Honored Contributor II
1,071 Views

Hi, 

I've got a custom board with a Cyclone II 

 

I used to use an older version of nios2-linux/uClinux but decided it was time to try the MMU version. So, I downloaded the nios2-linux20100621.tar and set to work. 

 

I could not use ./update and get the message below for all --- 

************************ 

[janet@localhost nios2-linux]$ ./update 

update binutils.. 

sopc.et.ntust.edu.tw[0: 140.118.20.145]: errno=Connection timed out 

fatal: unable to connect a socket (Connection timed out) 

************************ 

I also tried to ping 140.118.20.145, it doesn't work. Is this server down? 

 

What could cause that I've tried lately and get that I used to get updates and I haven't done anything to my home network. 

 

But I set to work anyway. I followed the Creating a Nios II Design with an MMUI added my board etc.  

 

But when I do the "make" I get this "vmlinux.lds:380: syntax error 

 

Isn't that a generated file ?? Any help will be greatly appreciated. 

 

Thanks - 

 

************* END OF make messages 

 

CC init/version.o 

LD init/built-in.o 

LD .tmp_vmlinux1 

/home/janet/nios2-linux/toolchain-mmu/x86-linux2/bin/nios2-linux-gnu-ld:arch/nios2/kernel/vmlinux.lds:380: ignoring invalid character `#' in expression 

/home/janet/nios2-linux/toolchain-mmu/x86-linux2/bin/nios2-linux-gnu-ld:arch/nios2/kernel/vmlinux.lds:380: syntax error 

make[2]: *** [.tmp_vmlinux1] Error 1 

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

make[1]: Leaving directory `/home/janet/NEWEST-nios2-linux/nios2-linux/linux-2.6' 

make: *** [linux] Error 1 

*********************************************
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
361 Views

Didn't catch the other post -- 

 

SOLVED ---> 

 

DON'T USE // as comments !!! use /* */
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

in which files ? why ? 

 

Thanks, 

-Michael
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

This is the newest Linux based release. Structured differently than the previous. There is a god document "Running Linux on the "Altera Nios II Processor USER GUIDE version 1.0" that a work mate gave me (not sure where he found it). 

 

The file is the "nios.h" that you use to reference your "custom_fpga.h" file 

 

It's in the nios2-linux/linux-2.6/arch/nios2/boards/MYboard/include/asm  

 

I'm still trying to get my custom driver compiled into the kernel (porting over from older nios2-linux release) -- can't find "asm/nios2.h" ... but I've been sidetracked on something else. 

 

I hope that clarifies things.
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

When you are switching to LINUX nios2 and porting your custom drivers over 

 

The include used to be# include <asm/nios2.h> 

 

NOW --- # include <asm/nios.h>  

 

No more "2"
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

I think the document you are referring to is http://alterawiki.com/uploads/e/e6/opensource_linux_niosii_user_guide_-_fixed_toc.doc

 

Too bad the filename does not match the title....
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

Yes, that's the document !! 

 

It was very helpful.
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

I got an e-mail saying  

************************ 

Hi guys, 

 

Do you still have the document " Running Linux on the "Altera Nios II Processor USER GUIDE version 1.0" ? If do, can you please share the link. 

Thank you. 

 

Moganesh 

********************* 

I don't see that on this message but the link is still good 

 

http://alterawiki.com/uploads/e/e6/o..._fixed_toc.doc (http://alterawiki.com/uploads/e/e6/opensource_linux_niosii_user_guide_-_fixed_toc.doc) ?
0 Kudos
Altera_Forum
Honored Contributor II
361 Views

I post it but looking back the link is still on the thread and available. The method is not same with latest nios2-linux. Thanks though.

0 Kudos
Reply