Forum Discussion

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

Need help on building kernel for ukit.

I have problems on building Linux kernel which come with ukit. It fails in the build process with following message. Can some body help me out? Thanks .

Hawkins

------------------------------------------------

Microtronix Linux Extensions

Version 1.2, Built Wed Jul 27 3:46pm EST 2004

------------------------------------------------

make: Entering directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x'

nios2-elf-gcc: not found

nios2-elf-gcc: not found

Using /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x as source for kernel

nios2-elf-gcc: not found

SYMLINK include/asm -> include/asm-nios2nommu

nios2-elf-gcc: not found

nios2-elf-gcc: not found

HOSTCC scripts/basic/fixdep

scripts/basic/.fixdep.d: done.

HOSTCC scripts/basic/split-include

scripts/basic/.split-include.d: done.

HOSTCC scripts/basic/docproc

scripts/basic/.docproc.d: done.

nios2-elf-gcc: not found

HOSTCC scripts/conmakehash

scripts/.conmakehash.d: done.

HOSTCC scripts/kallsyms

scripts/.kallsyms.d: done.

HOSTCC scripts/mk_elfconfig

scripts/.mk_elfconfig.d: done.

MKELF scripts/elfconfig.h

HOSTCC scripts/file2alias.o

scripts/.file2alias.o.d: done.

HOSTCC scripts/modpost.o

scripts/.modpost.o.d: done.

HOSTCC scripts/sumversion.o

scripts/.sumversion.o.d: done.

HOSTLD scripts/modpost

HOSTCC scripts/pnmtologo

scripts/.pnmtologo.d: done.

HOSTCC scripts/bin2c

scripts/.bin2c.d: done.

nios2-elf-gcc: not found

nios2-elf-gcc: not found

make[2]: *** [arch/nios2nommu/kernel/asm-offsets.s] Error 127

make[1]: *** [arch/nios2nommu/kernel/asm-offsets.s] Error 2

make: *** [all] Error 2

CC arch/nios2nommu/kernel/asm-offsets.s

make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.5/linux-2.6.x'

9 Replies

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

    There's an issue with v1.1 of the Nios II Linux Distribution where the nios2-elf tools can't be found if SOPC Builder hasn't been run at least once on the workstation.

    The symptoms that you're describing match the problem exactly. Try running SOPC Builder from the Nios II SDK Shell commandline.

    $ SOPC_BUILDER

    When prompted to create a new system, just click cancel and then close down SOPC Builder.

    After performing those steps, try re-building your kernel through the IDE.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi, the default configuration provided with the kernel automatically includes the IDE drivers. Since the uKit hardware designs don't include IDE support, the drivers for IDE won't build properly.

    To correct the problem, configure your kernel (procedure can be found in the getting started guide) and turn off Device Drivers -> ATA/ATAPI/MFM/RLL support for your kernel.

    After saving the configuration, try rebuilding the kernel again.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Kent,

    I can complete the build for the kernel, but fail on the kernel upload. Thanks again.

    Please see the following:

    ------------------------------------------------

    Microtronix Linux Extensions

    Version 1.2, Built Wed Jul 27 3:46pm EST 2004

    ------------------------------------------------

    Oct 6, 2004 8:22:08 AM - (INFO) nios2-flash-programmer: Launching Quartus Programmer to download:

    $COMPONENTSDIR/mtx_nios_dev_board_cyclone_1c12/system/mtx_nios_dev_board_cyclone_1c12.sof

    Error: Can't locate programming file in Chain Description File

    Oct 6, 2004 8:22:12 AM - (SEVERE) nios2-flash-programmer: Unable to download SOF: $COMPONENTSDIR/mtx_nios_dev_board_cyclone_1c12/system/mtx_nios_dev_board_cyclone_1c12.sof, exiting

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

    I'll have to get back to you about this one. I'm not entirely sure why that's happening.

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

    I've been looking into it for the past day or so and nothing came up in any of my searches for the keyword COMPONENTSDIR. I just found out where that COMPONENTSDIR keyword appears... it's in the following file:

    .../Documents and Settings/<your username>/.sopc_builer/install.ptf

    The $COMPONENTSDIR keyword should be replaced with

    <location of Nios II Dev Kit>/components

    As an example, if you installed the Altera Nios II Development Kit in c:/altera/kits/nios2 then all instances of $COMPONENTSDIR would be replaced with

    c:/altera/kits/nios2/components

    Let me know if it helps... and I&#39;ll talk to our installshield guy in the meantime to let him know there might be a bug in the installer for the uKit.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Ken,

    After changed the path in install.ptf as you adviced, I can upload the kernel now. Thanks again.

    Hawkins