Linux Kernel Notes

# umask 002    # important!  gcc fails when /usr/local/include is drwxr-x---

Latest Development Kernel

Linux 2.4.X kernel - HOWTO

Kernel Installation notes

I recommend the following for a modular configuration compatible with RedHat 7.2
# VER=2.4.17
# cd /usr/src
# tar zxof .../linux-2.*.tar
# mv linux linux-$VER
# rm linux-2.4
# ln -s linux-$VER linux-2.4
# cd linux-$VER
# make mrproper
# make xconfig
    make sure to include drivers for your boot device and network device
    modular kernel configuration/booting ala RedHat requires Loopback, RAM disk, initrd, netlink
    X DRI/X-Video/V4L requires MTRR, I2C, agpgart, Direct Rendering Manager
    Enhanced Real Time Clock Suppot is needed for accessing the clock and eliminating char-major-10-135 (/dev/rtc) error messages
    Kernel support for MISC binaries is needed as a module for wine and elimination of /proc/sys/fs/binfmt_misc error messages
    USB requires Input core support and Support for USB appriopriate for your hardware, RedHat  needs CONFIG_USB=m - see file:/usr/src/linux/Documentation/input/input.txt
    firewall requires CONFIG_PACKET (Packet Socket), IP: route/routing options, IP: Netfilter Configuration (all modules)
    ddns requires CONFIG_FILTER (Socket Filtering)
Processor type and features
y    MTRR (Memory Type Range Register) support
General setup
m    Kernel support for MISC binaries
Parallel port support
y    Parallel port support
m        PC-style hardware
Block devices
y    Loopback device support
y    RAM disk support
y        Initial RAM disk (initrd) support
Multi-device support (RAID and LVM)
y    Multiple device driver support (RAID and LVM)
y        RAID support
y            (select your RAID levels)
y        Logical volume manager (LVM) support
Networking options
y    Netlink device emulation (2.4.17 includes Routing Messages)
y    Socket Filtering
    (modules for your devices)
SCSI support
    SCSI low-level drivers
        (modules for your devices)
Network device support
    (modules for your network devices)
Input core support
m    Input core support
m        Keyboard support
m        Mouse support
m        Joystick support
Character devices
    I2C support
    y    I2C support
    y    I2C bit-banging interfaces
y    Enhanced Real Time Clock Support
y    /dev/agpgart (AGP Support)
y        Intel 440LX/BX/GX and I815/I830M/I840/I850 support
y        VIA chipset support
y        AMD Irongate, 761, and 762 support
y    Direct Rendering Manager (XFree86 DRI support)
m        ATI Rage 128
m        ATI Radeon
m        Matrox g200/g400
Multimedia devices
y    Video for Linux
y        V4L information in proc filesystem
File systems
m    Ext3 journalling file system support (EXPERIMENTAL)
    Network File Systems
    y    NFS file system support
    y        Provide NFSv3 client support
    y    NFS server support
    y        Provide NFSv3 server support
    y    SMB file system support (to mount Windows shares etc.)
m    Support for USB
y        Preliminary USB device filesystem
m        UHCI Alternate Driver (JE) support
        USB Human Interface Devices (HID)
m        USB Human Interface Device (ful HID) support
# make dep bzImage modules modules_install # insert clean for complete recompilation
# cp arch/i386/boot/bzImage /boot/vmlinuz-$VER
# cp System.map /boot/System.map-$VER
# mkinitrd -f /boot/initrd-$VER.img $VER
# ed /etc/lilo.conf # save a stable backup boot entry!  $BOOTPART and $VER are not literal, replace them with actual values

# lilo    # LILO mini-HOWTO, BootPrompt-HowTo
# ed /etc/modules.conf # UHCI Alternate Driver (JE) - module name "uhci"
alias usb-controller uhci
# sync
# reboot

Errata - Miscelaneous

shut up IPX/AppleTalk errors:
    modprobe: can't locate module net-pf-4
    modprobe: can't locate module net-pf-5
alias net-pf-4 off
alias net-pf-5 off


file:/usr/src/linux/Documenation/sysctl/vm.txt -
http://people.redhat.com/alikins/system_tuning.html -


http://kernelnewbies.org/patches/ - index of current experts, work, and patches
NoBell Home - gjm - last update 1/4/2002