Changeset 47 for trunk/BOOTCODE


Ignore:
Timestamp:
Apr 12, 2014, 11:24:51 AM (12 years ago)
Author:
Ben Rietbroek
Message:

Fixed Installer to handle packed hideparttable [2012-04-23]

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 Installer can now handle packed hideparttable
o Implemented upgrading from v1.06 directly to v1.0.8
o Fixed minor stuff when upgrading from v1.06 to v1.07
o Implemented DOS code in C cross-platform installer

There is now one C source for 4 platforms:
DOS,WIN32,OS2 and LINUX (Linux portion not ready yet)
This obsoletes AIRBOOT.ASM/AIRBOOT.COM.
DOS Installer is now AIRBOOTD.EXE.

o This commit is prepairing for v1.0.8-rc2

Location:
trunk/BOOTCODE
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • trunk/BOOTCODE/.build

    r46 r47  
    33export ASM=jwasm
    44make dev
     5make dist
  • trunk/BOOTCODE/AIR-BOOT.ASM

    r46 r47  
    13161316                ;
    13171317                ; Critical end of code marker.
    1318                 ;
    1319                 db  'DEAD'
    1320                 db  'FACE'
     1318                ; Should always be in the image, otherwise something
     1319                ; is very wrong.
     1320                ;
     1321                db      'DEAD'
     1322                db      'FACE'
    13211323
    13221324;
     
    13411343
    13421344; If we are debugging, we overwrite the FX code.
    1343 ; As long as no FX is disabled this will do no harm.
     1345; As long as FX is disabled this will do no harm.
    13441346IFDEF   AUX_DEBUG
    13451347                ORG     06780h
    13461348ENDIF
     1349
    13471350
    13481351bld_level:
     
    13531356                ; It is unique for each release of AiR-BOOT.
    13541357                ;
     1358                ; ?? When AUX_DEBUG is enabled and the above org is active,
     1359                ; the BLDLEVEL gets corrupted eventhough it gets inserted here
     1360                ; explicitly. The effect is almost like an 'OR' or a merge
     1361                ; with the already generated FX code.
     1362                ; Tasm and JWasm produce different results.
     1363                ; ??
     1364                ;
    13551365                InsertBuildLevel
    13561366
     1367                ;bliep <>
     1368
    13571369                ;
    13581370                ; End of code marker.
     1371                ; If this one vanishes in the image, the FX code will not
     1372                ; be operational.
     1373                ; Will happen with debugging enabled.
    13591374                ;
    13601375                db      'BABE'
     
    13711386                ORIGIN  06800h
    13721387
     1388zzz_code_space = $ - code_end
    13731389                ;
    13741390                ; This is the AiR-BOOT MBR-Protection Image.
  • trunk/BOOTCODE/AIR-BOOT.HIS

    r46 r47  
    2323; Rousseau: Fixes and Enhancements
    2424; ---------------------------------
    25 ; v1.0.8-rc2-bld201204??+
    26 ; ---------------------
    27 
    28 
     25;
     26; v1.0.8-rc2-bld2012042?
     27; ----------------------
     28; # 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
     32;
     33; # Implemented DOS code in C cross-platform installer
     34;   There is now one C source for 4 platforms:
     35;   DOS,WIN32,OS2 and LINUX (Linux portion not ready yet)
     36;   This obsoletes AIRBOOT.ASM/AIRBOOT.COM.
     37;   DOS Installer is now AIRBOOTD.EXE.
     38;
    2939; v1.0.8-pre-rc2-bld20120330
    3040; --------------------------
  • trunk/BOOTCODE/BLDLEVEL.INC

    r46 r47  
    5050
    5151
     52
     53;~ bliep   struct
     54    ;~ db  '@#'
     55    ;~ db  BLDLVL_VENDOR
     56    ;~ db  ':'
     57    ;~ db  BLDLVL_MAJOR_VERSION
     58    ;~ db  '.'
     59    ;~ db  BLDLVL_MIDDLE_VERSION
     60    ;~ db  '.'
     61    ;~ db  BLDLVL_MINOR_VERSION
     62    ;~ db  '#@##1## '
     63;~ bld_level_date_start    db  BLDLVL_YEAR
     64    ;~ db  '/'
     65    ;~ db  BLDLVL_MONTH
     66    ;~ db  '/'
     67    ;~ db  BLDLVL_DAY
     68    ;~ db  ' '
     69    ;~ db  BLDLVL_HOURS
     70    ;~ db  ':'
     71    ;~ db  BLDLVL_MINUTES
     72    ;~ db  ':'
     73    ;~ db  BLDLVL_SECONDS
     74;~ bld_level_date_end    db  '      '
     75    ;~ db  BLDLVL_MACHINE
     76    ;~ db  '::'
     77    ;~ ; Wasm can only process the reference to 'lang' in pass 2 because it comes
     78    ;~ ; from an included file which it has not processed yet at pass 1.
     79    ;~ IFDEF   WASM
     80        ;~ IF2
     81            ;~ db  BLDLVL_LANGUAGE
     82        ;~ ENDIF
     83    ;~ ; The other assemblers process 'lang' correctly in pass 1.
     84    ;~ ELSE
     85        ;~ db  BLDLVL_LANGUAGE
     86    ;~ ENDIF
     87    ;~ db  '::'
     88    ;~ db  BLDLVL_MINOR_VERSION
     89    ;~ db  '::@@'
     90    ;~ db  BLDLVL_DESCRIPTION
     91    ;~ db  0
     92;~ bliep   ends
     93
     94
    5295;
    5396; This macro inserts the BLDLEVEL string at the place where it is invoked.
  • trunk/BOOTCODE/Makefile

    r46 r47  
    105105# will run out-of-space sooner that the other languages.
    106106# If that happens at least the others will be built.
    107 BLD_LANGUAGES=EN DE NL FR IT SW #RU
     107BLD_LANGUAGES=EN DE NL FR IT SW RU
    108108#BLD_LANGUAGES=EN DE NL
    109109
  • trunk/BOOTCODE/REGULAR/DEBUG.ASM

    r46 r47  
    426426db_curlvmsec        db 'Current LVM Sector:',0
    427427
     428
     429drive                   db 'drive                    : ',0
     430before_lvm_adjust       db 'before lvm adjust        : ',0
     431after_lvm_adjust        db 'after lvm adjust         : ',0
     432before_lvm_adjust_log   db 'before lvm logical adjust: ',0
     433after_lvm_adjust_log    db 'after lvm logical adjust : ',0
     434spt_used                db 'spt used                 : ',0
  • trunk/BOOTCODE/REGULAR/DRIVEIO.ASM

    r46 r47  
    248248
    249249            ; Dump drive
    250             mov      si,offset drive
     250            ;mov      si,offset drive
    251251            ;call     AuxIO_Print
    252             xchg     al,dl
     252            ;xchg     al,dl
    253253            ;call     AuxIO_TeletypeHexByte
    254254            ;call     AuxIO_TeletypeNL
    255             xchg     dl,al
     255            ;xchg     dl,al
    256256
    257257            ; Dump SPT
    258             mov      si,offset spt_used
     258            ;mov      si,offset spt_used
    259259            ;call     AuxIO_Print
    260260            push     dx
     
    300300
    301301            ; LBA
    302             mov     si,offset before_lvm_adjust
     302            ;mov     si,offset before_lvm_adjust
    303303            ;call    AuxIO_Print
    304304
    305             xchg    dx,bx
     305            ;xchg    dx,bx
    306306            ;call    AuxIO_TeletypeHexDWord
    307307            ;call    AuxIO_TeletypeNL
    308             xchg    bx,dx
     308            ;xchg    bx,dx
    309309        popa
    310310
     
    317317
    318318
    319         pusha
    320             mov      si,offset before_lvm_adjust_log
     319        ;pusha
     320            ;mov      si,offset before_lvm_adjust_log
    321321            ;call     AuxIO_Print
    322322            ; LBA
    323             xchg     dx,bx
     323            ;xchg     dx,bx
    324324            ;call     AuxIO_TeletypeHexDWord
    325325            ;call     AuxIO_TeletypeNL
    326             xchg     bx,dx
    327         popa
     326            ;xchg     bx,dx
     327        ;popa
    328328
    329329
     
    346346
    347347
    348         pusha
    349             mov     si,offset after_lvm_adjust_log
     348        ;pusha
     349            ;mov     si,offset after_lvm_adjust_log
    350350            ;call    AuxIO_Print
    351351            ; LBA
    352             xchg    dx,bx
     352            ;xchg    dx,bx
    353353            ;call    AuxIO_TeletypeHexDWord
    354354            ;call    AuxIO_TeletypeNL
    355             xchg    bx,dx
    356         popa
     355            ;xchg    bx,dx
     356        ;popa
    357357
    358358        jmp      done
     
    427427    done:
    428428
    429         pusha
    430             mov     si,offset after_lvm_adjust
     429        ;pusha
     430            ;mov     si,offset after_lvm_adjust
    431431            ;~ call    AuxIO_Print
    432432            ; LBA
    433             xchg    dx,bx
     433            ;xchg    dx,bx
    434434            ;~ call    AuxIO_TeletypeHexDWord
    435435            ;~ call    AuxIO_TeletypeNL
    436             xchg    bx,dx
    437         popa
     436            ;xchg    bx,dx
     437        ;popa
    438438
    439439        ;~ pusha
     
    466466
    467467
    468 drive                   db 'drive                    : ',0
    469 before_lvm_adjust       db 'before lvm adjust        : ',0
    470 after_lvm_adjust        db 'after lvm adjust         : ',0
    471 before_lvm_adjust_log   db 'before lvm logical adjust: ',0
    472 after_lvm_adjust_log    db 'after lvm logical adjust : ',0
    473 spt_used                db 'spt used                 : ',0
    474468
    475469
  • trunk/BOOTCODE/REGULAR/STD_TEXT.ASM

    r46 r47  
    5555             db BLDLVL_MINOR_VERSION,' - (c) '
    5656             db BLDLVL_YEAR
    57              db ' M. Kiewitz  <<Internal Release 2p>> (bld: '
     57             db ' M. Kiewitz  <<Internal Release 2q>> (bld: '
    5858             db BLDLVL_YEAR
    5959             db BLDLVL_MONTH
  • trunk/BOOTCODE/VERSION.INC

    r46 r47  
    1717AB_YEAR             EQU     2012h
    1818AB_MONTH            EQU     04h
    19 AB_DAY              EQU     14h
     19AB_DAY              EQU     21h
    2020
    2121; The Hours, Minutes and Seconds, again in BCD for easy manipulation.
    22 AB_HOURS            EQU     01h
    23 AB_MINUTES          EQU     30h
     22AB_HOURS            EQU     08h
     23AB_MINUTES          EQU     35h
    2424AB_SECONDS          EQU     00h
    2525
  • trunk/BOOTCODE/_build.cmd

    r46 r47  
    11@SET ASM=tasm
    22@wmake dev
     3@wmake dist
Note: See TracChangeset for help on using the changeset viewer.