Forum Discussion
107 Replies
- Altera_Forum
Honored Contributor
Thank you very much! I get the toolchain ,then kernel!
But how do upload the kernel file to flash ? Who can teach me ? Who can write a doc ? Thank you ! Sorry ,my english so poor! - Altera_Forum
Honored Contributor
You should find them on the nios2 doc and the forum.
You should download to ram first, and after you have a lot of tests, then download to flash. check, http://www.altera.com/literature/ug/ug_nio..._programmer.pdf (http://www.altera.com/literature/ug/ug_nios2_flash_programmer.pdf) Sorry, I can not help you. I don't use CFI flash. - Altera_Forum
Honored Contributor
hi hippo:
I have a question aboot follow reference: ************************************************************************* NOTE : the inittab was missing when patching the uClinuc-dist-test, add it with CODEtouch ~/uClinux-dist-test/vendors/Altera/nios2nommu/inittab ************************************************************************* I have already download uClinux-dist-20051110.But I didn't find the uClinux-dist-test. Where is the uClinux-dist-test I can download? Thanks - Altera_Forum
Honored Contributor
You should do the "touch" command after "./build" finished.
- Altera_Forum
Honored Contributor
hi hippo:
I uesed exec ./build commaand,but i got a erro. The erro informathion follow: /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strerror.c: In function `strerror':/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strerror.c:663: warning: return discards qualifiers from pointer target type if [ x"" != x ]; then /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/gcc/xgcc -B/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/gcc/ -B/home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/bin/ -B/home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/lib/ -isystem /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/include -isystem /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include-c -DHAVE_CONFIG_H -g -Os -I. -I/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/../include -W -Wall -Wtraditional -pedantic /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c -o pic/strsignal.o; else true; fi /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/gcc/xgcc -B/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/gcc/ -B/home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/bin/ -B/home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/lib/ -isystem /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/include -isystem /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include -c -DHAVE_CONFIG_H -g -Os -I. -I/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/../include -W -Wall -Wtraditional -pedantic /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c -o strsignal.o /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c:414: error: conflicting types for 's trsignal' /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include/string.h:374: error: previous declaration of 'strsignal' was here /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c:414: error: conflicting types for 's trsignal' /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include/string.h:374: error: previous declaration of 'strsignal' was here /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c: In function `psignal':/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c:563: error: argument "signo" doesn't match prototype /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include/signal.h:141: error: prototype declaration /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c:563: error: argument "message" doesn 't match prototype /home/alex/buildroot/build_nios2/staging_dir/nios2-linux-uclibc/sys-include/signal.h:141: error: prototype declaration /home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5/libiberty/strsignal.c:568: warning: comparison between sig ned and unsigned make[2]: *** [strsignal.o] 错误 1 make[2]: Leaving directory `/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/nios2-linux-uclibc/libiberty' make[1]: *** [all-target-libiberty] 错误 2 make[1]: Leaving directory `/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final'make: *** [/home/alex/buildroot/toolchain_build_nios2/gcc-3.4.5-final/.compiled] 错误 2[alex@localhost download]$ What can I do? Thank you! - Altera_Forum
Honored Contributor
Attached is the zip containing the kernel's usr/initramfs_list. You should have the similar file AFTER the kernel build. If you can't boot kernel, attach the zip containing your file in the post.
You should check the .config of your kernel. Compare it with the file kernel.config in build.zip, the only diff should be atlera jtag console. It must have correct initramfs setup. - Altera_Forum
Honored Contributor
Hi Alex,
I think you are using the latest buildroot/uClibc which have problems. Please use the new build0207 script attached in post#1, remove line 1-34, which prepares source for kernel/uClinux-dist. Remove old ~/buildroot, and run ./build0207 - Altera_Forum
Honored Contributor
hi hippo:
I remove old buildroot ,rootfs, linux-2.6.x, linux-2.6.15.4 frisst.Then rebuilded the toolschian follow your new update with ./build0207. But I still failed .I think the failed reason is ccache.samba.org web site I got follow informathion: /buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-objcopy PREFIX=/home/alex/buildroot/build_nios2/root utils install_utils make[1]: Entering directory `/home/alex/buildroot/toolchain_build_nios2/uClibc' CC utils/readelf STRIP -x -R .note -R .comment ../utils/readelf make CROSS=" /home/alex/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-" CC="/home/alex/buildroot/build_nios2/staging_dir/bin/nios2-linux-uclibc-gcc" -C utils utils_install install -d /home/alex/buildroot/build_nios2/root/usr/bin# install -m 755 ../utils/readelf /home/alex/buildroot/build_nios2/root/usr/bin/readelf make[1]: Leaving directory `/home/alex/buildroot/toolchain_build_nios2/uClibc' touch -c /home/alex/buildroot/build_nios2/root/usr/bin/ldd wget --passive-ftp -P /home/alex/buildroot/dl http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz (http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz) --12:14:39-- http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz (http://ccache.samba.org/ftp/ccache/ccache-2.4.tar.gz) => `/home/alex/buildroot/dl/ccache-2.4.tar.gz' 正在解析主机 ccache.samba.org... 66.70.73.150 正在连接 ccache.samba.org[66.70.73.150]:80... 已连接。 已发出 HTTP 请求,正在等待回应... 404 Not Found 12:14:40 错误 404:Not Found。 make: *** [/home/alex/buildroot/dl/ccache-2.4.tar.gz] 错误 1 [alex@localhost download]$ I will search other web to obtain the ccache-2.4.tar.gz, then download it in ~/download dir.If you know other web site what have the file ,pelease tell me. 2) I make process, I got other information about watchdog. patch file drivers/char/watchdogs/Makefile Hunk# 1 Failed at 39 1 out of 1 hunk Failed -saving rejects to file drivers/char/watchdogs/Makefile.rej - Altera_Forum
Honored Contributor
Hi Alex,
1. the ccache is not required, you can disable it. cd ~/buildroot make menuconfig Toolchain Options--> [ ] Enable ccache support? make 2. Ignore the watchdog patch fail of the new kernel. You can update the watchdog Makefile later. - Altera_Forum
Honored Contributor
HI HIPPO:
I make successed,and run in my dvb. Thank you.