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

bootpath

Altera_Forum
Honored Contributor II
1,417 Views

Which is the first function (and in which file) that gets run when a (microtronix) nios uClinux kernel boots up?

0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
653 Views

One of the kernel guys can correct me if I'm wrong, but I believe the first code executed is in linux-2.6.x/arch/nios2nommu/kernel/head.S. Look for "__start:" 

 

Dennis Scott 

Microtronix Datacom Ltd.
0 Kudos
Altera_Forum
Honored Contributor II
653 Views

Thanks! So where is the main function located? (what that assembly code does it work around for a bit, then call main) I was more asking about that.

0 Kudos
Altera_Forum
Honored Contributor II
653 Views

The main function is located in the start.c file in the same directory. Main then calls start_kernel() found in linux-2.6.x/init/main.c. 

 

Dennis Scott 

Microtronix Datacom Ltd.
0 Kudos
Altera_Forum
Honored Contributor II
653 Views

Thanks!

0 Kudos
Reply