How to print a image on a bootloader?
-
- Posts: 2
- Joined: Mon Apr 14, 2014 6:04 am
How to print a image on a bootloader?
I trying to make a Bootloader for a OS project im doing 'BlueKnightOS' but i want it to be like the bootloader that windows has like for example it prints out a image on the screen.
Re: How to print a image on a bootloader?
This might be a http://wiki.osdev.org/Beginner_Mistakes.
In any case, in the 512 bytes of a boot loader you can't do much, so load a stage2/stage3, then use either BIOS interrupts or ATA commands to read from the disk.
You can choose one of several formats to store the image, the simplest of which to implement is a bitmap (bmp) file.
Then, again either use BIOS interrupts to set a video mode and put the image on screen, or VESA to get a frame buffer or whatever.
In any case, in the 512 bytes of a boot loader you can't do much, so load a stage2/stage3, then use either BIOS interrupts or ATA commands to read from the disk.
You can choose one of several formats to store the image, the simplest of which to implement is a bitmap (bmp) file.
Then, again either use BIOS interrupts to set a video mode and put the image on screen, or VESA to get a frame buffer or whatever.
[nx] kernel: http://github.com/zhiayang/nx