-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove ubuntu-boot and replace with a simpler mbr
- Loading branch information
1 parent
adadcea
commit de30c75
Showing
5 changed files
with
66 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
OUTPUT_FORMAT("binary"); | ||
ENTRY(start); | ||
SECTIONS | ||
{ | ||
. = 0x7c00; | ||
.text : AT(0x7c00) { | ||
*(.text); | ||
} | ||
.data : { | ||
*(.data); | ||
} | ||
/DISCARD/ : { | ||
*(*); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
.code16 | ||
.section .text | ||
.globl start | ||
|
||
start: | ||
jmp $0, $.entry | ||
.entry: | ||
cli | ||
xorw %ax, %ax | ||
movw %ax, %ss | ||
movw %ax, %ds | ||
movw $0x7c00, %sp | ||
sti | ||
cld | ||
movw $.message, %si | ||
.print: | ||
lodsb | ||
cmp $0, %al | ||
je .done | ||
push %si | ||
movb $0xe, %ah | ||
movw $0x0007, %bx | ||
int $0x10 | ||
pop %si | ||
jmp .print | ||
.done: | ||
cli | ||
hlt | ||
|
||
.section .data | ||
.message: | ||
.string "Please boot in EFI mode.\r\n\0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,8 +14,6 @@ parts: | |
source: . | ||
build-packages: | ||
- ubuntu-dev-tools | ||
- grub-pc-bin | ||
- grub-common | ||
plugin: make | ||
|
||
hooks: | ||
|