linux kernel compile

This is a discussion on linux kernel compile within the Tech Board forums, part of the Community Boards category; i finally got around to compiling my first kernel(2.4.2). everything went fine until i booted, it cant find the vmlinuz ...

  1. #1
    Registered User
    Join Date
    Jul 2002
    Posts
    913

    linux kernel compile

    i finally got around to compiling my first kernel(2.4.2). everything went fine until i booted, it cant find the vmlinuz file. how can i make this file? i hate most of the howtos(and the official one), it either doesnt tell you about the initrd image or it waits pages to just mention it. also do i still have to play with the system.map file even with grub?

  2. #2
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    at least yours compiles, I get this.

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    mart what does you lilo.conf look like? also check to see what is in your /boot dir. That is usaly where the kernel image resides.

    When I make a new kernel I always test it out but puttin this in my lilo.conf file

    Code:
    image=/usr/src/linux/arch/i386/boot/bzImage
    label = test-kernel
    I dont have my lilo.conf file on my. HTH.

  4. #4
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    im using grub. i made the bzImage but when i look at my config it not used. i made the initrd but i dont know how to make the linuz. i starting to wish i kept lilo.

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    lol.. I looked used GRUB for about 2 days, then I removed it!! Its got too much crap in it... Bloatware. lilo is nice lean and clean.

    You need to make a new entry in your grub.conf for the baImage.

  6. #6
    Banned frenchfry164's Avatar
    Join Date
    Oct 2001
    Posts
    1,552
    if I'm using GRUB, how can I switch to LILO without reinstalling again? I'm using RedHat 9.

  7. #7
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    if I'm using GRUB, how can I switch to LILO without reinstalling again? I'm using RedHat 9.
    play with the rpms. there a uninstall of all of the rpms then just install lilo. you might want to copy grub.conf some where for the lilo.conf, but there is a program to configure lilo(in X).

    i still keep forgetting all those rpm flags...............

    any one know how to make a new vmlinuz?

  8. #8
    Pursuing knowledge confuted's Avatar
    Join Date
    Jun 2002
    Posts
    1,916
    I hate to play the part of the übern00b, but...well, I am a n00b with Linux. What is the benefit of compiling the kernel yourself, unless you change some of the code before you compile to customize/fix something?
    Away.

  9. #9
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    the kernel most distros give you is compiled with almost everything they can come up with. do you have 10 video and sound cards? isdn? a laptop? things your probally havnt heard of in the last 10 years? recompiling lets you take out the crap, since its smaller its a little faster. i heard there is a couple hacks you can do, but right now i just wont it to work!!!!

    i know we have some unix people here, no linux guys?!?!?!?!?!?!?

  10. #10
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    Well think of this. What takes up less memory and gives you drivers for things that you need that not everyone has.

    The reason that I make a new kernel is so that I have only what I need/want in the kernel. Basicly it maked the kernel smaller faster and easier to mantain. You can also upgrade you kernel from what your disto came with.. Check out the kernel HOWTO at www.tldp.org

  11. #11
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    Originally posted by mart_man00
    i know we have some unix people here, no linux guys?!?!?!?!?!?!?
    Umm linux is about the same as unix. The main difference from what ive been told is that linux is free and open sourced. Unix (SUN HP-UX etc) are not free. Also the setup is a bit different.

    Think of all the different clones out there. That is what linux is... A unix clone

  12. #12
    Registered User
    Join Date
    Jul 2002
    Posts
    913
    im using the kernel howto while doing this. i went threw all of 2.4. Building New Kernel - Explanation of Steps. and it wouldnt boot it, then i found near the end a mention of the initrd file. the other guides dont even mention initrd of a vmlinux/z.

  13. #13
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    vmlinuz is generaly what is used as the name for the kernel image. I usualy keep the default kernel named vmlinuz and my custom kernels called bzImage. But that is just me.

    I forget if I ever had to make any changed to the initrd files. Not as far as I can rembemer. I just move my kernel to /boot and then edit /etc/lilo.conf (or /etc/grub.conf for all you grub freaks ) and then /sbin/lilo and reboot

    Ive never really had that many problems.

  14. #14
    Registered User
    Join Date
    Mar 2003
    Posts
    102
    Ahh Thanks.. I was unaware of the Certs to be called unix. Thanks for the info vVv. But I was refering to how they feel from a users stand point (ie at the cli). Only slightly different

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linux kernel not compiling
    By frenchfry164 in forum Tech Board
    Replies: 2
    Last Post: 04-29-2003, 05:10 PM
  2. Compile under linux, To windows
    By Pandora in forum Linux Programming
    Replies: 0
    Last Post: 04-12-2003, 01:55 PM
  3. How to compile C program in Linux?
    By siubo in forum C++ Programming
    Replies: 4
    Last Post: 04-07-2003, 01:42 AM
  4. Compile my code for Linux?
    By CompiledMonkey in forum Linux Programming
    Replies: 5
    Last Post: 11-17-2002, 02:02 AM
  5. Linux Under Windows
    By Strut in forum Linux Programming
    Replies: 3
    Last Post: 05-27-2002, 09:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21