Forum Discussion
107 Replies
- Altera_Forum
Honored Contributor
--- 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?
- Altera_Forum
Honored Contributor
--- 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 ---
<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 psnetstat
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.ps - Altera_Forum
Honored Contributor
--- 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
- Altera_Forum
Honored Contributor
TO_BE_DONE
- Altera_Forum
Honored Contributor
--- 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. - Altera_Forum
Honored Contributor
--- 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. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Apr 10 2006, 08:46 PM hi hippoi 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.
- Altera_Forum
Honored Contributor
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 ! - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- $ PATH=$PATH:/buildroot/build_nios2/staging_dir/bin[/b] --- Quote End --- the ~ is missing, for ~/buildroot/....