[opensuse] building my own kernel with SuSE 11 on x86
Hello I am trying to build a kernel with suse, i've used this technique on other distros and I don't know why it does work here. I am wondering if I have an in complete setup or I am simply missing a step. 1. Fresh Install 2. cd /usr/src/linux 3. make oldconfig 4. make 5. make init 6. make modules 7. make modules_install 8. make install 9. reboot The result is that the system will boot, but the kernel can not read the filesystem. FWIW, once this works, I will do a few more things with the system where I build a out of tree driver. I figure if my driver is failing, I should probably try to build the kernel as-is under non-modified setup. Any response appreciated. John F. Davis -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 9 Nov 2009 13:41:32 -0500
John Davis
Hello
I am trying to build a kernel with suse, i've used this technique on other distros and I don't know why it does work here. I am wondering if I have an in complete setup or I am simply missing a step.
1. Fresh Install 2. cd /usr/src/linux 3. make oldconfig 4. make 5. make init 6. make modules 7. make modules_install 8. make install 9. reboot
The result is that the system will boot, but the kernel can not read the filesystem.
FWIW, once this works, I will do a few more things with the system where I build a out of tree driver. I figure if my driver is failing, I should probably try to build the kernel as-is under non-modified setup.
Any response appreciated.
John F. Davis Hi Follow Larry Finger's tip in this thread about compiling the kernel. It works a treat :) http://forums.opensuse.org/pre-release-beta/421320-questions-help-regarding-...
-- Cheers Malcolm °¿° (Linux Counter #276890) SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default up 17:46, 2 users, load average: 0.21, 0.31, 0.33 GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 9 Nov 2009 13:41:32 -0500 John Davis
wrote:
The result is that the system will boot, but the kernel can not read the filesystem.
Sounds like they are build as modules and you forgot to make an initrd.
FWIW, this is what I do to build a vanilla kernel:
1. Copy /proc/config.gz to /usr/src/linux, ungzip it, rename it to
.config and run "make oldconfig".
2. Run "make menuconfig" and edit the options.
3. Run "make bzImage" and copy
/usr/src/linux/arch/
On 09.11.2009, Charles Philip Chan wrote:
3. Run "make bzImage" and copy /usr/src/linux/arch/
/boot/bzimage to /boot/vmlinuz-<version>. 4. Copy /usr/src/linux/System.map to /boot/System.map-<version>.
6. run "mkinitrd -k <kernel> -i <initrd> -M
".
These steps are done by simply issuing "make" and "make install". No need to get it done manually. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Charles Philip Chan (cpchan@sympatico.ca) [20091109 21:27]:
1. Copy /proc/config.gz to /usr/src/linux, ungzip it, rename it to .config and run "make oldconfig".
Simply doing 'make cloneconfig' does all that in one command :)
But there is no need for doing that! If you haven't changed the kernel
configuration yourself, you simply go to
/usr/src/linux-obj/<architecture>/
2. Run "make menuconfig" and edit the options.
3. Run "make bzImage" and copy /usr/src/linux/arch/
/boot/bzimage to /boot/vmlinuz-<version>. 4. Copy /usr/src/linux/System.map to /boot/System.map-<version>.
Simply doing 'make install' should DTRT. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 09.11.2009, John Davis wrote:
2. cd /usr/src/linux 3. make oldconfig 4. make 7. make modules_install 8. make install 9. reboot
That's sufficient.
The result is that the system will boot, but the kernel can not read the filesystem.
You didn't compile it in, then. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
* Heinz Diehl (htd@fancy-poultry.org) [20091109 21:11]:
You didn't compile it in, then.
More likely forgot to build an initrd. Philipp -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Charles Philip Chan
-
Heinz Diehl
-
John Davis
-
Malcolm
-
Philipp Thomas