Calculating SHA1 sum

By ~mk~

Champion (303)

~mk~'s picture

13-02-2016, 22:38

Hi,
Is there any way avoid calculating the sha1 checksum when writing to disk images?
Apparently this is only happening with HD images, not floppy images.

And bonus question: Is it possible to create an HD image with an MSX-DOS1 boot sector?

Thanks Smile

Login or register to post comments

By ~mk~

Champion (303)

~mk~'s picture

14-02-2016, 14:36

Ok sorry, this was already fixed at some point.
Just upgraded to the latest openMSX version and it doesn't happen anymore.

Cheers Smile

By Manuel

Ascended (18233)

Manuel's picture

14-02-2016, 21:42

OK, I'll go for the bonus question:

~mk~ wrote:

And bonus question: Is it possible to create an HD image with an MSX-DOS1 boot sector?

http://openmsx.org/manual/diskmanipulator.html#create mentions the -dos1 option, and it really works :) Although I'm not sure how useful it is.

I have to admit that the online help of diskmanipulator (help diskmanipulator) doesn't mention this at all, only the HTML manual... I'll fix this.

By ~mk~

Champion (303)

~mk~'s picture

15-02-2016, 00:37

Hi Manuel,
Seems it doesn't work for me or I'm doing something wrong?

> diskmanipulator create c:/msx/testhd.dsk 15M -dos1
> set power off
false
> ext Beer_IDE
Beer_IDE
> hda c:/msx/testhd.dsk
> diskmanipulator import hda1 [glob c:/msx/files/*.*]
No (or invalid) partition table.

Also tried with ext ide just in case it was a Beer IDE emulation problem but got the same result.
I want to emulate my current MSX setup as close as possible (Beer IDE interface with small HD with standard MSX-DOS1 boot sector).

By Manuel

Ascended (18233)

Manuel's picture

15-02-2016, 16:30

Try 'hda' instead of 'hda1'. If you only create a single partition, no partition table is created at all and you just get a large disk image. If you use tab-completion you'll also notice that it doesn't offer 'hda1', only 'hda'.

By ~mk~

Champion (303)

~mk~'s picture

16-02-2016, 00:24

Manuel:
That worked, however I still don't understand a few things.

1) Using Beer_IDE extension it hangs right before MSX-DOS should start
2) Using Sunrise ide extension (just in case Beer_IDE is broken) it does boot and seems fine, but for some reason I can still run MSX-DOS2 applications, e.g. Runit. I am really confused.

Note: I am choosing Talent_TPC-310 machine
Note2: I am adding minimum files required for MSX-DOS to boot (msxdos.sys and command.com)

By Manuel

Ascended (18233)

Manuel's picture

16-02-2016, 12:07

1) Not sure about that. I wasn't really getting things setup myself for BEER IDE. Which biOS do you use? And how did you set it up on your real MSX?
2) Well, don't forget that the Sunrise IDE interface has a built in MSX-DOS2 ROM.

By ~mk~

Champion (303)

~mk~'s picture

18-02-2016, 01:23

So, is it possible with openMSX to boot an MSX-DOS1 HD image without built-in DOS2 rom?
Anyway, as I said I want to emulate my current MSX setup as close as possible, so I'd be glad to help testing Beer ide emulation.

I am using bios 1.9rc1 (same firmware my Beer IDE has):
5a14ac0a1cce3ceebdcd66c42b2d5c975d45b755 hddrom.rom

I setup my CF long ago but here's what I did:
1. Created the partitions (2 partitions, both FAT12) from my PC using an USB adapter.
2. Setup everything else (boot sector and format) from MSX using HPREP

Apart from the dsk created with diskmanipulator, I also tried using a raw dump of my CF, but also failed to boot.
Error was "Syntax error in 0".

By Manuel

Ascended (18233)

Manuel's picture

18-02-2016, 09:58

Hi,

It is possible to boot whatever a real MSX will boot. openMSX isn't putting restrictions on this.

I'd like to get that raw dump from your CF Smile

PLease read this thread to see where I am with BeerIDE on openMSX: https://www.msx.org/forum/msx-talk/hardware/beer-ide-fdisk
In summary: someone else dumped his 1.9RC1 harddisk to an image, and that one booted fine on openMSX... https://www.youtube.com/watch?v=kAQJgNF_G4g

By ~mk~

Champion (303)

~mk~'s picture

21-02-2016, 00:25

Manuel:
Today I've done more learning, experimenting, and finally got it working! Smile
Nothing was wrong with openMSX beer emulation, except for a small thing I'll mention in a bit - problem was that I wasn't doing a raw dump of the full drive (instead, I was doing the first partition only).
After I've done a full dump of the CF, openMSX booted fine and I could read/write to both partitions.
Sending you the dump now if you want to check it out anyway.
Thanks for all your help.

What is still not working well in openMSX?
Importing files to the disk image using diskmanipulator.
For some reason it's not working with my CF dump.
Tried importing files to a specific partition (hda1, hda2) and I always get: No (or invalid) partition table.
Tried importing files without specifying partition (hda) and I get: No such sector.

It does work with images created with diskmanipulator itself, but not with my CF dump.

PS. CF = compact flash card

By Manuel

Ascended (18233)

Manuel's picture

21-02-2016, 09:58

Thanks for this report!

diskmanipulator was designed to work with Sunrise IDE harddisk images. If it works with Beer IDE, it's "lucky".