FreeMiNT's gemkfatfs reactivated

All about the serious stuff.

Moderators: Mug UK, Zorro 2, Moderator Team

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Thu Oct 12, 2017 11:30 pm

Hi,

i don't know if anyone noticed it, but there had been times when gemkfatfs (a graphical frontend to mkfatfs for formatting partitions) had been part of the FreeMiNT distribution. The reason why it was dropped is because some parts of it (kernel32.slb) were only available in binary form. A few days ago i now reimplemented that missing part (and then later also changed gemma to get along without it ;)

Before that is made part of freemint again, i would kindly ask if someone is willing to test it. The binary archive(s) are available here. It has 3 versions, one that uses that kernel32.slb, one that should work without it, and another one for coldfire. The first 2 were compiled for plain 68000. The sources are available at github should someone be interested (this is just a fork of the official freemint, with the above mentioned changes).

I'm particularly interested if that new version also is working with MagiC.

Just to remind: that tool will format the selected partition so don't do anything stupid ;)

vido
Atari Super Hero
Atari Super Hero
Posts: 542
Joined: Mon Jan 31, 2011 7:39 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby vido » Fri Oct 13, 2017 5:52 am

Thank you Otto!
This is really something we needed for the FireBee. i will try to test it over the weekend ...

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Fri Oct 13, 2017 6:48 am

Thank you very much. I will test it on my Milan040 and on my Firebee. It's definitive a major tool that was missing on the Firebee. The work with the Bee could become much more easier with such a tool. I had great difficulties to partition a cf card that I wanted to use with the Firebee. I tried the partition with different versions of (mac) OS X and with gparted (ubuntu) and it didn't work. The cf card wasn't recognized by the Firebee. I aslo tried my Milan by using HDDRIVER 9.07 and that worked. Also a litte tool for windows worked. So I would be really glad if there was a working tool for partitioning on the Bee itself. That would be a great present for the Firebee users! 8)
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

User avatar
frank.lukas
Hardware Guru
Hardware Guru
Posts: 1445
Joined: Tue Jan 29, 2008 5:33 pm
Location: Germany

Re: FreeMiNT's gemkfatfs reactivated

Postby frank.lukas » Fri Oct 13, 2017 8:14 am

What about integrate mke2fs in the Tool with no need of an LNX or RAW partition ?
fancy Atari Musik anDA Dance "Agare Hinu Harukana" 1998 ATARI http://www.youtube.com/watch?v=JX10fxb5eYE

mikro
Atari God
Atari God
Posts: 1303
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby mikro » Fri Oct 13, 2017 1:13 pm

This is actually quite a fascinating example how different point of view developers and users have: on the mailing list, there was very little interest to explore the possibility to work around the fact kernel32.slb is only a binary and it was suggested to drop the whole gemma & gemmkfatfs all together. Then Thorsten got this spark of energy and time to reimplement it and boom! Now we see there's actually quite an interest in that tool!

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Fri Oct 13, 2017 2:56 pm

frank.lukas wrote:What about integrate mke2fs in the Tool with no need of an LNX or RAW partition ?


That tool is not a harddisk driver or something, and it also does not partition it. You will need a recognizable partition first. And afaik the mint kernel always requires a LNX or RAW partition for ext2fs, otherwise it would try to access it as FAT.

Also the parameters for mke2fs are very different than for fat, there is no such thing as numbers of fat, sectors/cluster etc. Dunno wether it makes sense to integrate it. But if you look at the source you will notice that it is actually very simple, so you might as well write a similar program for mke2fs. All the actual work is done by a commandline tool anyway, gemkfatfs is just a gui frontend for it.

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Fri Oct 13, 2017 6:51 pm

ThorstenOtto wrote:
frank.lukas wrote:What about integrate mke2fs in the Tool with no need of an LNX or RAW partition ?


That tool is not a harddisk driver or something, and it also does not partition it. You will need a recognizable partition first. And afaik the mint kernel always requires a LNX or RAW partition for ext2fs, otherwise it would try to access it as FAT.

Also the parameters for mke2fs are very different than for fat, there is no such thing as numbers of fat, sectors/cluster etc. Dunno wether it makes sense to integrate it. But if you look at the source you will notice that it is actually very simple, so you might as well write a similar program for mke2fs. All the actual work is done by a commandline tool anyway, gemkfatfs is just a gui frontend for it.


Sorry for misunderstanding you. :oops: Perhaps it was to early in the morning and I read something I wanted to read but that wasn't written by you. 8O
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Fri Oct 13, 2017 7:20 pm

ThorstenOtto wrote:It has 3 versions, one that uses that kernel32.slb, one that should work without it, and another one for coldfire. The first 2 were compiled for plain 68000.


I tried it on my Milan and it's working but when using the version that is supposed to work without kernel32.slb I've got an error message that kernel32.slb was missing and the application couldn't be launched. I copied the *.slb files into my slb folder. Before opening the version that should work without kernel32.slb I renamed kernel32.slb to kernel32.slx.

A short test with Magic Milan 6.1 will follow.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Fri Oct 13, 2017 8:55 pm

I also tested it using Magic Milan 6.1. Magic Milan is often a little bit strange. The first time I tried it and I got an out of memory error. The same error when I tried it the second time but the third time it worked. Just don't ask me why. I just started Litchi before for transferring the screenshot I wanted to make. Perhaps that's the cause? Magic is strange! So just have a look at the screenshot.
You do not have the required permissions to view the files attached to this post.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Sat Oct 14, 2017 12:39 am

Neurotoxic wrote:when using the version that is supposed to work without kernel32.slb I've got an error message that kernel32.slb was missing


Huks. I will look into that.

Neurotoxic wrote:I copied the *.slb files into my slb folder.


Can't remember exactly how MagiC looks up shared libs, but that should imho not be necessary.

Neurotoxic wrote: the third time it worked Just don't ask me why.


Strange, but could actually really be an out-of-memory problem. The GUI is very small, but the actual tool (mkfatfs) is using mintlib, and that might eat quite some memory. Can also be that a large enough block is just not available when running on MagiC, depending on how fragmented the memory is.

Thanks much for testing.

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Sat Oct 14, 2017 4:18 am

Ok i checked it once again, removing all ocurrences of kernel32.slb, and activating a debug trace in Aranym before starting the app. It does not try to Slbopen kernel32, not does it complain. What i could imagine is that you started the other version first, and that gemma.slb from that version was still in memory. I think mint immediately removes it when the last application using it exits. Maybe MagiC behaves differently there, by keeping it alive until the memory is needed otherwise.

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Sat Oct 14, 2017 10:24 am

ThorstenOtto wrote:Ok i checked it once again, removing all ocurrences of kernel32.slb, and activating a debug trace in Aranym before starting the app. It does not try to Slbopen kernel32, not does it complain. What i could imagine is that you started the other version first, and that gemma.slb from that version was still in memory. I think mint immediately removes it when the last application using it exits. Maybe MagiC behaves differently there, by keeping it alive until the memory is needed otherwise.


I only tested the version that uses the kernel32.slb under Magic. I'm going to test the other version under Magic, too. In the meantime I tested the version that doesn't use the kernel32.slb once again under MiNT 1.19.cur. First of all I renamed kernel32.slb and gemma.slb to *.slx and copied the version of gemma.slb into my slb folder that's in the nokernel32 folder. I rebooted my Milan and than this version works . So you have to be careful of using the correct *.slb files! In the first test I just didn't replace the gemma.slb and I just renamed the kernel32.slb. That was wrong, I think. :oops:

I'm also going to test the coldfire version on my Firebee later.

I'm not a programmer or computer specialist. I'm just a normal user. Could you explain to me what's the difference between the two versions? Which one is better? Or isn't there any great difference for a normal user that I have to care about?
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Sat Oct 14, 2017 11:39 am

The nokernel32 version is working under Magic, too. This time I got no out of memory error.

So I will do my final testing with the firebee.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Sat Oct 14, 2017 5:11 pm

Neurotoxic wrote:In the first test I just didn't replace the gemma.slb and I just renamed the kernel32.slb. That was wrong, I think. :oops:


Yes, i should have been clearer about this ;) It is gemma.slb that loads kernel32.slb, so you have to make sure to use the correct one. And actually it's only a proof that kernel32.slb works, should it be needed by other projects In the source repository only the gemma.slb that does not need it will be compiled, to avoid such confusion.

Neurotoxic wrote:Could you explain to me what's the difference between the two versions? Which one is better? Or isn't there any great difference for a normal user that I have to care about?


The main difference is that one use kernel32.slb to make TOS/MiNT calls, while the other calls them directly like a normal application would. As user you should not notice any difference. And i think that kernel32.slb was mainly done as a proof of concept. The main purpose of such a shared library is to save memory when more than one program needs it. However in this case, calling the functions defined in the shared lib takes as much space as calling the TOS function directly, so all it does it add a little overhead.

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Sat Oct 14, 2017 7:47 pm

ThorstenOtto wrote:The main difference is that one use kernel32.slb to make TOS/MiNT calls, while the other calls them directly like a normal application would. As user you should not notice any difference. And i think that kernel32.slb was mainly done as a proof of concept. The main purpose of such a shared library is to save memory when more than one program needs it. However in this case, calling the functions defined in the shared lib takes as much space as calling the TOS function directly, so all it does it add a little overhead.


Ok. I understand. Thanks for your explanation. :)

I just tried gemkfatfs on my Firebee and it's working. 8) Thank you very much for bringing us such a nice little tool!
You do not have the required permissions to view the files attached to this post.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

ThorstenOtto
Captain Atari
Captain Atari
Posts: 170
Joined: Sun Aug 03, 2014 5:54 pm

Re: FreeMiNT's gemkfatfs reactivated

Postby ThorstenOtto » Sun Oct 15, 2017 4:59 am

Neurotoxic wrote:Thank you very much for bringing us such a nice little tool!


Thank you very much for testing ;) Now i only have to convince Alan to merge the changes, Vincent to build and upload the libraries, and Miro to make the needed changes to the build system of freemint ;)

User avatar
Neurotoxic
Atari maniac
Atari maniac
Posts: 97
Joined: Thu Apr 20, 2017 9:29 pm
Location: Bremen (Germany)
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby Neurotoxic » Sun Oct 15, 2017 10:43 am

ThorstenOtto wrote:Thank you very much for testing ;) Now i only have to convince Alan to merge the changes, Vincent to build and upload the libraries, and Miro to make the needed changes to the build system of freemint ;)


I'm on your side and will support you. :D But I think they will do it.
520 ST(M) (TOS 1.02), Falcon030 (16 MHz, 16 MB RAM, CF-Card, MiNT & MyAES), Milan040 (25 MHz, 48 MB RAM, EasyMiNT 1.90), Firebee, PowerMac G5 Late 2005 (2 x 2,3 GHz, Mac OS 10.5), iMac 4K Late 2015 (intel Core i7 4 x 3,3 GHz, Mac OS 10.11.6), IBM XT SFD (640 KB RAM, DR DOS 6.0), Compaq LTE 5300 (Pentium/133 MHz, DR-DOS 7.03), AT-PC (Cyrix 6x86L/200 MHz, Windows 98 SE/MS-DOS 6.22 & Windows 3.11)

mikro
Atari God
Atari God
Posts: 1303
Joined: Sat Sep 10, 2005 11:11 am
Location: Brisbane, Queensland, Australia
Contact:

Re: FreeMiNT's gemkfatfs reactivated

Postby mikro » Sun Oct 15, 2017 11:50 am

My position is the easiest, I must wait for everybody else to do their part first. :-P


Social Media

     

Return to “Applications”

Who is online

Users browsing this forum: No registered users and 2 guests