Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/floppy/build.sh
blob: d8bc7c9fffd4014dfc9972e67eb907598363c20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

nasm -o boot.img boot.asm
if test $? -ne 0; then
	exit 1
fi
stat -c "%n: %s" boot.img
stat -c "%n: %s" bzImage
stat -c "%n: %s" ramdisk.img
touch EOF
stat -c "%n: %s" EOF
tar -cvf data.tar -b1 bzImage ramdisk.img EOF
cat boot.img data.tar > floppy.img
stat -c "%n %s" floppy.img

tcc -lbsd -Og -g -Wall -o lstar lstar.c
./lstar floppy.img
split -b 1474560 floppy.img
mv xaa floppy1.img
mv xab floppy2.img

#qemu-system-i386 -no-reboot -boot c -cpu 486 -m 32M -drive "file=floppy1.img,if=none,format=raw,id=drive1" -device floppy,drive-type=144,drive=drive1 -drive "file=floppy2.img,if=none,format=raw,id=drive2" -device floppy,drive-type=144,drive=drive2 -nographic && reset
#qemu-system-i386 -cpu 486 -m 32M -drive "file=floppy1.img,if=floppy,format=raw,drive-type=144"
#bochs -q -f bochs.config 'boot:floppy' 'floppya: 1_44=boot.img, status=inserted'