linux-um archives
 help / color / mirror / Atom feed
From: Michael Richardson <mcr@sandelman.ottawa.on.ca>
To: Rob Landley <rob@landley.net>
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: Re: [uml-devel] How stable is hostfs (and UML in general)?
Date: Tue, 11 Jan 2005 16:34:24 -0500	[thread overview]
Message-ID: <11049.1105479264@marajade.sandelman.ottawa.on.ca> (raw)
In-Reply-To: Message from Rob Landley <rob@landley.net> of "Tue, 11 Jan 2005 01:35:55 EST." <200501110135.55716.rob@landley.net>

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


>>>>> "Rob" == Rob Landley <rob@landley.net> writes:
    Rob> Chapter 5 of current variants of LFS uses the host system to
    Rob> create a toolchain you can chroot into and build the final
    Rob> system with.  Then in chapter 6, you build the final system in

  I think the use of chroot is a cop-out.

    Rob> This requires root access (as does creating device nodes,
    Rob> mounting /proc or loopback devices...  A rather large number of

  I use "fakeroot" to do all of that for embedded work that I do...

all:
	mkdir -p ${ROOTDIR}
	fakeroot ${MAKE} EDTUDIR=${EDTUDIR} realall

realall:	
	echo Updating Symlinks
	@mkdir -p ${ROOTDIR}
	@mkdir -p ${ROOTDIR}/bin ${ROOTDIR}/sbin ${ROOTDIR}/etc ${ROOTDIR}/targa ${ROOTDIR}/dev
	...
	echo Updating Binaries
	(cd ${EDTUDIR} && ${MAKE} PREFIX=${PREFIX} ROOTDIR=${ROOTDIR} EDTUDIR=. install )
	${MKFSJFFS2} --squash --eraseblock=128 --root=${ROOTDIR} --output=jffs2/jffs2.image --cvs-exclude -x rtime --big-endian 


  Since the "mkfsjffs2" runs under the fakeroot as well, it gets all of
the permissions and dev nodes, etc.
  Works like a charm, once one remembers to install fakeroot.
  (This customer has all of their stuff on SuSE 9.1. I use Debian)

    Rob> The second reason to use UML is that I compile a new C library
    Rob> (uclibc), link applications against it, and then run those
    Rob> applications.  Even before the chroot, I'm running the new

  yes, it is good for testing.

  What I'm trying to get at, is that I strongly disagree with any
"embedded" system that requires that you build "on" it. 
  If you are trying to build GNOME 2.3 apps for RH 7.2... by ALL MEANS,
UML is the tool for you....

    Rob> difficult.  If you're not careful, you suck in libm or libgcc
    Rob> and bang, they link in glibc.  Even statically linking won't

  Yup. That's why I wouldn't want to run the build environment on the
"target"

    >> well, I run into this problem regularly whenever I do anything
    >> complicated. I don't build with swap by default, and I run out
    >> very quickly.

    Rob> *shrug*.  How much memory I need to build correctly is an
    Rob> interesting thing to find out later, but right now it won't
    Rob> compile hello world and 32 megs should be plenty for that.  (I
    Rob> can try mem=64M if you think that'll help.)

  dd if=/dev/zero bs=1024k count=64 of=MYSWAP
  ./linux ubd1=./MYSWAP

    Rob> The tee output of four consecutive runs is attached.  All I did
    Rob> each time was ctrl-c out of the hang, cursor up, change the
    >> You could hit ^C from a hang?

    Rob> /dev/console attaches to fd0 and fd1.  These are not ttys/ptys
    Rob> but file descriptors, hence they controlling tty sends the kill

  Well, usually, once the system is properly initialized, ^C does
nothing. If you get a kernel panic/hang, I usually have to use kill from
another window.

- -- 
]       ON HUMILITY: to err is human. To moo, bovine.           |  firewalls  [
]   Michael Richardson,    Xelerance Corporation, Ottawa, ON    |net architect[
] mcr@xelerance.com      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

iQCVAwUBQeRGXoqHRg3pndX9AQGUDQQA0dPnJzBz/5ifSpGjmaTcfNNNtYlugzUE
7m2hb0DXUb2kKgrrLrawXxckSh2NFLclgA2h29k8SQHFD1JWTl/AmPT52tmcIVhD
hW3YBqh+hm0wuuckBZ4B2vsoobLtfvMxTRROLs5OXaZvMjxg7fwLfdmDEM1g4S4E
fbcuI/S8FoM=
=5OC4
-----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

  parent reply	other threads:[~2005-01-11 21:34 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-09  2:06 [uml-devel] How stable is hostfs (and UML in general)? Rob Landley
2005-01-09  6:00 ` Frank Sorenson
2005-01-09 22:06   ` Rob Landley
2005-01-10  1:53     ` Henrik Nordstrom
2005-01-10  6:34       ` Rob Landley
2005-01-10 13:47         ` Blaisorblade
2005-01-10 17:08         ` Nix
2005-01-10 14:43     ` Blaisorblade
2005-01-11  6:10       ` Rob Landley
2005-01-10  0:05 ` Michael Richardson
2005-01-10  6:20   ` Rob Landley
2005-01-10  6:41     ` Rob Landley
2005-01-10  8:48     ` Henrik Nordstrom
2005-01-11  5:58       ` Rob Landley
2005-01-10 15:21     ` Michael Richardson
2005-01-11  6:35       ` Rob Landley
2005-01-11 11:27         ` Henrik Nordstrom
2005-01-11 21:34         ` Michael Richardson [this message]
2005-01-11 23:23           ` Blaisorblade
2005-01-12 16:55             ` Michael Richardson
2005-01-12 17:09               ` Blaisorblade

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=11049.1105479264@marajade.sandelman.ottawa.on.ca \
    --to=mcr@sandelman.ottawa.on.ca \
    --cc=rob@landley.net \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox