[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2013/12/19 03:08 (UTC)] – Updated information to 3.10.x, removed old options, removed some biased comments metaschima | howtos:slackware_admin:building_the_linux_kernel_using_git_repository [2014/11/26 01:08 (UTC)] (current) – Added info about VFAT and EFI partitions metaschima | ||
---|---|---|---|
Line 64: | Line 64: | ||
Here is a script that downloads the latest patch for the current running kernel. It assumes you already have an xz compressed tarball in the kernel build directory. | Here is a script that downloads the latest patch for the current running kernel. It assumes you already have an xz compressed tarball in the kernel build directory. | ||
<file bash kernupd> | <file bash kernupd> | ||
- | #!/bin/bash | + | #!/bin/sh |
error () # error | error () # error | ||
Line 403: | Line 403: | ||
This option is deprecated in favor of EFI Variable filesystem. It can [[https:// | This option is deprecated in favor of EFI Variable filesystem. It can [[https:// | ||
> **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 |
- | >> CD-ROM/DVD Filesystems | + | |
- | >>> | + | |
- | You need this if you plan on reading or writing disks with the UDF filesystem. | + | |
>> DOS/FAT/NT Filesystems | >> DOS/FAT/NT Filesystems | ||
+ | >>> | ||
+ | >>> | ||
+ | You need these built-in if you use EFI. The kernel will boot if they are modules, but catch22 type situations can easily result. | ||
>>> | >>> | ||
>>> | >>> | ||
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 | ||
+ | >>> | ||
+ | You need this if you plan on reading or writing disks with the UDF 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 " | ||
+ | exit 1 | ||
+ | } | ||
# make sure we are root | # make sure we are root | ||
- | if test $HOME != '/ | + | if test ~ != '/ |
then | then | ||
- | echo 'ERROR: | + | 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 / | cp .config / | ||
+ | |||
+ | # for elilo | ||
+ | bootdir="/ | ||
+ | if test -d " | ||
+ | then | ||
+ | cp arch/ | ||
+ | fi | ||
# change permissions of vmlinuz | # change permissions of vmlinuz | ||
Line 494: | Line 509: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
if cmp System.map / | if cmp System.map / | ||
Line 501: | Line 515: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | |
fi | fi | ||
if cmp .config / | if cmp .config / | ||
Line 508: | Line 521: | ||
echo ' | echo ' | ||
else | else | ||
- | echo ' | + | error ' |
- | exit 1 | + | fi |
+ | if test -d " | ||
+ | then | ||
+ | if cmp arch/ | ||
+ | then | ||
+ | echo ' | ||
+ | else | ||
+ | error ' | ||
+ | fi | ||
fi | fi | ||
echo | echo | ||
Line 517: | Line 538: | ||
exit 0 | exit 0 | ||
- | |||
</ | </ | ||
==== 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: | * Thanks to [[wiki: | ||
+ | * Updated by [[wiki: | ||
<!-- 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 " | <!-- You must remove the tag-word " | ||
{{tag> | {{tag> |