@related : unicorn linux-image dpkg

[[Linux]] [[Kernel]] on [[Debian]]

# ftp://ftp.kernel.org/pub/linux/kernel/v2.4
cd /usr/src/
wget http://www.kernel.org/pub/linux/kernel/v2.4/linux-2.4.20.tar.gz

uname -a
su
apt-get install kernel-package
cd /usr/src/
tar xvfj kernel-source*.tar*
[ ! -f "linux" ] && ln -fs kernel-source* linux
cd /usr/src/linux

export VERSION=${HOSTNAME}+0.0.`date +%Y%m%d`
make menuconfig && make-kpkg clean kernel_image
time make-kpkg --initrd --revision=${VERSION} kernel_image
dpkg -i ../kernel-image*${VERSION}*.deb

Be sure to choose correct FS (2d ext) : IDE support into kernel

Then I prefer LoadLin to lilo GruB etc …

More : install-modules, modconf, modprobe module_upgrade … http://www.kernel.org/

2.6 neeeds apt-get install module-init-tools

Modules :

cd /usr/src/linux || exit
export VERSION=${HOSTNAME}.0.`date +%Y%m%d%H%M`

make-kpkg --revision=${VERSION} kernel_image
export MODULE_LOC=/usr/src/modules
make-kpkg --revision=${VERSION} clean modules  modules_image
make-kpkg --targets

dpkg -i /usr/src/*${VERSION}*.deb

misc

make-kpkg --added-patches preempt,lowlatency --added-modules i2c,lm-sesnors kernel_image modules_image -config menu
make-kpkg.txt · Last modified: 2022/04/16 12:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki