On Fri, Jan 28, 2005 at 07:41:53AM -0800, Alaios wrote: > Hi! I want to compile a kernel to a different pc from > that i will finally use it. > I was wondering if this is possible and what i must > take care of before doing the compilation... Let's assume you're compiling linux-2.6.10. Just compile the kernel like you always do. Then: make INSTALL_MOD_PATH=/tmp modules_install pushd /tmp/lib/modules tar cf /tmp/modules.tar 2.6.10 popd Copy over arch/i386/boot/bzImage System.map and /tmp/modules.tar to the target machine, untar modules.tar in /lib/modules, run chown -R root.root 2.6.10 (otherwise modprobe will complain), put bzImage and System.map in the correct locations adjust bootloader configurations (in case of lilo: also run lilo), and off you go. > I think that both pcs must have the same glibc > version but i am not sure and i do not know how to to > find the glibc version. Glibc is not used for the kernel. Erik -- Erik Mouw J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx
Attachment:
signature.asc
Description: Digital signature