Forum Discussion
11 Replies
- Altera_Forum
Honored Contributor
I would also be interested in in install directions for Linux. I have
the toolkit for 5.0 installed in Linux and I have been able to use SOPC builder etc. but I am not sure how to install the 1.4 distribution under Linux. Thanks! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by ranye@Jun 29 2005, 05:50 AM i would also be interested in in install directions for linux. i havethe toolkit for 5.0 installed in linux and i have been able to
use sopc builder etc. but i am not sure how to install
the 1.4 distribution under linux. --- Quote End --- I'm also working on Linux for this one (mainly commandline line) and my fears seem to be confirmed. From what I see, generating clean patches from this release is going to be the same pain as it was the previous time. I just hope they did not check in source files in CVS that they did not change; the keyword expansion pollutes the patch. /me fires up the patchutils I hope I can make patches available in the following days to go from linux-2.6.11 to linux-2.6.11-uc0 and then the microtronix changes. for the installation instructions, if you unzip the release, the directory structure look like Java logic, maybe it fits in the Eclipse directory structure. Otherwise, I there's an exe in the archive, maybe try it with wine. Anywho, you don't even need the eclipse stuff, just run it from the command line http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by marc@Jun 29 2005, 09:33 AM /me fires up the patchutils --- Quote End --- It's alive!
Got the nios2nommu arch ripped to a patch of 3.5 MB (which is still quite big though, but the rework is not yet complete, filterdiff, junk removal, ...). You only need linux-2.6.11-uc0.patch to move from the kernel.org kernel to uCLinux and 00.nios2nommu.linux-2.6.11-uc0-nios2.patch for the arch code. This is enough for a NFS kernel.# uname -a uClinux stratixke 2.6.11-uc0# 2 Wed Jun 29 13:05:26 CEST 2005 nios2nommu unknown - Altera_Forum
Honored Contributor
Sorry, there's no official support for the Linux version of the Nios II IDE. At Microtronix, we tend to stick to the commandline when working under Linux and the Nios II processor.
And there is definitely no official support under Wine at this point in time. - Altera_Forum
Honored Contributor
I don't need wine support for sure.
I don't really need eclipse either I am used to command line for everything else. I can see how configuring the kernel can be just like any other 2.6 kernel but how do you load the kernel into the target. Are there a few commands that you can list that I need to use. Thanks! - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- At Microtronix, we tend to stick to the commandline[/b] --- Quote End --- respect. <div class='quotetop'>QUOTE </div> --- Quote Start --- when working under Linux and the Nios II processor.[/b] --- Quote End --- removed 40K from the original 60 MB patch by simply
hm, where did that come from http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/blink.gif somebody is writing or pasting GNU/Linux documentation under Windows http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/biggrin.gif:s/^M//g - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by ranye@Jun 29 2005, 04:53 PM i can see how configuring the kernel can be just like any other 2.6 kernel buthow do you load the kernel into the target. are there a few commands that you
can list that i need to use. --- Quote End --- it is documented in the quickstart guide somewhere but for loading the kernel
Still haven't figured out (or had the time basically) how to restart a restart a running kernel. I have some faint memories of reading something along those lines, but current, I'm basically porting embedded ppc firmware to the board.$ nios2-download -g vmlinux - Altera_Forum
Honored Contributor
Since we don't have access to any of the Altera Linux tools for the moment, we always load the target using a Windows system. Typically, we load it directly into flash, but when debugging is required, we'll load it into ram using GDB.
So the basic sequence of events is: (1) nios2-gdb-server --tcpport xxxx --tcppersist (2) nios2-elf-gdb vmlinux From nios2-elf-gdb: (gdb) target remote yyy.yyy.yyy.yyy:xxxx (gdb) load (gdb) c We've also had success running the nios2-elf-gdb client from Linux and connecting to a copy of nios2-gdb-server on Windows. Which raises more interesting choices for GDB clients. One of our developers here has been using ddd for the last little while to do his debugging work. (and yes, we do have linefeed issues... its been a thorn in our side for ages but it so low priority on our list of things to do that it just never gets done... sigh) - Altera_Forum
Honored Contributor
whoops... with regard to flash loading... it depends on how the board component for your development board is laid out. But the basic idea is:
(1) nios2-elf-objcopy -O binary vmlinux vmlinux.bin (2) bin2flash --input=vmlinux.bin --output=vmlinux.flash --base=0xXXXXXXXX --offset=0x0 (3) nios2-flash-programmer --sof=YYYY --input=vmlinux.flash --base=0xXXXXXXXX I'm doing a lot of this from the top of my head.... but that's the basic idea. 0xXXXXXXXX should be the base address of the flash component in your board component (i.e. altera_nios_dev_board_stratix_1s10 for a Stratix 1s10) YYYY represents the sof file within the component/system directory for the board component (i.e. altera_nios_dev_board_stratix_1s10/system/altera_nios_dev_board_stratix_1s10.sof) I can double check the commands later on... but it'll give you an idea of what's required. - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by ken@Jun 29 2005, 06:44 PM (and yes, we do have linefeed issues... its been a thorn in our side for ages but it so low priority on our list of things to do that it just never gets done... sigh) --- Quote End --- well, (BFLT files with) an *.exe extension look(s) even more funny to embedded Linux developers http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/ohmy.gif do those actually end up in the embedded targets?