Ignore:
Timestamp:
Nov 7, 2017, 7:12:49 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Added 'CRC_IGNORE' option for debug building [v1.1.1-testing]

The CRC is calculated and inserted in the loader image when AiR-BOOT is
installed. Ignoring the CRC enables manually merging the loader without
using the installer. This is used for debugging in virtual machines,
where it is easy to merge the loader to the disk image of the VM.

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:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/airboot.asm

    r176 r184  
    827827                loop    MBR_RealStart_CheckCodeLoop
    828828
    829                 ; Verify checksum
     829                ; Verify checksum -- EQUAL if OK
    830830                cmp     MBR_CheckCode, bx
    831                 ;~ je      MBR_RealStart_CheckSuccess      ; CRC verified
    832                 jmp      MBR_RealStart_CheckSuccess     ; Ignore CRC
    833 
     831
     832                ;
     833                ; The CRC is calculated and inserted in the loader image when
     834                ; AiR-BOOT is installed. Ignoring the CRC enables manually
     835                ; merging the loader without using the installer. This is used
     836                ; for debugging in virtual machines, where it is easy to
     837                ; merge the loader to the disk image of the VM.
     838                ;
     839            IFDEF   CRC_IGNORE
     840                jmp     MBR_RealStart_CheckSuccess      ; Ignore CRC
     841            ELSE
     842                je      MBR_RealStart_CheckSuccess      ; Honor CRC -- EQ is OK
     843            ENDIF
     844
     845                ;
    834846                ; Oops, checksum mismatch -- halt the system
     847                ;
    835848                mov     si, offset TXT_ERROR_Attention
    836849                call    MBR_Teletype
Note: See TracChangeset for help on using the changeset viewer.