diff --git a/README.md b/README.md index 593f314..7765cd6 100644 --- a/README.md +++ b/README.md @@ -12,3 +12,10 @@ To build, you need to: Your system should now boot with the new kernel. +# Troubleshooting + +You can use qemu to boot the image by running: + + qemu-system-x86 disk + +and you can also connect the VM to gdb for actual debugging. There's an included gdb script to get you started. diff --git a/bsect.asm b/bsect.asm index 470a08f..6055d61 100644 --- a/bsect.asm +++ b/bsect.asm @@ -1,4 +1,19 @@ -; minimalist Linux bootloader +; Tiny Linux Bootloader +; (c) 2014- Dr Gareth Owen (www.ghowen.me). All rights reserved. + +; This program is free software: you can redistribute it and/or modify +; it under the terms of the GNU General Public License as published by +; the Free Software Foundation, either version 3 of the License, or +; (at your option) any later version. +; +; This program is distributed in the hope that it will be useful, +; but WITHOUT ANY WARRANTY; without even the implied warranty of +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +; GNU General Public License for more details. +; +; You should have received a copy of the GNU General Public License +; along with this program. If not, see . + %define DEBUG %include "config.inc" diff --git a/build.sh b/build.sh index be915dd..b8948e2 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,19 @@ #!/bin/bash -e +# Tiny Linux Bootloader +# (c) 2014- Dr Gareth Owen (www.ghowen.me). All rights reserved. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . INPUT="bsect.asm" OUTPUT="disk" diff --git a/gdbscr b/gdbscr index 9a705d2..cbc69b7 100644 --- a/gdbscr +++ b/gdbscr @@ -1,3 +1,4 @@ + tar rem :1234 set disassembly-flavor intel set arch i8086