Changeset 2df066c9 for chapter10


Ignore:
Timestamp:
09/15/2023 10:54:55 AM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
7546d8b
Parents:
d58da4b (diff), ba40e32 (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/clfs-ng

Location:
chapter10
Files:
15 added
3 edited

Legend:

Unmodified
Added
Removed
  • chapter10/fstab.xml

    rd58da4b r2df066c9  
    2323<literal># Begin /etc/fstab
    2424
    25 # file system  mount-point  type     options             dump  fsck
    26 #                                                              order
     25# file system  mount-point    type     options             dump  fsck
     26#                                                                order
    2727
    28 /dev/<replaceable>sda</replaceable>3      /            ext4     defaults            1     1
    29 /dev/<replaceable>sda</replaceable>2      /boot        ext4     defaults            0     2
    30 proc           /proc        proc     nosuid,noexec,nodev 0     0
    31 sysfs          /sys         sysfs    nosuid,noexec,nodev 0     0
    32 devpts         /dev/pts     devpts   gid=5,mode=620      0     0
    33 tmpfs          /run         tmpfs    defaults            0     0
    34 devtmpfs       /dev         devtmpfs mode=0755,nosuid    0     0
    35 tmpfs          /dev/shm     tmpfs    nosuid,nodev        0     0
     28/dev/<replaceable>sda</replaceable>2      /              <replaceable>&lt;fff&gt;</replaceable>    defaults            1     1
     29/dev/<replaceable>sda</replaceable>3      swap           swap     pri=1               0     0
     30proc           /proc          proc     nosuid,noexec,nodev 0     0
     31sysfs          /sys           sysfs    nosuid,noexec,nodev 0     0
     32devpts         /dev/pts       devpts   gid=5,mode=620      0     0
     33tmpfs          /run           tmpfs    defaults            0     0
     34devtmpfs       /dev           devtmpfs mode=0755,nosuid    0     0
     35tmpfs          /dev/shm       tmpfs    nosuid,nodev        0     0
     36cgroup2        /sys/fs/cgroup cgroup2  nosuid,noexec,nodev 0     0
    3637
    3738# End /etc/fstab</literal>
  • chapter10/grub.xml

    rd58da4b r2df066c9  
    2020    <para>
    2121      If your system has UEFI support and you wish to boot LFS with UEFI,
    22       you should skip this page, and configure GRUB with UEFI support
    23       using the instructions provided in
     22      you should skip the instructions in this page but still learn the
     23      syntax of <filename>grub.cfg</filename> and the method to specify
     24      a partition in the file from this page, and configure GRUB with UEFI
     25      support using the instructions provided in
    2426      <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>.
    2527    </para>
     
    127129set timeout=5
    128130
     131insmod part_gpt
    129132insmod ext2
    130133set root=(hd0,2)
     
    134137}</literal>
    135138EOF</userinput></screen>
     139
     140    <para>
     141      The <command>insmod</command> commands load the
     142      <application>GRUB</application> modules named
     143      <filename>part_gpt</filename> and <filename>ext2</filename>.
     144      Despite the naming, <filename>ext2</filename> actually supports
     145      <systemitem class='filesystem'>ext2</systemitem>,
     146      <systemitem class='filesystem'>ext3</systemitem>, and
     147      <systemitem class='filesystem'>ext4</systemitem> filesystems.
     148      The <command>grub-install</command> command has embedded some modules
     149      into the main <application>GRUB</application> image (installed into
     150      the MBR or the GRUB BIOS partition) to access the other modules
     151      (in <filename class='directory'>/boot/grub/i386-pc</filename>) without
     152      a chicken-or-egg issue, so with a typical configuration these two
     153      modules are already embedded and those two <command>insmod</command>
     154      commands will do nothing.  But they do no harm anyway, and they may
     155      be needed with some rare configurations.
     156    </para>
    136157
    137158    <note><para>From <application>GRUB</application>'s perspective, the
  • chapter10/kernel.xml

    rd58da4b r2df066c9  
    123123
    124124    <note>
     125      <?dbfo keep-together="auto"?>
    125126      <para>A good starting place for setting up the kernel configuration is to
    126127      run <command>make defconfig</command>. This will set the base
     
    131132      not work correctly or boot at all:</para>
    132133
    133       <screen role="nodump" revision="sysv">Processor type and features ---&gt;
    134    [*] Build a relocatable kernel [CONFIG_RELOCATABLE]
    135    [*]   Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE]
    136 General setup ---&gt;
    137    [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    138    &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
    139    [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    140 General architecture-dependent options  ---&gt;
    141    [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR]
    142    [*]   Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG]
    143 Device Drivers  ---&gt;
    144   Graphics support ---&gt;
    145    Frame buffer Devices ---&gt;
    146       &lt;*&gt; Support for frame buffer devices ---&gt;
    147    Console display driver support ---&gt;
    148       [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE]
    149   Generic Driver Options  ---&gt;
    150    [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
    151    [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
    152    [*]   Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]</screen>
    153 
    154       <screen role="nodump" revision="systemd">Processor type and features ---&gt;
    155    [*] Build a relocatable kernel [CONFIG_RELOCATABLE]
    156    [*]   Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE]
    157 General setup ---&gt;
    158    [ ] Compile the kernel with warnings as errors [CONFIG_WERROR]
    159    [ ] Auditing Support [CONFIG_AUDIT]
    160    CPU/Task time and stats accounting ---&gt;
    161       [*] Pressure stall information tracking [CONFIG_PSI]
    162       [ ]   Require boot parameter to enable pressure stall information tracking [CONFIG_PSI_DEFAULT_DISABLED]
    163    &lt; &gt; Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS]
    164    [*] Control Group support [CONFIG_CGROUPS]   ---&gt;
    165       [*] Memory controller [CONFIG_MEMCG]
    166    [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT]
    167 General architecture-dependent options  ---&gt;
    168    [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]
    169    [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR]
    170    [*]   Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG]
    171 [*] Networking support  ---&gt;   [CONFIG_NET]
    172    Networking options  ---&gt;
    173       [*] TCP/IP networking [CONFIG_INET]
    174       &lt;*&gt;   The IPv6 protocol [CONFIG_IPV6]
    175 Device Drivers  ---&gt;
    176    Generic Driver Options  ---&gt;
    177       [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]
    178       [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]
    179       [*]   Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]
    180       Firmware Loader ---&gt;
    181          [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]
    182    Firmware Drivers   ---&gt;
    183       [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
    184    Graphics support ---&gt;
    185       Frame buffer Devices ---&gt;
    186          &lt;*&gt; Support for frame buffer devices ---&gt;
    187       Console display driver support ---&gt;
    188          [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE]
    189 File systems  ---&gt;
    190    [*] Inotify support for userspace [CONFIG_INOTIFY_USER]
    191        Pseudo filesystems  ---&gt;
    192         [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
    193 
     134      <!-- To editors: for updating kernel configuration, edit
     135           kernel/*.toml and regenerate kernel/*.xml with
     136           "make -C kernel KERNEL_TREE=</usr/src/linux-&linux-version> -->
     137
     138      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     139        href="kernel/sysv.xml"/>
     140
     141      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     142        href="kernel/systemd.xml"/>
     143   
    194144      <para>Enable some additional features if you are building a 64-bit
    195145      system.  If you are using menuconfig, enable them in the order of
     
    199149      shows up after its dependencies are selected.</para>
    200150
    201       <screen role="nodump">Processor type and features ---&gt;
    202   [*] Support x2apic [CONFIG_X86_X2APIC]
    203 Device Drivers ---&gt;
    204   [*] PCI Support ---&gt; [CONFIG_PCI]
    205     [*] Message Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI]
    206   [*] IOMMU Hardware Support ---&gt; [CONFIG_IOMMU_SUPPORT]
    207     [*] Support for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen>
     151      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     152        href="kernel/x2apic.xml"/>
    208153
    209154      <para>If you are building a 32-bit system running on a hardware
     
    211156      be able to use up to 64GB physical RAM:</para>
    212157
    213       <screen role="nodump">Processor type and features ---&gt;
    214   High Memory Support ---&gt;
    215     (X) 64GB [CONFIG_HIGHMEM64G]</screen>
     158      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     159        href="kernel/highmem.xml"/>
    216160
    217161      <para>If the partition for the LFS system is in a NVME SSD (i. e. the
     
    220164      the LFS system won't boot:</para>
    221165
    222       <screen role="nodump">Device Drivers ---&gt;
    223   NVME Support ---&gt;
    224     &lt;*&gt; NVM Express block device [CONFIG_BLK_DEV_NVME]</screen>
     166      <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
     167        href="kernel/nvme.xml"/>
    225168    </note>
    226169
     
    350293          processors in x2APIC mode.  x2APIC may be enabled by firmware on
    351294          64-bit x86 systems, and a kernel without this option enabled will
    352           panic on boot if x2APIC is enabled by firmware.  This option has
     295          panic on boot if x2APIC is enabled by firmware.  This option
    353296          has no effect, but also does no harm if x2APIC is disabled by the
    354297          firmware.</para>
Note: See TracChangeset for help on using the changeset viewer.