Hi Everyone,
Sorry for a very amateur question. Could anyone just help me get
started with compiling the linux kernel from the wireless-testing
tree? I just pulled the local wireless-testing repo, trying to
navigate through the code, and wanted to compile the kernel, and to
boot up to it. Could anyone just help me get started?
I followed the instructions from http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
and ended up with a compile error in 'make', while trying to create
the bzimage. (error is on make: initramfs_data.cpi.o failed)
Is there any other easy way to compile the kernel/debug.
Thanks
Balaji R
Hi,
Thanks for this info, i shall try to keep the old *working* config
option. Though, with the README help file, I was successfully able to
make and *select* my new target kernel, i had a kernel panic, and was
not able to boot to it, also i noticed that my USB keybd and mouse
connected to my monitor's usb port did not come up, so i guess
something bad happened while doing make modules_install install, or
while setting up the configurations before making.
I shall try to re-compile with my known good configuration.
Thanks again for the info.
Thanks
Balaji R
On Sep 28, 2009, at 2:52 PM, Hin-Tak Leung wrote:
>
> Also, compat-wireless (which just replaces the wireless-related kernel
> modules) is sometimes a quicker/easier alternative to the whole
> wireless-testing.
On Fri, Sep 25, 2009 at 6:21 AM, Balaji Ravindran <[email protected]> wrote:
> Hi Everyone,
>
> Sorry for a very amateur question. Could anyone just help me get started
> with compiling the linux kernel from the wireless-testing tree? I just
> pulled the local wireless-testing repo, trying to navigate through the code,
> and wanted to compile the kernel, and to boot up to it. Could anyone just
> help me get started?
>
> I followed the instructions from
> http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
> and ended up with a compile error in 'make', while trying to create the
> bzimage. (error is on make: initramfs_data.cpi.o failed)
>
> Is there any other easy way to compile the kernel/debug.
>
>
> Thanks
>
> Balaji R
> --
> To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
> the body of a message to [email protected]
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
As the other replier has already stated, including the last few lines
of the message before the error would be nice.
Also, if you haven't built your own kernel before, it is probably
better to start from a known configuration rather than from scratch.
While all the tutorial, etc tells you to do 'make mrproper ; make
menuconfig/xconfig; make' , there are occasionally some missing
dependencies which aren't explicitly hooked up, so it might be easier
to do, instead of make menuconfig/xconfig, in the middle, copy your
distro's config (or your current running kernel's config) from either
/boot/config-* (packaged from your distro) or /proc/config.gz (for a
kernel which remembers its own config - it is a kernel config opton),
to .config in your source tree, run make oldconfig (which only ask
your questions about *difference* between the tree and the running
kernel), before running make menuconfig/xconfig. This way, you are
starting from a valid and know-working configuration for your
hardware/archecture.
Also, compat-wireless (which just replaces the wireless-related kernel
modules) is sometimes a quicker/easier alternative to the whole
wireless-testing.
> I followed the instructions from
> http://www.cyberciti.biz/tips/compiling-linux-kernel-26.html
> and ended up with a compile error in 'make', while trying to
> create the bzimage. (error is on make: initramfs_data.cpi.o
> failed)
Hmm, I simply compile almost-self-contained kernels, without any
initramfs. Slows down the boot and isn't needed for the usual
IDE/SATA desktop PCs anyway.
If you don't want to go that way, you'd better post the whole
error. Maybe when doing "make V=1", and include some (10 or so)
lines from above the error message above.
--
http://www.holgerschurig.de