Forum Discussion

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

Build uClinux kernel puzzle

Hello everyone:

when I built the uClinux kernel, I was not sure whether it has been built successfully. Because the last information is:

" make: Leaving directory `/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' "

I remember there should be a "build complete " information if the kernel was built successfully.

If it was not, can anyone tell me the reason why it is wrong? My target SOPC project is the example project(cyclone 2c35/standard) of the Nios II kits, And my software edition is Quartus II 6.0, nios II 6.0, Microtronix Nios II Linux Distribution V1.4.

I paste the built information below. thanks very much!

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

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

Microtronix Linux Extensions

Version 1.4, Built June 20, 2005

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

make: Entering directory `/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'

no emulation specific options.

Using /cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel

GEN /cygdrive/d/DengHuanhuan/work/Linux_test/kernel/build/Makefile

CHK include/linux/version.h

SPLIT include/linux/autoconf.h -> include/config/*

CHK include/nios2_system.h

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.

HOSTCC scripts/mod/mk_elfconfig

scripts/mod/.mk_elfconfig.d: done.

MKELF scripts/mod/elfconfig.h

HOSTCC scripts/mod/file2alias.o

scripts/mod/.file2alias.o.d: done.

HOSTCC scripts/mod/modpost.o

scripts/mod/.modpost.o.d: done.

HOSTCC scripts/mod/sumversion.o

scripts/mod/.sumversion.o.d: done.

HOSTLD scripts/mod/modpost

HOSTCC scripts/kallsyms

scripts/.kallsyms.d: done.

make[2]: `arch/nios2nommu/kernel/asm-offsets.s' is up to date.

CHK include/asm-nios2nommu/asm-offsets.h

CHK include/linux/compile.h

HOSTCC usr/gen_init_cpio

usr/.gen_init_cpio.d: done.

CHK usr/initramfs_list

CPIO usr/initramfs_data.cpio

GZIP usr/initramfs_data.cpio.gz

AS usr/initramfs_data.o

usr/.initramfs_data.o.d: done.

LD usr/built-in.o

LD arch/nios2nommu/kernel/built-in.o

CC drivers/mtd/chips/cfi_cmdset_0002.o

/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/mtd/chips/cfi_cmdset_0002.c: In function `cfi_amdstd_init':

/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/mtd/chips/cfi_cmdset_0002.c:1564: warning: `inter_module_register' is deprecated (declared at /cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/module.h:573)

/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/mtd/chips/cfi_cmdset_0002.c: In function `cfi_amdstd_exit':

/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/mtd/chips/cfi_cmdset_0002.c:1571: warning: `inter_module_unregister' is deprecated (declared at /cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/module.h:574)

drivers/mtd/chips/.cfi_cmdset_0002.o.d: done.

LD drivers/mtd/chips/built-in.o

CC drivers/mtd/maps/altera.o

drivers/mtd/maps/.altera.o.d: done.

LD drivers/mtd/maps/built-in.o

LD drivers/mtd/built-in.o

LD drivers/built-in.o

GEN .version

CHK include/linux/compile.h

UPD include/linux/compile.h

CC init/version.o

init/.version.o.d: done.

LD init/built-in.o

LD .tmp_vmlinux1

KSYM .tmp_kallsyms1.S

AS .tmp_kallsyms1.o

./..tmp_kallsyms1.o.d: done.

LD .tmp_vmlinux2

KSYM .tmp_kallsyms2.S

AS .tmp_kallsyms2.o

./..tmp_kallsyms2.o.d: done.

LD vmlinux

SYSMAP System.map

SYSMAP .tmp_System.map

Building modules, stage 2.

MODPOST

make: Leaving directory `/cygdrive/c/altera/kits/nios2_60/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'

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

9 Replies

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

    --- Quote Start ---

    originally posted by hippo@Jan 9 2007, 10:14 PM

    you may follow the wiki,

    http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux)

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20436)

    --- quote end ---

    --- Quote End ---

    Thank you hippo, A few days ago I have fellowed a guide and built the kernel successfully, but now the situation is I performed the same steps but the result was not right. The only change to my system is I have updated my quartus II and nios II software to 6.0 edition.

    So I wonder whether the Microtronix Nios II Linux Distribution V1.4 edition is just fit for the Nios II 5.0?

    Thank you.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by 0quanquan0+jan 10 2007, 10:29 am--><div class='quotetop'>quote (0quanquan0 @ jan 10 2007, 10:29 am)</div>

    --- quote start ---

    <!--quotebegin-hippo@Jan 9 2007, 10:14 PM

    you may follow the wiki,

    http://nioswiki.jot.com/wikihome/operating...ms/%c2%b5clinux (http://nioswiki.jot.com/wikihome/operatingsystems/%c2%b5clinux)

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20436)

    --- quote end ---

    --- Quote End ---

    Thank you hippo, A few days ago I have fellowed a guide and built the kernel successfully, but now the situation is I performed the same steps but the result was not right. The only change to my system is I have updated my quartus II and nios II software to 6.0 edition.

    So I wonder whether the Microtronix Nios II Linux Distribution V1.4 edition is just fit for the Nios II 5.0?

    Thank you.

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20454)</div>

    [/b]

    --- Quote End ---

    Yes, it works with Nios2 5.0 only.

    So, I would suggest the wiki, which is independent of Nios2 version.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Building a kernel and a filesystem based on the Microtonix distribution works for me with Nios 2 EDS 6.0 and Quartus II 6.0.

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    I remember there should be a "build complete " information if the kernel was built successfully.[/b]

    --- Quote End ---

    i couldn&#39;t see this message. check if vmlinux.bin is build.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    maybe the nios2 is independent with uClinux! before I use Quartus5.0 + Redhat,when I update to Quartus6.0 , only Recomplie my NIOS2 project and use the old uClinux , All is ok!

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

    Thank you all!

    Helmchen, it seems that you have the uClinux edition supports Nios II 6.0.

    Can I download it on the net? and what is the link ? Thanks.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    Helmchen, it seems that you have the uClinux edition supports Nios II 6.0.

    Can I download it on the net? and what is the link ? Thanks.[/b]

    --- Quote End ---

    you can use the old microtronix distribution. feiwu said

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    maybe the nios2 is independent with uClinux! before I use Quartus5.0 + Redhat,when I update to Quartus6.0 , only Recomplie my NIOS2 project and use the old uClinux , All is ok![/b]

    --- Quote End ---

    As i remember there is NO "Build complete" or something similar. So it should work and an vmlinux.bin has been generated. if not, i&#39;m sorry that i cannot give you any hints
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I unpack and patch the sources as per http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)

    When I come to the vendor hwselect I get a strange error http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif

    [beham@localhost uClinux-dist]make vendor_hwselect SYSPTF=~/tPadNG/altera_nios_dev_board_cyclone_2c35.ptf

    make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- -C vendors vendor_hwselect

    make[1]: Entering directory `/home/beham/uClinux-dist/vendors&#39;

    /home/beham/uClinux-dist/config.arch:108: *** commands commence before first target. Stop.

    make[1]: Leaving directory `/home/beham/uClinux-dist/vendors&#39;

    make: *** [vendor_hwselect] Error 2

    I run FC6 and have installed gcc nios crosscompiler from the wiki page.

    Anyone got an idea to share on how to sort this one out??
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hammer459@Jan 15 2007, 07:42 PM

    i unpack and patch the sources as per http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)

    when i come to the vendor hwselect i get a strange error http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/huh.gif

    [beham@localhost uclinux-dist]make vendor_hwselect sysptf=~/tpadng/altera_nios_dev_board_cyclone_2c35.ptf

    make arch=nios2nommu cross_compile=nios2-linux-uclibc- -c vendors vendor_hwselect

    make[1]: entering directory `/home/beham/uclinux-dist/vendors&#39;

    /home/beham/uclinux-dist/config.arch:108: *** commands commence before first target. stop.

    make[1]: leaving directory `/home/beham/uclinux-dist/vendors&#39;

    make: *** [vendor_hwselect] error 2

    i run fc6 and have installed gcc nios crosscompiler from the wiki page.

    anyone got an idea to share on how to sort this one out??

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=20584)

    --- quote end ---

    --- Quote End ---

    Sorry, it was a bug in patch ver 29. Please reverse patch ver 29, and use ver 30.