base:tools_for_putting_files_into_a_.d64_image
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
base:tools_for_putting_files_into_a_.d64_image [2015-04-17 04:34] – external edit 127.0.0.1 | base:tools_for_putting_files_into_a_.d64_image [2020-10-08 11:45] – [cc1541] claus | ||
---|---|---|---|
Line 49: | Line 49: | ||
====== cc1541 ====== | ====== cc1541 ====== | ||
- | c1541 works fine for most purposes, but some of the better coders around says it is buggy, and thus there is also [[http://noname.c64.org/ | + | c1541 works fine for most purposes, but some of the better coders around says it is buggy, and thus there is also [[https://csdb.dk/ |
- | < | + | *** This is cc1541 |
- | Usage: | + | |
- | -n diskname | + | Usage: cc1541 -niwfoVTPONlBMmdtuxFSseErbc45gqvh image.[d64|d71|d81] |
- | -i id Disk ID, default=' | + | |
- | -S value Default sector interleave, default=10 | + | -n diskname |
- | -s value Next file sector interleave, after each file | + | -i id Disk ID, default=' |
- | the interleave value falls back to the default value set by -S | + | |
- | -f filename | + | |
-w localname | -w localname | ||
- | local name is used. After file written filename is unset | + | local name is used. After file written, the filename is unset. |
- | -x Don't split files over track 18 hole (default split files) | + | -f filename |
- | -t Use track 18 to also store files (makes -x useless) (default no) | + | include arbitrary PETSCII characters (e.g. -f " |
- | -4 Use tracks 35-40 with SPEED DOS formatting | + | -o Do not overwrite if file with same name exists already. |
- | -5 Use tracks 35-40 with DOLPHIN DOS formatting | + | -V Do not modify image unless it is in valid CBM DOS format. |
+ | -T filetype | ||
+ | and DEL. For DEL, the input file is ignored. Default is PRG. | ||
+ | -P Set write protect flag for next file. | ||
+ | -O Set open flag for next file. | ||
+ | -N Force creation of a new directory entry, even if a file with the | ||
+ | same name exists already. | ||
+ | -l filename | ||
+ | disk, set filename with -f. | ||
+ | -B numblocks | ||
+ | the next file. | ||
+ | -M numchars | ||
+ | match loader option FILENAME_MAXLENGTH in Krill's Loader. | ||
+ | Default is 16. | ||
+ | -m Ignore filename hash collisions, without this switch a collision | ||
+ | results in an error. | ||
+ | -d track | ||
+ | a valid BAM). | ||
+ | -t Use dirtrack | ||
+ | -u numblocks | ||
+ | -x Don't split files over dirtrack hole (default split files). | ||
+ | -F Next file first sector on a new track (default=0). | ||
+ | Any negative value assumes aligned tracks and uses current | ||
+ | sector + interleave. After each file, the value falls back to the | ||
+ | default. Not applicable for D81. | ||
+ | -S value Default sector interleave, default=10. | ||
+ | At track end, reduces this by 1 to accomodate large tail gap. | ||
+ | If negative, no special treatment of tail gap. Not applicable for | ||
+ | D81. | ||
+ | -s value Next file sector interleave, valid after each file. | ||
+ | At track end, reduces this by 1 to accomodate large tail gap. | ||
+ | If negative, no special treatment of tail gap. | ||
+ | The interleave value falls back to the default value set by -S | ||
+ | after the first sector of the next file. Not applicable for D81. | ||
+ | -e Start next file on an empty track (default start sector is | ||
+ | current sector plus interleave). | ||
+ | -E Try to fit file on a single track. | ||
+ | -r track Restrict next file blocks to the specified track or higher. | ||
+ | -b sector | ||
+ | Not applicable for D81. | ||
+ | -c Save next file cluster-optimized (d71 only). | ||
+ | -4 Use tracks 35-40 with SPEED DOS BAM formatting. | ||
+ | -5 Use tracks 35-40 with DOLPHIN DOS BAM formatting. | ||
+ | -g filename | ||
+ | -q Be quiet. | ||
+ | -v Be verbose. | ||
+ | -h Print this commandline help. | ||
+ | </ | ||
+ | ====== mkd64 ====== | ||
+ | |||
+ | Another flexible alternative is [[http:// | ||
+ | |||
+ | < | ||
+ | mkd64 1.4b help | ||
+ | |||
+ | mkd64 supports four types of options. Single options trigger some immediate | ||
+ | action, see below. Global options affect the whole disk image generation, | ||
+ | module options are passed just to the last loaded module and file options | ||
+ | control single files written to the image. | ||
+ | Global and module options must come before file options on the command line. | ||
+ | |||
+ | Modules can provide their own global and file options, check their help | ||
+ | messages (-h MODULE) for reference. | ||
+ | |||
+ | SINGLE options (must be the only option to mkd64): | ||
+ | -h [MODULE] | ||
+ | the module {MODULE}, and exit. | ||
+ | -V [MODULE] | ||
+ | info for that module is shown instead. | ||
+ | -C OPTFILE | ||
+ | line. The file has the same format as the normal command | ||
+ | line and the following rules: | ||
+ | - Strings containing whitespace are escaped using quotes | ||
+ | or doublequotes (' or ") | ||
+ | - The backslash (\) has no special meaning at all | ||
+ | - Newlines are just normal whitspace and thus ignored | ||
+ | -M | ||
+ | |||
+ | GLOBAL options: | ||
+ | -m MODULE | ||
+ | | ||
+ | | ||
+ | / | ||
+ | | ||
+ | as long as there is no other -m option or a -g option to | ||
+ | get back to global scope or a -f option to switch to file | ||
+ | | ||
+ | -o D64FILE | ||
+ | be given to actually write something. | ||
+ | -M MAPFILE | ||
+ | map file format is one line per file on disk: | ||
+ | | ||
+ | -P [MAXPASSES] Allow up to {MAXPASSES} passes, automatically applying | ||
+ | | ||
+ | if this option is not given or up to 5 passes if it is | ||
+ | given without an argument. | ||
+ | |||
+ | MODULE options: | ||
+ | -g Go back to global scope after loading a module. | ||
+ | | ||
+ | (-h MODULE) for options available with specific modules. | ||
+ | |||
+ | FILE options: | ||
+ | -f [FILENAME] | ||
+ | can be omitted for special emtpy files. | ||
+ | -t TRACK Set fixed start track for current file. | ||
+ | -s SECTOR | ||
+ | -i INTERLEAVE | ||
+ | -w Write current file to disk image. | ||
+ | |||
+ | Note that filesystem elements (like the original cbmdos directory and BAM) | ||
+ | are implemented by modules. They can provide a sensible default value for | ||
+ | sector interleave. A default allocation strategy is built in and determines | ||
+ | start track and sector automatically if not given, modules can install their | ||
+ | own strategy. | ||
+ | </ | ||
+ | < | ||
+ | mkd64 1.4b help | ||
+ | |||
+ | * Module `cbmdos': | ||
+ | |||
+ | cbmdos implements the default directory and BAM scheme of a 1541 floppy. | ||
+ | Interleave is initially set to 10 for every file (cbmdos standard). The | ||
+ | following options are recognized: | ||
+ | |||
+ | -d DISKNAME | ||
+ | -i DISKID | ||
+ | this can be up to 5 characters long, in this case it will | ||
+ | overwrite the default `DOS type' string (`2A' | ||
+ | -R DIRBLOCKS | ||
+ | value is 18, which is exactly the whole track #18. | ||
+ | -I INTERLV | ||
+ | for directory interleave is 3. | ||
+ | -D DOSVER | ||
+ | The default value is (hex) 41. this can be used for soft | ||
+ | write protection, the original floppy will refuse any write | ||
+ | attempts if this value is changed. | ||
+ | -A Allocate all blocks in the BAM. | ||
+ | -0 Set available blocks to 0 in BAM, but still write flags for | ||
+ | individual sectors. | ||
+ | |||
+ | * File options: | ||
+ | |||
+ | -n [FILENAME] Activates cbmdos directory entry for the current file. If | ||
+ | {FILENAME} is given, it is used for the cbmdos directory. | ||
+ | -T FILETYPE | ||
+ | DEL), defaults to PRG. | ||
+ | -P Make the file write-protected. | ||
+ | -S BLOCKSIZE | ||
+ | </ | ||
+ | |||
+ | Example usage from an own project: | ||
+ | < | ||
+ | mkd64 -odisks/ | ||
+ | -mcbmdos -d' | ||
+ | -mseparators \ | ||
+ | -fdemo_bootloader | ||
+ | -fdemo_kickstart | ||
+ | -fdemo_amigados | ||
+ | -fdemo_music | ||
+ | -f -n' | ||
+ | -f -n' | ||
+ | -f | ||
</ | </ | ||
+ | For Linux/ | ||
+ | //[Section added by Felix Palmen (Zirias)]// | ||
- | ====== | + | ====== |
In the [[http:// | In the [[http:// |
base/tools_for_putting_files_into_a_.d64_image.txt · Last modified: 2024-03-15 19:52 by ftc