Compiling own debian kernels

run:

# apt-get install genromfs
# vi /etc/mkinitrd/mkinitrd.conf

set:

MKIMAGE="genromfs -d %s -f %s"

run:

# cd /usr/src/linux
# vi .config

set:

CONFIG_CRAMFS=n # cramfs isn't needed
CONFIG_ROMFS_FS=y # romfs support in kernel

run:

# PATCH_THE_KERNEL="YES" make-kpkg --added-patches $list_of_patches \ 
	--append_to_version=-foomagic --revision 20040928 --subarch k7 \
	--initrd --bzimage --rootcmd fakeroot kernel_image kernel_headers
Show Comments