My test case now works!! with init=/bin/sh

I can now do ls and get a working listing!

Now to run up the standard init.

> Again, not needed. With FC4 guests, it may be useful to do this:
> ./linux <params...> LD_LIBRARY_PATH=/lib/obsolete/linuxthreads

It is very useful.

Ah - can't find the modules.dep. I need to install them into the image.....

The magic piece was from this post:

----- Original Message ----- 
From: "Blaisorblade" <[EMAIL PROTECTED]>
To: <user-mode-linux-user@lists.sourceforge.net>
Cc: "Alexei Potashnik" <[EMAIL PROTECTED]>
Sent: Thursday, August 04, 2005 4:21 AM
Subject: Re: [uml-user] host/guest setup to debug with frame pointers


> On Tuesday 02 August 2005 03:07, Alexei Potashnik wrote:
> > Could somebody, please, recommend a stable combination of
> > the host/guest that was successfully debugged with gdb.
> >
> > I've looked through blaisorblade's site that this mailing list archive
> > and tried the following combinations:
> >
> > 1. First of all it seems that CONFIG_FRAME_POINTER became
> > supported for UML starting with 2.6.11. So I tried 2.6.11+bs4
> > and 2.6.12+bs9
> It just seems. Actually, at that point it was only separated from
DEBUG_INFO;
> before, any kernel built with debugging info had frame pointers enabled
> (which is reasonable).
>
> I changed that because I wanted to build kernel without debug info but
with
> frame pointers (that is very useful for getting correct stack traces from
the
> kernel, for instance on panics or Oopses).
> > 2. For the guest file system, I used fc3 image from
> > http://www.stearns.org/uml-root/
> > Also, I moved /usr/lib/tls to /usr/lib/tls.away inside the image.
> The important one is /lib/tls to /lib/tls.away...
> > 3. For the host, I've tried FC3, FC4 and FC4 with latest updates.
> > Usually I run smp image, but I've tried single-processor versions
> > as well.
> That shouldn't matter.
> > On FC3 I've also tried renaming /lib/tls and /usr/lib/tls.
> For the host, this shouldn't be needed.
> > On FC4 I tried running guest with
> > LD_LIBRARY_PATH=/lib/obsolete/linuxthreads
> Again, not needed. With FC4 guests, it may be useful to do this:
> ./linux <params...> LD_LIBRARY_PATH=/lib/obsolete/linuxthreads
>
> so that the env. var is seen *inside* UML, since there you cannot do
> "mv /lib/tls /lib/tls.away".
> > 4. I used 6.1 gdb on FC3 and 6.1.1, 6.2.1 and 6.3 gdb on FC4
> > (6.3 is really bad... crashes as soon as you try to do list).
> > I'm able to debug 2.4.27 guest on RH9, but there is not frame pointers
> > in 2.4.27 UML. That is my goal. So any suggestions on getting host/guest
> > setup for debugging guest with frame pointer will be greatly
appreciated.
> Think a 2.6 guest would work as well on RH9 - the only problem is newer
GDB
> releases, as explained by Jeff. But again, even 2.4 kernels *has* frame
> pointers (just verified - even if it's not enabled inside .config, but
just
> from arch/um/Makefile).
>
> Debugging in SKAS (SKAS0 or SKAS3) mode works much better...
> -- 
> Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!".
> Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ
215621894)
> http://www.user-mode-linux.org/~blaisorblade
>
>
> ___________________________________
> Yahoo! Mail -  proteggi la tua casella di posta da virus
> e posta indesiderata
> http://mail.yahoo.it
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
> _______________________________________________
> User-mode-linux-user mailing list
> User-mode-linux-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
User-mode-linux-user mailing list
User-mode-linux-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to