Discussion:
[Freedos-devel] FAQ: How to install OpenWatcom?
Eric Auer
2004-09-20 09:18:51 UTC
Permalink
Hi, as OpenWatcom seems to gain popularity, one of the fans should answer
http://fd-doc.sourceforge.net/faq/cgi-bin/viewfaq.cgi?faq=incoming/318
to make OW even more popular ;-). Preferrably the answer should also give
some hints on how to do a MINIMAL install after a MINIMAL download (without
the Windoze stuff etc.)...

Eric

PS: Still no answer on entry 316 about making USB flash bootable... I hear
that FORMAT has problems with USB drives as well, suggestions? Details?
Johnson Lam
2004-09-20 11:41:37 UTC
Permalink
On Mon, 20 Sep 2004 11:18:51 +0200 (MEST), you wrote:

Hi Eric,
Post by Eric Auer
PS: Still no answer on entry 316 about making USB flash bootable... I hear
that FORMAT has problems with USB drives as well, suggestions? Details?
I bought a USB Flash but no way to make it appear under FreeDOS.

"Hard disk FORMAT fail" problem after FDISK still pending.


Rgds,
Johnson.
Bernd Blaauw
2004-09-20 14:16:38 UTC
Permalink
Post by Johnson Lam
I bought a USB Flash but no way to make it appear under FreeDOS.
"Hard disk FORMAT fail" problem after FDISK still pending.
No FreeDOS related solution to get an USB drive bootable.
If using Windows, you might try the WinImage Beta release
http://www.winimage.com/beta.htm

it should be able to read in a FreeDOS floppy, then read disk geometry
of USB medium, then write it to USB medium.
Probably all data on USB disk will be gone then, so first move that to
harddisk and later copy it back.

Not tested, though I have 3 usb sticks. One of them is in my wireless
router as a very small FTP :)

I too would be interested in a minimal Openwatcom environment.
Which packages to get is already documented in a kernel documentation
file (in the ke203532.zip file),
but which files really are needed is something completely else.
a repackaged OpenWatcom could be usefull on the LANG diskset that will
be included into the FreeDOS distribution sometime in the future.

Bernd
Johnson Lam
2004-09-21 12:11:50 UTC
Permalink
On Mon, 20 Sep 2004 16:16:38 +0200, you wrote:

Hi Bernd,
Post by Bernd Blaauw
No FreeDOS related solution to get an USB drive bootable.
Up to now ... still not bootable (I'm still trying ...)
Only can boot from floppy and access through the DUSE driver.
Post by Bernd Blaauw
it should be able to read in a FreeDOS floppy, then read disk geometry
of USB medium, then write it to USB medium.
Probably all data on USB disk will be gone then, so first move that to
harddisk and later copy it back.
Not work with the USB-Flash disk (it's not a disk exactly, just an USB
flash like a finger, plug into the USB port directly).
Post by Bernd Blaauw
Not tested, though I have 3 usb sticks. One of them is in my wireless
router as a very small FTP :)
Need someone to write a driver ...
Post by Bernd Blaauw
but which files really are needed is something completely else.
a repackaged OpenWatcom could be usefull on the LANG diskset that will
be included into the FreeDOS distribution sometime in the future.
Good.


Rgds,
Johnson.

Arkady V.Belousov
2004-09-20 18:30:25 UTC
Permalink
Hi!

20-Сен-2004 11:18 ***@CoLi.Uni-SB.DE (Eric Auer) wrote to
freedos-***@lists.sourceforge.net:

EA> Hi, as OpenWatcom seems to gain popularity, one of the fans should answer
EA> http://fd-doc.sourceforge.net/faq/cgi-bin/viewfaq.cgi?faq=incoming/318
EA> to make OW even more popular ;-). Preferrably the answer should also give
EA> some hints on how to do a MINIMAL install after a MINIMAL download (without
EA> the Windoze stuff etc.)...

I already explain this. Let me repeat.

- download all archives, mentioned in build.txt. I download slightly more
(including C++):

ftp://ftp.openwatcom.org/watcom/license.txt
ftp://ftp.openwatcom.org/watcom/readme.txt
ftp://ftp.openwatcom.org/watcom/source/readme.txt
ftp://ftp.openwatcom.org/watcom/zips-1.0/_layout.txt

Common files:

ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_core_all.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_core_dos.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_core_doswin.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_clib_hdr.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_clib_a16.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_clib_d16.zip

C files:

ftp://ftp.openwatcom.org/watcom/zips-1.2/core_doswin.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/c_doswin.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/clib_a16.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/clib_d16.zip

Help files:

ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_hlp_dos.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/hlp_dos.zip

C++ files:

ftp://ftp.openwatcom.org/watcom/zips-1.2/cpp_doswin.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/plib_hdr.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/plib_a16.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_plib_a16.zip

Samples:

ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_samples.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/plib_samples.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/clib_samples.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/misc_src.zip

Misc (IDE, debug, dos extenders):

ftp://ftp.openwatcom.org/watcom/zips-1.2/core_all.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_ide_all.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_ide_dos.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/ide_samples.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_dbg_all.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_dbg_dosos2.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_dbg_doswin.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_dbg_dos.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/cm_dbg_misc1.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/ext_causeway.zip
ftp://ftp.openwatcom.org/watcom/zips-1.2/ext_dos4gw.zip

- unpack all need files. For example, my installation (note: subdirectories
aleady present in archives):

C:\LANG\WATCOM\BINW\CMDEDIT.EXE
C:\LANG\WATCOM\BINW\DMPOBJ.EXE
C:\LANG\WATCOM\BINW\FCENABLE.EXE
C:\LANG\WATCOM\BINW\MS2WLINK.EXE
C:\LANG\WATCOM\BINW\WASM.EXE
C:\LANG\WATCOM\BINW\WCC.EXE
C:\LANG\WATCOM\BINW\WCL.EXE
C:\LANG\WATCOM\BINW\WDIS.EXE
C:\LANG\WATCOM\BINW\WLIB.EXE
C:\LANG\WATCOM\BINW\WLINK.EXE
C:\LANG\WATCOM\BINW\WLINK.LNK
C:\LANG\WATCOM\BINW\WLSYSTEM.LNK
C:\LANG\WATCOM\BINW\WMAKE.EXE
C:\LANG\WATCOM\BINW\WPP.EXE
C:\LANG\WATCOM\BINW\WSTRIP.EXE
C:\LANG\WATCOM\BINW\WTOUCH.EXE
C:\LANG\WATCOM\H\*.H
C:\LANG\WATCOM\H\SYS\*.H
C:\LANG\WATCOM\LIB286\CPLX7?.LIB
C:\LANG\WATCOM\LIB286\CPLX?.LIB
C:\LANG\WATCOM\LIB286\MATH87?.LIB
C:\LANG\WATCOM\LIB286\MATH?.LIB
C:\LANG\WATCOM\LIB286\NOEMU87.LIB
C:\LANG\WATCOM\LIB286\PLBX?.LIB
C:\LANG\WATCOM\LIB286\PLIB?.LIB
C:\LANG\WATCOM\LIB286\DOS\BINMODE.OBJ
C:\LANG\WATCOM\LIB286\DOS\CLIB?.LIB
C:\LANG\WATCOM\LIB286\DOS\COMMODE.OBJ
C:\LANG\WATCOM\LIB286\DOS\CSTART_T.OBJ
C:\LANG\WATCOM\LIB286\DOS\DOS16M.OBJ
C:\LANG\WATCOM\LIB286\DOS\EMU87.LIB
C:\LANG\WATCOM\LIB286\DOS\GRAPH.LIB

Note: above included C++ support, total 12M; only C support will be ~6M.
Also, help files (14.5M):

C:\HELP\WATCOM\CGUIDE.IHP
C:\HELP\WATCOM\CLIB.IHP
C:\HELP\WATCOM\CLR.IHP
C:\HELP\WATCOM\CMIX.IHP
C:\HELP\WATCOM\CPPLIB.IHP
C:\HELP\WATCOM\CW.IHP
C:\HELP\WATCOM\C_README.IHP
C:\HELP\WATCOM\LGUIDE.IHP
C:\HELP\WATCOM\PGUIDE.IHP
C:\HELP\WATCOM\RESCOMP.IHP
C:\HELP\WATCOM\TOOLS.IHP
C:\HELP\WATCOM\WCCERRS.IHP
C:\HELP\WATCOM\WD.IHP
C:\HELP\WATCOM\WHELP.EXE
C:\HELP\WATCOM\WPPERRS.IHP
C:\HELP\WATCOM\WPROF.IHP

- setup environment: set WATCOM environment variable and include into PATH
c:\lang\watcom\binw, as explained in readme.txt (see URL above). I myself
do this through batch files. For example, wcc.bat, wcl.bat, wlib.bat,
wlink.bat:

______________O\_/_________________________________\_/O______________
@echo off
if "%watcom%"=="" set watcom=c:\lang\watcom
if "%include%"=="" set include=%watcom%\h
%watcom%\binw\wcc %1 %2 %3 %4 %5 %6 %7 %8 %9
_____________________________________________________________________
O/~\ /~\O
______________O\_/_________________________________\_/O______________
@echo off
if "%watcom%"=="" set watcom=c:\lang\watcom
if "%include%"=="" set include=%watcom%\h
:if "%lib%"=="" set lib=%watcom%\lib286
set path=%path%;%watcom%\binw
%watcom%\binw\wcl %1 %2 %3 %4 %5 %6 %7 %8 %9
_____________________________________________________________________
O/~\ /~\O
______________O\_/_________________________________\_/O______________
@echo off
if "%watcom%"=="" set watcom=c:\lang\watcom
%watcom%\binw\wlib %1 %2 %3 %4 %5 %6 %7 %8 %9
_____________________________________________________________________
O/~\ /~\O
______________O\_/_________________________________\_/O______________
@echo off
if "%watcom%"=="" set watcom=c:\lang\watcom
:if "%lib%"=="" set lib=%watcom%\lib286;%watcom%\lib286\dos
%watcom%\binw\wlink %1 %2 %3 %4 %5 %6 %7 %8 %9
_____________________________________________________________________
O/~\ /~\O

wmake.bat similar to wlib.bat and wpp.bat similar to wcc.bat. Note: LIB
variable not need to setup, because wlink.lnk and wlsystem.lnk already
contains relative pathes. Also note: PATH need to setup only for WCL,
because this beast not searches need executables in its startup path.

Whats all, folks.
Bernd Blaauw
2004-09-20 19:03:44 UTC
Permalink
Post by Arkady V.Belousov
Hi!
Arkady, your mail reached the list. No idea how late you sent it. Before
your mail to me? if so, it was 4 hours delayed.
Openwatcom 1.3 still not official yet, though Bart mentioned a "1.3" set
of packages
Post by Arkady V.Belousov
I already explain this. Let me repeat.
There were indeed a few questions:
1)what packages do I need for a minimal OpenWatcomC environment in DOS
2)what packages do I need for kernel compiling using OpenWatCom in DOS
(this might theoretically be fewer packages than [1])
3)Which files do I absolutely require for an installed [1]?
programs like SETEDIT can be deleted, for example.
4)Which files do I absolutely require for an installed [2] ?
(probably not as many files as in [3])

What I'm most interested in is [4]:
Every OpenWatcom file not needed for compiling the kernel can be deleted.
This is the openwatcom total package I'll add to the FreeDOS
distribution someday.

And then another package will be delivered with add-on files so I can
turn [4] into a normal usable minimal Openwatcom ([3]).
Post by Arkady V.Belousov
C:\LANG\WATCOM\BINW\CMDEDIT.EXE
C:\LANG\WATCOM\BINW\DMPOBJ.EXE
C:\LANG\WATCOM\BINW\FCENABLE.EXE
C:\LANG\WATCOM\BINW\MS2WLINK.EXE
C:\LANG\WATCOM\BINW\WASM.EXE
C:\LANG\WATCOM\BINW\WCC.EXE
C:\LANG\WATCOM\BINW\WCL.EXE
C:\LANG\WATCOM\BINW\WDIS.EXE
C:\LANG\WATCOM\BINW\WLIB.EXE
C:\LANG\WATCOM\BINW\WLINK.EXE
C:\LANG\WATCOM\BINW\WLINK.LNK
C:\LANG\WATCOM\BINW\WLSYSTEM.LNK
C:\LANG\WATCOM\BINW\WMAKE.EXE
C:\LANG\WATCOM\BINW\WPP.EXE
C:\LANG\WATCOM\BINW\WSTRIP.EXE
C:\LANG\WATCOM\BINW\WTOUCH.EXE
C:\LANG\WATCOM\H\*.H
C:\LANG\WATCOM\H\SYS\*.H
C:\LANG\WATCOM\LIB286\CPLX7?.LIB
C:\LANG\WATCOM\LIB286\CPLX?.LIB
C:\LANG\WATCOM\LIB286\MATH87?.LIB
C:\LANG\WATCOM\LIB286\MATH?.LIB
C:\LANG\WATCOM\LIB286\NOEMU87.LIB
C:\LANG\WATCOM\LIB286\PLBX?.LIB
C:\LANG\WATCOM\LIB286\PLIB?.LIB
C:\LANG\WATCOM\LIB286\DOS\BINMODE.OBJ
C:\LANG\WATCOM\LIB286\DOS\CLIB?.LIB
C:\LANG\WATCOM\LIB286\DOS\COMMODE.OBJ
C:\LANG\WATCOM\LIB286\DOS\CSTART_T.OBJ
C:\LANG\WATCOM\LIB286\DOS\DOS16M.OBJ
C:\LANG\WATCOM\LIB286\DOS\EMU87.LIB
C:\LANG\WATCOM\LIB286\DOS\GRAPH.LIB
which packages to get is clear, that information is in config.txt as you
mentioned.
CMDEDIT seems like it can go, if using EDIT for example. So, this file
is overhead.
Any other files of your above list not needed for compiling FreeDOS? I
think you already mentioned the bare minimum except this one file
(CMDEDIT instead of FreeDOS EDIT).
is the WTOUCH program needed?
Post by Arkady V.Belousov
Whats all, folks.
Almost correct: as the famous words go: "That's all, folks!"

Bernd
Arkady V.Belousov
2004-09-20 19:39:47 UTC
Permalink
Hi!

20-Сен-2004 21:03 ***@home.nl (Bernd Blaauw) wrote to
freedos-***@lists.sourceforge.net, "Arkady V.Belousov" <***@mos.ru>:

BB> Arkady, your mail reached the list. No idea how late you sent it. Before
BB> your mail to me? if so, it was 4 hours delayed.

My letter was created at 16:33 of local time (currently here is 23:15).
After this I _resent_ this letter (because SF failed to talk back with our
postserver to verify my address?) around 10-15 times.

BB> Openwatcom 1.3 still not official yet, though Bart mentioned a "1.3" set
BB> of packages

Directories contents are similar. As I understand, my explanation
should work also for 1.3. (And, if OW team hear me and fix WCL, which
searches executables only through PATH, then WCL.BAT may be simplified).
Post by Arkady V.Belousov
I already explain this. Let me repeat.
BB> There were indeed a few questions:
BB> 1)what packages do I need for a minimal OpenWatcomC environment in DOS

"Common files" and "C files".

BB> 2)what packages do I need for kernel compiling using OpenWatCom in DOS
BB> (this might theoretically be fewer packages than [1])

Same as above, and these packages explicitly mentioned in build.txt.

BB> 3)Which files do I absolutely require for an installed [1]?
BB> programs like SETEDIT can be deleted, for example.

See my list of _my_ unpacked files. Note: to reduce size, I remove
files like wcc386.exe.

BB> 4)Which files do I absolutely require for an installed [2] ?
BB> (probably not as many files as in [3])

Same as above. As I explain in previous letter, there will be around
~6M of total.

Hm. Also, kernel itself need only _one_ library file: clibm.lib. Add
here library files for small/tiny memory model (for sys, patchobj) and
compact model (for exeflat) and you reduce LIB286 directory from ~3.3M to
~2M. Also, you may remove (small!) utilities like dmpobj.exe and wdis.exe
(thus reduce BINW from ~2.4M to ~1.7M) and header files like tchar.h, mb*.h
and graph*.h (thus reduce from ~380k to ~200k). Total: 2.0+1.7+0.2=~4M. I
don't think that this gain (~2M from (uncompressed) ~6M) worth of playing.

BB> What I'm most interested in is [4]:
BB> Every OpenWatcom file not needed for compiling the kernel can be deleted.
BB> This is the openwatcom total package I'll add to the FreeDOS
BB> distribution someday.
BB> And then another package will be delivered with add-on files so I can
BB> turn [4] into a normal usable minimal Openwatcom ([3]).
Post by Arkady V.Belousov
C:\LANG\WATCOM\BINW\WCC.EXE
BB> which packages to get is clear, that information is in config.txt as you
BB> mentioned.
BB> CMDEDIT seems like it can go, if using EDIT for example. So, this file
BB> is overhead.

I don't know what is this program and how used (as I reported to OW
team, not enough descriptions), so I remain this file.

BB> Any other files of your above list not needed for compiling FreeDOS? I
BB> think you already mentioned the bare minimum except this one file
BB> (CMDEDIT instead of FreeDOS EDIT).
BB> is the WTOUCH program needed?

No. See above.
Post by Arkady V.Belousov
Whats all, folks.
BB> Almost correct: as the famous words go: "That's all, folks!"

Sorry, forget right wording. :( :)
Loading...