-----BEGIN PGP SIGNED MESSAGE-----

>>>>> "Rob" == Rob Landley <[EMAIL PROTECTED]> writes:
    Rob> I want to use UML because I'm building a little uclibc-based
    Rob> distro that has a problem when the system it's building on has
    Rob> a kernel older than the one it's building.  I'm testing the

  I think you have a serious problem to begin with.

  Probably, you aren't building with the cross-compile headers, but
rather with the host's headers, and maybe you are using the kernel
headers rather than the uClibc headers.
  When building for a different libc, you'd be best to pretend that you
are in fact building for a different CPU. I.e. build a whole
cross-compile environment.

    Rob> Under the UML built from stock 2.6.9 sources, after some
    Rob> tweaking I got it to sort of boot and give me a shell prompt
    Rob> about 1/3 of the time (the other 2/3 of the time it paniced
    Rob> during boot due to various race conditions, but trying it
    Rob> several times in a row usually got me to the shell prompt).  I
    Rob> couldn't figure out any way to make it start with a readable
    Rob> hostfs by default, but "mount -o remount,rw / /" once it was up
    Rob> seemed to do the trick, and I can put that in an init script no
    Rob> problem.  (And yes it worked: I could create files and have
    Rob> them show up in the host system.)
  
  I use hostfs root all the time.
  I have no such problems.

    Rob> But when trying to compile "hello world", gcc died saying it
    Rob> couldn't find ld.  This exact filesystem worked fine chrooting
    Rob> into it on the host kernel, a knoppix system running 2.6.7.
  
  Well, was ld actually there? 

    Rob> mconsole (version 2) initialized on
    Rob> /home/knoppix/.uml/WGIHE3/mconsole audit: initializing netlink
    Rob> socket (disabled) audit(300.210:0): initialized Initializing
    Rob> Cryptographic API Kernel panic - not syncing: fix_range fixing
    Rob> wrong address space, current = 0xa0cb90a0

  It sounds like your builds are really what is broken, not the root
file system.

    Rob> cables and virtual hubs and it doesn't apply to me.  I'm trying
    Rob> for a VERY simple setup: my UML doesn't need more networking
    Rob> than loopback, doesn't need swap, doesn't need module

  Yes, it does need swap if you intend to run gcc.

  I suggest that you might want to try the UML image system in the
Openswan builds. It generates everything you need. It has been used with
2.6.9+ guests, on 2.4 and 2.6 hosts.

- -- 
]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson,    Xelerance Corporation, Ottawa, ON    |net architect[
] [EMAIL PROTECTED]      http://www.sandelman.ottawa.on.ca/mcr/ |device driver[
] panic("Just another Debian GNU/Linux using, kernel hacking, security guy"); [
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Finger me for keys

iQCVAwUBQeHGxYqHRg3pndX9AQHxbwQAkZEnFOz0z4xxSB4XLVl6XXKJAk/vw4/w
48HCyCv/guKdwmZcwCYd3MFVyMood8aNSjlzfpETSjYvGTKqGR/cqJEn+4Urtara
NX2N7kcN3DYPs3yW1g5QZ/kWoTQc/+sTV3BOC4mw2vGRga2W0VTRblCShnuvV/N2
v/szXnInqK4=
=O7w2
-----END PGP SIGNATURE-----


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

Reply via email to