Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot to build toolchain on Linux
TO_BE_DONE
107 Replies
- 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
<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
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
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
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
I would like to pay my great appreciation to you,here!
Best Regards, FeiWu - 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 meet a pb ,when patch the busybox
[root@nios busybox-1.1.0]# patch -p1 <~/download/busybox-110.diff patching file Makefile Hunk# 1 FAILED at 213. 1 out of 1 hunk FAILED -- saving rejects to file Makefile.rej --- Quote Start --- originally posted by hippo@Feb 6 2006, 09:17 AM hi cetic,2. missing elf2flt for busybox, download attached busybox_110.zip
add the elf2flt stuf to busybox makefile
cd ~/download unzip busybox_110.zip cd ~/buildroot/build_nios2/busybox-1.1.0 patch -p1 <~/download/busybox-110.diff rm busybox make cd ~/buildroot makecheck again with flthdr.
then rebuild kernel.
or you may try post#4, to rebuild toolchain.
hippo
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=12566)</div> --- Quote End ---
- Altera_Forum
Honored Contributor
Hi hippo,there is a pb:
[root@nios download]# cd ~/linux-2.6.16.1 [root@nios linux-2.6.16.1]# make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=std_1c20.ptf Makefile:524: /root/linux-2.6.16.1/arch/nios2nommu/Makefile: 没有那个文件或目录 make: *** 没有规则可以创建目标“/root/linux-2.6.16.1/arch/nios2nommu/Makefile”。 停止。 [root@nios linux-2.6.x]# ls /root/linux-2.6.16.1/arch/ alpha cris i386 m68k parisc s390 sparc v850 arm frv ia64 m68knommu powerpc sh sparc64 x86_64 arm26 h8300 m32r mips ppc sh64 um xtensa there is no "nios2nommu" in that dir - Altera_Forum
Honored Contributor
Hi Alex,
The ccache path is correct now in build0322.zip . And it is disabled by default.