|
Kernel cross compilation and install disks
Hi,
what do I have to do, when I want to build a new kernel for a different system and create boot and modules / installation / supplemental disks for it?
Eg: Compile kernel and modules on SuSE with Athlon XP for Slackware with Pentium Classic.
Would you think the following should work?
<CreateInstallDisks>
On the build host as a non-privileged user:
Create a directory under which the /usr/src/linux tree will be placed.
Copy the kernel sources tree there.
make mrproper
Copy /boot/.config from the target host into /usr/src/linux.
make menuconfig
make dep clean bzImage
make modules
Prepare three MS-DOS formatted disks.
Copy <some_dir>/usr/src/linux/drivers/*/*.o to one of the disks.
Copy setup and other programs to the other two disks.
Format another disk: fdformat /dev/fd0u1440.
Copy the new kernel and the corresponding system map onto that disk.
</CreateInstallDisks>
Well, I think, this is all necessary, but there might be more steps required.
Do I have to issue lilo? What about rdev?
Let me emphasize, that I'm not talking about just a boot disk for an already running system. Instaed I want to create an all new set of installation disks, optimized for my system. Of course, I'd like to copy the kernel then onto the target system, in the end.
I've asked some details about this in other threads and received answers from very helpful people, but I have still problems with this subject. Maybe I've not quite grasped it, as either my network adapter is not detected or the boot process stops with a kernel panic (and wants me to issue root=<parameters>).
Thanks for all your answers in advance!
|