blob: f80301783579fe9cfa32a39245230f3ea67a34bd (
plain) (
blame)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
#!/bin/sh
if [ ! -e cdrom/boot/grub/stage2_eltorito ]; then
mkdir -p cdrom/boot/grub
echo "Please copy grub's stage2_eltorito to cdrom/boot/grub."
exit -1
fi
# Copy system files to CDROM
cp src/kernel/kernel.bin cdrom/boot; strip cdrom/boot/kernel.bin
cp src/kernel/kernel.map cdrom/boot
cp src/sysbin/init/init.bin cdrom/boot; strip cdrom/boot/init.bin
mkdir -p cdrom/sys/bin
cp src/sysbin/giosrv/giosrv.bin cdrom/sys/bin
cp src/sysbin/login/login.bin cdrom/sys/bin
cp src/sysbin/terminal/terminal.bin cdrom/sys/bin
cp src/sysbin/shell/shell.bin cdrom/sys/bin
for BIN in cdrom/sys/bin/*.bin; do strip $BIN; done
mkdir -p cdrom/sys/fonts
cp res/fonts/*.bf cdrom/sys/fonts
cp res/fonts/pcvga.bf cdrom/sys/fonts/default.bf
mkdir -p cdrom/sys/keymaps
cp res/keymaps/*.km cdrom/sys/keymaps
cp res/keymaps/fr.km cdrom/sys/keymaps/default.km
cp README.md cdrom
# Setup config files
mkdir -p cdrom/config/default
echo "root:/sys" > cdrom/config/default/sysdir
cat > cdrom/boot/grub/menu.lst <<EOF
timeout 10
default 0
title kogata OS
kernel /boot/kernel.bin root=io:/disk/atapi0 root_opts=l init=root:/boot/init.bin config=default
module /boot/kernel.map
EOF
# Generate CDROM image
genisoimage -R -b boot/grub/stage2_eltorito -no-emul-boot \
-boot-load-size 4 -boot-info-table -input-charset ascii \
-A kogata-os -o cdrom.iso cdrom
|