LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   make-kpkg kernel compilation issues (https://www.linuxquestions.org/questions/debian-26/make-kpkg-kernel-compilation-issues-572803/)

1337ln 07-27-2007 02:54 PM

make-kpkg kernel compilation issues
 
I am using Debian Lenny kernel version Linux-2.6.21-2-686. I have been using Debian and Debian based distros for a while now, and kernel compilation has always been something I wanted to get into. I figured bootsplash would be an excellent tweak to start with =]

I began following the instructions located at
http://foo-bar.dk/7/12/

and the only time I strayed from that guide is when it told me to get the bootsplash patch from http://bootsplash.de/ (returned a 404 : page not found)



I realized from my own research it's now in the repos, so I preceeded to

Code:

apt-get install linux-patch-bootsplash
and then
Code:

cd /usr/src/kernel-patches/diffs/bootsplash
gunzip bootsplash-3.1.6-2.6.21.diff.gz

then I installed my kernel source and patched the kernel
Code:

apt-get install linux-source-2.6.21
cd /usr/src
tar -xjf linux-source-2.6.21.tar.bz2
ln -s linux-source-2.6.21 linux
cd linux
patch -p1 < ../kernel-patches/diffs/bootsplash/bootsplash-3.1.6-2.6.21.diff

all goes well, next
Code:

make menuconfig
make-kpkg --initrd binary-arch

after a long, long compile time (800MHz cpu)

back to a prompt

here's the catch

when I go on to the next step
Code:

make-kpkg modules_image
This happends:
Code:

Longcindia:/usr/src/linux# make-kpkg modules_image
exec debian/rules  DEBIAN_REVISION=2.6.21-10.00.Custom  modules_image
for module in  ; do                      \
          if test -d  $module; then                                \
            (cd $module;                                          \
              if ./debian/rules KVERS="2.6.21" KSRC="/usr/src/linux" \
                            KMAINT="Unknown Kernel Package Maintainer" KEMAIL="unknown@unconfigured.in.etc.kernel-pkg.conf"      \
                            KPKG_DEST_DIR="/usr/src/linux/.."      \
                            KPKG_MAINTAINER="Unknown Kernel Package Maintainer"        \
                            KPKG_EXTRAV_ARG=""        \
                            ARCH="i386"        \
                            KDREV="2.6.21-10.00.Custom" kdist_image; then    \
                  echo "Module $module processed fine";            \
              else                                                  \
                  echo "Module $module failed.";                  \
                  if [ "X" != "X" ]; then      \
                      echo "Perhaps $module does not understand --rootcmd?";  \
                      echo "If you see messages that indicate that it is not"; \
                      echo "in fact being built as root, please file a bug ";  \
                      echo "against $module.";                    \
                  fi;                                              \
                  echo "Hit return to Continue";                  \
                read ans;                                        \
              fi;                                                  \
            );                                                    \
          else                                                      \
              echo "Module $module does not exist";              \
              echo "Hit return to Continue?";                      \
          fi;                                                      \
        done
Longcindia:/usr/src/linux#

wth is that!? XD

It looks like a shell script, why or how I'm not sure (this is my first kernel compilation project)

It does say however done at the bottom, should this be ignored?
please help/advise

--
Salvatore Nuzzo

HappyTux 07-27-2007 03:19 PM

I do not see where you actually downloaded any modules so there are no modules to compile you do not need to do the modules_image step you should just install the kernel-image-??? and kernel-headers-??? packages that should be in your /usr/src then reboot into the new kernel to see if you got a working bootsplash from your efforts.

1337ln 07-27-2007 05:35 PM

hmm, alright
So I went ahead and installed my newly compiled kernel, and it came up with the following errors. It seems even though I have installed the bootsplash package in the Debian testing repos, as well as bootsplash-theme-debian, it seems the configuration script couldn't find the splash command, or my splash theme.

Is there anything I can do to point either or both in the right direction?
Code:

Longcindia:/usr/src# dpkg -i *.deb
Selecting previously deselected package linux-headers-2.6.21.
(Reading database ... 98741 files and directories currently installed.)
Unpacking linux-headers-2.6.21 (from linux-headers-2.6.21_2.6.21-10.00.Custom_i386.deb) ...
Selecting previously deselected package linux-image-2.6.21.
Unpacking linux-image-2.6.21 (from linux-image-2.6.21_2.6.21-10.00.Custom_i386.deb) ...
Done.
Setting up linux-headers-2.6.21 (2.6.21-10.00.Custom) ...

Setting up linux-image-2.6.21 (2.6.21-10.00.Custom) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
/usr/share/initramfs-tools/hooks/bootsplash: line 51: splash: command not found
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.21-2-686
Found kernel: /boot/vmlinuz-2.6.21
Updating /boot/grub/menu.lst ... done


Longcindia:/usr/src#


HappyTux 07-27-2007 05:57 PM

Quote:

Originally Posted by 1337ln
hmm, alright
So I went ahead and installed my newly compiled kernel, and it came up with the following errors. It seems even though I have installed the bootsplash package in the Debian testing repos, as well as bootsplash-theme-debian, it seems the configuration script couldn't find the splash command, or my splash theme.

Is there anything I can do to point either or both in the right direction?
Code:

Longcindia:/usr/src# dpkg -i *.deb
Selecting previously deselected package linux-headers-2.6.21.
(Reading database ... 98741 files and directories currently installed.)
Unpacking linux-headers-2.6.21 (from linux-headers-2.6.21_2.6.21-10.00.Custom_i386.deb) ...
Selecting previously deselected package linux-image-2.6.21.
Unpacking linux-image-2.6.21 (from linux-image-2.6.21_2.6.21-10.00.Custom_i386.deb) ...
Done.
Setting up linux-headers-2.6.21 (2.6.21-10.00.Custom) ...

Setting up linux-image-2.6.21 (2.6.21-10.00.Custom) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
/usr/share/initramfs-tools/hooks/bootsplash: line 51: splash: command not found
Running postinst hook script update-grub.
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found kernel: /boot/vmlinuz-2.6.21-2-686
Found kernel: /boot/vmlinuz-2.6.21
Updating /boot/grub/menu.lst ... done


Longcindia:/usr/src#


Look at line 51 in the file /usr/share/initramfs-tools/hooks/bootsplash to see what it says as to where it thinks it should find the splash command according to the file list of the bootsplash package it should be /usr/sbin/splash or /sbin/splash.sh you may have to edit the file to put the path in there. Once you would have done this the use dpkg -P on both the kernel and headers package to uninstall then install them again. For not finding the theme you might want to read the docs that came with the packages to see if there is some place you were expected to have put a theme for it to be used.


All times are GMT -5. The time now is 07:38 PM.