advertisement

Making your own bootloader

59 %
41 %
advertisement
Information about Making your own bootloader
Technology

Published on February 17, 2014

Author: iamumr

Source: slideshare.net

Description

Step by step process to create a program that boots at start-up in assembly language and making bootable pendrive or floppy drive
advertisement

Step 1 as test.S -o test.o ld –Ttext 0x7c00 --oformat=binary test.o –o test.bin ● ● ● as test.S –o test.o: Converts the given assembly code into respective object code which is an intermediate code generated by the assembler before converting into machine code. The --oformat=binary switch tells the linker you want your output file to be a plain binary image The -Ttext 0x7c00 tells the linker you want your "text" (code segment) address to be loaded to 0x7c00 and thus it calculates the correct address for absolute addressing.

Step 2 //Writing to USB dd if=test.bin of=/dev/sdb1 //For booting from virtual disk in vmware dd if=/dev/zero of=floppy.img bs=512 count=2880 dd if=test.bin of=floppy.img ● Utility dd : Converts and copies the file

Step 3 ● ● ● Enter BIOS Modify the boot order to bring your usb device to the top. BOOT !

Step 3 ● ● ● Enter BIOS Modify the boot order to bring your usb device to the top. BOOT !

Add a comment

Related presentations

Presentación que realice en el Evento Nacional de Gobierno Abierto, realizado los ...

In this presentation we will describe our experience developing with a highly dyna...

Presentation to the LITA Forum 7th November 2014 Albuquerque, NM

Un recorrido por los cambios que nos generará el wearabletech en el futuro

Um paralelo entre as novidades & mercado em Wearable Computing e Tecnologias Assis...

Microsoft finally joins the smartwatch and fitness tracker game by introducing the...