l i n u x - u s e r s - g r o u p - o f - d a v i s
L U G O D
 
Next Meeting:
October 20: Web Application Hacking: How to Make and Break Security on the Web
Next Installfest:
TBD
Latest News:
Oct. 10: LUGOD Installfests coming again soon
Page last updated:
2005 Jan 26 14:31

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] Kernel compiles with a dash of debian magic
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] Kernel compiles with a dash of debian magic



Hi Richard,

On Wed 26 Jan 05,  1:54 PM, Richard Burkhart <richard@khanfusion.net> said:
> I'm trying to learn the arcane art of kernel compiles

You need to get this out of your head -- there's nothing arcane about
compiling a kernel.  It should be a very common and natural thing for you to
do.

The arcane part is done by the developers, namely writing the code and
getting the dependencies straight.

Although I'm sure there are developers who'd say that I should get THAT
notion out of my head...

> ... my goal is to get ndiswrapper compiled as a module, operational, and
> driving a linksys wireless card.

> Thanks to a guide at http://www.osnews.com/story.php?news_id=2949 I've 
> got the 'compile' part down, using make-kpkg to build the kernel image 
> as a .deb file and automagically install it.
> 
> Of *course* there's something I'll do wrong.  Last night's attempt to 
> build a trimmed 2.4.29 kernel is kernel panic'ing in the boot process.  

You should really tell us when in the boot process it panics.

I've found the most common reasons for panics during the boot phase of a
home compiled kernel:

   * you forgot to type "lilo".
   * something important was built as a module and it shouldn't have
      (no more initrd).
   * forgot to build your root filesystem's filesystem into the kernel.
   * forgot to include the proper IDE / mobo chipset support.

That's an exhaustive list as far as my personal experience goes.  I'm sure
there's others.

> Sooo ... time to try again. Except --  how do I get rid of the damaged 
> kernel & modules so I can try again? 
>
> The guide at  http://newbiedoc.sourceforge.net/system/kernel-pkg.html 
> suggests the command "dpkg -P /boot/(kernel image name)" to uninstall 
> it.  That didn't work  
> 
> Trying to remove the kernel through 'dpkg (-r / -P) [kernel image .deb 
> name]' isn't doing anything either.  (I read the dpkg manpage and 
> guessed at that part).
> 
> So I've googled ... I've read manpages ... I've R T'ed the effing M ... 
> and I'm still wondering:
> 
> - Is there a way through dpkg to clear out my damaged 2.4.29 kernel (w) 
> any of its other wreckage (modules, etc).
> 
> or
> 
> - Where on the filesystem do I need to go through to manually remove 
> the flipping thing?  (The kernel image, the modules directory, the 
> entries in GRUB, etc.)?
 
You can see what dpkg installed on your system with:

   dpkg -L packagename

I myself don't use the Debian Way for kernel compiles.  Probably because at
this point, I'm an old dog who doesn't want to learn a new trick.

But to answer your question, your kernel is likely to be in /boot with a
symlink to /.

Your modules are located in /lib/modules/x.y.z.

Pete

-- 
The mathematics of physics has become ever more abstract, rather than more
complicated.  The mind of God appears to be abstract but not complicated.
He also appears to like group theory.  --  Tony Zee's "Fearful Symmetry"

GPG Fingerprint: B9F1 6CF3 47C4 7CD8 D33E  70A9 A3B9 1945 67EA 951D
_______________________________________________
vox-tech mailing list
vox-tech@lists.lugod.org
http://lists.lugod.org/mailman/listinfo/vox-tech



LinkedIn
LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
facebook
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
Appahost Applications
For a significant contribution towards our projector, and a generous donation to allow us to continue meeting at the Davis Library.