Add extended_primary_loader to autobuild.
* Build fat1x, fat32, cdfs, after_win loaders. * Set use_lba=1 by default in fat32 loader. * Build kolibri.raw: flash / hdd image. * Add example config.ini file. * Add an option (config file and screen) to not load ramdisk image. * Add an option (config file only) to set /sys path. Now you can boot without a ramdisk from a storage that is supported by the kernel itself, i.e. without loadable drivers. Thus you can not load the system without a ramdisk from SATA/AHCI and USB drives. git-svn-id: svn://kolibrios.org@8091 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -667,7 +667,7 @@ end if
|
||||
jnz .show_remarks
|
||||
; e) preboot_device = from where to boot?
|
||||
if defined extended_primary_loader
|
||||
_ask_question bdev,'12',preboot_device ; range accepted for answer: 1-2
|
||||
_ask_question bdev,'13',preboot_device ; range accepted for answer: 1-3
|
||||
else
|
||||
_ask_question bdev,'14',preboot_device ; range accepted for answer: 1-4
|
||||
end if
|
||||
@@ -970,9 +970,25 @@ end if
|
||||
; BOOT DEVICE
|
||||
|
||||
mov al, [preboot_device]
|
||||
dec al
|
||||
if defined extended_primary_loader
|
||||
cmp al, RD_LOAD_FROM_MEMORY
|
||||
jnz @f
|
||||
mov al, RD_LOAD_FROM_NONE
|
||||
@@:
|
||||
end if
|
||||
mov [es:BOOT_LO.rd_load_from], al
|
||||
|
||||
; /sys path
|
||||
mov eax, dword[preboot_syspath+0]
|
||||
mov dword[es:BOOT_LO.syspath+0], eax
|
||||
mov eax, dword[preboot_syspath+4]
|
||||
mov dword[es:BOOT_LO.syspath+4], eax
|
||||
mov eax, dword[preboot_syspath+8]
|
||||
mov dword[es:BOOT_LO.syspath+8], eax
|
||||
mov eax, dword[preboot_syspath+12]
|
||||
mov dword[es:BOOT_LO.syspath+12], eax
|
||||
|
||||
|
||||
; GET MEMORY MAP
|
||||
include '../detect/biosmem.inc'
|
||||
|
||||
|
Reference in New Issue
Block a user