Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

UCLinux build errors with DE2 Board 2C35.

Altera_Forum
Honored Contributor II
1,610 Views

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!
0 Kudos
12 Replies
Altera_Forum
Honored Contributor II
477 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

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&#39;s the same error. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif  

 

For the other section of this forum, i &#39;ve already see it. But the iriver problem&#39;s come when he want run linux. Me, i&#39;ve a problem for build it.
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
477 Views
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

sdhnain and MFM, u are brilliant !!! http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/tongue.gif  

Thanks!
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

I &#39;d like build my system with a DE2 exemple ptf, i use the one named "nios_0.ptf" of DE2_NET application. And i&#39;ve again some driver error when i build my kernel. 

 

make: *** Error 1 make: *** Error 2 make: *** Error 2 make: *** Error 2 make: Leaving directory 

 

What can i do ? http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

 

--- Quote Start ---  

originally posted by pairin20@May 14 2006, 10:20 PM 

i &#39;d like build my system with a de2 exemple ptf, i use the one named "nios_0.ptf" of de2_net application. and i&#39;ve again some driver error when i build my kernel. 

 

make: *** error 1 make: *** error 2 make: *** error 2 make: *** error 2 make: leaving directory 

 

what 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&#39;s Nios II 2C35 dev board. 

For Eithernet DE2 uses DM9000, while Altera&#39;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)
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

make: *** Error 1 make: *** Error 2 make: *** Error 2 make: *** Error 2 make: Leaving directory 

 

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.gif
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

 

--- Quote Start ---  

originally posted by pairin20@May 14 2006, 10:07 AM 

make: *** error 1 make: *** error 2 make: *** error 2 make: *** error 2 make: leaving directory 

 

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.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&#39; 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
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

In fact, for the moment i don&#39;t need the network fonctions. So I&#39;ve disable all in my config. Then I&#39;ve build my kernel perfectly. 

I&#39;ve download it in RAM and when i launch the terminal it says this log: 

nios2-terminal: log (http://c.beyls.free.fr/log-error.jpg

http://c.beyls.free.fr/log-error.JPG  

 

What do u think about it ?  

For the moment, I&#39;haven&#39;t load my filesystem. Do u think that my kernel is ok ?
0 Kudos
Altera_Forum
Honored Contributor II
477 Views

 

--- Quote Start ---  

originally posted by pairin20@May 15 2006, 05:19 AM 

in fact, for the moment i don&#39;t need the network fonctions. so i&#39;ve disable all in my config. then i&#39;ve build my kernel perfectly. 

i&#39;ve download it in ram and when i launch the terminal it says this log: 

nios2-terminal: log (http://c.beyls.free.fr/log-error.jpg

http://c.beyls.free.fr/log-error.jpg  

 

what do u think about it ?  

for the moment, i&#39;haven&#39;t load my filesystem. do u think that my kernel is ok ? 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15362) 

--- quote end ---  

 

--- Quote End ---  

 

You must have root file system to run Linux. 

If you want to use romfs on CFI for rootfs , you must modify the altera.c map file for mtd. 

Last advice, follow buildroot guide. 

There is a kernel image which you can try without compiling anything.
0 Kudos
Reply