forked from ghaerr/elks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
emu86.sh
executable file
·26 lines (18 loc) · 979 Bytes
/
emu86.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Run ELKS in EMU86 (basic IA16 emulator)
# EMU86 is part of the cross tools
# See https://github.com/mfld-fr/emu86
# For ELKS ROM Configuration:
# ELKS must be configured minimaly with 'cp emu86-rom.config .config'
# This uses headless console, HLT on idle, ROM filesystem.
# Kernel image @ segment 0xE000 (as 64K BIOS extension)
# Root filesystem @ segment 0x8000 (assumes 512K RAM & 512K ROM)
exec emu86 -w 0xe0000 -f elks/arch/i86/boot/Image -w 0x80000 -f image/romfs.bin ${1+"$@"}
# For ELKS Full ROM Configuration:
# ELKS must be configured minimaly with 'cp emu86-rom-full.config .config'
# This adds MINIX/FAT filesytems with BIOS driver
exec emu86 -w 0xe0000 -f elks/arch/i86/boot/Image -w 0x80000 -f image/romfs.bin -I image/fd1440.bin ${1+"$@"}
# For ELKS disk image Configuration:
# ELKS must be configured with 'cp emu86-disk.config .config'
# This uses headless console, HLT on idle, no CONFIG_IDE_PROBE
exec emu86 -I image/fd1440.bin ${1+"$@"}