10 Commits

Author SHA1 Message Date
Michael Stapelberg
6ab9fef830 bootloader: fix 15/16 MB kernel size limit
The adc instruction fix was contributed by abbeyj on lobsters (thank you!).

fixes https://github.com/gokrazy/gokrazy/issues/248
2024-08-27 21:00:26 +02:00
Michael Stapelberg
d29c615f07 build bootloader with make; generate ELF with debug symbols
This doesn’t change the bootloader bytes themselves (bootloader.img),
but helps with debugging in GDB+QEMU.
2024-02-03 19:25:42 +01:00
Michael Stapelberg
76ca7a09ea switch from generating go source to go:embed 2024-02-03 19:22:38 +01:00
Michael Stapelberg
cd6fdff7bb mbr: write bootloader to bootloader.img as well 2024-02-03 19:20:49 +01:00
Michael Stapelberg
4587bc3af7 gofmt 2021-11-21 16:42:19 +01:00
Michael Stapelberg
cee26266a0 mbr: include partuuid in disk signature
related to https://github.com/gokrazy/gokrazy/issues/52
2020-04-07 08:53:57 +02:00
Michael Stapelberg
edd739cb2e shave off 1 bootloader byte to make space for the disk signature
Previously, the bootloader occupied 441 bytes, but we need it to fit within 440
bytes to place the disk signature in the remaining 6 bytes before the partition
table.

related to https://github.com/gokrazy/gokrazy/issues/52
2020-04-07 08:53:48 +02:00
Michael Stapelberg
377f208063 nasm.go: gofmt generated source 2018-07-08 21:55:17 +02:00
Michael Stapelberg
f1fa8f1224 mbr: load cmdline from LBA (like kernel), add Configure function 2018-07-07 00:11:25 +02:00
Michael Stapelberg
60b5366ebd add mbr/bootloader.asm
from https://sebastian-plotz.blogspot.com/2012/07/1.html
2018-07-07 00:09:34 +02:00