source: trunk/BOOTCODE/MAKE.BAT@ 32

Last change on this file since 32 was 32, checked in by Ben Rietbroek, 13 years ago

Fixed Win7 boot from FAT32 and HPFS zero-drive ussue [2011-11-20]

Fixes

o Fixed booting Windows 7 from FAT32

Booting Windows (NT/2K/XP/Vista/7) from FAT32 when the actual system
resides on an NTFS partition actually chainload the Windows
boot-loader in the FAT32 partition.
A bug in the handling of such a FAT32 partition with the Windows
boot-loader caused it not to find NTLDR is some cases.

o Fixed HPFS zero-drive issue

The BPB contains a field that indicates the boot-drive to the
OS2BOOT and OS2LDR programs. When creating an HPFS partition and
then restoring a system from archive (i.e. a zip-file) of course
does not set this field, since only files are restored.
This causes the boot process to halt with "...cannot operate..."
or even boot another HPFS partition. This field is now derived from
the LVM drive-letter if it contains an incorrect value.

o Corrected CRC calculations on AiR-BOOT configuration

V1.07 expanded the number of partitions from 30 to 45.
However, this was not done correctly and the configuration CRC was
still caclulated over 5 sectors. Initial v1.0.8 code corrected this
but this results in the v1.07 installer and setaboot programs
breaking on v1.0.8 code. So, for the time being the CRC caclucation
is reverted back to 5 sectors for the sake of v1.07 compatibility.
Save and restore of the configuration use 7 sectors of course.

o Corrected contact information

V1.07 shipped with the wrong contact information, causing issues
to be reported on sourceforge instead of netlabs.

Changes

o Renamed original README.TXT to README.MKW
o Added 1README.TXT
o Added COPYING (GNU License)

Note

This commit and all following commits upto and including the RC3
commit [2012-09-09] are delayed commits from a local repository.
Also, the RC (Release Candidate) naming of the corresponding commits
is a bit misleading. One would label a revision with RC when near to
a final release. Since many things have changed between RC1,RC2 & RC3,
these RC's should be interpreted as mile-stones.

WARNING!!

All commits upto and including the commit of [2012-05-13] contain
a severe bug!! Building from these sources and then disabling
the 'force LBA' feature while also using the drive-letter feature or
editing the label can destroy the MBR on all attached disks!!
DO NOT DISABLE 'FORCE LBA USAGE' WHEN BUILT FROM THE ABOVE COMMITS!!

File size: 1.4 KB
Line 
1@echo off
2rem This batch file builds
3if "%1"=="EN" goto Valid
4if "%1"=="DE" goto Valid
5if "%1"=="NL" goto Valid
6if "%1"=="FR" goto Valid
7if "%1"=="IT" goto Valid
8if "%1"=="RU" goto Valid
9if "%1"=="SW" goto Valid
10if "%1"=="ALL" goto BuildAll
11echo Invalid language ID
12goto ExitMe
13
14rem -- We do English last so an English version can be copied
15rem -- to this directory, using it's normal basename instead
16rem -- of the language suffixed one.
17:BuildAll
18call make.bat DE
19call make.bat NL
20call make.bat FR
21call make.bat IT
22call make.bat RU
23call make.bat SW
24call make.bat EN
25goto ExitMe
26
27:Valid
28echo.
29echo.
30echo Making %1 language version of AiR-BOOT bootcode...
31echo Include TEXT\%1\MBR.asm >TEXT\TXTMBR.asm
32echo Include TEXT\%1\MENUS.asm >TEXT\TXTMENUS.asm
33echo Include TEXT\%1\OTHER.asm >TEXT\TXTOTHER.asm
34
35rem Do actual build...
36call ..\env\dos.bat
37%assembler% air-boot.asm
38if errorlevel 1 goto Failed
39%linker% air-boot.obj >nul
40if errorlevel 1 goto Failed
41%exe2bin% air-boot.exe air-boot.com >nul
42if errorlevel 1 goto Failed
43
44..\tools\internal\fixcode.com
45
46copy AIR-BOOT.com ..\RELEASE\BOOTCODE\AIRBT-%1.bin
47
48copy AIR-BOOT.COM AIRBOOT.BIN
49
50rem Cleanup
51del AiR-BOOT.com
52del AiR-BOOT.exe
53del AiR-BOOT.obj
54goto ExitMe
55
56:Failed
57echo Errorlevel not 0, make failed
58:ExitMe
59
60echo.
61echo Gonna build the installer and setaboot now...
62echo.
63
64rem @pause
Note: See TracBrowser for help on using the repository browser.