how can i start linux kernel from my own bootloader ? i have already formatted my flash drive to ext3 and pasted the compiled kernel there. . now how can i load linux from my assembly code ? examples are much welcome // Thankyou in advance ..
Regards,
Mohsin.
loading linux kernel from my own bootloader
- KotuxGuy
- Member
- Posts: 96
- Joined: Wed Nov 25, 2009 1:28 pm
- Location: Somewhere within 10ft of my favorite chubby penguin!
Re: loading linux kernel from my own bootloader
Give a man Linux, you feed the nearest optician ( Been staring at the PC too long again? ).
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory )
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory )
Re: loading linux kernel from my own bootloader
Um, what? No, linux certainly is not multiboot compliant. Linux uses its own boot protocol, which for x86 is fairly well documented. Newer kernels have both 16-bit and 32-bit entry points. Look at Documentation/x86/boot.txt in the linux kernel source.
- KotuxGuy
- Member
- Posts: 96
- Joined: Wed Nov 25, 2009 1:28 pm
- Location: Somewhere within 10ft of my favorite chubby penguin!
Re: loading linux kernel from my own bootloader
Whoops, my bad.
Give a man Linux, you feed the nearest optician ( Been staring at the PC too long again? ).
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory )
Give a man OS X, you feed the nearest NVidia outlet ( I need more GPU power!! )
Give a man Windows, you feed the entire Tylenol company ( Self explanatory )
Re: loading linux kernel from my own bootloader
Yeah, if you want to load Linux you'll have to implement the bzImage format. From looking at it briefly, it doesn't look too complicated - there's a decompression stub that handles all the interesting stuff in the kernel image, you just have to find out how to locate the entry point and how to pass parameters/modules/whatever.
Re: loading linux kernel from my own bootloader
can someone please give me an example ? i have tried searching alot .. all i get is theory
Re: loading linux kernel from my own bootloader
Sure, look at the grub source code. But really, the boot protocol as documented in Documentation/x86/boot.txt should be more than enough.sp3tsnaz wrote:can someone please give me an example ? i have tried searching alot .. all i get is theory
Re: loading linux kernel from my own bootloader
so if i have a 32 bit operating system , do i have to call start_32 to get linux kernel running ?
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: loading linux kernel from my own bootloader
For the third time, read boot.txt. Stop bugging us until you've read it.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]