#
# Конфигурационный файл загрузчика GRUB.
# Используется спец. патч для расширения
# синтаксиса и др.
#

color 23 52
default knoppix
timeout 30

set R       = (cd)
set PN      = $(R)/pns
set L4      = $(R)/l4
set OS2     = $(R)/os3
set CFG     = $(R)/cfg
set LX      = $(R)/lx
set RD_DENV = $(LX)/image-bb
set VMODE   = 0x117
set MODADDR = 0x02000000
set FIASCOARGS = "-serial -jdb_never_stop -tbuf_entries=32768 -jdb_cmd=JH"

#set ROOT       := (hd0,3)
#set P          := $(ROOT)/boot/l4/v2
#set L          := $(ROOT)/boot/l4/lx
#set C          := $(ROOT)/boot/l4/cfg
#set R          := $(ROOT)/boot/l4/rd
#set INITRD     := $(R)/initrd.gz

#set SERPORT    ?= 1
#set SERIAL     ?= "-serial_esc -comspeed 115200 -comport $(SERPORT)"
#set WAIT       ?= -nowait
#set VBE_MODE   ?= 0x117
#set LANG       ?= us
#set FIASCOARGS := "-nokdb $(WAIT) $(SERIAL)"

#set L4BASE     := "$(ROOT)/tftpboot/l4"
#set L4PATH     := "$(ROOT)/tftpboot/drops/bin/x86_586/l4v2"
#set FIASCO     := "$(L4PATH)/fiasco"

splashimage $(hd0,3)/boot/splash-ordered.xpm.gz
borderoff 1
indexoff 1
menutitleoff 1

title Addressation test
root (hd0,3)
chainloader /boot/addrtest.bin

title MemTest86
root (hd0,3)
kernel /boot/memtest

title OS/2 from MemDisk
root (hd0,3)
chainloader --force /boot/memdisk.bin

title OS/2 bootsector
root (hd0,3)
chainloader --force /boot/os2fat.bin

title OS/2 bootsector (old)
root (hd0,3)
chainloader --force /boot/ibmboot.bin

title OS/2 with os2ldr.sek
root (hd0,3)
chainloader --force /boot/os2ldr.sek

title DOS (Universal boot disk)
root (hd0,3)
chainloader --force /boot/dosfat.bin

title L4Ka::Pistachio test with pingpong
root (hd0,3)
kernel /boot/l4ka/kickstart
module /boot/l4ka/i586-kernel
module /boot/l4ka/sigma0
module /boot/l4ka/pingpong

title Wombat (Red Hat Linux 2.6.9)
root (hd0,3)
kernel /boot/l4ka/kickstart
module /boot/iguana/ia32-kernel
module /boot/iguana/ig_sigma0
module /boot/iguana/iguana	
module /boot/iguana/iguana_serial
module /boot/iguana/iguana_naming
module /boot/iguana/iguana_timer
module /boot/iguana/iguana_init
module /boot/iguana/vmlinuz ro root=LABEL=/ mount=nodevfs
module /boot/initrd.img

title marzipan resource monitor with pingpong
root (hd0,3)
kernel /boot/marzipan/kickstart
modaddr 0x04000000
module /boot/marzipan/pistachio
module /boot/marzipan/sigma0
module /boot/marzipan/marzipan
module /boot/marzipan/afterburn-wedge vmstart vmsize=96M wedgeinstall=16M wedgesize=16M
module /boot/vmlinuz2.6 ro root=LABEL=/ console=tty console=ttyS0 mount=nodevfs
module /boot/initrd.img

title Linux 2.6 on L4Ka::Pistachio with afterburn technology
root (hd0,3)
kernel /boot/marzipan/kickstart
modaddr 0x04000000
module /boot/marzipan/pistachio
module /boot/marzipan/sigma0
module /boot/marzipan/marzipan
module /boot/marzipan/afterburn-wedge vmstart vmsize=96M wedgeinstall=16M wedgesize=16M
module /boot/vmlinuz2.6 ro root=LABEL=/ console=tty console=ttyS0 mount=nodevfs
module /boot/initrd.img

title knoppix
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 initrd=/boot/minirt24.gz nomce quiet BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title knoppix-txt
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=normal initrd=/boot/minirt24.gz nomce quiet BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title fb1280x1024
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=794 xmodule=fbdev initrd=/boot/minirt24.gz nomce quiet BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title fb1024x768
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=791 xmodule=fbdev initrd=/boot/minirt24.gz nomce quiet BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title fb800x600
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us apm=power-off vga=788 xmodule=fbdev initrd=/boot/minirt24.gz nomce quiet BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title failsafe
root (hd0,3)
kernel /boot/linux24 ramdisk_size=100000 init=/etc/init lang=us vga=normal atapicd nosound noapic noacpi acpi=off noscsi nodma noapm nousb nopcmcia nofirewire noagp nomce nodhcp xmodule=vesa initrd=/boot/minirt24.gz BOOT_IMAGE=knoppix
module /boot/minirt24.gz

title userdef
root (hd0,3)
kernel /boot/linux24 initrd=/boot/minirt24.gz
module /boot/minirt24.gz

title floppy
root (fd0)
chainloader +1

title CDROM
root (cd)
#chainloader +1


title ----------------------- DEMO ------------------------
echo

title The "hello" program
kernel $(P)/rmgr -sigma0
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/hello

title "pingpong" micro benchmark program
kernel $(P)/rmgr -sigma0
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/pingpong

title simple "DOpE" demo
kernel $(P)/rmgr -sigma0
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
modaddr 0x02000000
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys -v
module $(P)/l4io --noirq
module $(P)/l4dope --l4io
module $(P)/vscrtest
module $(P)/dopelog
vbeset $(VBE_MODE)

title simple "console" demo
kernel $(P)/rmgr -sigma0 -serial -comport=1 task modname "bmodfs" module module module module module task modname "l4dope" boot_priority 0xA8
modaddr 0x02000000
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys
module $(P)/simple_ts -t 380
module $(P)/l4io --noirq
module $(P)/bmodfs
  module $(P)/libloader.s.so
  module $(C)/run.bmodfs.cfg
  module $(P)/run
  module $(P)/con_demo1
  module $(P)/con_demo2
  module $(P)/con_demo3
module $(P)/l4exec
module $(P)/l4con --l4io
module $(P)/loader --fprov=BMODFS run.bmodfs.cfg con_demo1 con_demo2 con_demo3
vbeset $(VBE_MODE)

title L4Linux 2.6 [DOpE]
kernel $(P)/rmgr -sigma0 -serial -comport=1 task modname "bmodfs" module module module module module task modname "l4dope" boot_priority 0xA8
modaddr 0x02000000
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys
module $(P)/simple_ts -t 380
module $(P)/rtc
module $(P)/l4io --noirq
module $(P)/bmodfs
  module $(P)/libloader.s.so
  module $(L)/vmlinuz26
  module $(P)/vscrtest
  module $(C)/lx/l4linux26.cd.k_$(LANG).cfg
  module $(INITRD)
module $(P)/l4exec
module $(P)/l4dope --l4io
module $(P)/dopelog
module $(P)/doperun --fprov=BMODFS
module $(P)/loader --fprov=BMODFS l4linux26.cd.k_$(LANG).cfg
vbeset $(VBE_MODE)

title L4Linux 2.6 [console]
kernel $(P)/rmgr -sigma0 -serial -comport=1 task modname "bmodfs" module module module module module module module task modname "l4dope" boot_priority 0xA8
modaddr 0x02000000
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys
module $(P)/simple_ts -t 380
module $(P)/rtc
module $(P)/l4io --noirq
module $(P)/bmodfs
  module $(P)/libloader.s.so
  module $(C)/run.bmodfs.cfg
  module $(P)/run
  module $(P)/con_demo2
  module $(L)/vmlinuz26
  module $(C)/lx/l4linux26.cd.k_$(LANG).cfg
  module $(INITRD)
module $(P)/l4exec
module $(P)/l4con --l4io
module $(P)/loader --fprov=BMODFS run.bmodfs.cfg l4linux26.cd.k_$(LANG).cfg
vbeset $(VBE_MODE)

title l4lx
configfile $(ROOT)/tftpboot/boot/grub/l4lx.lst

title Demos
configfile $(ROOT)/tftpboot/demos/boot/grub/menu.lst

title Additional items
configfile (hd0,3)/boot/grub/menu2.lst

title Advanced menu with more configuration possibilities
configfile $(ROOT)/tftpboot/boot/grub/adv.lst

title ----------------------------------------
echo

title L4Linux 2.6 from a RAM-disk [DOpE]
kernel $(P)/rmgr -sigma0 -serial -comport=1 task modname "bmodfs" module module module module task modname "l4dope" boot_priority 0xA8
modaddr 0x02000000
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys
module $(P)/simple_ts -t 380
module $(P)/rtc
module $(P)/l4io --noirq
module $(P)/bmodfs
  module $(P)/libloader.s.so
  module $(L)/vmlinuz26.ux
  module $(C)/lx/l4linux26.rd.k_$(LANG).cfg
  module $(R)/rd1
module $(P)/l4exec
module $(P)/l4dope --l4io
module $(P)/dopelog
module $(P)/doperun --fprov=BMODFS
module $(P)/vscrtest
module $(P)/loader --fprov=BMODFS l4linux26.rd.k_$(LANG).cfg
vbeset $(VBE_MODE)

title L4Linux 2.6 from a RAM-disk [console]
kernel $(P)/rmgr -sigma0 -serial -comport=1 task modname "bmodfs" module module module module module module module task modname "l4dope" boot_priority 0xA8
modaddr 0x02000000
module $(P)/fiasco $(FIASCOARGS)
module $(P)/sigma0
module $(P)/names
module $(P)/log --prio 0xA1 --buffer 0
module $(P)/dm_phys
module $(P)/simple_ts -t 380
module $(P)/rtc
module $(P)/l4io --noirq
module $(P)/bmodfs
  module $(P)/libloader.s.so
  module $(L)/vmlinuz26.ux
  module $(C)/run.bmodfs.cfg
  module $(P)/run
  module $(P)/con_demo2
  module $(C)/lx/l4linux26.rd.k_$(LANG).cfg
  module $(R)/rd1
module $(P)/l4exec
module $(P)/l4con --l4io
module $(P)/loader --fprov=BMODFS run.bmodfs.cfg l4linux26.rd.k_$(LANG).cfg
vbeset $(VBE_MODE)

title -------------------------
root (cd)

title  linux
kernel (cd)/linux/vmlinuz BOOT_IMAGE=linux root=/dev/sda9  resume=/dev/sda8 splash=silent vga=788
module (cd)/linux/initrd.img~

title L4Linux 2.6 [console]
kernel $(L4)/bootstrap -serial
modaddr 0x02000000
module $(L4)/fiasco $(FIASCOARGS)
module $(L4)/sigma0
module $(L4)/roottask -symbols -lines task modname "loader" boot_priority 0xA0 allow_cli task modname "bmodfs" attached 7 modules
module $(L4)/fiasco_symbols
module $(L4)/fiasco_lines
module $(PN)/names
module $(PN)/log --prio 0xA1 --buffer 0
module $(PN)/dm_phys
module $(PN)/simple_ts -t 380
module $(PN)/rtc
module $(PN)/l4io
module $(PN)/bmodfs
  module $(PN)/libloader.s.so
  module $(PN)/libld-l4.s.so
  module $(PN)/run
  module $(LX)/vmlinuz26
  module $(CFG)/l4linux26.cfg
  module (cd)/linux/initrd.img
  module (PN)/fprov-l4
module $(PN)/l4con
module $(PN)/loader --fprov=BMODFS run l4linux26.cfg
vbeset $(VMODE)

title L4Linux 2.6 [nitdope]
kernel $(L4)/bootstrap -serial
modaddr 0x02000000
module $(L4)/fiasco $(FIASCOARGS)
module $(L4)/sigma0
module $(L4)/roottask -symbols -lines task modname "loader" boot_priority 0xA0 allow_cli task modname "bmodfs" attached 5 modules
module $(L4)/fiasco_symbols
module $(L4)/fiasco_lines
module $(PN)/names
module $(PN)/log --prio 0xA1 --buffer 0
module $(PN)/dm_phys
module $(PN)/simple_ts -t 380
module $(PN)/rtc
module $(PN)/l4io
module $(PN)/bmodfs
  module $(PN)/libloader.s.so
  module $(PN)/libld-l4.s.so
  module $(LX)/vmlinuz26
  module $(CFG)/l4linux26.cfg
  module (cd)/linux/initrd.img
  module (PN)/fprov-l4
module $(PN)/nitpicker
module $(PN)/nitdope
module $(PN)/vscrtest
module $(PN)/loader --fprov=BMODFS l4linux26.cfg
vbeset $(VMODE)
