print ms i am kernel

Discussions on more advanced topics such as monolithic vs micro-kernels, transactional memory models, and paging vs segmentation should go here. Use this forum to expand and improve the wiki!
Post Reply
ammar
Posts: 14
Joined: Thu Feb 11, 2016 10:55 am
Libera.chat IRC: ammars6

print ms i am kernel

Post by ammar »

i am create bootloader use FAT32 and usb flash memory, and i ... is very important, see that image using os windows and virtuabox. how loading kernerel and why? command write in ubuntu to load kernel
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: print ms i am kernel

Post by Combuster »

Practice English first. You'll need it to read documentation. You probably don't have anybody willing to translate everything for you. Your question is very confusing, and you're probably saying things you don't want to say.

Hint: Are you looking for GRUB?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

Re: print ms i am kernel

Post by onlyonemac »

The command to write the kernel to disk in Ubuntu is "dd". Make sure that you write it to your "test" media, not your computer's hard drive, otherwise you will destroy the data on your hard drive.

If you're wanting to know how to load the kernel from disk in your own bootloader, I think I've already answered that in your other thread. Basically, read the FAT32 filesystem structures from disk using the BIOS functions to read from disk and parse them to locate your kernel, then read the kernel from disk using the same BIOS functions. I'm not sure of the details of how the FAT32 filesystem works and I can't remember how to use the BIOS functions off the top of my head but from what I've heard it's quite easy to parse a FAT32 filesystem and using the BIOS functions is very simple.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Post Reply