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

[boot] Add media descriptor 0xfe and boot signature in image FD1232 for PC-98 #1851

Merged
merged 1 commit into from
Apr 6, 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
5 changes: 5 additions & 0 deletions bootblocks/boot_sect.S
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,11 @@ tvram_x:
end_of_code:
//------------------------------------------------------------------------------

#if defined(CONFIG_IMG_FD1232)
.org SECTOR_SIZE/2-2
.word 0xAA55 // boot signature need to be at 0x1FE and 0x1FF
#endif

// ELKS disk parameter structure
// For future expansion, fields should be added at the _front_ of structure

Expand Down
3 changes: 2 additions & 1 deletion image/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ MINIX_MKFSOPTS=
# -k only update offsets 11 through 61 in boot block, all else unchanged
# -N 0 serial number 0
# -v label volume label (don't use with first format as uses two directory entries)
# -m 0xfe media descriptor
ifdef CONFIG_IMG_FD1232
FAT_MKFSOPTS = -s 8 -h 2 -t 77 -M 1024 -d 2 -L 2 -r 6 -k -N 0 -c 1
FAT_MKFSOPTS = -s 8 -h 2 -t 77 -M 1024 -d 2 -L 2 -r 6 -k -N 0 -c 1 -m 0xfe
else
FAT_MKFSOPTS = -f $(TARGET_BLKS) -M 512 -d 2 -L 9 -r 14 -k -N 0 -c 1
endif
Expand Down
Loading