- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
107 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
please apply the patch,
cd ~/linux-2.6.16.1
patch -p0 <~/download/linux-2.6.16-nios2-01.diff
cp ~/download/kernel2.config .config
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
phill,
you may try either busybox 1.1.0 or 1.2.0 . You will have to patch Makefile of busybox, add elf2flt ldflags to busybox_unstripped.-Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d
remove the busybox_unstripped and busybox elf obj and make again
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hippo,thanks very much.the 2.6.16.1 kernel runs on my board.
but I runinetd&
there is a problem "can't find services" I already have "services" file in the dir etc/ what can i do? thanks in advance. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=13451)</div> --- Quote End ---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<div class='quotetop'>QUOTE </div>
--- Quote Start --- there is a problem "can't find services" I already have "services" file in the dir etc/[/b] --- Quote End --- Please check your ~/rootfs/etc/inetd.conf , if you have the server for each service.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i make a newsimple services file,and I can run inetd.
this is my services file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp-data 20/tcp ftp 21/tcp telnet 23/tcp uptime 24/tcp http 80/tcp[/b] --- Quote End --- but I can't use telnet on a pc to connect my board. it saied: <div class='quotetop'>QUOTE </div> --- Quote Start --- telnetd:all network ports in use.[/b] --- Quote End ---netstat
<div class='quotetop'>QUOTE </div> --- Quote Start --- tcp 0 0 218.192.170.81:telnet 218.192.170.250:3520 TIME_WAIT[/b] --- Quote End --- and i run ps ps
i can see "inetd",but i can't see telnetd. why it say "telnetd:all network ports in use." how can i do? my inetd.conf file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp stream tcp nowait root /bin/ftpd telnet stream tcp nowait root /bin/telnetd uptime stream tcp nowait root cat /proc/uptime /etc/issue[/b] --- Quote End --- and in my fstab file also has the pts <div class='quotetop'>QUOTE </div> --- Quote Start --- devpts /dev/pts devpts defaults,gid=5,mode=620 0 0[/b] --- Quote End ---
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi hippo:
1, I find the kernel linux.2.6.x more steady then other kernel.because I run some app on the 2.6.x is fine,but other kernel weill died. 2.I want to use 2.6.x vmlinux in cfi flash, so i use follow command: # Creating .flash file for the project elf2flash --base=0x00000000 --end=0x07ffffff --reset=0x0 --input=vmlinux --output=ext_flash.flash --boot=$SOPC_KIT_NIOS2/components/altera_nios2/boot_loader_cfi.srec# Programming flash with the project nios2-flash-programmer --base=0x00000000 ext_flash.flash --sof=flash.sof I program flash succesed. I restart my dvb but boot kernle failed. If I use command "nio2-download -g vmlinux" ,the kernel boot successed.- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi hippo
When i had "build" then occur error messges http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif . . . . # Remove wordexp header since wordexp support is disabled. rm -f /home/jay/buildroot/toolchain_build_nios2/uClibc_dev//usr/include/wordexp. h chown -R `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$/\1:\2/'` /home/jay/buil droot/toolchain_build_nios2/uClibc_dev//usr/include install -d /home/jay/buildroot/toolchain_build_nios2/uClibc_dev//usr/lib install -m 644 lib/*.[ao] /home/jay/buildroot/toolchain_build_nios2/uClibc_dev// usr/lib/ install: cannot stat `lib/*.[ao]': No such file or directory make[1]: [install_dev] Error 1 (ignored) make[1]: Leaving directory `/home/jay/buildroot/toolchain_build_nios2/uClibc' which: no bison in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bi n:/home/jay/bin) You must install 'bison' on your build machine make: *** [binutils-dependancies] Error 1 ./build: line 75: cd: /home/jay/buildroot/build_nios2/staging_dir/include/linux: 沒有此一檔案或目錄 rm: cannot remove ‘config.h’: 沒有此一檔案或目錄 rm: cannot remove ‘autoconf.h’: 沒有此一檔案或目錄 Can you tell me how to install "bison" on my build machine ? thx http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by jay_1025@Apr 8 2006, 06:20 PM hi hippo
when i had "build" then occur error messges http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
.
.
.
.
# remove wordexp header since wordexp support is disabled.
rm -f /home/jay/buildroot/toolchain_build_nios2/uclibc_dev//usr/include/wordexp. h
chown -r `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$/\1:\2/'` /home/jay/buil droot/toolchain_build_nios2/uclibc_dev//usr/include
install -d /home/jay/buildroot/toolchain_build_nios2/uclibc_dev//usr/lib
install -m 644 lib/*.[ao] /home/jay/buildroot/toolchain_build_nios2/uclibc_dev// usr/lib/
install: cannot stat `lib/*.[ao]': no such file or directory
make[1]: [install_dev] error 1 (ignored)
make[1]: leaving directory `/home/jay/buildroot/toolchain_build_nios2/uclibc'
which: no bison in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/x11r6/bi n:/home/jay/bin)
you must install 'bison' on your build machine
make: *** [binutils-dependancies] error 1
./build: line 75: cd: /home/jay/buildroot/build_nios2/staging_dir/include/linux: 沒有此一檔案或目錄
rm: cannot remove ‘config.h’: 沒有此一檔案或目錄
rm: cannot remove ‘autoconf.h’: 沒有此一檔案或目錄
can you tell me how to install "bison" on my build machine ?
thx http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14144)
--- quote end ---
--- Quote End --- it depends on which Linux distribution you use.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by alex824@Apr 7 2006, 06:28 PM hi hippo:
1, i find the kernel linux.2.6.x more steady then other kernel.because i run some
app on the 2.6.x is fine,but other kernel weill died.
2.i want to use 2.6.x vmlinux in cfi flash, so i use follow command:
# creating .flash file for the project
elf2flash --base=0x00000000 --end=0x07ffffff --reset=0x0 --input=vmlinux --output=ext_flash.flash --boot=$sopc_kit_nios2/components/altera_nios2/boot_loader_cfi.srec# programming flash with the project
nios2-flash-programmer --base=0x00000000 ext_flash.flash --sof=flash.sof
i program flash succesed.
i restart my dvb but boot kernle failed. if i use command "nio2-download -g vmlinux" ,the kernel boot successed.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14124)
--- quote end ---
--- Quote End --- 1. maybe I shall back ports somethings to 2.6.x but I am still checking this issue. 2. did you program the sof to flash? are you using altera's dev board?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by phill@Apr 7 2006, 03:28 PM i make a newsimple services file,and i can run inetd.
this is my services file:
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
ftp-data 20/tcp
ftp 21/tcp
telnet 23/tcp
uptime 24/tcp
http 80/tcp --- Quote End --- but I can't use telnet on a pc to connect my board. it saied: <div class='quotetop'>QUOTE </div> --- Quote Start --- telnetd:all network ports in use.[/b] --- Quote End ---
netstat
<div class='quotetop'>QUOTE </div> --- Quote Start --- tcp 0 0 218.192.170.81:telnet 218.192.170.250:3520 TIME_WAIT[/b] --- Quote End --- and i run ps ps
i can see "inetd",but i can't see telnetd. why it say "telnetd:all network ports in use." how can i do? my inetd.conf file: <div class='quotetop'>QUOTE </div> --- Quote Start --- ftp stream tcp nowait root /bin/ftpd telnet stream tcp nowait root /bin/telnetd uptime stream tcp nowait root cat /proc/uptime /etc/issue[/b] --- Quote End --- and in my fstab file also has the pts <div class='quotetop'>QUOTE </div> --- Quote Start --- devpts /dev/pts devpts defaults,gid=5,mode=620 0 0[/b] --- Quote End --- <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14117)</div> [/b] --- Quote End --- I am not good at netowrk. Maybe you should repost it over the uclinux forum, and other experts may help out. the telnetd (and ftpd, too) used to be invoked by inetd. so you won't see a telnetd in ps. you can debug these servers without inetd , using the -debug option. you should play and learn on Linux PC before you do it on nios2. you may try out an old slackware, which use inetd.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by hippo+apr 9 2006, 04:25 am--><div class='quotetop'>quote (hippo @ apr 9 2006, 04:25 am)</div>
--- quote start ---
<!--quotebegin-jay_1025@Apr 8 2006, 06:20 PM hi hippo
when i had "build" then occur error messges http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
.
.
.
.
# remove wordexp header since wordexp support is disabled.
rm -f /home/jay/buildroot/toolchain_build_nios2/uclibc_dev//usr/include/wordexp. h
chown -r `id | sed 's/^uid=\([0-9]*\).*gid=\([0-9]*\).*$/\1:\2/'` /home/jay/buil droot/toolchain_build_nios2/uclibc_dev//usr/include
install -d /home/jay/buildroot/toolchain_build_nios2/uclibc_dev//usr/lib
install -m 644 lib/*.[ao] /home/jay/buildroot/toolchain_build_nios2/uclibc_dev// usr/lib/
install: cannot stat `lib/*.[ao]': no such file or directory
make[1]: [install_dev] error 1 (ignored)
make[1]: leaving directory `/home/jay/buildroot/toolchain_build_nios2/uclibc'
which: no bison in (/usr/kerberos/bin:/usr/local/bin:/usr/bin:/bin:/usr/x11r6/bi n:/home/jay/bin)
you must install 'bison' on your build machine
make: *** [binutils-dependancies] error 1
./build: line 75: cd: /home/jay/buildroot/build_nios2/staging_dir/include/linux: 沒有此一檔案或目錄
rm: cannot remove ‘config.h’: 沒有此一檔案或目錄
rm: cannot remove ‘autoconf.h’: 沒有此一檔案或目錄
can you tell me how to install "bison" on my build machine ?
thx http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14144)
--- quote end ---
--- Quote End --- it depends on which Linux distribution you use. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14156)</div> [/b] --- Quote End --- hi hippo I use Fedora core 4 on Linux platform. thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
TO_BE_DONE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote End --- 1. maybe I shall back ports somethings to 2.6.x but I am still checking this issue. 2. did you program the sof to flash? are you using altera's dev board? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14157)</div> --- Quote End --- I not program the sof to flash. But I download the sof use jtag when I power on the broad. I am not use altera's dev board. But my board design is follow altera's dev board.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- --- Quote End --- 1. maybe I shall back ports somethings to 2.6.x but I am still checking this issue. 2. did you program the sof to flash? are you using altera's dev board? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14157)</div> --- Quote End --- I not program the sof to flash. But I download the sof use jtag when I power on the broad. I am not use altera's dev board. But my board design is follow altera's dev board. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14167)</div> --- Quote End --- if you use jtag uart and jtag debug, the board must be connected to nios2-terminal to run. you should use uart serial console without jtag debug ,and program the sof flash and linux flash. this way, you can test your board more clearly. note, you must have a reset to your nios2 core.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi hippo
I have a problem ........ [jay@localhost linux-2.6.16.1]$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=std_1c20.ptf /bin/sh: nios2-linux-uclibc-gcc: command not found make: nios2-linux-uclibc-gcc: Command not found make: nios2-linux-uclibc-gcc: Command not found RUNNING hwselect ERROR: Could not open SYSTEM ptf file. Q: 1. I do'nt know "std_1c20.ptf" at which dir on linux platform. 2. I use DE2 dev board. If I want to use UP4_SD_card_audio example and how to use "hwselect SYS" on linux platform? PS : I don't install Quartus II on my linux platform. thx- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by jay_1025@Apr 10 2006, 08:46 PM hi hippo
i have a problem ........
[jay@localhost linux-2.6.16.1]$ make arch=nios2nommu cross_compile=nios2-linux-uclibc- hwselect sysptf=std_1c20.ptf
/bin/sh: nios2-linux-uclibc-gcc: command not found
make: nios2-linux-uclibc-gcc: command not found
make: nios2-linux-uclibc-gcc: command not found
running hwselect
error: could not open system ptf file.
q:
1. i do'nt know "std_1c20.ptf" at which dir on linux platform.
2. i use de2 dev board.
if i want to use up4_sd_card_audio example and how to use "hwselect sys" on linux platform?
ps : i don't install quartus ii on my linux platform.
thx
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14191)
--- quote end ---
--- Quote End --- if you use DE2, the ptf and sof are on the DE2 support CD, DE2_System/DE2_demonstrations/DE2_SD_Card_Audio/nios2_0.ptf and DE2_SD_Card_Audio.sof you don't need QuartusII on Linux. check your nios2-linux-uclibc-gcc in ~/buildroot/build_nios2/staging_dir/bin , if you have them, then check your PATH variable, follow step4 in the guide. PS, this thread is getting too long, please post your questions on the uclinux forum.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi nippo
I can find nios2-linux-uclibc-gcc in ~/buildroot/build_nios2/staging_dir/bin dir and check the "PATH=$PATH:/buildroot/build_nios2/staging_dir/bin" follow. [jay@localhost ~]$ cd ~/buildroot/build_nios2/staging_dir/bin [jay@localhost bin]$ ls nios2-linux-addr2line nios2-linux-uclibc-as nios2-linux-ar nios2-linux-uclibc-c++ nios2-linux-as nios2-linux-uclibc-cc nios2-linux-c++ nios2-linux-uclibc-c++filt nios2-linux-cc nios2-linux-uclibc-cpp nios2-linux-c++filt nios2-linux-uclibc-elf2flt nios2-linux-cpp nios2-linux-uclibc-flthdr nios2-linux-g++ nios2-linux-uclibc-g++ nios2-linux-gcc nios2-linux-uclibc-gcc nios2-linux-gcc-3.4.6 nios2-linux-uclibc-gcc-3.4.6 nios2-linux-gccbug nios2-linux-uclibc-gccbug nios2-linux-gcov nios2-linux-uclibc-gcov nios2-linux-gprof nios2-linux-uclibc-gprof nios2-linux-ld nios2-linux-uclibc-ld nios2-linux-nm nios2-linux-uclibc-ld.real nios2-linux-objcopy nios2-linux-uclibc-nm nios2-linux-objdump nios2-linux-uclibc-objcopy nios2-linux-ranlib nios2-linux-uclibc-objdump nios2-linux-readelf nios2-linux-uclibc-ranlib nios2-linux-size nios2-linux-uclibc-readelf nios2-linux-strings nios2-linux-uclibc-size nios2-linux-strip nios2-linux-uclibc-strings nios2-linux-uclibc-addr2line nios2-linux-uclibc-strip nios2-linux-uclibc-ar [jay@localhost bin]$ PATH=$PATH:/buildroot/build_nios2/staging_dir/bin [jay@localhost bin]$ nios2-linux-uclibc-gcc -v bash: nios2-linux-uclibc-gcc: command not found Occur the same question again. Why can't find nios2-linux-uclibc-gcc command. Where i setting error? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif Thank in advance !- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
<div class='quotetop'>QUOTE </div>
--- Quote Start --- $ PATH=$PATH:/buildroot/build_nios2/staging_dir/bin[/b] --- Quote End --- the ~ is missing, for ~/buildroot/....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi hippo
I can run the boa webserver on my board,but i can use cgi. <div class='quotetop'>QUOTE </div> --- Quote Start --- BINFMT_FLAT: Loading file :/home/httpd/hello.cgi[/b] --- Quote End --- how to make hello.cgi to flt format?- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by phill@Apr 11 2006, 12:15 PM hi hippo
i can run the boa webserver on my board,but i can use cgi.
<div class='quotetop'>quote
--- quote end ---
--- quote start ---
binfmt_flat: loading file :/home/httpd/hello.cgi --- Quote End --- how to make hello.cgi to flt format? <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14223)</div> [/b] --- Quote End --- this thread is getting too long, please post your question/discussion over the uClinux forum. It will be easier to follow. I am not good at network. Maybe other expert can help out. please check ~/uClinux-dist-test/user/cgi_generic . if there is no perl, you will need to compile a c with elf2flt option.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I agree, to everyone: please create new threads for your problems with uClinux; this thread is no longer readable.
hippo: Is it possible to maybe a new thread for each kernel version and make it read only or a sticky? For example, a 2.6.11 status thread - then only you can post updates/issues so it's easy to track. - The other idea I had was that I can put up a web page on my server (fps-tech.net) with your guide (the first post in this thread), and updates can be posted there instead. These forums aren't the best method to keep track of kernel updates. It seems like we are the only two ones working on this kernel right now.. I can only imagine some newbies seeing this thread or the MMC thread and getting very confused...
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page