Forum Discussion

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

How the nios2-linux boot?

How the nios2-linux boot?

I am puzzled about the procedure of nios's boot up.Here is my question:

After reset, which code execute first?

I am afraid head.S is the bootloader of Nios-linux.But not sure.

In arch\nios2nommu\kernel\head.S, this program flush the cache first,then reset peripheral devices.Last, "callr main".

In i386, when boot, linux will prepare a running environment for itself ,

it will initialize memory,start page manage,and so on...

But nois-linux ,just call main? is main user application?

where starting page manage?

help me!

Thanks in advance!

1 Reply

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

    Hi xunios,

    > After reset, which code execute first?

    > I am afraid head.S is the bootloader of Nios-linux.But not sure.

    Everything starts at _start in head.S.

    Regards,

    --Scott