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++

How the nios2-linux boot?

Altera_Forum
Honored Contributor II
1,344 Views

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!
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
300 Views

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
0 Kudos
Reply