mirror of
https://github.com/pbatard/rufus.git
synced 2024-08-14 23:57:05 +00:00
[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
This commit is contained in:
parent
6def8f8abe
commit
80f12bce4d
4 changed files with 50 additions and 8 deletions
|
@ -1,2 +1,31 @@
|
|||
These files were extracted from the fd11tst3.img image available at:
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue