Forum Discussion
107 Replies
- Altera_Forum
Honored Contributor
sorry, I make a mistake. In ~/buildroot/build_nios2/busybox, the busybox is busybox-1.2.0. so that i cannot patch.
1.do busybox-1.2.0 need patch??
I get an error message : QUOTE Cannot read header of ../buildroot/build_nios2/busybox/busybox 2. iI try another way too. i downloaded busybox-1.1.0,unzip,nios2-linux-uclibc-flthdr build_nios2/busybox/busybox
hank success. make menuconfig make butpatch -p1 <~/download/busybox-110.diff
I get an error message : QUOTE Cannot read header of ~/download/busybox-1.1.0/busybox help.nios2-linux-uclibc-flthdr <~/download/busybox-1.1.0/busybox - Altera_Forum
Honored Contributor
I would like to pay my great appreciation to you,here!
Best Regards, FeiWu - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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.
remove the busybox_unstripped and busybox elf obj and make again-Wl,-elf2flt="-s 16000" -Wl,-v -Wl,-d - Altera_Forum
Honored Contributor
hippo,thanks very much.the 2.6.16.1 kernel runs on my board.
but I run
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 ---inetd& - Altera_Forum
Honored Contributor
<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. - Altera_Forum
Honored Contributor
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 ---
<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 ---ps - Altera_Forum
Honored Contributor
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. - Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Apr 8 2006, 06:20 PM hi hippowhen 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.