1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00
rufus/freedos
Pete Batard 80f12bce4d [freedos] fixes CHS warning and date/time prompt
* create an empty AUTOEXEC.BAT file to avoid date/time prompt
* use a patched version of KERNEL.SYS from 2011.12.16 FreeDOS SVN to avoid CHS warnings
  see freedos/readme.txt for details
* also removed read-only attribute on COMMAND.COM and KERNEL.SYS to allow SYS CONFIG
* also
* closes #19
* closes #20
2011-12-16 17:11:19 +00:00
..
COMMAND.COM [freedos] initial FreeDOS support 2011-12-15 00:46:47 +00:00
KERNEL.SYS [freedos] fixes CHS warning and date/time prompt 2011-12-16 17:11:19 +00:00
readme.txt [freedos] fixes CHS warning and date/time prompt 2011-12-16 17:11:19 +00:00

The COMMAND.COM file was extracted from the fd11tst3.img image available at:
http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.1-test3/

Because of issue #19 (see https://github.com/pbatard/rufus/issues/19) KERNEL.SYS
is a recompiled version, from the 2011.12.16 svn source, with FORCELBA enabled
and with the following patch having been applied:

Index: kernel/initdisk.c
===================================================================
--- kernel/initdisk.c	(revision 1696)
+++ kernel/initdisk.c	(working copy)
@@ -810,10 +810,13 @@
 void print_warning_suspect(char *partitionName, UBYTE fs, struct CHS *chs,
                            struct CHS *pEntry_chs)
 {
-  printf("WARNING: using suspect partition %s FS %02x:", partitionName, fs);
-  printCHS(" with calculated values ", chs);
-  printCHS(" instead of ", pEntry_chs);
-  printf("\n");
+  if (!InitKernelConfig.ForceLBA)
+  {
+    printf("WARNING: using suspect partition %s FS %02x:", partitionName, fs);
+    printCHS(" with calculated values ", chs);
+    printCHS(" instead of ", pEntry_chs);
+    printf("\n");
+  }
   memcpy(pEntry_chs, chs, sizeof(struct CHS));
 }

Recompilation was done using Open Watcom, as described at:
http://pete.akeo.ie/2011/12/compiling-freedos-on-windows-using.html