Changeset 58962f7 for chapter10


Ignore:
Timestamp:
06/11/2023 08:52:35 PM (13 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1
Children:
d89cc558
Parents:
7891616
git-author:
Xi Ruoyao <xry111@…> (06/11/2023 07:32:07 PM)
git-committer:
Xi Ruoyao <xry111@…> (06/11/2023 08:52:35 PM)
Message:

loongarch: kernel: Adapt for LoongArch

It was done by checkout chapter10/kernel.xml from arm64 branch and
perform some tiny adjustment :).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter10/kernel.xml

    r7891616 r58962f7  
    142142   [*]   Strong Stack Protector [CONFIG_STACKPROTECTOR_STRONG]
    143143Device Drivers  ---&gt;
     144  Firmware Drivers   ---&gt;
     145   EFI (Extensible Firmware Interface) Support  ---&gt;
     146     [*] Enable the generic EFI decompressor [CONFIG_EFI_ZBOOT]
    144147  Graphics support ---&gt;
    145148   Frame buffer Devices ---&gt;
     
    183186   Firmware Drivers   ---&gt;
    184187      [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]
     188      EFI (Extensible Firmware Interface) Support  ---&gt;
     189         [*] Enable the generic EFI decompressor [CONFIG_EFI_ZBOOT]
    185190   Graphics support ---&gt;
    186191      Frame buffer Devices ---&gt;
     
    193198        [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]</screen>
    194199
    195       <para>Enable some additional features if you are building a 64-bit
    196       system.  If you are using menuconfig, enable them in the order of
    197       <parameter>CONFIG_PCI_MSI</parameter> first, then
    198       <parameter>CONFIG_IRQ_REMAP</parameter>, at last
    199       <parameter>CONFIG_X86_X2APIC</parameter> because an option only
    200       shows up after its dependencies are selected.</para>
    201 
    202       <screen role="nodump">Processor type and features ---&gt;
    203   [*] Support x2apic [CONFIG_X86_X2APIC]
    204 Device Drivers ---&gt;
    205   [*] PCI Support ---&gt; [CONFIG_PCI]
    206     [*] Message Signaled Interrupts (MSI and MSI-X) [CONFIG_PCI_MSI]
    207   [*] IOMMU Hardware Support ---&gt; [CONFIG_IOMMU_SUPPORT]
    208     [*] Support for Interrupt Remapping [CONFIG_IRQ_REMAP]</screen>
    209 
    210       <para>If you are building a 32-bit system running on a hardware
    211       with RAM more than 4GB, adjust the configuration so the kernel will
    212       be able to use up to 64GB physical RAM:</para>
    213 
    214       <screen role="nodump">Processor type and features ---&gt;
    215   High Memory Support ---&gt;
    216     (X) 64GB [CONFIG_HIGHMEM64G]</screen>
    217 
    218200      <para>If the partition for the LFS system is in a NVME SSD (i. e. the
    219201      device node for the partition is <filename>/dev/nvme*</filename>
     
    328310          upon switching to root filesystem just before starting
    329311          init.</para>
     312        </listitem>
     313      </varlistentry>
     314
     315      <varlistentry>
     316        <term><parameter>Enable the generic EFI decompressor</parameter></term>
     317        <listitem>
     318          <para>Create the bootable image as an EFI application that carries
     319          the actual kernel image in compressed form.  It can make the
     320          bootable image 50% smaller.</para>
    330321        </listitem>
    331322      </varlistentry>
     
    345336      </varlistentry>
    346337
    347       <varlistentry>
    348         <term><parameter>Support x2apic</parameter></term>
    349         <listitem>
    350           <para>Support running the interrupt controller of 64-bit x86
    351           processors in x2APIC mode.  x2APIC may be enabled by firmware on
    352           64-bit x86 systems, and a kernel without this option enabled will
    353           panic on boot if x2APIC is enabled by firmware.  This option has
    354           has no effect, but also does no harm if x2APIC is disabled by the
    355           firmware.</para>
    356         </listitem>
    357       </varlistentry>
    358 
    359338    </variablelist>
    360339
     
    411390    the filename should be <emphasis>vmlinuz</emphasis> to be compatible with
    412391    the automatic setup of the boot process described in the next section.  The
    413     following command assumes an x86 architecture:</para>
    414 
    415 <screen><userinput remap="install">cp -iv arch/x86/boot/bzImage /boot/vmlinuz-&linux-version;-lfs-&version;</userinput></screen>
     392    following command assumes a LoongArch platform with an EFI boot loader
     393    (for example, GRUB built in &ch-final;):</para>
     394
     395<screen><userinput remap="install">cp -iv arch/loongarch/boot/vmlinuz.efi /boot/vmlinuz-&linux-version;-lfs-&version;</userinput></screen>
    416396
    417397    <para><filename>System.map</filename> is a symbol file for the kernel.
Note: See TracChangeset for help on using the changeset viewer.