2012-03-13 17:51:57 +01:00
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;;
|
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
|
;; ;;
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
|
2013-05-28 00:16:00 +02:00
|
|
|
|
Загрузочный сектор для ОС Колибри (FAT12, дискета)
|
|
|
|
|
|
|
|
|
|
- Описание
|
|
|
|
|
Позволяет загружать KERNEL.MNT с дискет/образов
|
|
|
|
|
объёмом 1.44M, 1.68M, 1.72M и 2.88M
|
|
|
|
|
Для выбора объёма диска, для которого надо собрать
|
|
|
|
|
загрузочный сектор, необходимо в файле boot_fat12.asm
|
|
|
|
|
раскомментировать строку вида:
|
2008-04-28 21:30:57 +02:00
|
|
|
|
include 'floppy????.inc'
|
2013-05-28 00:16:00 +02:00
|
|
|
|
для необходимого объёма диска. Доступные варианты:
|
2008-04-28 21:30:57 +02:00
|
|
|
|
floppy1440.inc,
|
|
|
|
|
floppy1680.inc,
|
2013-05-28 00:16:00 +02:00
|
|
|
|
floppy1743.inc и floppy2880.inc
|
2008-04-28 21:30:57 +02:00
|
|
|
|
|
2013-05-28 00:16:00 +02:00
|
|
|
|
- Сборка
|
2008-04-28 21:30:57 +02:00
|
|
|
|
fasm boot_fat12.asm
|
|
|
|
|
|
2013-05-28 00:16:00 +02:00
|
|
|
|
- Для записи загрузочного сектора на диск/образ под Linux
|
|
|
|
|
можно воспользоваться следующей командой:
|
2008-04-28 21:30:57 +02:00
|
|
|
|
dd if=boot_fat12.bin of=288.img bs=512 count=1 conv=notrunc
|
|
|
|
|
|
|
|
|
|
---------------------------------------------------------------------
|
|
|
|
|
|
|
|
|
|
Floppy FAT12 boot sector for KolibriOS.
|
|
|
|
|
|
|
|
|
|
- Description
|
|
|
|
|
Allows booting KERNEL.MNT floppies/images
|
|
|
|
|
with volumes of 1.44M, 1.68M, 1.72M and 2.88M
|
|
|
|
|
To select the volume of the disk, which should gather
|
|
|
|
|
boot sector, it was necessary in file boot_fat12.asm
|
|
|
|
|
uncomment line:
|
|
|
|
|
include 'floppy????. inc'
|
|
|
|
|
for the necessary disk volume. Available options is:
|
|
|
|
|
floppy1440.inc,
|
|
|
|
|
floppy1680.inc,
|
|
|
|
|
floppy1743.inc and floppy2880.inc
|
|
|
|
|
|
|
|
|
|
- Compile
|
|
|
|
|
fasm boot_fat12.asm
|
|
|
|
|
|
|
|
|
|
- To write boot sector to the floppy/image under Linux
|
|
|
|
|
you can use the following command:
|
|
|
|
|
dd if=boot_fat12.bin of=288.img bs=512 count=1 conv=notrunc
|