Changeset 96 for trunk/bootcode/regular


Ignore:
Timestamp:
Apr 8, 2017, 12:26:41 AM (8 years ago)
Author:
Ben Rietbroek
Message:

Removed Linux noise [v1.1.1-testing]

This stuff was already commented out and not applicable anymore.
It was used to directly boot Linux kernels from FAT some eons ago.
Linux is supported by chain-loading GRUB.

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

Location:
trunk/bootcode/regular
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/bootcode/regular/bootmenu.asm

    r73 r96  
    955955        mov     Menu_EntryAutomatic, dl
    956956
    957         ;~ ; [Linux support removed since v1.02]
    958         ;~ ; Okay, now we check if Default/Last Kernel Partition Name is available...
    959         ;~ ;  if so, simply set Menu_EntryDefault/Menu_EntryLast.
    960         ;~ mov     si, offset CFG_LinuxDefaultKernel
    961         ;~ call    LINUX_SearchKernelName        ; DL - Filtered Entry No
    962         ;~ cmp     dl, 0FFh
    963         ;~ je      BMRMV_DefaultKernelNF
    964         ;~ mov     Menu_EntryDefault, dl
    965     ;~ BMRMV_DefaultKernelNF:
    966         ;~ mov     si, offset CFG_LinuxLastKernel
    967         ;~ call    LINUX_SearchKernelName        ; DL - Filtered Entry No
    968         ;~ cmp     dl, 0FFh
    969         ;~ je      BMRMV_LastKernelNF
    970         ;~ mov     Menu_EntryLast, dl
    971     ;~ BMRMV_LastKernelNF:
    972 
    973957        ; restlichen Variablen berechnen...
    974958        mov     dl, Menu_TotalParts
  • trunk/bootcode/regular/partmain.asm

    r84 r96  
    3636    call    PART_FixUpSelectionNumber
    3737    mov     CFG_PartAutomatic, dl
    38 
    39 ; [Linux support removed since v1.02]
    40 ;   ; Fix-Up Linux Kernel Partition - If lost, search for FAT-16
    41 ;   mov     bl, 06h
    42 ;   mov     dl, CFG_LinuxKrnlPartition
    43 ;   call    PART_FixUpPartitionNumber
    44 ;   mov     CFG_LinuxKrnlPartition, dl
    45 ;
    46 ;   ; Fix-Up Linux Root Partition - If lost, search for Linux partition (83h)
    47 ;   mov     bl, 83h
    48 ;   mov     dl, CFG_LinuxRootPartition
    49 ;   call    PART_FixUpPartitionNumber
    50 ;   mov     CFG_LinuxRootPartition, dl
    5138   ret
    5239PART_FixUpDefaultPartitionValues EndP
     
    264251    PCMPP_NoResumeBootSeqInclude:
    265252
    266 ; [Linux support removed since v1.02]
    267 ;   ; Now include all Linux Kernels, if any available...
    268 ;   movzx   cx, LINUX_KernelNo
    269 ;   or      cx, cx
    270 ;   jz      PCMPP_NoLinuxKernels
    271 ;   mov     ax, offset LINUX_KernelEntries
    272 ;  PCMPP_KernelLoop:
    273 ;      mov     ds:[bx], ax
    274 ;      add     bx, 2
    275 ;      add     ax, LocIPT_LenOfIPT
    276 ;   dec     cx
    277 ;   jnz     PCMPP_KernelLoop
    278 ;  PCMPP_NoLinuxKernels:
    279 
    280253        ;movzx   cx, CFG_Partitions ; LocIPT_MaxPartitions
    281254        mov   cl,CFG_Partitions ; LocIPT_MaxPartitions
     
    378351        je      PCTS_IsFloppy                       ; Is Floppy
    379352
    380 ; [Linux support removed since v1.02]
    381 ;   cmp     ax, offset LINUX_KernelEntries
    382 ;   jae     PCTS_IsKernelEntry
    383 
    384353        ;
    385354        ; Is partition, AX contains pointer to IPT entry
     
    390359        mov     dl, al                          ; Index in IPT
    391360        ret
    392 
    393 ; [Linux support removed since v1.02]
    394 ;  PCTS_IsKernelEntry:
    395 ;   mov     dl, 0FDh
    396 ;   ret
    397361
    398362    PCTS_IsBIOSbootSeq:
     
    469433; Destroyed: AX
    470434PART_GetSizeElementPointer      Proc Near   Uses bx
    471 ; [Linux support removed since v1.02]
    472 ;   cmp     ax, offset LINUX_KernelEntries
    473 ;   jae     PGSEP_IsKernelEntry
    474435        mov     si, offset PartitionSizeTable
    475436        sub     ax, offset PartitionTable
    476 ;   jmp     PGSEP_Continue
    477 ; [Linux support removed since v1.02]
    478 ;  PGSEP_IsKernelEntry:
    479 ;   mov     si, offset LINUX_KernelSizeTable
    480 ;   sub     ax, offset LINUX_KernelEntries
    481 ;  PGSEP_Continue:
    482437        mov     bl, LocIPT_LenOfIPT
    483438        div     bl                            ; Divide with IPTlength
     
    10531008        call    MBR_Teletype
    10541009
    1055 
    1056 ; [Linux support removed since v1.02]
    1057 ;      cmp     dh, 0FDh
    1058 ;      je      PSP_IsKernel
    1059 
    10601010        ;~ pusha
    10611011        ;~ call    MBR_Teletype
     
    10771027        call    MBR_TeletypeVolName
    10781028        jmp     PSP_IsFloppyCDROMetc                                                ; JUMPS BUITEN SI POP !!! AANPASSEN
    1079 
    1080 
    1081 ; [Linux support removed since v1.02]
    1082 ;    PSP_IsKernel:
    1083 ;      IFDEF ReleaseCode
    1084 ;         ; Save configuration on HDD boots (save CFG_LinuxLastKernel)
    1085 ;         call    DriveIO_SaveConfiguration
    1086 ;      ENDIF
    1087 ;      call    MBR_Teletype       ; Prints out BootingNow2 including KernelName
    1088 ;      mov     si, offset TXT_BootingNowKernel
    1089 ;      call    MBR_Teletype
    1090 ;      jmp     PSP_IsFloppyCDROMetc
    10911029
    10921030
     
    14171355        je      PSP_ResumeBIOSbootSeq
    14181356
    1419 ; [Linux support removed since v1.02]
    1420 ;   cmp     al, 0FDh                        ; Kernel-Booting ?
    1421 ;   je      PSP_KernelBooting
    1422 
    14231357        jmp     PSP_StartNormal
    14241358
     
    14281362        dw      0FFF0h
    14291363        dw      0F000h
    1430 
    1431 ; [Linux support removed since v1.02]
    1432 ;  PSP_KernelBooting:
    1433 ;   call    LINUX_LoadKernel              ; DS:SI - Entry Pointer to Kernel
    1434 ;   db      0EAh                          ; if return to here -> Reboot
    1435 ;   dw      0FFF0h
    1436 ;   dw      0F000h
    1437 
    14381364
    14391365
  • trunk/bootcode/regular/partscan.asm

    r94 r96  
    8080        mov     cx, LocIPT_MaxPartitions
    8181        rep     movsb
    82 
    83 ; [Linux support removed since v1.02]
    84 ;   ; Search for any Linux partition and remember, if it got found...
    85 ;   mov     si, offset PartitionTable
    86 ;   movzx   cx, CFG_Partitions
    87 ;   xor     dl, dl                        ; DL - Is Linux here ?
    88 ;   or      cx, cx
    89 ;   jz      PSSFP_NoPartitions
    90 ;  PSSFP_LinuxLoop:
    91 ;      cmp     bptr [si+LocIPT_SystemID], 083h  ; Hard-Coded
    92 ;      jne     PSSFP_NoLinux
    93 ;      mov     dl, 1                      ; Linux found...
    94 ;     PSSFP_NoLinux:
    95 ;      add     si, LocIPT_LenOfIPT
    96 ;   loop    PSSFP_LinuxLoop
    97 ;  PSSFP_NoPartitions:
    98 ;   mov     GotLinux, dl                  ; Set Flag
    9982
    10083        ; ...and finally check, if we need to set a Drive-Letter
Note: See TracChangeset for help on using the changeset viewer.