[ecc9d0dd] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-temp-system-choose">
|
---|
| 9 | <?dbhtml filename="choose.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>To Boot or to Chroot?</title>
|
---|
| 12 |
|
---|
| 13 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 14 | href="../common/choose.xml"
|
---|
| 15 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 16 |
|
---|
| 17 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 18 | href="../common/choose.xml"
|
---|
| 19 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 20 |
|
---|
| 21 | <para>Powerpc64 is slightly different from some of the other
|
---|
| 22 | architectures, because a 64-bit kernel running 32-bit userspace can
|
---|
| 23 | successfully chroot and execute 64-bit programs. However, if the
|
---|
| 24 | kernel personality has been set to 32-bit by a utility such as
|
---|
| 25 | linux32, it will eventually fail when glibc thinks it is building
|
---|
| 26 | on a 32-bit system and tries to include incompatible assembler code
|
---|
| 27 | in the 64-bit glibc.</para>
|
---|
| 28 |
|
---|
| 29 | <para>To see if you can successfully chroot to build the final powerpc64
|
---|
| 30 | system, enter the following command which tests if you are running a
|
---|
| 31 | 64-bit Linux 2.6 kernel (with a 64-bit personality):</para>
|
---|
| 32 |
|
---|
| 33 | <screen><userinput>uname -a | grep '^Linux.*2\.6\..*ppc64' && echo "ok to chroot" || echo "you must boot"</userinput></screen>
|
---|
| 34 |
|
---|
| 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 36 | href="../common/choose.xml"
|
---|
| 37 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 38 |
|
---|
| 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 40 | href="../common/choose.xml"
|
---|
| 41 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 42 |
|
---|
| 43 | </sect1>
|
---|