forked from ghaerr/elks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathemu86.sh
executable file
·27 lines (19 loc) · 1.05 KB
/
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
27
#!/bin/bash
# Run ELKS in EMU86 (basic 8086 emulator)
# EMU86 is part of the cross tools
# For ELKS ROM Configuration:
# ELKS must be configured minimaly with 'cp emu86-rom.config .config'
# This uses headless console, HLT on idle, ROM filesystem.
# First build ELKS with kernel and root FS in ROM
# Kernel image @ segment 0xE000 (top of 1024K address space)
# Root filesystem @ segment 0x8000 (assumes 512K RAM & 512K ROM)
# Skip the INT 19h bootstrap in the kernel image (+0x14)
exec emu86 -w 0xe0000 -f elks/arch/i86/boot/Image -w 0x80000 -f image/romfs.bin -x 0xe000:0x14 ${1+"$@"}
# For ELKS Full ROM Configuration:
# ELKS must be configured minimaly with 'cp emu86-rom-full.config .config'
# This adds MINIX/FAT filesytems w/BIOS driver
exec /emu86 -w 0xe0000 -f elks/arch/i86/boot/Image -w 0x80000 -f image/romfs.bin -x 0xe000:0x14 -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+"$@"}