Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12693 Discussions

uClinux to personal NiosII board

Altera_Forum
Honored Contributor II
1,301 Views

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
0 Kudos
9 Replies
Altera_Forum
Honored Contributor II
567 Views

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.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

TO_BE_DONE

0 Kudos
Altera_Forum
Honored Contributor II
567 Views

You are very close to finish. 

You need to install bison package for ftpd, or you can disable ftpd.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

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 ---  

0 Kudos
Altera_Forum
Honored Contributor II
567 Views

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

 

How to install bison package, depend on which Linux distro you use.
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

 

--- 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).
0 Kudos
Altera_Forum
Honored Contributor II
567 Views

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 ---  

0 Kudos
Altera_Forum
Honored Contributor II
567 Views

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 ---  

0 Kudos
Altera_Forum
Honored Contributor II
567 Views

login as root , run, "yum install bison" .

0 Kudos
Reply