Jump to content


custom kernal - I won't give up


  • Please log in to reply
15 replies to this topic

#1 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 04 May 2005 - 04:26 PM

I did the followingmake menconfigsave as mykernalmakemake -j5 bzImagemake modulesmake modules_installcp mykernel to /boot/configcp /usr/src/linux/arch/i386/bootv/vmlinux to /boot/vmlinuz-ccp /usr/src/linux/arch/i386/bootv/System.map to /boot/System.map-ccd /bootrm vmlinuzln -s vmlinuz-crm System.mapln -s System.map-c System.mapThis worked (I think)  :) I tried making a boot disk and the image was to largeI then configured lilo to a dos floppy /dev/fd0This worked (I think)  :) I did not make init.rd  B) I did not make mproper  :thumbsup: I booted the floppylilo came up as i enteredit saw the reconfigured kernelno apparant issues (except it couldnt relate to scsi (i have sata intel) and the graphics card not recognized but this happened with the genric kernel and it worked fine)It got to a logon prompt but my keyboard didn't work   :)

#2 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 04 May 2005 - 06:23 PM

Is it an USB keyboard ??:D Bruno

#3 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 04 May 2005 - 06:23 PM

Is it an USB keyboard ??:D Bruno

#4 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 04 May 2005 - 06:41 PM

Bruno, on May 4 2005, 03:23 PM, said:

Is it an USB keyboard ??:D Bruno

<{POST_SNAPBACK}>

Yes to the first postYes to the second post

#5 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 04 May 2005 - 06:45 PM

mike_n_Kelli, on May 4 2005, 03:41 PM, said:

Yes to the first postYes to the second post

<{POST_SNAPBACK}>



#6 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 04 May 2005 - 06:46 PM

LOL . . I did not see I had posted twice . . . . and exactly the same :DDo you have a PS2 adapter ?? Because you will have to make an initrd.img and include the USB modules . . . .:D Bruno

#7 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 04 May 2005 - 06:52 PM

Bruno, on May 4 2005, 03:46 PM, said:

LOL . . I did not see I had posted twice . . . . and exactly the same :DDo you have a PS2 adapter ?? Because you will have to make an initrd.img and include the USB modules . . . .:D Bruno

<{POST_SNAPBACK}>

YUPor I can boot slack installation and mount the directories and the keyboard will be active.  What do I need to do???

#8 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 04 May 2005 - 06:58 PM

Post me the content of the  /etc/sysconfig/installkernel file and I will make you the command . . . I also need the kernel version.Take your time because it is far after midnight and I am logging off now . . so do not expect the reply before tomorrow.:D Bruno

#9 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 04 May 2005 - 07:06 PM

Bruno, on May 4 2005, 03:58 PM, said:

Post me the content of the  /etc/sysconfig/installkernel file and I will make you the command . . . I also need the kernel version.Take your time because it is far after midnight and I am logging off now . . so do not expect the reply before tomorrow.:D Bruno

<{POST_SNAPBACK}>

ThanksYour expectation as to the timing of your reply not only fits with your schedule but is eerily prophetic as to mine. I plan to respond tomorrow am from Sandpoint, Idaho (US PST), since 2 more hours will likely result in spousal homicide in my houusehold.  Unfortulnately, I would be the victim.

#10 OFFLINE   teacher

teacher

    Acute Mac

  • Honorary Moderators
  • 13,854 posts

Posted 04 May 2005 - 07:10 PM

MikeThat sounds serious.  Please appease the spouse.  We would hate to have to sit here and wonder if it took place or if she just cut off your lifeline to the Internet.   :D
Teacher
Beach Bum Extraordinaire

#11 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 05 May 2005 - 03:58 AM

Hi MikeHere is the command to make an extra initrd.img . . . . please replace <kernelversion> with the output of "uname -r" of your new kernel.
# mkinitrd   --preload=ehci-hcd  --preload=usb-storage  --preload=scsi_mod  --preload=sd_mod  /boot/usbinitrd.img   <kernelversion>
( Command is ONE line ! )After giving the command you will find "usbinitrd.img" in boot . . . include that in your lilo ( initrd=/boot/usbinitrd.img ) in the section of that 2.6.11 kernel and you should be okay.B) BrunoNOTE: That initrd might have more then you really need but that will not hurt either ;)

#12 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 05 May 2005 - 12:36 PM

Bruno, on May 5 2005, 12:58 AM, said:

Hi MikeHere is the command to make an extra initrd.img . . . . please replace <kernelversion> with the output of "uname -r" of your new kernel.
# mkinitrd   --preload=ehci-hcd  --preload=usb-storage  --preload=scsi_mod  --preload=sd_mod  /boot/usbinitrd.img   <kernelversion>
( Command is ONE line ! )After giving the command you will find "usbinitrd.img" in boot . . . include that in your lilo ( initrd=/boot/usbinitrd.img ) in the section of that 2.6.11 kernel and you should be okay.B) BrunoNOTE: That initrd might have more then you really need but that will not hurt either ;)

<{POST_SNAPBACK}>

Thanks.  New somewhat related question.As I indicated before when I set up the custom kernel before lilo I copied /usr/src/linux/vmlinux to /boot/vmlinuz(versio) and created a new syn link to this file called vmlinuz .Some documentation said I should have copied /usr/src/linbux/arch/i386/boot/bzImage to /boot/bzImage and linked syntheticlly to this file.Which is proper and and why.Also, dmesg showed something linke (intel pentium 4 gcc ... should be intel 586  gcc ...)  what the heck is that all about.Y'all are great thanks for the help.

#13 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 05 May 2005 - 01:39 PM

Hi Mike

Quote

Some documentation said I should have copied /usr/src/linbux/arch/i386/boot/bzImage to /boot/bzImage
That is the good oldfashon way . . . . and you would use /boot/bzimage in lilo and not vmlinuz . . . . To confuse you even more: What I normally do is copy  /usr/src/linbux/arch/i386/boot/bzImage to /boot/vmlinuz ;) :PHere is a quote from the Tips for Linux Explorers: ( Link )Copy /boot/vmlinuz to vmlinuz.oldThen copy /usr/src/<dir. new kernel>/arch/i386/boot/bzImage to /boot/vmlinuzThen copy /usr/src/<dir. new kernel>/arch/i386/boot/System.map to /boot/System.mapEdit your /etc/lilo.conf or /boot/grub/grub.conf to add a configuration line for your new kernel. ( leave the old part in there and point it to vmlinuz.old, in case of troubles you can always boot the old one )If using lilo run /sbin/liloB) Bruno

#14 OFFLINE   mike_n_Kelli

mike_n_Kelli

    Contributor

  • Members
  • PipPip
  • 20 posts

Posted 06 May 2005 - 02:09 PM

The suggestion on initd did not work.  No file was named as described in /bootthere was initd.gzI added this to lilousb keyboard and mouse did not work

#15 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 06 May 2005 - 02:30 PM

You mean "mkinitrd" did not make that file ??  . . . Strange !  . . . . Can you type "mkinitrd -h" and see what options it gives you to make such a file . . NOTE: In the original setup of Slack it does not use an intird in lilo . . . .  I am not 100% sure you would indeed need one . . . maybe it is just that the kernel you compiled yourself has "errors"or things you failed to build in ??Does it still boot the original kernel ?:D Bruno

#16 OFFLINE   Bruno

Bruno

    Le Professeur Pingouin

  • Admin Emeritus
  • 37,904 posts

Posted 06 May 2005 - 03:15 PM

Mike . . . I am thinking of another thing . . . . the keyborad driver in xorg.conf . . . . See I know Slackware ( and the Slackware kernel ) used to switch to another driver in the middle of 9.2 when updating to  "current" . . . we had to change the xorg.conf because the kernel modules somehow made the change needed.I am trying to google it but can not find the answer I am looking for . . . but bare with me:This is what is in my Slack now:

Quote

Section "InputDevice"    Identifier  "Keyboard1"    Driver      "kbd"
It probably is the same in your xorg.conf . . . . now it is very well possible that if you compile your own kernel you need another driver . . I checked Vector Linux ( based on Slack ) but it uses the same kbd driver . . . . . So now I am searching for the name of that other driver so you can try if that works . . . ( or you have to recompile your kernel to use the kbd driver . . ):D BrunoUPDATE: .. . . Will post what I find here:http://channels.lock...upgrading.phtml ( uses "keyboard" as driver like Mandrake does.http://www.linuxques...005/02/3/289651 ( suggests:  try changing "kbd" with "Keyboard" )




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users