Forum Discussion
Altera_Forum
Honored Contributor
19 years ago --- Quote Start --- originally posted by nacide@Oct 24 2006, 06:29 PM hippo,
after doing all exactly as stated in the uclinux-dist tutorial, the kernel compiled and a zimage was made but the compile ends with an error.
i dont know what is missing:
/bin/sh: nios2-elf-gcc: command not found
make[3]: entering directory `/home/nios2/uclinux-dist/uclibc'
/bin/sh: nios2-elf-gcc: command not found
+ ./extra/scripts/fix_includes.sh -k '~/uclinux-dist-test/linux-2.6.x' -t nios2 -n
the file ~/uclinux-dist-test/linux-2.6.x/makefile or ~/uclinux-dist-test/linux-2.6.x/include/linux/version.h is missing!
perhaps your kernel source is broken?
make[3]: *** [headers] error 1
make[3]: leaving directory `/home/nios2/uclinux-dist/uclibc'
make[2]: *** [uclibc] error 2
make[2]: leaving directory `/home/nios2/uclinux-dist/lib'
make[1]: *** [all] error 2
make[1]: leaving directory `/home/nios2/uclinux-dist/lib'
make: *** [subdirs] error 1
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=18868)
--- quote end ---
--- Quote End --- make menuconfig check if you have the correct target? Altera, nios2nommu, and Libc version must be None. Vendor/Product Selection ---> --- Select the Vendor you wish to target (Altera) Vendor --- Select the Product you wish to target (nios2nommu) Altera Products Kernel/Library/Defaults Selection ---> (linux-2.6.x) Kernel Version (None) Libc Version [ ] Default all settings (lose changes) [ ] Customize Kernel Settings [ ] Customize Vendor/User Settings [ ] Update Default Vendor Settings Then <exit> <exit> <yes>