Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUCLinux build errors with DE2 Board 2C35.
Hi,
I installed the Nios II Linux v1.4 released. System : XP, quartus v51, nios v51. Board : DE2 with 2C35. I do exactly what is say in the microtronix “Quick Start Quide.pdf” but I’ve got some errors when i build my linux kernel./cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c: In function `init_hwif_default':
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: `na_ide_ide' undeclared (first use in this function)
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: (Each undeclared identifier is reported only once
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:262: error: for each function it appears in.)
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c: In function `init_ide_data':
/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/drivers/ide/ide.c:313: error: `na_ide_ide_irq' undeclared (first use in this function)
make: *** Error 1
make: *** Error 2
make: *** Error 2
make: *** Error 2
make: Leaving directory `/cygdrive/c/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x' Does Nios II Linux v1.4 support DE2_Board ? I think that my kernel configuration is good. Maybe one problem with the *.ptf but i don’t know exactly. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif Could u help me, Thanks!12 Replies
- Altera_Forum
Honored Contributor
hi,
whiche .ptf do u use ? the hardware configuration of your kernel must match the content of the .ptf used, if not problem with drivers will occur. see also : http://forum.niosforum.com/forum/index.php...ic=3667&hl=2c35 (http://forum.niosforum.com/forum/index.php?showtopic=3667&hl=2c35) http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/wink.gif - Altera_Forum
Honored Contributor
I used diferent PTF, for exemple:
The Altera exemple "std_2C35.ptf" or the "nios_0.ptf" provide in the DE2 demonstration. Finally I tried with a personal ptf and each time it's the same error. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif For the other section of this forum, i 've already see it. But the iriver problem's come when he want run linux. Me, i've a problem for build it. - Altera_Forum
Honored Contributor
hi,
back to kernel configuration : did u "Turn off: Device Drivers -> ATA/ATAPI/MFM/RLL support" as indicated in the quick start guide when configuring kernel ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/rolleyes.gif - Altera_Forum
Honored Contributor
Hi pairin20,
please check this topic out: http://forum.niosforum.com/forum/index.php?showtopic=3871 (http://forum.niosforum.com/forum/index.php?showtopic=3871) - Altera_Forum
Honored Contributor
Hi pairin20,
I think you need to remove IDE support from your kernel configuration. It can be found at: Device Drivers ---> ATA/ATAPI/MFM/RLL support ---> < > ATA/ATAPI/MFM/RLL support - Altera_Forum
Honored Contributor
sdhnain and MFM, u are brilliant !!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif
Thanks! - Altera_Forum
Honored Contributor
I 'd like build my system with a DE2 exemple ptf, i use the one named "nios_0.ptf" of DE2_NET application. And i've again some driver error when i build my kernel.
What can i do ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gifmake: *** Error 1 make: *** Error 2 make: *** Error 2 make: *** Error 2 make: Leaving directory - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by pairin20@May 14 2006, 10:20 PM i 'd like build my system with a de2 exemple ptf, i use the one named "nios_0.ptf" of de2_net application. and i've again some driver error when i build my kernel.make: *** error 1 make: *** error 2 make: *** error 2 make: *** error 2 make: leaving directorywhat can i do ? http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15356)</div> --- Quote End --- DE2 has different hardware from the Altera's Nios II 2C35 dev board. For Eithernet DE2 uses DM9000, while Altera's Nios II dev board use SMC91111. You have to check only what is available to your board in kernel config. Another advice, work on Linux and follow the buildroot guide, http://forum.niosforum.com/forum/index.php?showtopic=3174 (http://forum.niosforum.com/forum/index.php?showtopic=3174)
- Altera_Forum
Honored Contributor
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/unsure.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gifmake: *** Error 1 make: *** Error 2 make: *** Error 2 make: *** Error 2 make: Leaving directory - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by pairin20@May 14 2006, 10:07 AMmake: *** error 1 make: *** error 2 make: *** error 2 make: *** error 2 make: leaving directoryhttp://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/unsure.gif http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/blink.gif http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/mad.gif http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15359)</div> --- Quote End --- hi parinin20 Do you have to modify two places in dm9000x.c ? if not , you should be modified its ,as such following: include/nios2_system.h . define na_DM9000A define na_DM9000A_irq . /drivers/net/dm9000x.c:305: error: `na_dm9000_irq' undeclared here (not in a function) "na_dm9000_irq" update to "na_DM9000A_irq" drivers/net/dm9000x.c:162 # define DM9000_MIN_IO (na_dm9000) "na_dm9000" update to "DM9000A" Hope to help you ! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif jay