- Timestamp:
- 08/27/2023 03:06:02 AM (14 months ago)
- Branches:
- xry111/arm64, xry111/arm64-12.0
- Children:
- e08ba0a
- Parents:
- 9a5dab1 (diff), 11cfb5b (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. - Location:
- chapter10
- Files:
-
- 15 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter10/fstab.xml
r9a5dab1 r64e8131 23 23 <literal># Begin /etc/fstab 24 24 25 # file system mount-point type options dump fsck26 # order25 # file system mount-point type options dump fsck 26 # order 27 27 28 /dev/<replaceable><xxx></replaceable> / <replaceable><fff></replaceable> defaults 1 1 29 /dev/<replaceable><yyy></replaceable> swap swap pri=1 0 0 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><xxx></replaceable> / <replaceable><fff></replaceable> defaults 1 1 29 /dev/<replaceable><yyy></replaceable> swap swap pri=1 0 0 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 36 cgroup2 /sys/fs/cgroup cgroup2 nosuid,noexec,nodev 0 0 36 37 37 38 # End /etc/fstab</literal> -
chapter10/grub.xml
r9a5dab1 r64e8131 24 24 <para> 25 25 If you've installed GRUB for UEFI with optional dependencies following 26 BLFS, you should skip this page, and configure GRUB with UEFI support 26 BLFS, you should skip the instructions in this page but still learn the 27 syntax of <filename>grub.cfg</filename> and the method to specify 28 a partition in the file from this page, and configure GRUB with UEFI 27 29 using the instructions provided in 28 30 <ulink url="&blfs-book;postlfs/grub-setup.html">the BLFS page</ulink>, … … 212 214 set timeout=5 213 215 216 insmod part_gpt 214 217 insmod ext2 215 218 set root=(hd0,2) … … 221 224 }</literal> 222 225 EOF</userinput></screen> 226 227 <para> 228 The <command>insmod</command> commands load the 229 <application>GRUB</application> modules named 230 <filename>part_gpt</filename> and <filename>ext2</filename>. 231 Despite the naming, <filename>ext2</filename> actually supports 232 <systemitem class='filesystem'>ext2</systemitem>, 233 <systemitem class='filesystem'>ext3</systemitem>, and 234 <systemitem class='filesystem'>ext4</systemitem> filesystems. 235 The <command>grub-install</command> command has embedded some modules 236 into the main <application>GRUB</application> image (installed into 237 the MBR or the GRUB BIOS partition) to access the other modules 238 (in <filename class='directory'>/boot/grub/i386-pc</filename>) without 239 a chicken-or-egg issue, so with a typical configuration these two 240 modules are already embedded and those two <command>insmod</command> 241 commands will do nothing. But they do no harm anyway, and they may 242 be needed with some rare configurations. 243 </para> 223 244 224 245 <note><para>From <application>GRUB</application>'s perspective, the -
chapter10/kernel.xml
r9a5dab1 r64e8131 56 56 the procedures below fairly closely. The objective is to get an 57 57 initial system to a point where you can log in at the command line when 58 you reboot later in <xref linkend="ch-finish-reboot"/>. At his point58 you reboot later in <xref linkend="ch-finish-reboot"/>. At this point 59 59 optimization and customization is not a goal. 60 60 </para> … … 131 131 not work correctly or boot at all:</para> 132 132 133 <screen role="nodump" revision="sysv">Processor type and features ---> 134 [*] Build a relocatable kernel [CONFIG_RELOCATABLE] 135 [*] Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE] 136 General setup ---> 137 [ ] Compile the kernel with warnings as errors [CONFIG_WERROR] 138 < > 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 ---> 141 [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR] 142 [*] Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG] 143 Device Drivers ---> 144 Firmware Drivers ---> 145 EFI (Extensible Firmware Interface) Support ---> 146 [*] Enable the generic EFI decompressor [CONFIG_EFI_ZBOOT] 147 Graphics support ---> 148 Frame buffer Devices ---> 149 <*> Support for frame buffer devices ---> 150 Console display driver support ---> 151 [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE] 152 Generic Driver Options ---> 153 [ ] Support for uevent helper [CONFIG_UEVENT_HELPER] 154 [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS] 155 [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT]</screen> 156 157 <screen role="nodump" revision="systemd">Processor type and features ---> 158 [*] Build a relocatable kernel [CONFIG_RELOCATABLE] 159 [*] Randomize the address of the kernel image (KASLR) [CONFIG_RANDOMIZE_BASE] 160 General setup ---> 161 [ ] Compile the kernel with warnings as errors [CONFIG_WERROR] 162 [ ] Auditing Support [CONFIG_AUDIT] 163 CPU/Task time and stats accounting ---> 164 [*] Pressure stall information tracking [CONFIG_PSI] 165 [ ] Require boot parameter to enable pressure stall information tracking [CONFIG_PSI_DEFAULT_DISABLED] 166 < > Enable kernel headers through /sys/kernel/kheaders.tar.xz [CONFIG_IKHEADERS] 167 [*] Control Group support [CONFIG_CGROUPS] ---> 168 [*] Memory controller [CONFIG_MEMCG] 169 [ ] Configure standard kernel features (expert users) [CONFIG_EXPERT] 170 General architecture-dependent options ---> 171 [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP] 172 [*] Stack Protector buffer overflow detection [CONFIG_STACKPROTECTOR] 173 [*] Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG] 174 [*] Networking support ---> [CONFIG_NET] 175 Networking options ---> 176 [*] TCP/IP networking [CONFIG_INET] 177 <*> The IPv6 protocol [CONFIG_IPV6] 178 Device Drivers ---> 179 Generic Driver Options ---> 180 [ ] Support for uevent helper [CONFIG_UEVENT_HELPER] 181 [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS] 182 [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs [CONFIG_DEVTMPFS_MOUNT] 183 Firmware Loader ---> 184 [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER] 185 Firmware Drivers ---> 186 [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID] 187 EFI (Extensible Firmware Interface) Support ---> 188 [*] Enable the generic EFI decompressor [CONFIG_EFI_ZBOOT] 189 Graphics support ---> 190 Frame buffer Devices ---> 191 <*> Support for frame buffer devices ---> 192 Console display driver support ---> 193 [*] Framebuffer Console support [CONFIG_FRAMEBUFFER_CONSOLE] 194 File systems ---> 195 [*] Inotify support for userspace [CONFIG_INOTIFY_USER] 196 Pseudo filesystems ---> 197 [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen> 133 <!-- To editors: for updating kernel configuration, edit 134 kernel/*.toml and regenerate kernel/*.xml with 135 "make -C kernel KERNEL_TREE=</usr/src/linux-&linux-version> --> 136 137 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 138 href="kernel/sysv.xml"/> 139 140 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 141 href="kernel/systemd.xml"/> 198 142 199 143 <para>If the partition for the LFS system is in a NVME SSD (i. e. the … … 202 146 the LFS system won't boot:</para> 203 147 204 <screen role="nodump">Device Drivers ---> 205 NVME Support ---> 206 <*> NVM Express block device [CONFIG_BLK_DEV_NVME]</screen> 148 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" 149 href="kernel/nvme.xml"/> 207 150 </note> 208 151 … … 289 232 <listitem> 290 233 <para>Having this option set may interfere with device 291 management when using Udev /Eudev.</para>234 management when using Udev.</para> 292 235 </listitem> 293 236 </varlistentry> … … 299 242 kernel, even without Udev running. Udev then runs on top of this, 300 243 managing permissions and adding symlinks. This configuration 301 item is required for all users of Udev /Eudev.</para>244 item is required for all users of Udev.</para> 302 245 </listitem> 303 246 </varlistentry> … … 412 355 <para>Install the documentation for the Linux kernel:</para> 413 356 414 <screen><userinput remap="install">install -d /usr/share/doc/linux-&linux-version; 415 cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput></screen> 357 <screen><userinput remap="install">cp -r Documentation -T /usr/share/doc/linux-&linux-version;</userinput></screen> 416 358 417 359 <para>It is important to note that the files in the kernel source
Note:
See TracChangeset
for help on using the changeset viewer.