Re: [Freedos-devel] [Freedos-kernel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Pete Batard
On 2011.12.18 23:50, Kenneth J. Davis wrote:
> Thank you, I will look at the patch this week.

Thanks.

/Pete

PS: Unlike most of the OSS elements the Rufus app reuses, you may notice 
that FreeDOS is not currently credited properly. That will be fixed in 
next version.

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Pete Batard
Hi Bernd,

On 2011.12.18 23:20, Bernd Blaauw wrote:
> I've recently learned about your Rufus program from the Reboot.pro
> forums, it seems quite interesting indeed. Would likely be a nice
> addition from ReactOS (which you made use of already) but as that's GPL2
> while your program is GPL3 that won't be possible I guess.

For having personally been confronted to the shortcomings that the GPLv3 
license aims to address, I tend to prefer it a lot more than GPLv2. Plus 
I am also lifting some GPLv3 code in the current app (but not much). 
Still, I'm open to discussions.

Also thanks for the tip about reboot.pro.

>> PS: is there a reason why one must have an AUTOEXEC.BAT present, even a
>> blank one, to avoid the prompts for date&time in FreeCOM? What is the
>> purpose of mandatory prompting for those?
>
> Remove your CMOS battery and you'll see. Basicly, ancient machines often
> had no battery and yet needed to have a time and date set. I guess
> FreeDOS follows MSDOS design in this aspect.

I guess that makes sense. Again, not an issue in any way for me, just 
was curious about the rationale.

Regards,

/Pete

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [Freedos-kernel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Kenneth J. Davis
...
> > 3. All the machines I have tried so far report the CHS vs LBA computed
> > mismatch warnings. Considering that first time FreeDOS users might be
> > put off because of these benign warnings, I would very much like to
> > avoid them.
>
> There's a list of warnings indeed. A big one at that, especially when
> using syslinux's "nopassany" directive to hide physical disk drive units.
>
> > Could this patch be considered for the mainline tree then?
>
> I can't answer this, as I'm no developer. It could be an interesting
> addition for kernel 2041 if any kernel maintainer is still active
> occasionally.
>

Thank you, I will look at the patch this week.

> > PS: is there a reason why one must have an AUTOEXEC.BAT present, even a
> > blank one, to avoid the prompts for date&time in FreeCOM? What is the
> > purpose of mandatory prompting for those?
>
> Remove your CMOS battery and you'll see. Basicly, ancient machines often
> had no battery and yet needed to have a time and date set. I guess
> FreeDOS follows MSDOS design in this aspect.
>

Yes, it is the way MS/PC DOS command works due to not all computers having
a real time clock so the time and date would need to be set on boot, or
something like that - I could be recalling this incorrectly.  :-)

Jeremy
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Pete Batard
Hi,

On 2011.12.18 23:15, Rugxulo wrote:
> I don't officially know who the kernel devs are, but presumably
> Kenneth "Jeremy" Davis and Bart Oldeman. In other words, everybody's
> often busy, so if you don't get a proper reply, if I were you I'd
> email (one or both of) them directly.

Thanks for the heads up. I'll give them some time to reply, and if I 
don't see anything coming, I'll try to ping them.

>> [1] http://rufus.akeo.ie
>
> This just redirects here for me:
>
> http://pbatard.github.com/rufus/

Yes, the redirect is mostly to shorten the link. The project is hosted 
on github since it is 100% Open Source.

> Something like this is good as many people (even CWS of CWSDPMI)
> always lose their bootable USB drives.   ;-)

I'm actually pleasantly surprised at the numbers of downloads already. 
Looks like quite a few people were looking for such a utility on Windows.

> P.S. Your site says this:
>
> Upcoming features
> * DOS keyboard locale support
>
> I might be misunderstanding, but if you need help setting up KEYB +
> KEY*.SYS + EGA*.CPX, it's fairly straightforward, so any of us could
> help. Here, lemme quote some relevant parts.
> (...)

You got it right. My plan is to setup the keyboard in FreeDOS according 
to the locale of the machine on which Rufus runs, as there's a very high 
percentage that locale should match the one the user wants during DOS 
boot. Your pointers are much appreciated!

Regards,

/Pete

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Bernd Blaauw
Op 18-12-2011 23:31, Pete Batard schreef:

> 1. I am the developer of Rufus [1], which is a DOS-bootable USB flash
> drive creation utility for Windows. One of the versions of Rufus embeds
> FreeDOS (kernel + freecom) for installation as the default DOS, in lieu
> of the WinMe DOS that can be extracted from diskcopy.dll.

I've recently learned about your Rufus program from the Reboot.pro 
forums, it seems quite interesting indeed. Would likely be a nice 
addition from ReactOS (which you made use of already) but as that's GPL2 
while your program is GPL3 that won't be possible I guess.

> 3. All the machines I have tried so far report the CHS vs LBA computed
> mismatch warnings. Considering that first time FreeDOS users might be
> put off because of these benign warnings, I would very much like to
> avoid them.

There's a list of warnings indeed. A big one at that, especially when 
using syslinux's "nopassany" directive to hide physical disk drive units.

> Could this patch be considered for the mainline tree then?

I can't answer this, as I'm no developer. It could be an interesting 
addition for kernel 2041 if any kernel maintainer is still active 
occasionally.

> PS: is there a reason why one must have an AUTOEXEC.BAT present, even a
> blank one, to avoid the prompts for date&time in FreeCOM? What is the
> purpose of mandatory prompting for those?

Remove your CMOS battery and you'll see. Basicly, ancient machines often 
had no battery and yet needed to have a time and date set. I guess 
FreeDOS follows MSDOS design in this aspect.

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Rugxulo
Hi,

On Sun, Dec 18, 2011 at 4:31 PM, Pete Batard  wrote:
>
> I am proposing the attached patch for your consideration.
>
> Could this patch be considered for the mainline tree then?

I don't officially know who the kernel devs are, but presumably
Kenneth "Jeremy" Davis and Bart Oldeman. In other words, everybody's
often busy, so if you don't get a proper reply, if I were you I'd
email (one or both of) them directly.

> [1] http://rufus.akeo.ie

This just redirects here for me:

http://pbatard.github.com/rufus/

Something like this is good as many people (even CWS of CWSDPMI)
always lose their bootable USB drives.   ;-)

> PS: is there a reason why one must have an AUTOEXEC.BAT present, even a
> blank one, to avoid the prompts for date&time in FreeCOM? What is the
> purpose of mandatory prompting for those?

No idea. Perhaps some of the original IBM 5150 PC users can comment.
For whatever reason, I blindly assume it's a legacy feature. But I
don't know (sorry).

P.S. Your site says this:

"
Upcoming features

The following is a list of features that may be added in a next
version of Rufus.
Suggestions are also welcome.

* DOS keyboard locale support
* Allow the preservation of existing partitions
"

I might be misunderstanding, but if you need help setting up KEYB +
KEY*.SYS + EGA*.CPX, it's fairly straightforward, so any of us could
help. Here, lemme quote some relevant parts.

(config.sys):
1?COUNTRY=030,869,C:\FDOS\COUNTRY.SYS
2?COUNTRY=1,,C:\FDOS\COUNTRY.SYS

(autoexec.bat):
display con=(ega,,3)
mode con cp prep=((853) c:\fdos\cpi\ega.cpx)
mode con cp prep=((,737,869) c:\fdos\cpi\ega5.cpx)
mode con cp sel=%DEFAULT%

mode con cp /status

nlsfunc /y c:\fdos\country.sys

keyb us,,c:\fdos\keyboard.sys
keyb gk,,c:\fdos\keybrd2.sys

--
(should be right, hope that helps!)

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure
___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


[Freedos-devel] [PATCH] kernel - only print "suspect partition" warnings if FORCELBA is not in use

2011-12-18 Thread Pete Batard

Hello all,

I am proposing the attached patch for your consideration.

I believe it makes sense not to print the CHS/LBA mismatch warnings when
FORCELBA is in use, as, if someone uses FORCELBA, they probably don't
care whether the CHS values that were fed by the BIOS match or not: they 
already indicated that they want to use LBA regardless.



Now, the full reasoning of why I would like this change integrated is as
follows:

1. I am the developer of Rufus [1], which is a DOS-bootable USB flash 
drive creation utility for Windows. One of the versions of Rufus embeds 
FreeDOS (kernel + freecom) for installation as the default DOS, in lieu 
of the WinMe DOS that can be extracted from diskcopy.dll.


2. The current Rufus utility only creates LBA partitions for bootable 
FAT16 and FAT32, as this offers the best compatibility.


3. All the machines I have tried so far report the CHS vs LBA computed 
mismatch warnings. Considering that first time FreeDOS users might be 
put off because of these benign warnings, I would very much like to 
avoid them.


4. My current understanding is that it is the BIOS that feeds the CHS 
values that are compared against the LBA computed ones. Unfortunately 
that means that, since the bootable USB stick is most likely created on 
a different machine than the one it will boot, even if we could act on 
it, it is next to impossible to guess what CHS values the BIOS will use. 
Thus, the expectation is that these warnings will always manifest 
themselves.


5. At the moment, I am embedding a KERNEL.SYS which I recompiled with 
the attached patch and with FORCELBA enabled, so this is not a major 
issue. Still I would prefer embedding an official KERNEL.SYS, so that 
users can easily confirm that there is nothing malicious in the FreeDOS 
files provided in the utility.


6. Finally, since the current default is not to have FORCELBA on, I 
expect this change to be low impact for existing users.


Could this patch be considered for the mainline tree then?

Regards,

/Pete

[1] http://rufus.akeo.ie

PS: is there a reason why one must have an AUTOEXEC.BAT present, even a 
blank one, to avoid the prompts for date&time in FreeCOM? What is the 
purpose of mandatory prompting for those?


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));
 }
 

--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel


Re: [Freedos-devel] [Freedos-user] FreeDOS 1.1

2011-12-18 Thread Decheng Fan
On Fri, Dec 16, 2011 at 1:45 AM, Bernd Blaauw  wrote:

> Op 15-12-2011 18:33, Mark Brown schreef:
> >> > As for other news, how is Freedos 1.1 coming along?
> >
> >>Do you need it badly?
> > yes!
> > will anyone please send me a copy of it?
>
> It will be published when done, likely just before Christmas.
> Current binary release is about 16MB but I'll have to add sources, per
> (GPL) license conditions of most programs/components. This will increase
> size of the CD image file.
>
> This 1.1 release might quite fast result in a 1.2 release as well due to
> a lack of extra testing time. Having all recent updates bundled together
> is already a big advantage though.
>
>
> Bernd
>
>
> --
> 10 Tips for Better Server Consolidation
> Server virtualization is being driven by many needs.
> But none more important than the need to reduce IT complexity
> while improving strategic productivity.  Learn More!
> http://www.accelacomm.com/jaw/sdnl/114/51507609/
> ___
> Freedos-devel mailing list
> Freedos-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/freedos-devel
>

Just a buzz, I'm trying out the previous FreeDOS 1.1 beta CD. I haven't got
it a full stretched run yet. It's definite to have the release version,
either 1.1 and 1.2 and try them out in full.

-- 
Robbie (Decheng) Fan (aka Robbie Mosaic)
--
Learn Windows Azure Live!  Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for 
developers. It will provide a great way to learn Windows Azure and what it 
provides. You can attend the event by watching it streamed LIVE online.  
Learn more at http://p.sf.net/sfu/ms-windowsazure___
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel