Linux or FreeDOS: Identify Hardware for DOSFLASH
by raywood from LinuxQuestions.org on (#5KZTQ)
I am trying to interpret a DOSFLASH command, as part of an effort to flash the firmware on a Blu-ray drive. DOSFLASH is a low-level tool whose continued relevance is discussed in e.g., a MakeMKV post.
That post also presents the DOSFLASH command of interest here. The command looks like this:
Code:DOSFLASH R F0D0 1 A0 2 0 20 "origFlash.bin" 0Comments preceding that command explain that running the DOSFLASH tool in FreeDOS produces a brief guide to the full DOSFLASH command syntax.
Some of the codes in that DOSFLASH command require knowledge of the computer's hardware. In particular, to modify that DOSFLASH command to fit my situation, I need to know the port to which the command should be sent (e.g., F0D0), whether the drive is master or slave, its MTK type (e.g., 0x70), whether the flash type is serial SST, and size of flash chip in number of banks.
I am running DOSFLASH in FreeDOS, booted from USB on an oldish (c. 2008, Vista-compatible) PC. Unfortunately, I am not finding that common DOS/Windows ways of interrogating hardware (see e.g., SuperUser) work in FreeDOS. I would be interested in suggestions for a FreeDOS-compatible system information tool.
There is also the problem that I am not entirely sure what all those specific hardware items are. If there are suitable hardware-info Linux tools bootable from a live CD compatible with this older system, that would be a good second-best.
I'm here because there doesn't seem to be a FreeDOS forum of any weight. There's probably an answer somewhere in the FreeDOS listserv, except that I still might not understand it.
I am posting in the Software forum rather than Hardware, partly because I'm looking for command line guidance and partly because I'm not sure I'm a hardware guy.
That post also presents the DOSFLASH command of interest here. The command looks like this:
Code:DOSFLASH R F0D0 1 A0 2 0 20 "origFlash.bin" 0Comments preceding that command explain that running the DOSFLASH tool in FreeDOS produces a brief guide to the full DOSFLASH command syntax.
Some of the codes in that DOSFLASH command require knowledge of the computer's hardware. In particular, to modify that DOSFLASH command to fit my situation, I need to know the port to which the command should be sent (e.g., F0D0), whether the drive is master or slave, its MTK type (e.g., 0x70), whether the flash type is serial SST, and size of flash chip in number of banks.
I am running DOSFLASH in FreeDOS, booted from USB on an oldish (c. 2008, Vista-compatible) PC. Unfortunately, I am not finding that common DOS/Windows ways of interrogating hardware (see e.g., SuperUser) work in FreeDOS. I would be interested in suggestions for a FreeDOS-compatible system information tool.
There is also the problem that I am not entirely sure what all those specific hardware items are. If there are suitable hardware-info Linux tools bootable from a live CD compatible with this older system, that would be a good second-best.
I'm here because there doesn't seem to be a FreeDOS forum of any weight. There's probably an answer somewhere in the FreeDOS listserv, except that I still might not understand it.
I am posting in the Software forum rather than Hardware, partly because I'm looking for command line guidance and partly because I'm not sure I'm a hardware guy.