Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

uClinux boot routine

Hello,

I'm just curious about the boot process of uClinux on my NIOSII board. I'm downloading

the zImage over the NIOSII command shell: nios2-download -g

What is the relation between the bootloader and the zImage file and whats with the -g

parameter in the command?

Would like to explain this part in my documentation and would appreciate if somebody

could give some comments.

Thanks again,

Roman

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    -g just says nios2-download to start the CPU after the download. If you omit -g, nios2-download will load the elf file in memory, but leave the CPU in a paused state.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    whats with the -g parameter in the command?

    --- Quote End ---

    nios2-download --help

    -Michael
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Thx for replies.

    So where is the zImage file stored when I'm downloading with this methode to the board?

    Roman
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    The elf file itself contains the address at which the data should be uploaded.