Changeset 48
- Timestamp:
- Apr 12, 2014, 11:49:26 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
- 1 copied
-
BOOTCODE/AIR-BOOT.HIS (modified) (2 diffs)
-
BOOTCODE/REGULAR/STD_TEXT.ASM (modified) (1 diff)
-
BOOTCODE/VERSION.INC (modified) (1 diff)
-
BOOTCODE/_build.cmd (modified) (1 diff)
-
INSTALL/C/INSTALL.C (modified) (24 diffs)
-
INSTALL/C/INSTALL.C-cid-quirk (copied) (copied from trunk/INSTALL/C/INSTALL.C ) (29 diffs)
-
INSTALL/C/INSTALL.H (modified) (4 diffs)
-
INSTALL/C/Makefile (modified) (4 diffs)
-
INSTALL/INST_X86/INSTALL.INC (modified) (1 diff)
-
TOOLS/OS2/SETABOOT/SETABOOT.H (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BOOTCODE/AIR-BOOT.HIS
r47 r48 20 20 21 21 22 22 23 ; --------------------------------- 23 24 ; Rousseau: Fixes and Enhancements 24 25 ; --------------------------------- 25 26 ; 26 ; v1.0.8-rc2-bld2012042 ?27 ; v1.0.8-rc2-bld20120423 27 28 ; ---------------------- 29 ; # Fixed some minor Installer bugs with SPT < 63 # 30 ; Some extra var StatusCode was used instead of Status_Code. 31 ; This caused too few tracks not to be reported. 32 ; No installation was done however. 33 ; This bug is also present in the v1.06 code. 34 ; 28 35 ; # Fixed Installer to handle packed hideparttable # 29 ; Hide partition configuration is now preserved when upgrading 30 ; Implemented upgrading from v1.06 to v1.0.8 31 ; Implemented upgrading from v1.07 to v1.0.8 36 ; Implemented upgrading from v1.06 directly to v1.0.8. 37 ; Fixed minor stuff when upgrading from v1.06 to v1.07. 38 ; Hide partition configuration is now preserved when upgrading. 39 ; Fixed minor display bug when SPT < 63. 32 40 ; 33 41 ; # Implemented DOS code in C cross-platform installer … … 37 45 ; DOS Installer is now AIRBOOTD.EXE. 38 46 ; 39 ; v1.0.8-pre-rc2-bld2012033040 ; --------------------------41 47 ; # Merged 16-bit Assembler bitfield code to the Installer # 42 48 ; The installer needs to handle the v1.0.8 configuration. -
trunk/BOOTCODE/REGULAR/STD_TEXT.ASM
r47 r48 55 55 db BLDLVL_MINOR_VERSION,' - (c) ' 56 56 db BLDLVL_YEAR 57 db ' M. Kiewitz <<Internal Release 2q>> (bld: ' 57 ;~ db ' M. Kiewitz <<Internal Release 2q>> (bld: ' 58 db ' M. Kiewitz <<Release Candidate 2>> (bld: ' 58 59 db BLDLVL_YEAR 59 60 db BLDLVL_MONTH -
trunk/BOOTCODE/VERSION.INC
r47 r48 17 17 AB_YEAR EQU 2012h 18 18 AB_MONTH EQU 04h 19 AB_DAY EQU 2 1h19 AB_DAY EQU 23h 20 20 21 21 ; The Hours, Minutes and Seconds, again in BCD for easy manipulation. 22 AB_HOURS EQU 08h23 AB_MINUTES EQU 35h22 AB_HOURS EQU 19h 23 AB_MINUTES EQU 41h 24 24 AB_SECONDS EQU 00h 25 25 -
trunk/BOOTCODE/_build.cmd
r47 r48 1 @SET ASM= tasm1 @SET ASM=jwasm 2 2 @wmake dev 3 3 @wmake dist -
trunk/INSTALL/C/INSTALL.C
r47 r48 84 84 BOOL Option_ForceConfig = FALSE; 85 85 BOOL Option_Silent = FALSE; 86 87 BOOL Option_CID = FALSE; // Rousseau: added 86 BOOL Option_CID = FALSE; 88 87 89 88 BOOL Install_Code = FALSE; … … 91 90 BOOL Install_IsCorrupt = FALSE; 92 91 93 USHORT StatusCode = 0;92 //USHORT StatusCode = 0; 94 93 PSZ ImpossibleCause = NULL; 95 94 … … 135 134 //~ #endif 136 135 137 136 void DumpTrack0(); 138 137 139 138 // In 32-bit mode EBX is used and in 16-bit mode BX, so we abstract it's name. … … 207 206 */ 208 207 char get_bitfield(char* buffer, char index, char fieldwidth) { 208 209 209 char rv = 0; 210 210 // These are used to break-up the far pointer in large-data model 16-bit … … 318 318 char set_bitfield(char* buffer, char index, char fieldwidth, char value) { 319 319 320 320 321 // These are used to break-up the far pointer in large-data model 16-bit 321 322 // code so the buffer can be addressed correctly. … … 324 325 unsigned dseg = _FP_SEG(buffer); 325 326 unsigned dptr = _FP_OFF(buffer); 326 327 327 328 328 // Prolog code. … … 475 475 USHORT CountHarddrives (void) { 476 476 USHORT NumDrives = 0; 477 477 478 /* Return the byte at 0040:0075 that contains the nr. of harddisks */ 478 479 _asm { … … 488 489 } 489 490 491 /* 492 // On DOS this geometry check uses the INT13X value for sectors per track. 493 // On OS/2 the DosDevIOCtl call uses a SPT value from the formatted disk, 494 // irrespective of the physical geometry. 495 */ 490 496 BOOL HarddriveCheckGeometry (void) { 491 497 BOOL rv = FALSE; 498 492 499 _asm { 493 500 ; According to Ralf Brown ES:DI=0000:0000 to avoid BIOS quirks. … … 517 524 end: 518 525 mov ax,dx ; Status to AX. 519 xor dx,dx ; High word to zero. 520 521 ; Store in return value (OS/2 BOOL is 32-bits). 526 527 ; Store in return value. 522 528 mov word ptr [rv],ax 523 mov word ptr [rv+2],dx524 529 525 530 ; Restore ES:DI … … 527 532 pop es 528 533 } 529 530 534 return rv; 531 535 } … … 559 563 end: 560 564 mov ax,dx ; Status to AX. 561 xor dx,dx ; High word to zero. 562 563 ; Store in return value (OS/2 BOOL is 32-bits). 565 566 ; Store in return value. 564 567 mov word ptr [Success],ax 565 mov word ptr [Success+2],dx566 568 567 569 ; Restore ES. … … 598 600 end: 599 601 mov ax,dx ; Status to AX. 600 xor dx,dx ; High word to zero. 601 602 ; Store in return value (OS/2 BOOL is 32-bits). 602 603 ; Store in return value. 603 604 mov word ptr [Success],ax 604 mov word ptr [Success+2],dx605 605 606 606 ; Restore ES. … … 681 681 } 682 682 683 /* 684 // On DOS this geometry check uses the INT13X value for sectors per track. 685 // On OS/2 the DosDevIOCtl call uses a SPT value from the formatted disk, 686 // irrespective of the physical geometry. 687 */ 683 688 BOOL HarddriveCheckGeometry (void) { 684 689 USHORT IOCTLHandle; … … 1397 1402 1398 1403 1404 void DumpTrack0() { 1405 int i,j; 1406 for (i=27; i<32; i++) { 1407 for (j=0; j<16; j++) { 1408 printf("%02X",Track0[i*16+j]); 1409 } 1410 printf("\n"); 1411 } 1412 } 1413 1414 1415 1399 1416 1400 1417 void DoDebug() { … … 1413 1430 1414 1431 // Dump Track0 1415 { 1416 int i; 1417 for (i=0; i<512; i++) { 1418 printf("%02X",Track0[i]); 1419 } 1420 } 1432 DumpTrack0(); 1421 1433 printf("\n\n"); 1422 1434 // Dump Bootcode 1423 {1424 int i;1425 for (i=0; i<512; i++) {1426 printf("%02X",Bootcode[i]);1427 }1428 }1429 printf("\n\n");1435 //~ { 1436 //~ int i; 1437 //~ for (i=0; i<512; i++) { 1438 //~ printf("%02X",Bootcode[i]); 1439 //~ } 1440 //~ } 1441 //~ printf("\n\n"); 1430 1442 1431 1443 t0codv = Track0[13] << 8 | Track0[14]; … … 1461 1473 BOOL ExitOnly = FALSE; 1462 1474 CHAR TempSpace[MAXCMDPARMLEN+1]; 1475 1476 1477 // Check commandline parameters 1478 CurArgument = 1; 1479 while (CurArgument<argc) { 1480 StartPos = argv[CurArgument]; 1481 ArgumentLen = strlen(StartPos); 1482 1483 if (((*StartPos=='-') || (*StartPos=='/')) && (ArgumentLen>1)) { 1484 StartPos++; ArgumentLen--; 1485 if (ArgumentLen>MAXCMDPARMLEN) 1486 ArgumentLen = MAXCMDPARMLEN; 1487 strncpy((char *) TempSpace, StartPos, ArgumentLen); 1488 TempSpace[ArgumentLen] = 0; 1489 StartPos = (PCHAR) TempSpace; 1490 while (*StartPos!=0) { 1491 *StartPos = tolower(*StartPos); StartPos++; 1492 } 1493 if (strcmp((char *) TempSpace, "forcecode")==0) Option_ForceCode = TRUE; 1494 if (strcmp((char *) TempSpace, "forceconfig")==0) Option_ForceConfig = TRUE; 1495 if (strcmp((char *) TempSpace, "silent")==0) Option_Silent = TRUE; 1496 if (strcmp((char *) TempSpace, "cid")==0) Option_CID = TRUE; 1497 } 1498 CurArgument++; 1499 } 1500 1501 1502 // Only support /cid on OS/2 for the moment. 1503 // The DOS code behaves quirky with /cid and Win32 is not tested at all. 1504 #ifndef PLATFORM_OS2 1505 Option_CID = FALSE; 1506 #endif 1507 1508 if (Option_CID) { 1509 Option_Silent = TRUE; 1510 } 1463 1511 1464 1512 … … 1474 1522 } 1475 1523 1524 1476 1525 // Allocate buffers for Track0 and AIRBOOT.BIN. 1477 1526 Track0 = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); 1478 1527 Bootcode = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); 1528 1479 1529 1480 1530 // Exit of allocation failed. … … 1491 1541 1492 1542 1493 // Check commandline parameters1494 CurArgument = 1;1495 while (CurArgument<argc) {1496 StartPos = argv[CurArgument];1497 ArgumentLen = strlen(StartPos);1498 1499 if (((*StartPos=='-') || (*StartPos=='/')) && (ArgumentLen>1)) {1500 StartPos++; ArgumentLen--;1501 if (ArgumentLen>MAXCMDPARMLEN)1502 ArgumentLen = MAXCMDPARMLEN;1503 strncpy((char *) TempSpace, StartPos, ArgumentLen);1504 TempSpace[ArgumentLen] = 0;1505 StartPos = (PCHAR) TempSpace;1506 while (*StartPos!=0) {1507 *StartPos = tolower(*StartPos); StartPos++;1508 }1509 if (strcmp((char *) TempSpace, "forcecode")==0) Option_ForceCode = TRUE;1510 if (strcmp((char *) TempSpace, "forceconfig")==0) Option_ForceConfig = TRUE;1511 if (strcmp((char *) TempSpace, "silent")==0) Option_Silent = TRUE;1512 if (strcmp((char *) TempSpace, "cid")==0) Option_CID = TRUE;1513 }1514 CurArgument++;1515 }1516 1517 if (Option_CID) {1518 Option_Silent = TRUE;1519 }1520 1521 1543 #ifdef PLATFORM_WINNT 1522 1544 if (CheckWindowsVersion()==FALSE) … … 1545 1567 printf(" - Loading MBR from harddisc..."); 1546 1568 } 1547 if (HarddriveCheckGeometry()) { 1569 1570 1571 if (!Track0Load()) { 1572 if (!Option_CID) { 1573 printf("LOAD ERROR!\n"); 1574 } 1575 return 1; 1576 } 1577 else { 1578 if (!Option_CID) { 1579 printf("ok\n"); 1580 } 1581 } 1582 1583 if (!HarddriveCheckGeometry()) { 1548 1584 // No EZ-SETUP check here, because we are under 32-bit OS and this 1549 1585 // wouldn't make any sense 1550 if (!Track0Load()) { 1551 if (!Option_CID) { 1552 printf("LOAD ERROR!\n"); 1553 } 1554 return 1; 1555 } 1556 } 1557 else { 1558 StatusCode = STATUS_IMPOSSIBLE; 1559 if (!Option_CID) { 1560 ImpossibleCause = "unable to install\n Your harddisc does not have at least 63 sectors per track."; 1561 } 1562 } 1563 1564 if (!Option_CID) { 1565 printf("ok\n"); 1586 //printf("\nDEBUG: STATUS_IMPOSSIBLE\n"); 1587 Status_Code = STATUS_IMPOSSIBLE; 1588 ImpossibleCause = "unable to install\n Your harddisc does not have at least 63 sectors per track."; 1566 1589 } 1567 1590 … … 1576 1599 } 1577 1600 Status_PrintF(Status_Code, Installed_CodeVersion); 1578 if (Status Code==STATUS_IMPOSSIBLE)1601 if (Status_Code==STATUS_IMPOSSIBLE) 1579 1602 return 1; 1580 1603 Status_CheckConfig(); … … 1703 1726 } 1704 1727 1728 1729 1705 1730 if (Option_Silent || Option_CID) { 1706 1731 // Silent operation? Always add AiR-BOOT then … … 1732 1757 printf(" þ Writing AiR-BOOT code..."); 1733 1758 } 1759 //~ DumpTrack0(); 1734 1760 Install_WriteCode(); 1761 //~ DumpTrack0(); 1735 1762 if (!Option_CID) { 1736 1763 printf("ok\n"); … … 1747 1774 } 1748 1775 1776 1749 1777 if (!Track0Write()) { 1750 1778 if (!Option_CID) { … … 1753 1781 return 1; 1754 1782 } 1783 1755 1784 if (!Option_CID) { 1756 1785 printf("\n"); -
trunk/INSTALL/C/INSTALL.C-cid-quirk
r47 r48 84 84 BOOL Option_ForceConfig = FALSE; 85 85 BOOL Option_Silent = FALSE; 86 87 BOOL Option_CID = FALSE; // Rousseau: added 86 BOOL Option_CID = FALSE; 88 87 89 88 BOOL Install_Code = FALSE; … … 91 90 BOOL Install_IsCorrupt = FALSE; 92 91 93 USHORT StatusCode = 0;92 //USHORT StatusCode = 0; 94 93 PSZ ImpossibleCause = NULL; 95 94 … … 135 134 //~ #endif 136 135 137 136 void DumpTrack0(); 138 137 139 138 // In 32-bit mode EBX is used and in 16-bit mode BX, so we abstract it's name. … … 207 206 */ 208 207 char get_bitfield(char* buffer, char index, char fieldwidth) { 208 209 209 char rv = 0; 210 210 // These are used to break-up the far pointer in large-data model 16-bit … … 318 318 char set_bitfield(char* buffer, char index, char fieldwidth, char value) { 319 319 320 320 321 // These are used to break-up the far pointer in large-data model 16-bit 321 322 // code so the buffer can be addressed correctly. … … 324 325 unsigned dseg = _FP_SEG(buffer); 325 326 unsigned dptr = _FP_OFF(buffer); 326 327 327 328 328 // Prolog code. … … 475 475 USHORT CountHarddrives (void) { 476 476 USHORT NumDrives = 0; 477 477 478 /* Return the byte at 0040:0075 that contains the nr. of harddisks */ 478 479 _asm { … … 488 489 } 489 490 491 /* 492 // On DOS this geometry check uses the INT13X value for sectors per track. 493 // On OS/2 the DosDevIOCtl call uses a SPT value from the formatted disk, 494 // irrespective of the physical geometry. 495 */ 490 496 BOOL HarddriveCheckGeometry (void) { 491 497 BOOL rv = FALSE; 498 492 499 _asm { 493 500 ; According to Ralf Brown ES:DI=0000:0000 to avoid BIOS quirks. … … 517 524 end: 518 525 mov ax,dx ; Status to AX. 519 xor dx,dx ; High word to zero. 520 521 ; Store in return value (OS/2 BOOL is 32-bits). 526 527 ; Store in return value. 522 528 mov word ptr [rv],ax 523 mov word ptr [rv+2],dx524 529 525 530 ; Restore ES:DI … … 527 532 pop es 528 533 } 529 530 534 return rv; 531 535 } … … 559 563 end: 560 564 mov ax,dx ; Status to AX. 561 xor dx,dx ; High word to zero. 562 563 ; Store in return value (OS/2 BOOL is 32-bits). 565 566 ; Store in return value. 564 567 mov word ptr [Success],ax 565 mov word ptr [Success+2],dx566 568 567 569 ; Restore ES. … … 572 574 } 573 575 574 BOOLTrack0Write (void) {576 ULONG Track0Write (void) { 575 577 BOOL Success = FALSE; 576 578 … … 598 600 end: 599 601 mov ax,dx ; Status to AX. 600 xor dx,dx ; High word to zero. 601 602 ; Store in return value (OS/2 BOOL is 32-bits). 602 603 ; Store in return value. 603 604 mov word ptr [Success],ax 604 mov word ptr [Success+2],dx 605 605 les bx,[Track0] 606 mov dx,es 607 mov ax,bx 608 mov ax,word ptr [Track0] 609 mov dx,word ptr [Track0+2] 606 610 ; Restore ES. 607 611 pop es 608 612 } 609 613 610 return Success;614 //return Success; 611 615 } 612 616 … … 681 685 } 682 686 687 /* 688 // On DOS this geometry check uses the INT13X value for sectors per track. 689 // On OS/2 the DosDevIOCtl call uses a SPT value from the formatted disk, 690 // irrespective of the physical geometry. 691 */ 683 692 BOOL HarddriveCheckGeometry (void) { 684 693 USHORT IOCTLHandle; … … 1397 1406 1398 1407 1408 void DumpTrack0() { 1409 int i,j; 1410 for (i=27; i<32; i++) { 1411 for (j=0; j<16; j++) { 1412 printf("%02X",Track0[i*16+j]); 1413 } 1414 printf("\n"); 1415 } 1416 } 1417 1418 1419 1399 1420 1400 1421 void DoDebug() { … … 1413 1434 1414 1435 // Dump Track0 1415 { 1416 int i; 1417 for (i=0; i<512; i++) { 1418 printf("%02X",Track0[i]); 1419 } 1420 } 1436 DumpTrack0(); 1421 1437 printf("\n\n"); 1422 1438 // Dump Bootcode 1423 {1424 int i;1425 for (i=0; i<512; i++) {1426 printf("%02X",Bootcode[i]);1427 }1428 }1429 printf("\n\n");1439 //~ { 1440 //~ int i; 1441 //~ for (i=0; i<512; i++) { 1442 //~ printf("%02X",Bootcode[i]); 1443 //~ } 1444 //~ } 1445 //~ printf("\n\n"); 1430 1446 1431 1447 t0codv = Track0[13] << 8 | Track0[14]; … … 1461 1477 BOOL ExitOnly = FALSE; 1462 1478 CHAR TempSpace[MAXCMDPARMLEN+1]; 1479 1480 1481 // Check commandline parameters 1482 CurArgument = 1; 1483 while (CurArgument<argc) { 1484 StartPos = argv[CurArgument]; 1485 ArgumentLen = strlen(StartPos); 1486 1487 if (((*StartPos=='-') || (*StartPos=='/')) && (ArgumentLen>1)) { 1488 StartPos++; ArgumentLen--; 1489 if (ArgumentLen>MAXCMDPARMLEN) 1490 ArgumentLen = MAXCMDPARMLEN; 1491 strncpy((char *) TempSpace, StartPos, ArgumentLen); 1492 TempSpace[ArgumentLen] = 0; 1493 StartPos = (PCHAR) TempSpace; 1494 while (*StartPos!=0) { 1495 *StartPos = tolower(*StartPos); StartPos++; 1496 } 1497 if (strcmp((char *) TempSpace, "forcecode")==0) Option_ForceCode = TRUE; 1498 if (strcmp((char *) TempSpace, "forceconfig")==0) Option_ForceConfig = TRUE; 1499 if (strcmp((char *) TempSpace, "silent")==0) Option_Silent = TRUE; 1500 if (strcmp((char *) TempSpace, "cid")==0) Option_CID = TRUE; 1501 } 1502 CurArgument++; 1503 } 1504 1505 printf("1> c:%d, s:%d\n", Option_CID, Option_Silent); 1506 1507 if (Option_CID) { 1508 Option_Silent = TRUE; 1509 } 1510 1511 printf("2> c:%d, s:%d\n", Option_CID, Option_Silent); 1512 1513 //exit(1); 1463 1514 1464 1515 … … 1474 1525 } 1475 1526 1527 1476 1528 // Allocate buffers for Track0 and AIRBOOT.BIN. 1477 1529 Track0 = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); 1478 1530 Bootcode = malloc(SECTOR_COUNT * BYTES_PER_SECTOR); 1531 1532 printf("TRACK0 : %08lX\n", Track0); 1533 printf("BOOTCODE : %08lX\n", Bootcode); 1534 1479 1535 1480 1536 // Exit of allocation failed. … … 1491 1547 1492 1548 1493 // Check commandline parameters 1494 CurArgument = 1; 1495 while (CurArgument<argc) { 1496 StartPos = argv[CurArgument]; 1497 ArgumentLen = strlen(StartPos); 1498 1499 if (((*StartPos=='-') || (*StartPos=='/')) && (ArgumentLen>1)) { 1500 StartPos++; ArgumentLen--; 1501 if (ArgumentLen>MAXCMDPARMLEN) 1502 ArgumentLen = MAXCMDPARMLEN; 1503 strncpy((char *) TempSpace, StartPos, ArgumentLen); 1504 TempSpace[ArgumentLen] = 0; 1505 StartPos = (PCHAR) TempSpace; 1506 while (*StartPos!=0) { 1507 *StartPos = tolower(*StartPos); StartPos++; 1508 } 1509 if (strcmp((char *) TempSpace, "forcecode")==0) Option_ForceCode = TRUE; 1510 if (strcmp((char *) TempSpace, "forceconfig")==0) Option_ForceConfig = TRUE; 1511 if (strcmp((char *) TempSpace, "silent")==0) Option_Silent = TRUE; 1512 if (strcmp((char *) TempSpace, "cid")==0) Option_CID = TRUE; 1513 } 1514 CurArgument++; 1515 } 1516 1517 if (Option_CID) { 1518 Option_Silent = TRUE; 1519 } 1549 printf("3> c:%d, s:%d\n", Option_CID, Option_Silent); 1550 1520 1551 1521 1552 #ifdef PLATFORM_WINNT … … 1530 1561 return 3; // Rouseau: changed from 1 to 3 1531 1562 } 1532 1563 printf("4> c:%d, s:%d\n", Option_CID, Option_Silent); 1533 1564 if (!Option_CID) { 1534 1565 printf(" - Loading bootcode from file..."); … … 1545 1576 printf(" - Loading MBR from harddisc..."); 1546 1577 } 1547 if (HarddriveCheckGeometry()) { 1578 printf("5> c:%d, s:%d\n", Option_CID, Option_Silent); 1579 //~ DumpTrack0(); 1580 if (!Track0Load()) { 1581 if (!Option_CID) { 1582 printf("LOAD ERROR!\n"); 1583 } 1584 return 1; 1585 } 1586 else { 1587 if (!Option_CID) { 1588 printf("ok\n"); 1589 } 1590 } 1591 //~ DumpTrack0(); 1592 if (!HarddriveCheckGeometry()) { 1548 1593 // No EZ-SETUP check here, because we are under 32-bit OS and this 1549 1594 // wouldn't make any sense 1550 if (!Track0Load()) { 1551 if (!Option_CID) { 1552 printf("LOAD ERROR!\n"); 1553 } 1554 return 1; 1555 } 1556 } 1557 else { 1558 StatusCode = STATUS_IMPOSSIBLE; 1559 if (!Option_CID) { 1560 ImpossibleCause = "unable to install\n Your harddisc does not have at least 63 sectors per track."; 1561 } 1562 } 1563 1564 if (!Option_CID) { 1565 printf("ok\n"); 1595 //printf("\nDEBUG: STATUS_IMPOSSIBLE\n"); 1596 Status_Code = STATUS_IMPOSSIBLE; 1597 ImpossibleCause = "unable to install\n Your harddisc does not have at least 63 sectors per track."; 1566 1598 } 1567 1599 … … 1576 1608 } 1577 1609 Status_PrintF(Status_Code, Installed_CodeVersion); 1578 if (Status Code==STATUS_IMPOSSIBLE)1610 if (Status_Code==STATUS_IMPOSSIBLE) 1579 1611 return 1; 1580 1612 Status_CheckConfig(); … … 1593 1625 } 1594 1626 } 1595 1627 printf("6> c:%d, s:%d\n", Option_CID, Option_Silent); 1596 1628 // ============================================================= 1597 1629 // PRE-CHECKING, WHAT WE ARE SUPPOSED TO DO... … … 1677 1709 } 1678 1710 1679 1711 printf("7> c:%d, s:%d\n", Option_CID, Option_Silent); 1680 1712 1681 1713 // ============================================================= … … 1702 1734 printf(" <Q> - Quit without any change\n"); 1703 1735 } 1736 1737 1738 printf("8> c:%d, s:%d\n", Option_CID, Option_Silent); 1704 1739 1705 1740 if (Option_Silent || Option_CID) { … … 1732 1767 printf(" þ Writing AiR-BOOT code..."); 1733 1768 } 1769 //~ DumpTrack0(); 1734 1770 Install_WriteCode(); 1771 //~ DumpTrack0(); 1735 1772 if (!Option_CID) { 1736 1773 printf("ok\n"); … … 1746 1783 } 1747 1784 } 1748 1749 if (!Track0Write()) { 1750 if (!Option_CID) { 1785 //printf("1\n"); 1786 //DumpTrack0(); 1787 { 1788 ULONG rv; 1789 if (!(rv=Track0Write())) { 1790 //~ if (!Option_CID) { 1751 1791 printf("SAVE ERROR!\n"); 1752 }1792 //~ } 1753 1793 return 1; 1754 1794 } 1795 printf("\n\n\nRV : %08lX\n\n",(ULONG)rv); 1796 printf("TRACK0 : %08lX\n", Track0); 1797 printf("BOOTCODE : %08lX\n", Bootcode); 1798 } 1799 //printf("2\n"); 1800 //DumpTrack0(); 1755 1801 if (!Option_CID) { 1756 1802 printf("\n"); … … 1817 1863 break; 1818 1864 } 1819 1865 printf("9> c:%d, s:%d\n", Option_CID, Option_Silent); 1820 1866 if (ExitOnly) { 1821 1867 if (!(Option_CID || Option_Silent)) { … … 1825 1871 } 1826 1872 } 1827 1873 printf("10> c:%d, s:%d\n", Option_CID, Option_Silent); 1828 1874 // Free the buffer memory. 1829 1875 if (Track0) free(Track0); 1830 1876 if (Bootcode) free(Bootcode); 1831 1877 printf("11> c:%d, s:%d\n", Option_CID, Option_Silent); 1832 1878 return 0; 1833 1879 } -
trunk/INSTALL/C/INSTALL.H
r47 r48 15 15 #define BLDLVL_YEAR "2012" 16 16 #define BLDLVL_MONTH "04" 17 #define BLDLVL_DAY "2 1"17 #define BLDLVL_DAY "23" 18 18 // Build time 19 #define BLDLVL_HOURS " 08"20 #define BLDLVL_MINUTES " 35"19 #define BLDLVL_HOURS "19" 20 #define BLDLVL_MINUTES "41" 21 21 #define BLDLVL_SECONDS "00" 22 22 // Build machine … … 51 51 #define PLATFORM_DOS 52 52 #define PLATFORM_NAME "DOS" 53 #include <os2def.h> // We use the OS/2 definitions like CHAR etc. 53 // We use the OS/2 v1.x definitions like CHAR etc. 54 #include <os2def.h> 54 55 #elif defined(__OS2__) && !defined(OS2) 55 56 // OS/2 platform … … 61 62 #define INCL_DOSDEVIOCTL 62 63 #include <os2.h> 63 #include <malloc.h> // Rousseau: added to use getenv()64 #include <malloc.h> 64 65 #elif defined(__NT__) 65 66 // Win32 platform … … 72 73 #define PLATFORM_LINUX 73 74 #define PLATFORM_NAME "Linux" 74 #include <os2def.h> // We use the OS/2 definitions like CHAR etc. 75 // We use the OS/2 v2.x definitions like CHAR etc. 76 #include <os2def.h> 75 77 #else 76 78 #error Unsupported platform -
trunk/INSTALL/C/Makefile
r47 r48 22 22 23 23 # 24 # Specifies the level of debugging. 25 # Level 0 is no debugging (release) and each higher level may use other 26 # assembler / compiler / linker flags and define jammed-in constants 27 # to influence source assembly / compilation. 24 # Define min and max debug levels. 25 # Level 0 is Release. 28 26 # 29 27 RELEASE_CODE=0 30 28 MAX_DEBUG_LEVEL=2 31 #DEBUG_LEVEL=1 32 #DEBUG_LEVEL=$(MAX_DEBUG_LEVEL) 29 30 # 31 # Specifies the level of debugging. 32 # Comment-out from low to high to increase the debug level. 33 # 34 DEBUG_LEVEL=$(MAX_DEBUG_LEVEL) 35 DEBUG_LEVEL=1 33 36 DEBUG_LEVEL=$(RELEASE_CODE) 34 37 … … 256 259 ############################################################################### 257 260 $(MODULE)D.EXE: $(MODULE)D.OBJ 258 $(LNK) $(LNK_FLAGS) file $^&.OBJ name $^. sys dos261 $(LNK) $(LNK_FLAGS) op stack=8192 file $^&.OBJ name $^. sys dos 259 262 @wdump $^. > $^&.WDU 260 263 @if exist $^. @echo $^. $(MSG_SUCCESS) … … 265 268 # @echo. 266 269 @echo TARGET: $^&.EXE [DOS 16-bits Executable] 267 $(CC16) $(CC16_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os2 -bt=dos $(BASENAME).C270 $(CC16) $(CC16_FLAGS) -I$(%WATCOM)$(DS)h$(DS)os21x -bt=dos $(BASENAME).C 268 271 @wdis -fi $^. > $^&.WDA 269 272 … … 336 339 dist: .SYMBOLIC 337 340 @if exist *.EXE $(CP) *.EXE ..$(DS)..$(DS)RELEASE$(DS)BOOTCODE 341 @if exist *.ELF $(CP) *.ELF ..$(DS)..$(DS)RELEASE$(DS)BOOTCODE 338 342 339 343 -
trunk/INSTALL/INST_X86/INSTALL.INC
r47 r48 968 968 TXT_STATUS_Update db ', but may be updated', 0 969 969 TXT_STATUS_Hd2Small db 'unable to install', 13, 10 970 db ' Your harddisc does not have at least 6 2sectors per track.', 0970 db ' Your harddisc does not have at least 63 sectors per track.', 0 971 971 TXT_STATUS_EZSETUP db 'not willing to install', 13, 10 972 972 db ' Your harddisc contains EZ-SETUP.', 13, 10 -
trunk/TOOLS/OS2/SETABOOT/SETABOOT.H
r47 r48 16 16 #define BLDLVL_YEAR "2012" 17 17 #define BLDLVL_MONTH "04" 18 #define BLDLVL_DAY "2 1"18 #define BLDLVL_DAY "23" 19 19 // Build time 20 #define BLDLVL_HOURS " 08"21 #define BLDLVL_MINUTES " 35"20 #define BLDLVL_HOURS "19" 21 #define BLDLVL_MINUTES "41" 22 22 #define BLDLVL_SECONDS "00" 23 23 // Build machine
Note:
See TracChangeset
for help on using the changeset viewer.
