Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
15 years ago

MMU Custom Cyclone II make error

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

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

8 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Didn't catch the other post --

    SOLVED --->

    DON'T USE // as comments !!! use /* */
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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"
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.