[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Fwd: Re: How to make kernel and modules package from original kernel source code



Oops, forgot the list.

----- Forwarded message from Daniel E Baumann <danielb@freedevelopers.net> -----

Date: Wed, 11 Jul 2001 15:24:10 -0500
From: Daniel E Baumann <danielb@freedevelopers.net>
User-Agent: Mutt/1.3.18i
To: Alex Kwan <alexkwan@pacific.net.hk>
Subject: Re: How to make kernel and modules package from original kernel source code

On Wed, Jul 11, 2001 at 06:28:55PM +0800, Alex Kwan wrote:
> Hi!
> 
> 
> How to make package of kernel image and modules from
> the updated (2.4.7-pre1) original source code?
> 
> 
> Thanks

1. Unpack the source. It is usually a good idea to remove the "linux"
symlink if you got one (usually it is setup this way). Point the symlink back at
the new source tree.

2. For the kernel modules apt-get install alsa-source, pcmcia-source, etc.
cd /usr/src, rm -r * which will remove old source trees. Then cd ../ or cd
/usr/src and unpack the tarballs: alsa-driver.tar.gz, pcmcia-cs.tar.gz, etc. they
will unpack into the "modules" directory (/usr/src/modules).

3. Make sure you apt-get install kernel-package.

4. cd into the kernel source directory and do make-kpkg clean.

5. make config/menuconfig/xconfig, which ever you prefer. If you have an
existing kernel that is similar and you want to keep the same config then do
cp /boot/config-2.x.x /.config then you can do make oldconfig or make xconfig 
and tell to to load .config.

6. make-kpkg --revision=3:custom.1.0 kernel_image, note the "3:" specifies the
"epoch" which will keep apt from wanting to upgrade your kernel image. Also you
pick the version number custom.1.0 was just arbitrary, but if it is your first
custom kernel you might as well call it 1.0.

7. make-kpkg modules_image.

8. dpkg -i kernel-image-2.x.x_custom.1.0_i386.deb, if lilo is installed I
believe it will prompt you and make a back up so you can also boot the old
kernel. If GRUB hack /boot/grub/menu.lst appropriately, it is always nice to
make a menu entry for the old kernel. 
dpkg -i alsa-modules-2.x.x_0.9+0beta4-5+p3+custom.1.0_i386.deb (version numbers
will vary of course), dpkg -i pcmcia-modules-2.x.x_3.1.25-3+custom.1.0_i386.deb,
etc.

9. Reboot.

10. Enjoy :).

Dan
-- 
Daniel E Baumann      danielb@freedevelopers.net 

And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use 
copyleft all the same.
      -- RMS

----- End forwarded message -----

-- 
Daniel E Baumann      danielb@freedevelopers.net 

And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use 
copyleft all the same.
      -- RMS



Reply to: