Skip to content

Commit

Permalink
Added new packet drivers for including in the boot disk images
Browse files Browse the repository at this point in the history
  • Loading branch information
jhhoward committed Jul 28, 2021
1 parent 5501acd commit 8c4329a
Show file tree
Hide file tree
Showing 9 changed files with 92 additions and 0 deletions.
Binary file added net/3C503.COM
Binary file not shown.
Binary file added net/8029PKT.COM
Binary file not shown.
Binary file added net/8139PKT.COM
Binary file not shown.
60 changes: 60 additions & 0 deletions net/AUTOEXEC.BAT
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
@ECHO OFF

REM NOTE: If you remove this file from your boot disks,
REM the FreeDOS boot will automaticall prompt user for date/time
REM That issue can be fixed by adding the "/D" flag in CONFIG.SYS
REM to the COMMAND.COM line , but /D will also make FreeDOS skip
REM execution of AUTOEXEC.BAT.
REM More info is here:
REM https://sourceforge.net/p/freedos/mailman/message/5156181/

REM Change packet driver settings as required
if %config%.==. NE2000 0x60 3 0x300
if %config%.==0. NE2000 0x60 3 0x300
if %config%.==1. NE2000XT 0x60 3 0x300
if %config%.==2. 8029PKT 0x60
if %config%.==3. 8139PKT 0x60
if %config%.==4. pcntpk INT=0x60
if %config%.==5. 3C503 0x60 3 0x300
if %config%.==6. SMC_WD 0x60 3 0x300

SET MTCPCFG=MTCP.CFG

REM Install mouse driver
ECHO.
ECHO Choose mouse type:
ECHO 0 = Autodetect
ECHO 1 = Serial
ECHO 2 = PS/2
ECHO 3 = None
SET /p mousetype=:

if "%mousetype%"=="1" goto serial
if "%mousetype%"=="2" goto ps2
if "%mousetype%"=="3" goto start

REM autodetect mouse type
CTMOUSE
goto start

:serial
CTMOUSE /S
goto start

:ps2
CTMOUSE /P
goto start

:start
REM Try to get an IP address automatically via DHCP
DDHCP.COM /M

ECHO.
ECHO Welcome to the MicroWeb FreeDOS boot disk!
ECHO To run MicroWeb: type MICROWEB
ECHO Available command line options:
ECHO -c Run in 640x200 CGA mode
ECHO -h Run in 720x348 Hercules mode
ECHO -e Run in 640x350 EGA mode
ECHO -v Run in 640x480 VGA mode
ECHO.
32 changes: 32 additions & 0 deletions net/CONFIG.SYS
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
!SWITCHES=/N
!DOS=HIGH
;DEVICE=\FDOS\HIMEM.EXE /VERBOSE
;?DEVICE=\FDOS\EMM386.EXE /VERBOSE
;?DEVICE=\UMBPCI.SYS
!FILES=20
!BUFFERS=20
!SHELL=A:\COMMAND.COM /E:512 /MSG /P
;SHELLHIGH=\COMMAND.COM /E:256 /P

MENU
MENU Choose Network adapter:
MENU
MENU 0 = NE2000 (Port 300, IRQ 3)
MENU 1 = NE2000 - XT compatible (Port 300, IRQ 3)
MENU 2 = RTL8029AS
MENU 3 = RTL8139
MENU 4 = AMD PCNet (vlance)
MENU 5 = 3Com EtherLink II (3C503) (Port 300, IRQ 3)
MENU 6 = Western Digital WD8003E (Port 300, IRQ 3)
MENU 7 = No network adapter
MENU
MENUDEFAULT=0

0? ECHO NE2000 (Port 300, IRQ 3) will be used
1? ECHO NE2000 - XT compatible (Port 300, IRQ 3) will be used
2? ECHO RTL8029AS will be used
3? ECHO RTL8139 will be used
4? ECHO AMD PCNet (vlance) will be used
5? ECHO 3Com EtherLink II (3C503) (Port 300, IRQ 3) will be used
6? ECHO Western Digital WD8003E (Port 300, IRQ 3) will be used
7? ECHO No network adapter will be used
Binary file added net/DDHCP.COM
Binary file not shown.
Binary file added net/NE2000XT.COM
Binary file not shown.
Binary file added net/SMC_WD.COM
Binary file not shown.
Binary file added net/pcntpk.com
Binary file not shown.

0 comments on commit 8c4329a

Please sign in to comment.