20211128 - Server went through an OS upgrade, sorry for the downtime.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2013/12/19 03:12 (UTC)]
metaschima [Where to get the kernel source]
howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2014/11/26 01:08 (UTC)] (current)
metaschima Added info about VFAT and EFI partitions
Line 403: Line 403:
 This option is deprecated in favor of EFI Variable filesystem. It can [[https://lkml.org/lkml/2013/4/16/473|cause data inconsistency issues]] This option is deprecated in favor of EFI Variable filesystem. It can [[https://lkml.org/lkml/2013/4/16/473|cause data inconsistency issues]]
 > **File systems** > **File systems**
-You **MUST** either build-in the driver for the filesystem on which the kernel modules reside **OR** create an initrd, or the kernel will **NOT** boot. +You **MUST** either build-in the driver for the filesystem on which the kernel modules reside **OR** create an initrd, or the kernel will **NOT** boot. You should also build-in the driver for the filesystem on which the kernel itself resides in case it resides on a different filesystem type than the modules e.g. EFI VFAT partition.
->> CD-ROM/DVD Filesystems +
->>> UDF file system support +
-You need this if you plan on reading or writing disks with the UDF filesystem.+
 >> DOS/FAT/NT Filesystems >> DOS/FAT/NT Filesystems
 +>>> MSDOS fs support
 +>>> VFAT (Windows-95) fs support
 +You need these built-in if you use EFI. The kernel will boot if they are modules, but catch22 type situations can easily result.
 >>> NTFS file system support >>> NTFS file system support
 >>> NTFS write support >>> NTFS write support
 You need this if you want to write to NTFS filesystems. You need this if you want to write to NTFS filesystems.
 +>> CD-ROM/DVD Filesystems
 +>>> UDF file system support
 +You need this if you plan on reading or writing disks with the UDF filesystem.
 >>> Miscellaneous filesystems  ---> >>> Miscellaneous filesystems  --->
 >>>> EFI Variable filesystem >>>> EFI Variable filesystem
Line 462: Line 465:
 #!/bin/sh #!/bin/sh
 # installs kernel only, this should be run only from the kernel source directory # installs kernel only, this should be run only from the kernel source directory
 +
 +error() # error
 +{
 + echo "ERROR: $1"
 + exit 1
 +}
  
 # make sure we are root # make sure we are root
-if test $HOME != '/root'+if test != '/root'
 then then
- echo 'ERROR: This script must be run as root' >&+ error 'This script must be run as root'
- exit 1+
 fi fi
  
Line 484: Line 492:
 cp System.map /boot cp System.map /boot
 cp .config /boot/config cp .config /boot/config
 +
 +# for elilo
 +bootdir="/boot/efi/EFI/Slackware"
 +if test -d "$bootdir"
 +then
 + cp arch/x86/boot/bzImage "$bootdir"/vmlinuz
 +fi
  
 # change permissions of vmlinuz # change permissions of vmlinuz
Line 494: Line 509:
  echo 'Kernel installed correctly'  echo 'Kernel installed correctly'
 else else
- echo 'Kernel install failed' + error 'Kernel install failed'
- exit 1+
 fi fi
 if cmp System.map /boot/System.map if cmp System.map /boot/System.map
Line 501: Line 515:
  echo 'System.map installed correctly'  echo 'System.map installed correctly'
 else else
- echo 'System.map install failed' + error 'System.map install failed'
- exit 1+
 fi fi
 if cmp .config /boot/config if cmp .config /boot/config
Line 508: Line 521:
  echo 'Kernel config installed correctly'  echo 'Kernel config installed correctly'
 else else
- echo 'Kernel config install failed' + error 'Kernel config install failed' 
- exit 1+fi 
 +if test -d "$bootdir" 
 +then 
 + if cmp arch/x86/boot/bzImage "$bootdir"/vmlinuz 
 + then 
 + echo 'kernel installed to EFI correctly' 
 + else 
 + error 'kernel install to EFI failed' 
 + fi
 fi fi
 echo echo
Line 517: Line 538:
  
 exit 0 exit 0
- 
 </file> </file>
 ==== lilo ==== ==== lilo ====
Line 569: Line 589:
   * The lilo.conf excerpt is from the default lilo.conf that comes with Slackware plus a few options.    * The lilo.conf excerpt is from the default lilo.conf that comes with Slackware plus a few options. 
   * Thanks to [[wiki:user:alienbob|Alien Bob]] for his [[howtos:slackware_admin:kernelbuilding|kernel building howto]]. It inspired me to write a restructured and updated kernel building guide.    * Thanks to [[wiki:user:alienbob|Alien Bob]] for his [[howtos:slackware_admin:kernelbuilding|kernel building howto]]. It inspired me to write a restructured and updated kernel building guide. 
 +  * Updated by [[wiki:user:metaschima]]
 <!-- Please do not modify anything below, except adding new tags.--> <!-- Please do not modify anything below, except adding new tags.-->
 <!-- You must remove the tag-word "template" below before saving your new page --> <!-- You must remove the tag-word "template" below before saving your new page -->
 {{tag>howtos author_htexmexh kernel software}} {{tag>howtos author_htexmexh kernel software}}

In Other Languages
QR Code
QR Code howtos:slackware_admin:building_the_linux_kernel_using_git_repository (generated for current page)