Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by hippo@Nov 4 2006, 11:42 PM really, you should not user nios, unless you are maintaining an old product.
you should move to nios ii. you can find evaluation software from altera's site.
and there are binary toolchain, which you can download from nios wiki.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19165)
--- quote end ---
--- Quote End --- Thanks for Hippo.I follow the instruction and install the gcc for nios2 successfully.Thanks again,and I compile the U-Boot-1.1.4 successful too.To make sure what I did is right.I show my configuration simply as below: 1.Intall BinaryToolchain. 2.download the u-boot-1.1.4 and uncompress it under the catalog /home/yy 3.modify the file /home/yy/u-boot-1.1.4/Makefile like this: ifeq ($ARCH),nios2) CROSS_COMPILE = /opt/nios2/bin/nios2-linux-uclibc- endif 4.make a nios2 target for test,what I did is like this: [root@localhost u-boot-1.1.4]#make PK1C20_config Configuring for PK1C20 board... [root@localhost u-boot-1.1.4]#make ...snip... make[1]: Leaving directory `/home/yy/u-boot-1.1.4/common' UNDEF_SYM=`/opt/nios2/bin/nios2-linux-uclibc-objdump -x lib_generic/libgeneric.a board/psyent/pk1c20/libpk1c20.a cpu/nios2/libnios2.a lib_nios2/libnios2.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a |sed -n -e 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`; /opt/nios2/bin/nios2-linux-uclibc-ld -Bstatic -T /home/yy/u-boot-1.1.4/board/psyent/pk1c20/u-boot.lds -Ttext 0x018e0000 $UNDEF_SYM cpu/nios2/start.o --start-group lib_generic/libgeneric.a board/psyent/pk1c20/libpk1c20.a cpu/nios2/libnios2.a lib_nios2/libnios2.a fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a drivers/libdrivers.a drivers/sk98lin/libsk98lin.a post/libpost.a post/cpu/libcpu.a common/libcommon.a --end-group -L /opt/nios2/lib/gcc/nios2-linux-uclibc/3.4.6 -lgcc -Map u-boot.map -o u-boot /opt/nios2/bin/nios2-linux-uclibc-objcopy --gap-fill=0xff -O srec u-boot u-boot.srec /opt/nios2/bin/nios2-linux-uclibc-objcopy --gap-fill=0xff -O binary u-boot u-boot.bin [root@localhost u-boot-1.1.4]# At last,I found u-boot.map u-boot.srec u-boot.bin and u-boot these files. Thanks for anyone who ever helped me,and I will continue to study u-boot and uClinux. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif