Switch to multiboot2 and improve interrupt management
This commit is contained in:
parent
db553d0582
commit
958e2dae04
14 changed files with 206 additions and 41 deletions
2
tools/bochsrc
Normal file
2
tools/bochsrc
Normal file
|
@ -0,0 +1,2 @@
|
|||
romimage: file=$BXSHARE/BIOS-bochs-latest, options=fastboot
|
||||
vgaromimage: file=$BXSHARE/VGABIOS-lgpl-latest
|
31
tools/gen_grub_cdrom.sh
Executable file
31
tools/gen_grub_cdrom.sh
Executable file
|
@ -0,0 +1,31 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# Ensure to abort on error
|
||||
set -e
|
||||
|
||||
wai=$(dirname $(readlink -f "$0")) # Current script directory
|
||||
outdir="${wai}/../"
|
||||
cdrom="${outdir}/cdrom.img"
|
||||
isodir="$(mktemp -d)" # Mount point (where the floppy will be mounted temporally
|
||||
kernel="$outdir/src/bringelle"
|
||||
|
||||
[ ! -e "$kernel" ] && { echo "Bringelle not found!"; exit 1; }
|
||||
|
||||
check_for () {
|
||||
command -v "$1" &>/dev/null || { echo "Command $1 not found!"; exit 1; }
|
||||
}
|
||||
|
||||
check_for grub-mkconfig
|
||||
|
||||
mkdir -p $isodir/boot/grub
|
||||
cat <<EOT >> $isodir/boot/grub/grub.cfg
|
||||
set timeout=0
|
||||
menuentry "kernel" {
|
||||
multiboot2 /boot/bringelle
|
||||
boot
|
||||
}
|
||||
EOT
|
||||
cp $kernel "$isodir/boot/"
|
||||
grub-mkrescue -o "$cdrom" $isodir
|
||||
|
||||
rm -rf "$isodir"
|
Loading…
Add table
Add a link
Reference in a new issue