Skip to content

Commit

Permalink
[build] Fix hd64mbr-minix image build and setboot partition write bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ghaerr committed Dec 18, 2024
1 parent 3bb5ef9 commit 5abec87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion elks/tools/setboot/setboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static void writePartition(unsigned char *buf)
p->head = 1;
p->sector = 1; /* next cylinder after MBR, standard*/
p->cyl = 0;
p->start_sect = NumTracks; /* zero-relative start sector here*/
p->start_sect = SecPerTrk; /* zero-relative start sector here*/
nr_sects -= SecPerTrk;
#else
p->head = 0;
Expand Down
2 changes: 1 addition & 1 deletion image/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ hd32mbr-minix: hd32-minix

hd64mbr-minix: hd64-minix
dd if=/dev/zero bs=512 count=63 | cat - hd64-minix.img > hd64mbr-minix.img
setboot hd64mbr-minix.img -P63,16,63 -Sm $(HD_MBR_BOOT)
setboot hd64mbr-minix.img -P63,16,127 -Sm $(HD_MBR_BOOT)

hd32mbr-fat: hd32-fat
dd if=/dev/zero bs=512 count=63 | cat - hd32-fat.img > hd32mbr-fat.img
Expand Down

0 comments on commit 5abec87

Please sign in to comment.