[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] [PATCH] FreeMiNT for ColdFire: tosfs



Hello.

The current ColdFire kernel defines OLDTOSFS to avoid hiding the FireTOS TFTP ram disk. But when OLDTOSFS is enabled, the kernel modules are loaded using GEMDOS calls. And unfortunately, FireTOS has currently a strange bug which corrupts some files when loaded with TOSFS from a CompactFlash/IDE drive: some words are missing. This especially prevents most kernel modules to load, and corrupts some RSC files. This does not occur with NEWFATFS.

Since FireBee/FireTOS is the main ColdFire target nowadays, and the TFTP ram disk was mainly used on the evaluation boards, and FireTOS has that bug with OLDTOSFS on IDE drives, its not worth keeping that old hack. OLDTOSFS may be later enabled again in FreeMiNT special builds for the evaluation boards.

Alan, please commit!

tosfs.patch
Remove the OLDTOSFS special fix for ColdFire. This fixes the FireTOS crash when loading kernel modules. Contributed by Vincent Riviere.

--
Vincent Rivière
--- freemint.orig/sys/mint/config.h	2011-06-14 20:24:37.140625000 +0200
+++ freemint.work/sys/mint/config.h	2011-07-13 22:50:08.763926200 +0200
@@ -46,10 +46,6 @@
  */
 # undef OLDTOSFS
 
-# ifdef COLDFIRE
-# define OLDTOSFS  // else the TFTP Ram-Disk is destroyed
-# endif
-
 /*
  * include old style socket device emulation
  */