Forum Discussion
Altera_Forum
Honored Contributor
20 years agobuildroot to build toolchain on Linux
TO_BE_DONE
107 Replies
- 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 --- --- 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
--- 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
TO_BE_DONE
- 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
--- 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 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 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.
- 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
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.