Forum Discussion
Altera_Forum
Honored Contributor
20 years agoHi scott,
Thanks alot.....I compiled the uclinux code based on marc leeman cross tool chain.....as well as instructions from his home page.........here is the link.... http://scorpius.homelinux.org/~marc/nios2.html (http://scorpius.homelinux.org/~marc/nios2.html) I am using nios-II 5.0. Also...I am using a file that comes with nios-II 5.0 ......under this directory.(C:\altera\kits\nios2\examples\verilog\niosII_stratix_1s40\standard\std_1s40.ptf in order to compile uclinux...here are the steps: $ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=std_1s40.ptf $ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- $ make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- menuconfig the uclinux compiled...without any error & I used "nios2-download -g vmlinux" to download the kernel to stratix board...it's working fine...except that..I can do any thing.......untill I will able to communicate via u-boot.........then I will start on my research project. ******************************************************************************** here is the output that u wanna see..... ------------------------------------------------ Welcome To Altera SOPC Builder Version 5.00, Built Thu Mar 31 14:21:28 PST 2005 ------------------------------------------------ ------------------------------------------------ Welcome to the Nios II Development Kit Version 5.0, Built Wed Apr 20 19:05:21 PDT 2005 Example designs can be found in /cygdrive/c/altera/kits/nios2/examples ------------------------------------------------ (You may add a startup script: c:/altera/kits/nios2/user.bashrc) /cygdrive/c/altera/kits/nios2/examples/uclinux_nios2 [SOPC Builder]$ nios2-elf-strip u-boot /cygdrive/c/altera/kits/nios2/examples/uclinux_nios2 [SOPC Builder]$ nios2-elf-objdump -h u-boot u-boot: file format elf32-littlenios2 Sections: Idx Name Size VMA LMA File off Algn 0 .text 000134a1 018e0000 018e0000 00000094 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE 1 .u_boot_cmd 00000360 018f34a4 018f34a4 00013535 2**2 CONTENTS, ALLOC, LOAD, DATA 2 .data 00000900 018f3804 018f3804 00013895 2**2 CONTENTS, ALLOC, LOAD, DATA 3 .sdata 00000088 018f4110 018f4110 00014195 2**2 CONTENTS, ALLOC, LOAD, DATA, SMALL_DATA 4 .sbss 0000012c 018f4198 018f4198 0001421d 2**2 ALLOC, SMALL_DATA 5 .bss 00003c30 018f42c4 018f42c4 0001421d 2**2 ALLOC 6 .comment 000006e0 00000000 00000000 0001421d 2**0 CONTENTS, READONLY /cygdrive/c/altera/kits/nios2/examples/uclinux_nios2 [SOPC Builder]$ thanks for the help.