Changeset 7160772


Ignore:
Timestamp:
03/08/2023 12:03:55 PM (14 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64, xry111/arm64-12.0
Children:
70f30e9
Parents:
95105f3 (diff), 835e40c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/arm64

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter02/hostreqs.xml

    r95105f3 r7160772  
    105105      compiling the kernel and configuring the boot loader (assuming the host
    106106      uses GRUB) are located in <xref linkend="chapter-bootable"/>.</para>
     107
     108      <para>We require the host kernel to support UNIX 98 pseudo terminal
     109      (PTY).  It should be enabled on all desktop or server distros shipping
     110      Linux &min-kernel; or a newer kernel. If you are building a custom
     111      host kernel, ensure <option>CONFIG_UNIX98_PTYS</option> is set to
     112      <literal>y</literal> in the kernel configuration.</para>
    107113
    108114    </listitem>
     
    231237ver_kernel &min-kernel;
    232238
     239if mount | grep -q 'devpts on /dev/pts' &amp;&amp; [ -e /dev/ptmx ]
     240then echo "OK:    Linux Kernel supports UNIX 98 PTY";
     241else echo "ERROR: Linux Kernel does NOT support UNIX 98 PTY"; fi
     242
    233243alias_check() {
    234244   if $1 --version 2>&amp;1 | grep -qi $2
  • chapter08/binutils.xml

    r95105f3 r7160772  
    4242    <title>Installation of Binutils</title>
    4343
    44     <para>Verify that the PTYs are working properly inside the chroot
    45     environment by performing a simple test:</para>
    46 
    47 <screen><userinput remap="test">expect -c "spawn ls"</userinput></screen>
    48 
    49     <para>This command should output the following:</para>
    50 
    51 <screen><computeroutput>spawn ls</computeroutput></screen>
    52 
    53     <para>If, instead, the output includes the message below, then the environment
    54     is not set up for proper PTY operation.  This issue needs to be resolved before
    55     running the test suites for Binutils and GCC:</para>
    56 
    57 <screen><computeroutput>The system has no more ptys.
    58 Ask your system administrator to create more.</computeroutput></screen>
    59 <!-- Fixed in binutils-2.39
    60     <para>
    61       Now make a fix identified upstream that affects building some packages:
    62      </para>
    63 
    64 <screen><userinput remap="pre">sed -e '/R_386_TLS_LE /i \   || (TYPE) == R_386_TLS_IE \\' \
    65     -i ./bfd/elfxx-x86.h</userinput></screen>
    66 -->
    6744    <para>The Binutils documentation recommends building Binutils
    6845    in a dedicated build directory:</para>
  • chapter08/expect.xml

    r95105f3 r7160772  
    8989<screen><userinput remap="make">make</userinput></screen>
    9090
     91    <important>
     92      <para>The test suite for Expect is considered critical.
     93      Do not skip it under any circumstances.</para>
     94    </important>
     95
    9196    <para>To test the results, issue:</para>
    9297
    9398<screen><userinput remap="test">make test</userinput></screen>
     99
     100    <para>If any test fails with the message
     101    <quote><computeroutput>The system has no more ptys.  Ask your system
     102    administrator to create more</computeroutput></quote>, it indicates
     103    you've not mounted the
     104    <systemitem class="filesystem">devpts</systemitem> file system
     105    correctly.  You need to exit from the chroot environment, read
     106    <xref linkend='ch-tools-kernfs'/> again, and ensure the
     107    <systemitem class="filesystem">devpts</systemitem> file system (and
     108    other virtual kernel file systems) mounted correctly.  Then reenter
     109    the chroot environment following <xref linkend='ch-tools-chroot'/>.
     110    This issue needs to be resolved before continuing.</para>
    94111
    95112    <para>Install the package:</para>
  • chapter10/kernel.xml

    r95105f3 r7160772  
    112112   [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    113113   &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
     114   [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    114115General architecture-dependent options  ---&gt;
    115116   [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR]
     
    141142      [*] Memory controller [CONFIG_MEMCG]
    142143   [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]
    143    [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt;
    144       [*] open by fhandle syscalls [CONFIG_FHANDLE]
     144   [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    145145General architecture-dependent options  ---&gt;
    146146   [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]
     
    228228
    229229      <varlistentry>
     230        <term>
     231          <parameter>
     232            Configure standard kernel features (expert users)
     233          </parameter>
     234        </term>
     235        <listitem>
     236          <para>This will make some options show up in the configuration
     237          interface but changing those options may be dangerous.  Do not use
     238          this unless you know what you are doing.</para>
     239        </listitem>
     240      </varlistentry>
     241
     242      <varlistentry>
    230243        <term><parameter>Strong Stack Protector</parameter></term>
    231244        <listitem>
Note: See TracChangeset for help on using the changeset viewer.