public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2009-03-09 17:48 Alexey Shvetsov (alexxy)
  0 siblings, 0 replies; 8+ messages in thread
From: Alexey Shvetsov (alexxy) @ 2009-03-09 17:48 UTC (permalink / raw
  To: gentoo-commits

alexxy      09/03/09 17:48:53

  Added:                cross-qemu.xml
  Log:
  Add STUB for cross-qemu

Revision  Changes    Path
1.1                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.1&content-type=text/plain

Index: cross-qemu.xml
===================================================================
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE sections SYSTEM "/dtd/book.dtd">

<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.1 2009/03/09 17:48:53 alexxy Exp $ -->

<sections>

<abstract>
How To compile with QEMU user.
</abstract>

<version>0.1</version>
<date>2009-03-09</date>

<section>
<title>Usage</title>
<body>
<p>
</p>
</body>
</section>

</sections>






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2010-02-14 23:21 Ned Ludd (solar)
  0 siblings, 0 replies; 8+ messages in thread
From: Ned Ludd (solar) @ 2010-02-14 23:21 UTC (permalink / raw
  To: gentoo-commits

solar       10/02/14 23:21:49

  Modified:             cross-qemu.xml
  Log:
  Add initial handbook entry for cross arch qemu-user use

Revision  Changes    Path
1.2                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.1&r2=1.2

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- cross-qemu.xml	9 Mar 2009 17:48:53 -0000	1.1
+++ cross-qemu.xml	14 Feb 2010 23:21:48 -0000	1.2
@@ -1,7 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.1 2009/03/09 17:48:53 alexxy Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.2 2010/02/14 23:21:48 solar Exp $ -->
 
 <sections>
 
@@ -9,15 +8,102 @@
 How To compile with QEMU user.
 </abstract>
 
-<version>0.1</version>
-<date>2009-03-09</date>
+<version>0.2</version>
+<date>2010-02-14</date>
 
 <section>
 <title>Usage</title>
 <body>
+
+<p>
+In order to take advantage of qemu-user mode we need to do a few things. First
+we need to merge the main package we are going to need. Note the use of the
+<c>static</c> use flag.
+</p>
+
+<pre caption="Installing qemu-user">
+# <i>USE=static emerge -b1 app-emulation/qemu-user</i>
+</pre>
+
 <p>
+Next we need to build the kernel module <c>binfmt_misc</c>.
+Add this to your kernel <path>.config</path>:
+<c>CONFIG_BINFMT_MISC=m</c> or <c>CONFIG_BINFMT_MISC=y</c>.
+If this module not built already, then the devel host will require a reboot
+after the kernel update and modules_install.
 </p>
+
+<p>
+Mount the <c>binfmt_misc</c> handler if it's not already, then we need to
+register our format with the kernel. 
+</p>
+
+<pre caption="binfmt_misc">
+# <i>[ -d /proc/sys/fs/binfmt_misc ] || modprobe binfmt_misc</i>
+# <i>[ -f /proc/sys/fs/binfmt_misc/register ] || mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc</i>
+<comment>(Do not register a handler that matches the host machine)</comment>
+# <i>echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/</i>qemu-wrapper<i>:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-ppc:' > /proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':sh4:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-sh4:' >/proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':sh4eb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x2a:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sh4eb:' >/proc/sys/fs/binfmt_misc/register</i>
+# <i>echo ':sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-sparc:' > /proc/sys/fs/binfmt_misc/register</i>
+
+</pre>
+
+<pre caption="Enter/Exit the chroot">
+<comment>(Download your desired stage tarball)</comment>
+# <i>wget http://arch-stageball</i>
+<comment>(Unpack the tarball)</comment>
+# <i>tar -xzvf arch-stageball</i>
+# <i>cd arch-stageball</i>
+<comment>(Install the static qemu-user into the chroot)</comment>
+# <i>ROOT=$PWD/ emerge -K qemu-user</i>
+# <i>mkdir -p usr/portage</i>
+<comment>(Mount the required directories)</comment>
+# <i>mount --bind /usr/portage usr/portage</i>
+# <i>mount --bind /proc proc</i>
+# <i>mount --bind /sys sys</i>
+<comment>(Chroot into the environment)</comment>
+# <i>chroot . /bin/busybox mdev -s</i>
+# <i>chroot . /bin/bash --login</i>
+<comment>(Unmount stuff when not in use)</comment>
+# <i>umount usr/portage</i>
+# <i>umount sys</i>
+# <i>umount proc</i>
+</pre>
+
+<p>
+Sometimes we'll need to pass additional args to QEMU (cpu model), so we'll
+create a wrapper script that'll call QEMU with it.
+</p>
+
+<pre caption="qemu-wrapper">
+#include &lt;stdio.h&gt;
+#include &lt;unistd.h&gt;
+
+int main(int argc, char **argv, char **envp) {
+	char *newargv[argc + 3];
+
+	newargv[0] = argv[0];    
+	newargv[1] = "-cpu";
+	newargv[2] = "<i>cortex-a8</i>";
+   
+	memcpy(&amp;newargv[3], &amp;argv[1], sizeof(*argv) * (argc - 1));    
+	newargv[argc + 2] = NULL;
+	return execve("<i>/usr/bin/qemu-arm</i>", newargv, envp);
+}
+</pre>
+
+<p>
+Compile the wrapper with <c>gcc -static qemu-wrapper.c -o qemu-wrapper</c> and
+copy into the chroot. Notice the first example arm entry in the
+<c>binfmt_misc</c> section uses this method.
+</p>
+
 </body>
 </section>
-
 </sections>






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2010-02-14 23:56 Ned Ludd (solar)
  0 siblings, 0 replies; 8+ messages in thread
From: Ned Ludd (solar) @ 2010-02-14 23:56 UTC (permalink / raw
  To: gentoo-commits

solar       10/02/14 23:56:33

  Modified:             cross-qemu.xml
  Log:
  wording

Revision  Changes    Path
1.3                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.2&r2=1.3

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- cross-qemu.xml	14 Feb 2010 23:21:48 -0000	1.2
+++ cross-qemu.xml	14 Feb 2010 23:56:33 -0000	1.3
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.2 2010/02/14 23:21:48 solar Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.3 2010/02/14 23:56:33 solar Exp $ -->
 
 <sections>
 
@@ -29,13 +29,13 @@
 Next we need to build the kernel module <c>binfmt_misc</c>.
 Add this to your kernel <path>.config</path>:
 <c>CONFIG_BINFMT_MISC=m</c> or <c>CONFIG_BINFMT_MISC=y</c>.
-If this module not built already, then the devel host will require a reboot
-after the kernel update and modules_install.
+If this module is not built already, then the devel host will require a 
+reboot after the kernel update and modules_install.
 </p>
 
 <p>
 Mount the <c>binfmt_misc</c> handler if it's not already, then we need to
-register our format with the kernel. 
+register our format with the kernel via the procfs. 
 </p>
 
 <pre caption="binfmt_misc">






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2012-05-11  7:42 Mike Frysinger (vapier)
  0 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger (vapier) @ 2012-05-11  7:42 UTC (permalink / raw
  To: gentoo-commits

vapier      12/05/11 07:42:53

  Modified:             cross-qemu.xml
  Log:
  include string.h for memcpy() #415211 by Vladimir

Revision  Changes    Path
1.5                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.5&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.5&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.4&r2=1.5

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- cross-qemu.xml	30 Aug 2010 03:59:07 -0000	1.4
+++ cross-qemu.xml	11 May 2012 07:42:52 -0000	1.5
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.4 2010/08/30 03:59:07 nightmorph Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.5 2012/05/11 07:42:52 vapier Exp $ -->
 
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
@@ -11,8 +11,8 @@
 How To compile with QEMU user.
 </abstract>
 
-<version>0.2</version>
-<date>2010-02-14</date>
+<version>0.3</version>
+<date>2012-05-11</date>
 
 <section>
 <title>Usage</title>
@@ -85,25 +85,25 @@
 </p>
 
 <pre caption="qemu-wrapper">
-#include &lt;stdio.h&gt;
+#include &lt;string.h&gt;
 #include &lt;unistd.h&gt;
 
 int main(int argc, char **argv, char **envp) {
 	char *newargv[argc + 3];
 
-	newargv[0] = argv[0];    
+	newargv[0] = argv[0];
 	newargv[1] = "-cpu";
 	newargv[2] = "<i>cortex-a8</i>";
-   
-	memcpy(&amp;newargv[3], &amp;argv[1], sizeof(*argv) * (argc - 1));    
+
+	memcpy(&amp;newargv[3], &amp;argv[1], sizeof(*argv) * (argc - 1));
 	newargv[argc + 2] = NULL;
 	return execve("<i>/usr/bin/qemu-arm</i>", newargv, envp);
 }
 </pre>
 
 <p>
-Compile the wrapper with <c>gcc -static qemu-wrapper.c -o qemu-wrapper</c> and
-copy into the chroot. Notice the first example arm entry in the
+Compile the wrapper with <c>gcc -static qemu-wrapper.c -O3 -s -o qemu-wrapper</c>
+and copy into the chroot. Notice the first example arm entry in the
 <c>binfmt_misc</c> section uses this method.
 </p>
 






^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2013-12-06 18:49 Raul Porcel (armin76)
  0 siblings, 0 replies; 8+ messages in thread
From: Raul Porcel (armin76) @ 2013-12-06 18:49 UTC (permalink / raw
  To: gentoo-commits

armin76     13/12/06 18:49:32

  Modified:             cross-qemu.xml
  Log:
  Add aarch64

Revision  Changes    Path
1.6                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.6&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.6&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.5&r2=1.6

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- cross-qemu.xml	11 May 2012 07:42:52 -0000	1.5
+++ cross-qemu.xml	6 Dec 2013 18:49:32 -0000	1.6
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.5 2012/05/11 07:42:52 vapier Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.6 2013/12/06 18:49:32 armin76 Exp $ -->
 
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
@@ -11,8 +11,8 @@
 How To compile with QEMU user.
 </abstract>
 
-<version>0.3</version>
-<date>2012-05-11</date>
+<version>0.4</version>
+<date>2013-13-06</date>
 
 <section>
 <title>Usage</title>
@@ -45,6 +45,7 @@
 # <i>[ -d /proc/sys/fs/binfmt_misc ] || modprobe binfmt_misc</i>
 # <i>[ -f /proc/sys/fs/binfmt_misc/register ] || mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc</i>
 <comment>(Do not register a handler that matches the host machine)</comment>
+# <i>echo ':aarch64:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-aarch64:' > /proc/sys/fs/binfmt_misc/register</i>
 # <i>echo ':arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/</i>qemu-wrapper<i>:' > /proc/sys/fs/binfmt_misc/register</i>
 # <i>echo ':armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb:' > /proc/sys/fs/binfmt_misc/register</i>
 # <i>echo ':alpha:M::\x7fELF\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x26\x90:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-alpha:' > /proc/sys/fs/binfmt_misc/register</i>





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2013-12-11  7:18 Mike Frysinger (vapier)
  0 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger (vapier) @ 2013-12-11  7:18 UTC (permalink / raw
  To: gentoo-commits

vapier      13/12/11 07:18:38

  Modified:             cross-qemu.xml
  Log:
  tell people to bind mount /dev and /dev/pts too #407099 by David M

Revision  Changes    Path
1.8                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.8&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.8&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.7&r2=1.8

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- cross-qemu.xml	11 Dec 2013 07:16:48 -0000	1.7
+++ cross-qemu.xml	11 Dec 2013 07:18:38 -0000	1.8
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.7 2013/12/11 07:16:48 vapier Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.8 2013/12/11 07:18:38 vapier Exp $ -->
 
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
@@ -82,13 +82,13 @@
 # <i>mount --bind /usr/portage usr/portage</i>
 # <i>mount --bind /proc proc</i>
 # <i>mount --bind /sys sys</i>
+# <i>mount --bind /dev dev</i>
+# <i>mount --bind /dev/pts dev/pts</i>
 <comment>(Chroot into the environment)</comment>
 # <i>chroot . /bin/busybox mdev -s</i>
 # <i>chroot . /bin/bash --login</i>
 <comment>(Unmount stuff when not in use)</comment>
-# <i>umount usr/portage</i>
-# <i>umount sys</i>
-# <i>umount proc</i>
+# <i>umount usr/portage sys proc dev/pts dev</i>
 </pre>
 
 <p>





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2014-06-14 23:19 Mike Frysinger (vapier)
  0 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger (vapier) @ 2014-06-14 23:19 UTC (permalink / raw
  To: gentoo-commits

vapier      14/06/14 23:19:13

  Modified:             cross-qemu.xml
  Log:
  just recommend USE=static-user when building qemu as most people do not need the system progs to be static

Revision  Changes    Path
1.9                  xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.9&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.9&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.8&r2=1.9

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- cross-qemu.xml	11 Dec 2013 07:18:38 -0000	1.8
+++ cross-qemu.xml	14 Jun 2014 23:19:13 -0000	1.9
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.8 2013/12/11 07:18:38 vapier Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.9 2014/06/14 23:19:13 vapier Exp $ -->
 
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
@@ -11,8 +11,8 @@
 How To compile with QEMU user.
 </abstract>
 
-<version>0.5</version>
-<date>11 Dec 2013</date>
+<version>0.6</version>
+<date>14 Jun 2014</date>
 
 <section>
 <title>Usage</title>
@@ -21,13 +21,13 @@
 <p>
 In order to take advantage of QEMU user mode we need to do a few things. First
 we need to merge the QEMU package with the right settings. That means building
-it with USE=static and setting QEMU_USER_TARGETS to include the targets we want
-to utilize.
+it with USE=static-user and setting QEMU_USER_TARGETS to include the targets we
+want to utilize.
 </p>
 
 <pre caption="Building QEMU">
 <comment>See the portage(5) man page for other ways of doing this.</comment>
-# <i>echo app-emulation/qemu static &gt; /etc/portage/package.use</i>
+# <i>echo app-emulation/qemu static-user &gt; /etc/portage/package.use</i>
 
 <comment>Tweak the list here to include the target(s) you care about.
 See the `emerge -pv qemu` output for the full list.
@@ -75,8 +75,8 @@
 <comment>(Unpack the tarball)</comment>
 # <i>tar -xzvf arch-stageball</i>
 # <i>cd arch-stageball</i>
-<comment>(Install the static qemu user into the chroot)</comment>
-# <i>ROOT=$PWD/ emerge -K qemu user</i>
+<comment>(Install the static qemu into the chroot)</comment>
+# <i>ROOT=$PWD/ emerge -K qemu</i>
 # <i>mkdir -p usr/portage</i>
 <comment>(Mount the required directories)</comment>
 # <i>mount --bind /usr/portage usr/portage</i>





^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml
@ 2014-06-15  5:55 Mike Frysinger (vapier)
  0 siblings, 0 replies; 8+ messages in thread
From: Mike Frysinger (vapier) @ 2014-06-15  5:55 UTC (permalink / raw
  To: gentoo-commits

vapier      14/06/15 05:55:24

  Modified:             cross-qemu.xml
  Log:
  append package.use rather than clobber

Revision  Changes    Path
1.10                 xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml

file : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.10&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?rev=1.10&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml?r1=1.9&r2=1.10

Index: cross-qemu.xml
===================================================================
RCS file: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- cross-qemu.xml	14 Jun 2014 23:19:13 -0000	1.9
+++ cross-qemu.xml	15 Jun 2014 05:55:24 -0000	1.10
@@ -1,6 +1,6 @@
 <?xml version='1.0' encoding='UTF-8'?>
 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.9 2014/06/14 23:19:13 vapier Exp $ -->
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/proj/en/base/embedded/handbook/cross-qemu.xml,v 1.10 2014/06/15 05:55:24 vapier Exp $ -->
 
 <!-- The content of this document is licensed under the CC-BY-SA license -->
 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
@@ -27,7 +27,7 @@
 
 <pre caption="Building QEMU">
 <comment>See the portage(5) man page for other ways of doing this.</comment>
-# <i>echo app-emulation/qemu static-user &gt; /etc/portage/package.use</i>
+# <i>echo app-emulation/qemu static-user &gt;&gt; /etc/portage/package.use</i>
 
 <comment>Tweak the list here to include the target(s) you care about.
 See the `emerge -pv qemu` output for the full list.





^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2014-06-15  5:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-14 23:19 [gentoo-commits] gentoo commit in xml/htdocs/proj/en/base/embedded/handbook: cross-qemu.xml Mike Frysinger (vapier)
  -- strict thread matches above, loose matches on Subject: below --
2014-06-15  5:55 Mike Frysinger (vapier)
2013-12-11  7:18 Mike Frysinger (vapier)
2013-12-06 18:49 Raul Porcel (armin76)
2012-05-11  7:42 Mike Frysinger (vapier)
2010-02-14 23:56 Ned Ludd (solar)
2010-02-14 23:21 Ned Ludd (solar)
2009-03-09 17:48 Alexey Shvetsov (alexxy)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox