All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2)
Date: Thu, 24 Jan 2008 15:33:06 +0100	[thread overview]
Message-ID: <20080124143306.GB8248@thorin> (raw)
In-Reply-To: <fna6pi$jlr$1@ger.gmane.org>

On Thu, Jan 24, 2008 at 06:20:07AM -0800, walt wrote:
> >Do you want to work on a loader for BSD?  That would be the ideal
> >solution and a nice opportunity for you to learn :-)
> 
> Sure, but don't expect very much :o)  We know that grub legacy can
> boot NetBSD, so maybe I can get grub2 to do the same.  Debugging
> a free-standing program like grub is something I've never tried.
> How would you approach the problem if you were going to do it
> yourself?

I was afraid too, but if you're used to debugging normal programs it's not
so difficult.  GRUB is just like a big, single-threaded C program really.

I usually just turn on debugging output to grasp where things start to go
ill, and add lots printfs to figure out what lines of code are reached,
at which point a value is corrupted, etc.

When I reach a cpu fault, I tend to put a "while (1);" loop someplace and
start moving it forward till I find the last point where runtime is still
"sane".

Also, if you're familiar with an emulator that supports debugging (I think
both qemu and bochs do), you can use that (but without direct debugging symbol
support, of course).

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2008-01-24 14:35 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-19 17:01 UFS (FFS) support seems broken in grub2 jakllsch
2008-01-19 18:27 ` walt
2008-01-22 18:58   ` Bean
2008-01-22 20:04     ` Robert Millan
2008-01-23  9:02       ` Marco Gerards
2008-01-23 16:15     ` walt
2008-01-23 16:31       ` Bean
2008-01-23 19:21         ` Marco Gerards
2008-01-23 20:26           ` Bean
2008-01-23 22:49         ` walt
2008-01-23 23:53           ` Robert Millan
2008-01-24  1:21             ` walt
2008-01-24 12:30               ` booting *BSD kernels (Re: UFS (FFS) support seems broken in grub2) Robert Millan
2008-01-24  8:33           ` UFS (FFS) support seems broken in grub2 Marco Gerards
2008-01-24 14:20             ` walt
2008-01-24 14:33               ` Robert Millan [this message]
2008-01-24 14:53                 ` booting kernel of NetBSD (Re: UFS (FFS) support seems broken in grub2) Robert Millan
2008-01-24 16:47                   ` walt
2008-01-24 17:12                     ` Robert Millan
2008-01-26 15:01                       ` Bean
2008-01-26 17:24                         ` Robert Millan
2008-01-26 18:19                           ` walt
2008-01-26 18:24                             ` Bean
2008-01-26 18:31                               ` Bean
2008-01-26 19:57                               ` Robert Millan
2008-01-26 19:57                             ` Robert Millan
2008-01-26 21:24                         ` walt
2008-01-27  1:35                           ` Bean
2008-01-27 20:13                             ` walt
2008-01-27 20:25                               ` Bean
2008-01-28  1:54                                 ` walt
2008-01-28  8:52                                   ` Robert Millan
2008-01-28 10:02                                   ` Bean
2008-01-28 13:00                                     ` Marco Gerards
2008-01-28 13:02                                       ` Bean
2008-02-02 14:16                                         ` Bean
2008-01-27  8:53                           ` Robert Millan
2008-01-27 20:09                             ` walt
2008-01-27 22:11                               ` Robert Millan
2008-01-28  8:57                             ` Marco Gerards
2008-01-28 10:06                               ` Bean
2008-01-28 10:41                                 ` Robert Millan
2008-02-06 15:32                         ` Robert Millan
2008-02-06 16:03                           ` Bean
2008-01-24 18:16               ` UFS (FFS) support seems broken in grub2 Marco Gerards
2008-01-24 18:19                 ` Robert Millan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080124143306.GB8248@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.