source: trunk/bootcode/airboot.his@ 144

Last change on this file since 144 was 66, checked in by Ben Rietbroek, 9 years ago

Changed basename from 'air-boot' to 'airboot' [v1.1.1-testing]

The loader is already called 'airboot.bin', the manual 'airboot.inf',
and the installers also don't have a hyphen in their basename.

CAUTION:
This is a testbuild !
AirBoot uses the BIOS to access disks and a small coding error can trash
partition tables or other vital disk structures. You are advised to make
backups of TRACK0 and EBRs before using this testbuild. More info at:
https://rousseaux.github.io/netlabs.air-boot/pdf/AirBoot-v1.1.0-manual.pdf

File size: 21.6 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; ------------------------------------------------
24; Rousseau: Fixes, Enhancements and fresh bugs :-)
25; ------------------------------------------------
26;
27; v1.1.0-final
28; ============
29; # Bumped Version Number
30; During v1.0.8 is was decided that odd minor versions will be test-versions.
31; Since v1.0.8 was a test-version all the way, the final stuff has been
32; bumped to v1.1.0, including the version of the configuration.
33; v1.1.1 will be any following test-version, with build-dates separating
34; test-releases. Version 1.1.2 would be a next release.
35;
36; # Updated version numbers
37; All version identifiers updated from v1.0.8 to v1.1.0
38; AIRBOOT.BIN, INSTALL[D2WL].EXE and SETABOOT.EXE.
39;
40; # Fixed Virus Regression
41; Using the enhanced drive-letter feature to boot eCS installations using
42; the same drive-letter caused the PBR-virus protection to activate.
43; This was caused by a missing update to the PBR CRC in the AB configuration.
44; This has been fixed.
45;
46; # Only clear bootable flag on boot-drive
47; This interferred with booting other drives, not containing AiR-BOOT,
48; directly from the BIOS. Now AiR-BOOT only clears the bootable-flag on the
49; boot-drive, which is the one where AiR-BOOT got activated from.
50;
51; # Check for INT13X extensions before using them
52; Now the availability of INT13X is checked and a popup is displayed and the
53; system halted when they are not available. INT13X is a requirement for
54; this and higher versions of AiR-BOOT.
55;
56; v1.0.8-rc3-bld20120909
57; ----------------------
58; # Added Show LVM Drive Letters in SETUP/BASIC #
59; This will toggle the display of LVM drive-letters in the main menu.
60; By default this option is enabled.
61;
62; # Reduced MBR Protection Image from 1024 bytes to 768 bytes #
63; The fight for code-space continues...
64; Luckily the MBR Protection Image code does not exceed 768 bytes,
65; so that gives us another 256 bytes of precious code-space.
66; Now the non-EN versions are happy again.
67; Note that the alignment for the image changed from 512 to 256 bytes.
68; MBR-PROT.ASM, FIXCODE.C, PARTMAIN.ASM and AIR-BOOT.ASM have been
69; adjusted for this change.
70;
71; # Updating from v1.06 now also copies over drive-letters #
72; When the user has forced drive-letters in v1.06 these will be copied over
73; to the v1.0.8 configuration when upgrading.
74; Because the drive-letter feature is broken in v1.07, the drive-letter
75; table does not get copied over when upgrading from v1.07.
76;
77; # Fixed a minor bug with displaying LVM drive-letters #
78; When more partitions that can be displayed were present, scrolling the
79; menu would not scroll the drive-letter. Fixed.
80;
81; # Added DOCU directory for documentation #
82; This contains the AiR-BOOT User Manual in Open Office .odt-format.
83; To also have OS/2 INF format, a transformation script and sheet have been
84; created to convert the .odt document to an ipf-source that can be compiled
85; with Watcoms wipfc ipf compiler. (IBM ipfc does not work correctly)
86; This makes it possible to write documentation in OOo Writer and export that
87; to PDF and INF format.
88;
89; # Fixed a bug with regard to the drive-letter feature #
90; When partitions were deleted, and some partitions above the deleted
91; partition(s) had a drive-letter forced, these partitions would lose this
92; assignment. This bug is also present in v1.06.
93;
94; # Implemented a very simple interactive debugger #
95; Making use of the main menu-loop, pressing a digit or a letter activates
96; some debugging routine. Mostly such a routine dumps a part of the internal
97; state to the com-port. Other purposes are the interrogation of certain
98; BIOS functions, as these can differ substantially between machines.
99;
100; # Made FX-code optional to compile in #
101; The FX-code supplies the shifting screen-effects when 'Cooper Bars' is
102; enabled in the setup. With the current enhancements made however,
103; there is a continuous lack of code-space, especially when debug-code is
104; included during development. The FX-code occupies some 1200 bytes, a space
105; that can be put to better use. Therefore inclusion the FX-code has been
106; made conditional to make room for either debugging or future new features.
107;
108; # Also write PBR to HPFS #
109; Earlier, a fix was made to write a modified PBR back in case JFS was used.
110; This was done to enable the drive-letter feature on JFS, since the PBR
111; JFS-bootcode does not use the supplied PBR in memory.
112; With the enhancements in the drive-letter feature, the HPFS PBR needs to
113; be updated on disk also, to cope with zero drive-letters in the HPFS PBR.
114;
115; # Added drive-letters in display for LVM volumes #
116; A populair request was to show drive-letter information in the menu.
117; Drive-letters however, are OS specific and AiR-BOOT cannot accurately
118; predict what drive-letter DOS would assign to what partition.
119; eCS LVM drive-letters however are stored in the LVM-record and can thus
120; be displayed. This has been implemented.
121;
122; # Enhanced drive-letter feature #
123; Enable multiple eComStation installations using the same drive-letter
124; This makes it possible to clone a system with XCOPY /h /e /s /t /r /v
125; to another drive and have that boot from the same drive-letter.
126; (Or installing to the same drive by hiding the other system)
127;
128; # Removed Force LBA Usage from Setup #
129; When AiR-BOOT is installed on an USB-stick, there is a possibility that
130; the CHS-geometry varies between different machines where the stick is
131; booted. This would invalidate the CHS-values in the partition table
132; and also the values that were stored in the AiR-BOOT's internal partition
133; table, the IPT.
134; To prevent more nasty things like below from happening, LBA-addressing
135; is now always used and the setting has been removed from the setup-menu.
136; While this may prevent AiR-BOOT from running on very old systems,
137; the focus of AiR-BOOT development is geared towards the future.
138; Such old systems can use v1.06.
139;
140; # Added extra MBR protection #
141; When AiR-BOOT is active, it is only AiR-BOOT that writes to the MBR.
142; To protect the MBR from programming errors, like the one below,
143; any write to the MBR is now checked for validity.
144; In essence this is protecting your MBR from bad programming done by me...
145;
146;!## Fixed a very very nasty bug that can destroy the MBR on multiple disks ##!
147; When Force BIOS-LBA usage is disabled (the default is enabled), and the
148; the driveletter feature is being set, and valid LVM information is present,
149; then the MBR of the disk containing the partition of which the driveletter
150; is changed will be overwritten with the LVM sector !
151; In addition, if the driveletter was already in use by another partition
152; on another disk, the MBR of that disk will be overwritten too !!
153;
154; # Fixed a nasty bug when eCS phase1 is active #
155; When creating a partition in a free space between partitions for
156; eCS installation, the phase1 boot-through code would calculate the
157; wrong index for the new partition. As a result the next partition
158; would be auto-booted instead of the newly installed system.
159; This has been fixed.
160; This bug is also present in v1.07 and does not apply to previous versions.
161;
162; v1.0.8-rc2-bld20120423
163; ----------------------
164; # Fixed some minor Installer bugs with SPT < 63 #
165; Some extra var StatusCode was used instead of Status_Code.
166; This caused too few tracks not to be reported.
167; No installation was done however.
168; This bug is also present in the v1.06 code.
169;
170; # Fixed Installer to handle packed hideparttable #
171; Implemented upgrading from v1.06 directly to v1.0.8.
172; Fixed minor stuff when upgrading from v1.06 to v1.07.
173; Hide partition configuration is now preserved when upgrading.
174; Fixed minor display bug when SPT < 63.
175;
176; # Implemented DOS code in C cross-platform installer
177; There is now one C source for 4 platforms:
178; DOS,WIN32,OS2 and LINUX (Linux portion not ready yet)
179; This obsoletes AIRBOOT.ASM/AIRBOOT.COM.
180; DOS Installer is now AIRBOOTD.EXE.
181;
182; # Merged 16-bit Assembler bitfield code to the Installer #
183; The installer needs to handle the v1.0.8 configuration.
184; This requires access to the 6-bit packed 'hideparttable'.
185; To 'not-reinvent-the-wheel', by coding this in C, the Assembler
186; bitfield functions are integrated using Open Watcom's '_asm' capability.
187; It may not be pretty and the functions themselves are limited,
188; but this method prevents maintaining seperate Asm and C implementations.
189; Will be improved later.
190;
191; # Implemented BLDLEVEL support #
192; AIRBOOT.BIN, the Installers and SET(A)BOOT now support OS/2 BLDLEVEL
193; information. This enhances identification and problem tracking/solving.
194; While BLDLEVEL is an OS/2 command, the BLDLEVEL information itself can
195; be embedded in any binary. Invoking BLDLEVEL from within OS/2 on, let's
196; say, the AIRBOOTL.ELF Linux executable, will also show the BLDLEVEL info.
197; A slight deficiency of BLDLEVEL is that is forces a format on the version.
198; So, AiR-BOOT v1.0.8 will be shown as v1.00.8.
199;
200; # Added support for Masm6 and Wasm v1.9 -- Experimental use only #
201; Trying to assemble with Masm6 or Wasm v1.9 reveiled some interesting
202; behavior aspects in general. While this version can now be assembled with
203; Masm6 and Wasm too, this was only done to get a 'cross-feeling' for this
204; project. Future versions will drop support for Tasm, Masm6 and Wasm since
205; much conditional assembly is needed to support all of them. This was an
206; experimental excercise only. JWasm is the assembler of choise for this
207; project and any future versions.
208;
209; # Implemented stop scanning when max. partitions limit exceeded #
210; Previous versions halted the system when the maximum number of partitions
211; that can be handled (45) was exceeded.
212; This required the user to boot from alternate media to correct the problem.
213; Now, when the partition limit is exceeded, AiR-BOOT displays a pop-up
214; and waits for a key-press. When the user presses a key, AiR-BOOT continues
215; and the boot-menu is shown, enabling the user to boot a system to correct
216; the problem. To indicate this situation, the color of the selection-bar
217; is displayed in red.
218;
219; # Fixed hiding partitions above old max 30-partitions limit #
220; Hiding partitions is a per partition setting and it is kept in a table
221; in the AiR-BOOT image on disk. In previous versions, including v1.0.8-rc1,
222; this table still held the old number of maximum partitions (30).
223; So configuring a hide-setting for partitions >30 or hiding more than
224; 30 partitions per partition would not work properly.
225; Unfortunately, there was no room to expand this table, since it resides
226; just below the MBR backup, at the end of the AiR-BOOT image.
227; To work around this, the table now uses a 6-bits packed format and the
228; drive-letter array, which followed this table has been moved elsewhere.
229; This is a change in the configuration layout since the previous version,
230; so the config-version has been bumped to v1.0.8.
231; TODO: Add upgrade-code to the installer to cope with this.
232;
233; # Removed requirement for LVM P and V name to be the same to edit #
234; However, when both are the same before the edit, the V name will be
235; synved to the P name to have them both the same again after the edit.
236; If they differ, only the V name is updated.
237;
238; # Trying to edit the label of a type 0x35 partition now shows a popup #
239; The user is informed that type 0x35 labels cannot be edited.
240;
241; # Type 0x35 partitions cannot be added to the AB-menu anymore #
242; They are not bootable anyway. The user is informed by a popup.
243;
244; # De-tasemized the Assembler sources for JWasm compatibility #
245; AiR-BOOT can now be built using JWasm, which is the preferred
246; assembler as of this release. Tasm support will be dropped in the future.
247;
248; # Completely reworked the build-system #
249; Everything is now done with Makefiles using WMake, Wlink and the
250; C/C++ Compilers from the Open Watcom development tools together with JWasm.
251; This obsoletes tasm, tlink and exe2bin.
252;
253; # Cross-Platform support #
254; AiR-BOOT and it's helpers can now be built on: DOS, Win32, OS/2 and Linux.
255;
256; # Rewrote FIXCODE.ASM in C so the tool-chain is not dependent on a DOS .COM #
257; Now FIXCODE is built platform-specific and takes care of the embedding
258; of MPR-protection image.
259;
260; # Created FIXCODE bash-script to accomplish embedding of MBR-protection #
261; Building on Linux requires that no DOS-tools are used in the tool-chain.
262; This script essentially performs the same functionality but does not check
263; certain conditions, like image-too-big, etc.
264; It is a 'quick-hack' until the Linux version of FIXCODE is operational.
265;
266; v1.0.8-rc1-bld20120124
267; ----------------------
268; # Changed version format to be more WarpIN compatible #
269; This is a cosmetic change only, the internal format has not changed.
270;
271; # Show LVM VolumeName instead of LVM PartitionName #
272; Previous versions of AiR-BOOT used the LVM PartitionName as the Label
273; if LVM-info was present for the partition.
274; This is inconsistent with MiniLVM which shows the LVM VolumeName.
275; Starting with v1.0.8 the LVM VolumeName is displayed.
276;
277; # LVM Partition and Volume name Synchronization #
278; Changing the Label of a partition with LVM-info now synchronizes
279; the LVM Partition Name with the LVM Volume Name.
280; This is the same behavior as MiniLVM.
281; Note however that the Label can only be changed when both the
282; LVM PartitionName and LVM VolumeName are the same.
283; See protected editing below.
284;
285; # Protected editing of the Label when LVM-info is present #
286; When the LVM VolumeName differs from the LVM PartitionName, the user can
287; edit the label but it will not be saved to the LVM record on disk.
288; This is to protect configurations created with the classic LVM tool.
289; Since MiniLVM assigns the same name to both the Partition and the Volume,
290; the Label can be edited and will be saved for such partitions.
291; To further protect a given configuration, LVM volumes with type 0x35
292; cannot be edited at all. This is to ensure that the LVM PartitionNames
293; remain unique when Spanning Volumes are used.
294;
295; # Editing the Label appended spaces #
296; When editing and changing the Label of a System using SETUP,
297; trailing spaces were stored in the LVM Volume and Partition names.
298; These labels need to be padded with zero's.
299; This has been fixed.
300; This bug is also present in v1.06.
301;
302; # Reworked Primary Partition <-> LVM-info association #
303; The previous way was to use a 1:1 correspondence between the PT-index
304; and the LVM-index. However, when the PT is cross-linked, lower entries
305; pointing to higher locations on the disk, or vice-versa, incorrect
306; LVM-info was associated. Such a cross-linked PT is sometimes generated
307; by the LVM engine when creating or deleting multiple partitions at once.
308; Best is to intermediately save after creating or deleting a partition
309; with (Mini)LVM.
310; The new way is to search the LVM-entries for the partition requested.
311;
312; # Reworked MBR-code to provide two I13X signatures #
313; The normal LVM MBR-code uses a special setup to indicate Int13X capability.
314; It contains the instruction, MOV EAX,'X31I', and some software checks
315; for the presence of the 'I13X' string in the MBR.
316; However, the location of this instruction differs between eCS 1.x and
317; eCS 2.x LVM MBR-code.
318; For compatibility, the v1.0.8 MBR has the 'I13X' string at both locations.
319;
320; # Fixed booting older eCS installations on HPFS #
321; When restoring systems from archive or otherwise generated systems,
322; the HPFS BPB sometimes lacked information that AiR-BOOT did not fill in.
323; The result was that a wrong partition was booted or that booting
324; stalled with the "unable to operate harddisk" message.
325; This has been fixed.
326;
327; # Fixed booting Windows from a logical partition with loader on FAT32 #
328; Depending on the configuration, sometimes the NTLDR could not be found.
329; This has been fixed.
330;
331; # Fixed drive-letter feature which was broken in v1.07 #
332; a) v1.07 did remember the drive-letter feature was active for a partition,
333; but it failed to store the drive-letter because too few configuration
334; sectors were saved. This resulted in arbitrary values to be assigned
335; to the drive-letter for the partition.
336; b) The JFS PBR-code does not use the in-memory BPB but uses the one
337; that is on disk. This prevented AiR-BOOT from passing the user assigned
338; drive-letter. AiR-BOOT now inserts the drive-letter in the BPB on disk,
339; but only if the partition is JFS.
340; AB v1.06 is also unable to use the drive-letter feature on JFS.
341; As a convenience, a drive-letter in the dl-feature pop-up can now be set
342; to "Disabled" by pressing backspace.
343; (As opposed to arrowing up/down to get to the "Disabled" entry)
344;
345; # Fixed stuck phase1 indicator when wrong name entered #
346; When using SET(A)BOOT /4:NAME with the MEMDRIVE env-var set,
347; and NAME being a non-existing partition, the phase1 indicator
348; would stay stuck between reboots.
349; This has been fixed.
350;
351; # Fixed DOS installer (AIRBOOT.COM) #
352; Behavior should now be the same as the eCS and WIN installers.
353; This re-enables the use of a bootable floppy or usb-stick
354; to install AiR-BOOT.
355;
356; # Fixed booting from FloppyDrive #
357; This is actually also broken in v1.06 when Int13X is forced on.
358; Now regular BIOS calls are used when booting from floppydrive.
359; A fresh AiR-BOOT installation now includes the floppydrive menu entry.
360;
361; # Fixed chainloading IBM Boot Manager #
362; AiR-BOOT v1.06 could chainload IBM-BM but only when it resided on
363; the first disk and was located below the 1024 cylinder and forced Int13X
364; extensions were disabled.
365; AiR-BOOT v1.0.8 can now chainload IBM-BM with forced Int13X extensions
366; enabled (the default) and if IBM-BM resides above the 1024 cylinder limit.
367; Also, chainloading IBM-BM from the second disk is supported.
368; Do not use chainloading IBM-BM unless you really have a need to.
369; See the AiR-BOOT Manual for "gotcha's" when using both AiR-BOOT and IBM-BM.
370;
371; # Corrected contact links #
372; Version 1.07 still presented the old contact links to the sourceforge
373; repository and the original author.
374; This caused confusion with regard to issues with v1.07.
375; This has been corrected.
376;
377; NOTE:
378; AB v1.07 had a bug with saving and loading the correct size of the
379; configuration. This broke the drive-letter feature.
380; As a result, the CRC over the config was also calculated wrongly.
381; While AB v1.0.8 fixes this, it has to use the v1.07 way of CRC calculation.
382; Otherwise SET(A)BOOT from the eCS v2.1 would break on AB v1.0.8 because it
383; sees a corrupt AiR-BOOT configuration.
384; This means that the CRC over the AB config is calculated over 5 sectors
385; instead of 7, just like in v1.07.
386;
387; NOTE:
388; Because of space constraints most of the debug code has been commented
389; out in this version.
390; Possibly it will be re-enabled after code cleanup and changing to JWasm.
391;
392;
393; v1.07-final
394; ===========
395; # Huge Drives and LVM #
396; When using disks >512GB under eComStation, the drive geometry changes to
397; 127 or 255 sectors per track. Since LVM-info is written at the last sector
398; of a track, and AiR-BOOT uses the geometry of the MBR, it cannot find the
399; LVM-info and the eCS partition / volume bootsector.
400; This has been fixed.
401; Now, when an eCS-partition is discovered and the drive is >512GB, AiR-BOOT
402; will use the eCS geometry to locate the LVM-info and the bootsector.
403;
404; # Special loader handling #
405; The special handling of partition boot-loaders has been enhanced to
406; enable booting of legacy systems on huge drives with or without OS/2
407; extended geometry.
408;
409; # eComStation boot-through after phase 1 #
410; Special functionality is implemented to directly boot a newly
411; installed eCS system after completing phase 1 of the installation.
412; This works in conjuntion with the OS/2 specific SET(A)BOOT.EXE program,
413; also part of the AiR-BOOT package.
414;
415; # Math, Debug, Conv and Aux modules #
416; These are used for 32-bit arithmatic on 16-bit code,
417; debug the boot process, converting between data-types
418; and outputting log-data to the com-port.
419;
420;
421; v1.06
422; =====
423; This is the last version developed by Martin Kiewitz.
424; It serves as the base for the versions above.
425; Please do not post your feedback on sourceforge or bother Martin with
426; regard to issues with the above versions.
427; Use the eCS bug-tracker or the Trac project-page at netlabs and see the
428; documentation of this newer versions for the relevant contact information.
429
Note: See TracBrowser for help on using the repository browser.