- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not sure if this is the correct location for this post but here goes anyway
I am building uClinux-dist from nios2-linux06212010 and using nios2-linux-gcc ver. 3.4.6 I am building the kernel up to the following point and then... LD init/built-in.o LD .tmp_vmlinux1 kernel/built-in.o(.init.text+0x54c): In function `sched_init_smp': : undefined reference to `____ilog2_NaN' kernel/built-in.o(.init.text+0x54c): In function `sched_init_smp': : relocation truncated to fit: R_NIOS2_CALL26 ____ilog2_NaN make[2]: *** [.tmp_vmlinux1] Error 1 make[1]: *** [sub-make] Error 2 make[1]: Leaving directory `/home/nick/06212010-nios2-linux/nios2-linux/linux-2.6' make: *** [linux] Error 1 Any help greatly appreciated! NickLink Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Nios II supports SMP? That's news to me...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Any ideas of where to disable this support? I'm only going by the directions given in the Nios Wiki for building this kernel........
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi nipri
did you try compile with defalt parameters????? at menuconfig ???? cheers Franz Wagner- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Franz!
I am running make menuconfig in the uClinux-dist dir., selecting "Altera" as the vendor and "niosnommu" as the product. Also, making sure that libc is set to "none" and selecting the "Default all setting" option....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I notice there is a NON_SMP_BUILD option in the Makefile but I'm not sure how to invoke it.... make NON_SMP_BUILD=1 doesn't seem to work...
I am also noticing that I am getting an error as below... right after the SMP related error... Obviously some sort of a config issue going on here???????? mm/built-in.o(.text+0x12df4): In function `shmem_getpage': : undefined reference to `copy_page' mm/built-in.o(.text+0x12df4): In function `shmem_getpage': : relocation truncated to fit: R_NIOS2_CALL26 copy_page make[2]: *** [.tmp_vmlinux1] Error 1- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am not 100%sure but the NON_SMP_BUILD option acts on the compilation process on your computer and will not affect the embedded system/FPGA design you're building. It simply make the compilation process to avoid parallelization on multiple cores/cpus.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What branch are you using?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@gabribob: I think your right about the NON_SMP_BUILD option as far as I can tell from the documentation
@ykozlov: I downloaded and untarred the 06212010 dist and ran ./checkout so I'm not exactly sure which branch I have... I'm running the update script now... something I didn't do previously....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi guys.....
nipri ....dont run the update !!! :S iam using nios2-linux-20090730 ....and running perfectly......... try use this..........is better than 20100621 Franz Wagner- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Your right, the update certainly didn't help!
I found nios2-linux-20090721, am downloading that now....- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, for the info, will post the results!
Nick- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK, 1st problem....
nick@nci3:~/20090929-nios2-linux/nios2-linux/uClinux-dist$ make vendor_hwselect SYSPTF=/home/nick/20090929-nios2-linux/SM3k_rev5.ptf ARCH=nios2 make ARCH=nios2 -C vendors vendor_hwselect make[1]: Entering directory `/home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors' make -C /home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors///. dir_v=/home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors///. -f /home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors/vendors-common.mak vendor_hwselect make[2]: Entering directory `/home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors' /home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors/vendors-common.mak:9: *** target file `romfs.post' has both : and :: entries. Stop. make[2]: Leaving directory `/home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors' make[1]: *** [vendor_hwselect] Error 2 make[1]: Leaving directory `/home/nick/20090929-nios2-linux/nios2-linux/uClinux-dist/vendors' make: *** [vendor_hwselect] Error 2 nick@nci3:~/20090929-nios2-linux/nios2-linux/uClinux-dist$- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ok ......
did you set the path ? PATH=$PATH:/opt/nios2/bin try make make menuconfig and make vendor...... report Franz Wagner
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page