Forum Discussion

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

uClinux to personal NiosII board

hi,

I saw the new release of uClinux for Nios on your site:

http://nioswiki.jot.com/wikihome/operating...ems/uclinuxdist (http://nioswiki.jot.com/wikihome/operatingsystems/uclinuxdist)

And I try to port the uCLinux on my board according to the site, but failed. The board is design by myself, not the Altera series board. The hardware source now is:

EP1C12(FPGA), SDRAM(8Mbytes, 16bits data line), Flash(2Mbytes, 8bits data line), SRAM(512Kbtyes, 16bits data line), LED, button, UART.

And I will expand LCD and key-button on it, have no Net peripheral.

The question is can I port uClinux on my board?

I try method your site provide, I think I should customize kernel by use "make menuconfig", but don't konw how to, cause I can't enter the custom menu by the site method. So I can't turn of the Net support and choose a series device(uart or jtag uart). And when I use "make" to creat image, there is some errors as follow:

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

include/linux/seccomp.h: In function `secure_computing':

include/linux/seccomp.h:18: error: `TIF_SECCOMP' undeclared (first use in this function)

include/linux/seccomp.h:18: error: (Each undeclared identifier is reported only once

include/linux/seccomp.h:18: error: for each function it appears in.)

include/linux/seccomp.h: In function `has_secure_computing':

include/linux/seccomp.h:24: error: `TIF_SECCOMP' undeclared (first use in this function)

In file included from arch/nios2nommu/kernel/asm-offsets.c:12:

include/linux/sched.h: At top level:

include/linux/sched.h:311: error: field `mmap_sem' has incomplete type

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

make[1]: *** [prepare0] 错误 2

make[1]: Leaving directory `/home/gaobing/download/uClinux-dist/linux-2.6.x'

make: *** [linux] 错误 1

[gaobing@tu194011 uClinux-dist]$

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

And I can&#39;t run zImage on the Nios SDK Shell. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif

Need your help, ths!

giantice

18th Jan, 2007

9 Replies

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

    Which Linux distro do you use?

    Please install uClinux-dist again at your home dir, not under download dir.

    Please do it over again. You should not need costumize kerenl at the biginnig.

    Try "NON_SMP_BUILD=1 make" and post the last message.

    Please list your steps, if you still have problems.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You are very close to finish.

    You need to install bison package for ftpd, or you can disable ftpd.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi hippo,

    Thanks!

    Is it the ftpd problem, so I can&#39;t build up the filesystem success?I have tried on the DE2 board, the problem was same.

    How to intall bison package for ftpd?

    I needn&#39;t net for my board, and how can I disable ftpd? Does it in "make menuconfig" ---> "[] customize Kernel Settings" (or "Customize Vendor/User settings" )?

    Waiting for your reply, ths again!

    giantice

    22th Jan 2007

    --- Quote Start ---

    originally posted by hippo@Jan 22 2007, 11:44 AM

    you are very close to finish.

    you need to install bison package for ftpd, or you can disable ftpd.

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

    --- quote end ---

    --- Quote End ---

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

    Yes, you can disable ftpd with make menuconfig, Customize Vendor/User setting.

    How to install bison package, depend on which Linux distro you use.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo@Jan 22 2007, 01:20 AM

    yes, you can disable ftpd with make menuconfig, customize vendor/user setting.

    how to install bison package, depend on which linux distro you use.

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

    --- quote end ---

    --- Quote End ---

    I had the same problem using Ubuntu distribution because by default bison package is not installed , but I was able to easily download and install bison package (debian) from unbutu package site (http://packages.ubuntu.com).
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi hippo,

    I success make the Kernel and start "nios2-terminal" routine by your advice, thank you very much! It can really port uClinux on my own board.

    But I found my Jtag Uart has some communication problems, so the uClinux debug can&#39;t run normally. How can I change the Jtag Uart serial to Uart(Rs-232) serial? I can&#39;t found the configuration choice in "Customize Vendor/User setting".

    And I found the size of image file is too large for me. For example the Net application is not necessary for me. How can I exclude the application, reduce the imgae size, and get a minimal zImage file?

    What&#39;s more, the flash on my board is 2MBytes, I found that after I try "elf2flash" to generate .flash file, the file generated is sum up to 2.7Mbtyes. So how can I reduce the .flash file size?

    Looking forward to your reply, ths!

    giantice

    22th Jan 2007

    --- Quote Start ---

    originally posted by hippo@Jan 22 2007, 02:20 PM

    yes, you can disable ftpd with make menuconfig, customize vendor/user setting.

    how to install bison package, depend on which linux distro you use.

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

    --- quote end ---

    --- Quote End ---

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

    Ths your advice, I use the Fedora core 4 in VMware, mybe needs to search the package by myself.

    --- Quote Start ---

    originally posted by bigboss25+jan 22 2007, 04:04 pm--><div class='quotetop'>quote (bigboss25 @ jan 22 2007, 04:04 pm)</div>

    --- quote start ---

    <!--quotebegin-hippo@Jan 22 2007, 01:20 AM

    yes, you can disable ftpd with make menuconfig, customize vendor/user setting.

    how to install bison package, depend on which linux distro you use.

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

    --- quote end ---

    --- Quote End ---

    I had the same problem using Ubuntu distribution because by default bison package is not installed , but I was able to easily download and install bison package (debian) from unbutu package site (http://packages.ubuntu.com).

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

    [/b]

    --- Quote End ---