SlideShare a Scribd company logo
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 !

More Related Content

What's hot

6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Hari Shankar
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
Teja Bheemanapally
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
Hari Shankar
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
Dhaval Kaneria
 

What's hot (20)

Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Booting
BootingBooting
Booting
 
Boot process
Boot processBoot process
Boot process
 
5. boot process
5. boot process5. boot process
5. boot process
 
Linux boot process
Linux boot processLinux boot process
Linux boot process
 
Booting of Computer System
Booting of Computer SystemBooting of Computer System
Booting of Computer System
 
Windows 10 Operating System
Windows 10 Operating SystemWindows 10 Operating System
Windows 10 Operating System
 
Booting process by Amar singh
Booting process by Amar singhBooting process by Amar singh
Booting process by Amar singh
 
Description of GRUB 2
Description of GRUB 2Description of GRUB 2
Description of GRUB 2
 
Linux Boot Process
Linux Boot ProcessLinux Boot Process
Linux Boot Process
 
Linux booting process
Linux booting processLinux booting process
Linux booting process
 
An Insight into the Linux Booting Process
An Insight into the Linux Booting ProcessAn Insight into the Linux Booting Process
An Insight into the Linux Booting Process
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
Linux installation and booting process
Linux installation and booting processLinux installation and booting process
Linux installation and booting process
 
Boot process -test
Boot process -testBoot process -test
Boot process -test
 
Booting Process OS
Booting Process OSBooting Process OS
Booting Process OS
 
Linux booting process!!
Linux booting process!!Linux booting process!!
Linux booting process!!
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
Linux booting procedure
Linux booting procedureLinux booting procedure
Linux booting procedure
 

Viewers also liked

GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
samuel mutemi
 
Completed MSc TESOL dissertation_Xi ZHU
Completed MSc TESOL dissertation_Xi ZHUCompleted MSc TESOL dissertation_Xi ZHU
Completed MSc TESOL dissertation_Xi ZHU
Xi Zhu
 
氨回收新技術簡介 140219 2
氨回收新技術簡介 140219 2氨回收新技術簡介 140219 2
氨回收新技術簡介 140219 2
h3363989
 
CCHHS HR Recruitment Infographic
CCHHS HR Recruitment InfographicCCHHS HR Recruitment Infographic
CCHHS HR Recruitment Infographic
Lisa Capozzi
 

Viewers also liked (20)

GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
GAME PLAN FOR 2017 GENERAL ELECTION MARCH-2015
 
Ordin MAI nr.-195-din- 2007 criterii SVSU
Ordin MAI  nr.-195-din- 2007 criterii SVSUOrdin MAI  nr.-195-din- 2007 criterii SVSU
Ordin MAI nr.-195-din- 2007 criterii SVSU
 
Eğiticinin Eğitimi Uygulama Sınavı Ör.
Eğiticinin Eğitimi Uygulama Sınavı Ör.Eğiticinin Eğitimi Uygulama Sınavı Ör.
Eğiticinin Eğitimi Uygulama Sınavı Ör.
 
Actify's Product solution Presentation in Simplified Chinese
Actify's Product solution Presentation in Simplified ChineseActify's Product solution Presentation in Simplified Chinese
Actify's Product solution Presentation in Simplified Chinese
 
Completed MSc TESOL dissertation_Xi ZHU
Completed MSc TESOL dissertation_Xi ZHUCompleted MSc TESOL dissertation_Xi ZHU
Completed MSc TESOL dissertation_Xi ZHU
 
It cloud services
It cloud servicesIt cloud services
It cloud services
 
How to dive
How to diveHow to dive
How to dive
 
氨回收新技術簡介 140219 2
氨回收新技術簡介 140219 2氨回收新技術簡介 140219 2
氨回收新技術簡介 140219 2
 
Reglamento del aprendiz sena
Reglamento del aprendiz sena Reglamento del aprendiz sena
Reglamento del aprendiz sena
 
Minor Presentation - Distributed file system
Minor Presentation - Distributed file systemMinor Presentation - Distributed file system
Minor Presentation - Distributed file system
 
Konsep teknologi informasi
Konsep teknologi informasiKonsep teknologi informasi
Konsep teknologi informasi
 
Description and basics of lilo
Description and basics of liloDescription and basics of lilo
Description and basics of lilo
 
tf presentation
tf presentationtf presentation
tf presentation
 
ANTI CORRAPTION
ANTI CORRAPTIONANTI CORRAPTION
ANTI CORRAPTION
 
Struts2.x
Struts2.xStruts2.x
Struts2.x
 
Ordin mai 160 din_2007 planificare svsu
Ordin mai 160 din_2007 planificare svsuOrdin mai 160 din_2007 planificare svsu
Ordin mai 160 din_2007 planificare svsu
 
Anika
AnikaAnika
Anika
 
Riscuri I.S.U. Timis
Riscuri I.S.U. TimisRiscuri I.S.U. Timis
Riscuri I.S.U. Timis
 
CCHHS HR Recruitment Infographic
CCHHS HR Recruitment InfographicCCHHS HR Recruitment Infographic
CCHHS HR Recruitment Infographic
 
Unidad 3
Unidad 3Unidad 3
Unidad 3
 

Similar to Making your own bootloader

Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
fm2008
 
Ccna cheat sheet
Ccna cheat sheetCcna cheat sheet
Ccna cheat sheet
aromal4frnz
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDT
Stephanie Stribling
 

Similar to Making your own bootloader (20)

Starting Raspberry Pi
Starting Raspberry PiStarting Raspberry Pi
Starting Raspberry Pi
 
IT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 3 Exam AnswersIT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
IT Essentials (Version 7.0) - ITE Chapter 3 Exam Answers
 
How to Hack Edison
How to Hack EdisonHow to Hack Edison
How to Hack Edison
 
Swug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainathSwug July 2010 - windows debugging by sainath
Swug July 2010 - windows debugging by sainath
 
03 workshop
 03 workshop 03 workshop
03 workshop
 
Armboot process zeelogic
Armboot process zeelogicArmboot process zeelogic
Armboot process zeelogic
 
pcDuino Presentation at SparkFun
pcDuino Presentation at SparkFunpcDuino Presentation at SparkFun
pcDuino Presentation at SparkFun
 
Windows 8 Client Part 1 "The OS internals for IT-Pro's"
Windows 8 Client Part 1 "The OS internals for IT-Pro's"Windows 8 Client Part 1 "The OS internals for IT-Pro's"
Windows 8 Client Part 1 "The OS internals for IT-Pro's"
 
Introduction to CUDA C: NVIDIA : Notes
Introduction to CUDA C: NVIDIA : NotesIntroduction to CUDA C: NVIDIA : Notes
Introduction to CUDA C: NVIDIA : Notes
 
ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220ChromePad - Chromium OS ThinkPad X220
ChromePad - Chromium OS ThinkPad X220
 
ChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPadChromePad - Chromium OS for ThinkPad
ChromePad - Chromium OS for ThinkPad
 
Howto Pxeboot
Howto PxebootHowto Pxeboot
Howto Pxeboot
 
Bootloader and MMU (english)
Bootloader and MMU (english)Bootloader and MMU (english)
Bootloader and MMU (english)
 
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
Aix5[1].3+hacmp+oracle9 i+weblogic8.1安装实施报告
 
Cisco CCENT Cram Notes
Cisco CCENT Cram NotesCisco CCENT Cram Notes
Cisco CCENT Cram Notes
 
Ccna cheat sheet
Ccna cheat sheetCcna cheat sheet
Ccna cheat sheet
 
Chapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDTChapter 2_Architecture_edited_SDT
Chapter 2_Architecture_edited_SDT
 
IT Essentials (Version 7.0) - ITE Final Exam Answers
IT Essentials (Version 7.0) - ITE Final Exam AnswersIT Essentials (Version 7.0) - ITE Final Exam Answers
IT Essentials (Version 7.0) - ITE Final Exam Answers
 
BKK16-211 Internet of Tiny Linux (io tl)- Status and Progress
BKK16-211 Internet of Tiny Linux (io tl)- Status and ProgressBKK16-211 Internet of Tiny Linux (io tl)- Status and Progress
BKK16-211 Internet of Tiny Linux (io tl)- Status and Progress
 
Алексей Мисник - USB устройства для пентеста
Алексей Мисник - USB устройства для пентестаАлексей Мисник - USB устройства для пентеста
Алексей Мисник - USB устройства для пентеста
 

Recently uploaded

Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Recently uploaded (20)

Key Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdfKey Trends Shaping the Future of Infrastructure.pdf
Key Trends Shaping the Future of Infrastructure.pdf
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdfFIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
FIDO Alliance Osaka Seminar: Passkeys and the Road Ahead.pdf
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
Slack (or Teams) Automation for Bonterra Impact Management (fka Social Soluti...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 

Making your own bootloader

  • 1. 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.
  • 2.
  • 3. 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
  • 4.
  • 5. Step 3 ● ● ● Enter BIOS Modify the boot order to bring your usb device to the top. BOOT !
  • 6. Step 3 ● ● ● Enter BIOS Modify the boot order to bring your usb device to the top. BOOT !