Skip to content

Commit

Permalink
Add .cfi and .dsk formats to fvi
Browse files Browse the repository at this point in the history
Include a .cfi sample file only since it is much smaller of the two.
  • Loading branch information
dfandrich committed Jul 26, 2023
1 parent 3636f5a commit e7d7934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions fvi
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,19 @@ for f in "$@" ; do
hdiutil imageinfo "$sf"
;;

# requires: libdsk-progs
*.cfi) filetype_label CFI floppy disk image
# This type can't be auto-detected so it needs to be specified
dskid -type cfi -- "$f"
dsklabel -type cfi "$sf"
;;

# requires: libdsk-progs
*.dsk) filetype_label Floppy disk image
dskid -- "$f"
dsklabel "$sf"
;;

# requires: dtc || device-tree-compiler
*.dtb) filetype_label Device Tree Binary file
dtc -I dtb -O dts -o - -- "$f"
Expand Down
Binary file added testfiles/type1.cfi
Binary file not shown.

0 comments on commit e7d7934

Please sign in to comment.