Forum Discussion
107 Replies
- Altera_Forum
Honored Contributor
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? - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by phill@Apr 11 2006, 12:15 PM hi hippoi 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.
- Altera_Forum
Honored Contributor
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... - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Apr 11 2006, 03:11 PM 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...
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14233)
--- quote end ---
--- Quote End --- Thanks, Jdhar. The longest thread began from you and me at about 5-6 months ago. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif I am thinking of WIKI way. It will be nice that all of us can prepare some guides jointly.
- Altera_Forum
Honored Contributor
hi hippo
Sorry,before is my personal mistake. When i want to config kernel and not to find "nios2-linux-uclibc" command. [jay@localhost linux-2.6.16.1]$ cd ~/buildroot/build_nios2/staging_dir/bin [jay@localhost bin]$ nios2-linux-uclibc-gcc -v Reading specs from /home/jay/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/specs Configured with: /home/jay/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/home/jay/buildroot/build_nios2/staging_dir --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --enable-cxx-flags=-static Thread model: single gcc version 3.4.6 [jay@localhost bin]$ cd ~/linux-2.6.16.1 [jay@localhost linux-2.6.16.1]$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc hwselect SYSPTF=nios_0.ptf /bin/sh: nios2-linux-uclibcgcc: command not found make: nios2-linux-uclibcgcc: Command not found make: nios2-linux-uclibcgcc: Command not found RUNNING hwselect --- Please select which CPU you wish to build the kernel against: (1) cpu_0 - Class: altera_nios2 Type: f Version: 5.0 I can not find "nios2-linux-uclibcgcc" command in ~/buildroot/build_nios2/staging_dir/bin dir. But i can find "nios2-linux-uclibc-gcc". thx - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Apr 11 2006, 09:51 PM hi hipposorry,before is my personal mistake.
when i want to config kernel and not to find "nios2-linux-uclibc" command.
[jay@localhost linux-2.6.16.1]$ cd ~/buildroot/build_nios2/staging_dir/bin
[jay@localhost bin]$ nios2-linux-uclibc-gcc -v
reading specs from /home/jay/buildroot/build_nios2/staging_dir/lib/gcc/nios2-linux-uclibc/3.4.6/specs
configured with: /home/jay/buildroot/toolchain_build_nios2/gcc-3.4.6/configure --prefix=/home/jay/buildroot/build_nios2/staging_dir --build=i386-pc-linux-gnu --host=i386-pc-linux-gnu --target=nios2-linux-uclibc --enable-languages=c,c++ --enable-shared --disable-__cxa_atexit --enable-target-optspace --with-gnu-ld --disable-nls --disable-threads --disable-multilib --enable-cxx-flags=-static
thread model: single
gcc version 3.4.6
[jay@localhost bin]$ cd ~/linux-2.6.16.1
[jay@localhost linux-2.6.16.1]$ make arch=nios2nommu cross_compile=nios2-linux-uclibc hwselect sysptf=nios_0.ptf
/bin/sh: nios2-linux-uclibcgcc: command not found
make: nios2-linux-uclibcgcc: command not found
make: nios2-linux-uclibcgcc: command not found
running hwselect
--- please select which cpu you wish to build the kernel against:
(1) cpu_0 - class: altera_nios2 type: f version: 5.0
i can not find "nios2-linux-uclibcgcc" command in ~/buildroot/build_nios2/staging_dir/bin dir.
but i can find "nios2-linux-uclibc-gcc".
thx
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14250)
--- quote end ---
--- Quote End --- don't worry, you just miss the spelling. CROSS_COMPILE=nios2-linux-uclibc- , in the trailing "-" You should use cut-and-paste to pick the command from your brower . So you can save some typo.
- Altera_Forum
Honored Contributor
hi hippo
I have problem at config the kernel.... [jay@localhost linux-2.6.16.1]$ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig no emulation specific options. HOSTCC scripts/kconfig/lxdialog/checklist.o In file included from scripts/kconfig/lxdialog/checklist.c:24: scripts/kconfig/lxdialog/dialog.h:31:20: curses.h: 沒有此一檔案或目錄 In file included from scripts/kconfig/lxdialog/checklist.c:24: scripts/kconfig/lxdialog/dialog.h:128: syntax error before "use_colors" scripts/kconfig/lxdialog/dialog.h:128: warning: type defaults to `int' in declaration of `use_colors' scripts/kconfig/lxdialog/dialog.h:128: warning: data definition has no type or storage class scripts/kconfig/lxdialog/dialog.h:129: syntax error before "use_shadow" scripts/kconfig/lxdialog/dialog.h:129: warning: type defaults to `int' in declaration of `use_shadow' scripts/kconfig/lxdialog/dialog.h:129: warning: data definition has no type or storage class scripts/kconfig/lxdialog/dialog.h:131: syntax error before "attributes" scripts/kconfig/lxdialog/dialog.h:131: warning: type defaults to `int' in declaration of `attributes' scripts/kconfig/lxdialog/dialog.h:131: warning: data definition has no type or storage class scripts/kconfig/lxdialog/dialog.h:143: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:143: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/dialog.h:146: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:146: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/dialog.h:147: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:147: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/dialog.h:148: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:148: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/dialog.h:149: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:150: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/dialog.h:151: syntax error before '*' token scripts/kconfig/lxdialog/dialog.h:151: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/checklist.c:31: syntax error before '*' token scripts/kconfig/lxdialog/checklist.c:33: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/checklist.c: In function `print_item': scripts/kconfig/lxdialog/checklist.c:37: warning: implicit declaration of function `wattrset' scripts/kconfig/lxdialog/checklist.c:37: `win' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:37: (Each undeclared identifier is reported only once scripts/kconfig/lxdialog/checklist.c:37: for each function it appears in.) scripts/kconfig/lxdialog/checklist.c:38: warning: implicit declaration of function `wmove' scripts/kconfig/lxdialog/checklist.c:38: `choice' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:40: warning: implicit declaration of function `waddch' scripts/kconfig/lxdialog/checklist.c:43: `selected' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:44: warning: implicit declaration of function `wprintw' scripts/kconfig/lxdialog/checklist.c:44: `status' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:47: warning: implicit declaration of function `mvwaddch' scripts/kconfig/lxdialog/checklist.c:47: `item' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:49: warning: implicit declaration of function `waddstr' scripts/kconfig/lxdialog/checklist.c:52: warning: implicit declaration of function `wrefresh' scripts/kconfig/lxdialog/checklist.c: At top level: scripts/kconfig/lxdialog/checklist.c:59: syntax error before '*' token scripts/kconfig/lxdialog/checklist.c:61: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/checklist.c: In function `print_arrows': scripts/kconfig/lxdialog/checklist.c:62: `win' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:62: `y' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:62: `x' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:64: `scroll' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:76: `height' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:79: `item_no' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:79: `choice' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c: At top level: scripts/kconfig/lxdialog/checklist.c:95: syntax error before '*' token scripts/kconfig/lxdialog/checklist.c:96: warning: function declaration isn't a prototype scripts/kconfig/lxdialog/checklist.c: In function `print_buttons': scripts/kconfig/lxdialog/checklist.c:97: `width' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:98: `height' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:100: `dialog' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:100: `selected' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c: In function `dialog_checklist': scripts/kconfig/lxdialog/checklist.c:117: `WINDOW' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: `dialog' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: `list' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:117: warning: left-hand operand of comma expression has no effect scripts/kconfig/lxdialog/checklist.c:121: warning: implicit declaration of function `endwin' scripts/kconfig/lxdialog/checklist.c:122: warning: implicit declaration of function `fprintf' scripts/kconfig/lxdialog/checklist.c:122: `stderr' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:140: `COLS' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:141: `LINES' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:143: `stdscr' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:145: warning: implicit declaration of function `newwin' scripts/kconfig/lxdialog/checklist.c:146: warning: implicit declaration of function `keypad' scripts/kconfig/lxdialog/checklist.c:146: `TRUE' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:166: warning: implicit declaration of function `subwin' scripts/kconfig/lxdialog/checklist.c:199: warning: implicit declaration of function `wnoutrefresh' scripts/kconfig/lxdialog/checklist.c:201: warning: implicit declaration of function `doupdate' scripts/kconfig/lxdialog/checklist.c:204: warning: implicit declaration of function `wgetch' scripts/kconfig/lxdialog/checklist.c:211: `KEY_UP' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:211: `KEY_DOWN' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:221: `FALSE' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:222: warning: implicit declaration of function `scrollok' scripts/kconfig/lxdialog/checklist.c:223: warning: implicit declaration of function `wscrl' scripts/kconfig/lxdialog/checklist.c:284: warning: implicit declaration of function `delwin' scripts/kconfig/lxdialog/checklist.c:288: `KEY_LEFT' undeclared (first use in this function) scripts/kconfig/lxdialog/checklist.c:289: `KEY_RIGHT' undeclared (first use in this function) /usr/include/bits/string2.h: At top level: scripts/kconfig/lxdialog/dialog.h:131: warning: array `attributes' assumed to have one element make[2]: *** [scripts/kconfig/lxdialog/checklist.o] Error 1 make[1]: *** [menuconfig] Error 2 make: *** [menuconfig] Error 2 http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/huh.gif thx http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/laugh.gif - Altera_Forum
Honored Contributor
PLEASE POST your questions on the uclinux forum.
you need curses package, please run as root to install,yum install ncurses ncurses-devel - Altera_Forum
Honored Contributor
hello hippo
Thank you very much.... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif I was succeed and ran uClinux on DE2 dev board. Q:I want to read or write files from the SD_card on DE2 board. Can you tell me how to do it ? thx - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Apr 12 2006, 07:40 PM hello hippothank you very much.... http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/biggrin.gif
i was succeed and ran uclinux on de2 dev board.
q:i want to read or write files from the sd_card on de2 board.
can you tell me how to do it ?
thx
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14280)
--- quote end ---
--- Quote End --- great. for mmc/sd drivers, please check Jdhar's post, http://forum.niosforum.com/forum/index.php?showtopic=3562 (http://forum.niosforum.com/forum/index.php?showtopic=3562)