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

How do I start a Linux kernel from a bootloader

Altera_Forum
Honored Contributor II
1,247 Views

Hi 

 

I have made a bootloader app that copies the uCLinux to my SDRAM area. Here it is located at 0x1100000.  

----------------------------------------------------- 

int (*pt2Function)(); 

 

void DoIt() __attribute__((cdecl)); 

 

pt2Function = 0x1100000; 

 

(*pt2Function)(); 

----------------------------------------------------- 

When I use the debugger in the NIOS 2 IDE I can see that the copy of the binary vmlinux.bin file has been completed with succes(copied the .bin file to adr : 0x1100000). When I call the last line of the code, it does something but it does not look very right. 

It just types out 

Hello from Nios II! 

Hello from Nios II! 

Hello from Nios II! 

Not always 3 times. Sometimes it is more and some times it is less. 

 

How do I call my Kernel right???? 

 

Hope someone can help. 

 

Regards 

GreateWhite.DK
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
551 Views

okay. Need no help. It is running.

0 Kudos
Reply