Forum Discussion

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

How do I start a Linux kernel from a bootloader

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

1 Reply