source: trunk/BOOTCODE/AIR-BOOT.HIS@ 46

Last change on this file since 46 was 46, checked in by Ben Rietbroek, 12 years ago

Various Changes [2012-04-14]

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 THESE COMMITS!!

Changes

o Added BLDLEVEL support
o Enhanced Master Make
o Sanitized sources
o Support for Wasm and Masm6 (experimental)
o Renamed MBR_PROT.ASM to MBR-PROT.ASM
o Merged bitfield code Into Installer
o First steps for cross platform Installer
o More...

File size: 13.7 KB
Line 
1;
2; AiR-BOOT (c) Copyright 1998-2008 M. Kiewitz
3;
4; This file is part of AiR-BOOT
5;
6; AiR-BOOT is free software: you can redistribute it and/or modify it under
7; the terms of the GNU General Public License as published by the Free
8; Software Foundation, either version 3 of the License, or (at your option)
9; any later version.
10;
11; AiR-BOOT is distributed in the hope that it will be useful, but WITHOUT ANY
12; WARRANTY: without even the implied warranty of MERCHANTABILITY or FITNESS
13; FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
14; details.
15;
16; You should have received a copy of the GNU General Public License along with
17; AiR-BOOT. If not, see <http://www.gnu.org/licenses/>.
18;
19
20
21
22; ---------------------------------
23; Rousseau: Fixes and Enhancements
24; ---------------------------------
25; v1.0.8-rc2-bld201204??+
26; ---------------------
27
28
29; v1.0.8-pre-rc2-bld20120330
30; --------------------------
31; # Merged 16-bit Assembler bitfield code to the Installer #
32; The installer needs to handle the v1.0.8 configuration.
33; This requires access to the 6-bit packed 'hideparttable'.
34; To 'not-reinvent-the-wheel', by coding this in C, the Assembler
35; bitfield functions are integrated using Open Watcom's '_asm' capability.
36; It may not be pretty and the functions themselves are limited,
37; but this method prevents maintaining seperate Asm and C implementations.
38; Will be improved later.
39;
40; # Implemented BLDLEVEL support #
41; AIRBOOT.BIN, the Installers and SET(A)BOOT now support OS/2 BLDLEVEL
42; information. This enhances identification and problem tracking/solving.
43; While BLDLEVEL is an OS/2 command, the BLDLEVEL information itself can
44; be embedded in any binary. Invoking BLDLEVEL from within OS/2 on, let's
45; say, the AIRBOOTL.ELF Linux executable, will also show the BLDLEVEL info.
46; A slight deficiency of BLDLEVEL is that is forces a format on the version.
47; So, AiR-BOOT v1.0.8 will be shown as v1.00.8.
48;
49; # Added support for Masm6 and Wasm v1.9 -- Experimental use only #
50; Trying to assemble with Masm6 or Wasm v1.9 reveiled some interesting
51; behavior aspects in general. While this version can now be assembled with
52; Masm6 and Wasm too, this was only done to get a 'cross-feeling' for this
53; project. Future versions will drop support for Tasm, Masm6 and Wasm since
54; much conditional assembly is needed to support all of them. This was an
55; experimental excercise only. JWasm is the assembler of choise for this
56; project and any future versions.
57;
58; # Implemented stop scanning when max. partitions limit exceeded #
59; Previous versions halted the system when the maximum number of partitions
60; that can be handled (45) was exceeded.
61; This required the user to boot from alternate media to correct the problem.
62; Now, when the partition limit is exceeded, AiR-BOOT displays a pop-up
63; and waits for a key-press. When the user presses a key, AiR-BOOT continues
64; and the boot-menu is shown, enabling the user to boot a system to correct
65; the problem. To indicate this situation, the color of the selection-bar
66; is displayed in red.
67;
68; # Fixed hiding partitions above old max 30-partitions limit #
69; Hiding partitions is a per partition setting and it is kept in a table
70; in the AiR-BOOT image on disk. In previous versions, including v1.0.8-rc1,
71; this table still held the old number of maximum partitions (30).
72; So configuring a hide-setting for partitions >30 or hiding more than
73; 30 partitions per partition would not work properly.
74; Unfortunately, there was no room to expand this table, since it resides
75; just below the MBR backup, at the end of the AiR-BOOT image.
76; To work around this, the table now uses a 6-bits packed format and the
77; drive-letter array, which followed this table has been moved elsewhere.
78; This is a change in the configuration layout since the previous version,
79; so the config-version has been bumped to v1.0.8.
80; TODO: Add upgrade-code to the installer to cope with this.
81;
82; # Removed requirement for LVM P and V name to be the same to edit #
83; However, when both are the same before the edit, the V name will be
84; synved to the P name to have them both the same again after the edit.
85; If they differ, only the V name is updated.
86;
87; # Trying to edit the label of a type 0x35 partition now shows a popup #
88; The user is informed that type 0x35 labels cannot be edited.
89;
90; # Type 0x35 partitions cannot be added to the AB-menu anymore #
91; They are not bootable anyway. The user is informed by a popup.
92;
93; # De-tasemized the Assembler sources for JWasm compatibility #
94; AiR-BOOT can now be built using JWasm, which is the preferred
95; assembler as of this release. Tasm support will be dropped in the future.
96;
97; # Completely reworked the build-system #
98; Everything is now done with Makefiles using WMake, Wlink and the
99; C/C++ Compilers from the Open Watcom development tools together with JWasm.
100; This obsoletes tasm, tlink and exe2bin.
101;
102; # Cross-Platform support #
103; AiR-BOOT and it's helpers can now be built on: DOS, Win32, OS/2 and Linux.
104;
105; # Rewrote FIXCODE.ASM in C so the tool-chain is not dependent on a DOS .COM #
106; Now FIXCODE is built platform-specific and takes care of the embedding
107; of MPR-protection image.
108;
109; # Created FIXCODE bash-script to accomplish embedding of MBR-protection #
110; Building on Linux requires that no DOS-tools are used in the tool-chain.
111; This script essentially performs the same functionality but does not check
112; certain conditions, like image-too-big, etc.
113; It is a 'quick-hack' until the Linux version of FIXCODE is operational.
114;
115; v1.0.8-rc1-bld20120124
116; ----------------------
117; # Changed version format to be more WarpIN compatible #
118; This is a cosmetic change only, the internal format has not changed.
119;
120; # Show LVM VolumeName instead of LVM PartitionName #
121; Previous versions of AiR-BOOT used the LVM PartitionName as the Label
122; if LVM-info was present for the partition.
123; This is inconsistent with MiniLVM which shows the LVM VolumeName.
124; Starting with v1.0.8 the LVM VolumeName is displayed.
125;
126; # LVM Partition and Volume name Synchronization #
127; Changing the Label of a partition with LVM-info now synchronizes
128; the LVM Partition Name with the LVM Volume Name.
129; This is the same behavior as MiniLVM.
130; Note however that the Label can only be changed when both the
131; LVM PartitionName and LVM VolumeName are the same.
132; See protected editing below.
133;
134; # Protected editing of the Label when LVM-info is present #
135; When the LVM VolumeName differs from the LVM PartitionName, the user can
136; edit the label but it will not be saved to the LVM record on disk.
137; This is to protect configurations created with the classic LVM tool.
138; Since MiniLVM assigns the same name to both the Partition and the Volume,
139; the Label can be edited and will be saved for such partitions.
140; To further protect a given configuration, LVM volumes with type 0x35
141; cannot be edited at all. This is to ensure that the LVM PartitionNames
142; remain unique when Spanning Volumes are used.
143;
144; # Editing the Label appended spaces #
145; When editing and changing the Label of a System using SETUP,
146; trailing spaces were stored in the LVM Volume and Partition names.
147; These labels need to be padded with zero's.
148; This has been fixed.
149; This bug is also present in v1.06.
150;
151; # Reworked Primary Partition <-> LVM-info association #
152; The previous way was to use a 1:1 correspondence between the PT-index
153; and the LVM-index. However, when the PT is cross-linked, lower entries
154; pointing to higher locations on the disk, or vice-versa, incorrect
155; LVM-info was associated. Such a cross-linked PT is sometimes generated
156; by the LVM engine when creating or deleting multiple partitions at once.
157; Best is to intermediately save after creating or deleting a partition
158; with (Mini)LVM.
159; The new way is to search the LVM-entries for the partition requested.
160;
161; # Reworked MBR-code to provide two I13X signatures #
162; The normal LVM MBR-code uses a special setup to indicate Int13X capability.
163; It contains the instruction, MOV EAX,'X31I', and some software checks
164; for the presence of the 'I13X' string in the MBR.
165; However, the location of this instruction differs between eCS 1.x and
166; eCS 2.x LVM MBR-code.
167; For compatibility, the v1.0.8 MBR has the 'I13X' string at both locations.
168;
169; # Fixed booting older eCS installations on HPFS #
170; When restoring systems from archive or otherwise generated systems,
171; the HPFS BPB sometimes lacked information that AiR-BOOT did not fill in.
172; The result was that a wrong partition was booted or that booting
173; stalled with the "unable to operate harddisk" message.
174; This has been fixed.
175;
176; # Fixed booting Windows from a logical partition with loader on FAT32 #
177; Depending on the configuration, sometimes the NTLDR could not be found.
178; This has been fixed.
179;
180; # Fixed drive-letter feature which was broken in v1.07 #
181; a) v1.07 did remember the drive-letter feature was active for a partition,
182; but it failed to store the drive-letter because too few configuration
183; sectors were saved. This resulted in arbitrary values to be assigned
184; to the drive-letter for the partition.
185; b) The JFS PBR-code does not use the in-memory BPB but uses the one
186; that is on disk. This prevented AiR-BOOT from passing the user assigned
187; drive-letter. AiR-BOOT now inserts the drive-letter in the BPB on disk,
188; but only if the partition is JFS.
189; AB v1.06 is also unable to use the drive-letter feature on JFS.
190; As a convenience, a drive-letter in the dl-feature pop-up can now be set
191; to "Disabled" by pressing backspace.
192; (As opposed to arrowing up/down to get to the "Disabled" entry)
193;
194; # Fixed stuck phase1 indicator when wrong name entered #
195; When using SET(A)BOOT /4:NAME with the MEMDRIVE env-var set,
196; and NAME being a non-existing partition, the phase1 indicator
197; would stay stuck between reboots.
198; This has been fixed.
199;
200; # Fixed DOS installer (AIRBOOT.COM) #
201; Behavior should now be the same as the eCS and WIN installers.
202; This re-enables the use of a bootable floppy or usb-stick
203; to install AiR-BOOT.
204;
205; # Fixed booting from FloppyDrive #
206; This is actually also broken in v1.06 when Int13X is forced on.
207; Now regular BIOS calls are used when booting from floppydrive.
208; A fresh AiR-BOOT installation now includes the floppydrive menu entry.
209;
210; # Fixed chainloading IBM Boot Manager #
211; AiR-BOOT v1.06 could chainload IBM-BM but only when it resided on
212; the first disk and was located below the 1024 cylinder and forced Int13X
213; extensions were disabled.
214; AiR-BOOT v1.0.8 can now chainload IBM-BM with forced Int13X extensions
215; enabled (the default) and if IBM-BM resides above the 1024 cylinder limit.
216; Also, chainloading IBM-BM from the second disk is supported.
217; Do not use chainloading IBM-BM unless you really have a need to.
218; See the AiR-BOOT Manual for "gotcha's" when using both AiR-BOOT and IBM-BM.
219;
220; # Corrected contact links #
221; Version 1.07 still presented the old contact links to the sourceforge
222; repository and the original author.
223; This caused confusion with regard to issues with v1.07.
224; This has been corrected.
225;
226; NOTE:
227; AB v1.07 had a bug with saving and loading the correct size of the
228; configuration. This broke the drive-letter feature.
229; As a result, the CRC over the config was also calculated wrongly.
230; While AB v1.0.8 fixes this, it has to use the v1.07 way of CRC calculation.
231; Otherwise SET(A)BOOT from the eCS v2.1 would break on AB v1.0.8 because it
232; sees a corrupt AiR-BOOT configuration.
233; This means that the CRC over the AB config is calculated over 5 sectors
234; instead of 7, just like in v1.07.
235;
236; NOTE:
237; Because of space constraints most of the debug code has been commented
238; out in this version.
239; Possibly it will be re-enabled after code cleanup and changing to JWasm.
240;
241;
242; v1.07
243; -----
244; # Huge Drives and LVM #
245; When using disks >512GB under eComStation, the drive geometry changes to
246; 127 or 255 sectors per track. Since LVM-info is written at the last sector
247; of a track, and AiR-BOOT uses the geometry of the MBR, it cannot find the
248; LVM-info and the eCS partition / volume bootsector.
249; This has been fixed.
250; Now, when an eCS-partition is discovered and the drive is >512GB, AiR-BOOT
251; will use the eCS geometry to locate the LVM-info and the bootsector.
252;
253; # Special loader handling #
254; The special handling of partition boot-loaders has been enhanced to
255; enable booting of legacy systems on huge drives with or without OS/2
256; extended geometry.
257;
258; # eComStation boot-through after phase 1 #
259; Special functionality is implemented to directly boot a newly
260; installed eCS system after completing phase 1 of the installation.
261; This works in conjuntion with the OS/2 specific SET(A)BOOT.EXE program,
262; also part of the AiR-BOOT package.
263;
264; # Math, Debug, Conv and Aux modules #
265; These are used for 32-bit arithmatic on 16-bit code,
266; debug the boot process, converting between data-types
267; and outputting log-data to the com-port.
268;
269;
270; v1.06
271; -----
272; This is the last version developed by Martin Kiewitz.
273; It serves as the base for the versions above.
274; Please do not post your feedback on sourceforge or bother Martin with
275; regard to issues with the above versions.
276; Use the eCS bug-tracker or the Trac project-page at netlabs and see the
277; documentation of this newer versions for the relevant contact information.
278
Note: See TracBrowser for help on using the repository browser.