Forum Discussion

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

erreur compiling Linux on Neek using neek_ocm_spi_mmu.zip

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 ?

7 Replies

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

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

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

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

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

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

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

    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.