Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build] Fix hd64mbr-minix image build and setboot partition write bug #2143

Merged
merged 2 commits into from
Dec 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,130 -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
Loading