- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
When I try to follow the Quickstart guide, the project build fails with the following output:
LD drivers/char/built-in.o CC drivers/ide/ide.o /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.4/linux-2.6.x/drivers/ide/ide.c: In function `init_hwif_data': /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.4/linux-2.6.x/drivers/ide/ide.c:218: error: `na_ide_ide' undeclared (first use in this function) /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.4/linux-2.6.x/drivers/ide/ide.c:218: error: (Each undeclared identifier is reported only once /cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.4/linux-2.6.x/drivers/ide/ide.c:218: error: for each function it appears in.) make[3]: *** [drivers/ide/ide.o] Error 1 make[2]: *** [drivers/ide] Error 2 make[1]: *** [drivers] Error 2 make: *** [all] Error 2 make: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_0.1.4/linux-2.6.x' Any ideas ??? Karl.Link Copied
8 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Karl:
By default, support for the CF interface on the Altera Dev Boards is enabled in the kernel. Your compile failed because it could not find the appropriate definitiions (na_ide_ide) for this interface. Did you use the .ptf file we supplied with the distribution or have you created your own Quartus Project? If you did use the .ptf file we supplied (found under nios2/examples/verilog/<board>/linux/), can you check whether the na_ide_ide symbol was created in nios2_system.h (found in your workspace for the kernel, probably nios2/bin/eclipse/workspace/<whatever_you_called_it>/build/include) If you created your own Quartus Project and you wish to use the CF interface, you'll need the Compact Flash Component. If you don't care or don't want to wait for the CF Component, you can simply disable IDE support (in the kernel configuration, under Device Drivers->ATA/ATAPI/MFM/RLL support) and the compile should complete without further ado. mike- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
--- Quote Start --- originally posted by mike@May 26 2004, 06:46 AM karl:
by default, support for the cf interface on the altera dev boards is enabled in the kernel. your compile failed because it could not find the appropriate definitiions (na_ide_ide) for this interface.
did you use the .ptf file we supplied with the distribution or have you created your own quartus project? if you did use the .ptf file we supplied (found under nios2/examples/verilog/<board>/linux/), can you check whether the na_ide_ide symbol was created in nios2_system.h (found in your workspace for the kernel, probably nios2/bin/eclipse/workspace/<whatever_you_called_it>/build/include)
if you created your own quartus project and you wish to use the cf interface, you'll need the compact flash component. if you don't care or don't want to wait for the cf component, you can simply disable ide support (in the kernel configuration, under device drivers->ata/atapi/mfm/rll support) and the compile should complete without further ado.
mike --- Quote End --- Hi Mike, I based the system on the Full Featured ptf file from the examples Altera supplied with Nios II. Because I am in Europe we look in the VHDL directories and I never noticed the Linux example in the Verilog dirs. Thanks for your quick reponse. I will get back if I am succesful. Karl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Were you successful?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am having exactly the same problem. I used the ptf file from the distribution; altera/kits/nios2/examples/verilog/niosII_cyclone_1c20/linux/linux_1c20.ptf. :huh: :huh: :huh:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please forgive the huh, huh, huh, in the previous post; It was unintentional.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Does the build fail in exactly the same place? Or does it fail somewhere else?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It always fails in the same place. It is related to the IDE drivers though, if I turn IDE support off in the kernel configuration, it compiles correctly. I would like to include IDE support though.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you upload the copy of the nios2_system.h file for your kernel project?
You can find it in: <project>/build/include We'll start from there and see if we can figure out what the problem is.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page