Pi-TV

# Kernel, Linux, Syslinux, make 2021-12-27

Linux kernel build

Pre-conditions

Build

pacman -Sy base-devel
pacman -Sy xmlto kmod inetutils bc libelf git cpio perl
pacman -Sy ccache

make /kernelbuild
tar -xvf linux-5.15.11.tar.xz --directory /kernelbuild/
cd /kernelbuild/linux-5.15.11
make mrproper
zcat /proc/config.gz > .config
make menuconfig
# ---------------------
# select config options
# see ## Config options
# ---------------------

#make -j5
export CCACHE_DIR="/kernelbuild/linux-5.15.11/.ccache"
time make CC="ccache gcc" -j5
#real    68m22.013s
#user    305m52.551s
#sys     29m12.620s

#make modules
time make modules CC="ccache gcc" -j5

sudo make modules_install
make bzImage
sudo cp -v arch/x86/boot/bzImage /boot/vmlinuz-linux-x
sudo mkinitcpio -k 5.15.11-x -g /boot/initramfs-linux-x.img

Boot loader

DEFAULT linux
PROMPT 1
TIMEOUT 5

LABEL linux
    LINUX ../vmlinuz-linux
    APPEND root=/dev/sda1 rw vga=773
    INITRD ../initramfs-linux.img

LABEL linux-x
    LINUX ../vmlinuz-linux-x
    APPEND root=/dev/sda1 rw vga=773
    INITRD ../initramfs-linux-x.img

then run syslinux-install_update -iam

Config options

General setup

Processor type and features

Binary Emulations

Executable file formats

CONFIG_HAMRADIO

Library routines

Networking support

Device Drivers

File systems

Security options

Kernel hacking