You are not logged in.

#1 2008-02-06 17:59:33

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Hi Archers,

I tried to put a bootsplash and for that I first pached the kernel with the PKGBUILD from ABS using this HOW-TO :
http://archlinux.veloxis.de/howtos/boot … to_us.html

The patched kernel works very well.

Then I wanted to add a splash using the splash utility, following this HOW-TO :
http://wiki.archlinux.org/index.php/Bootsplash

Then I edited the grub and rebooted.

All I can see is a kernel panic, telling me this :

RAMDISK : Couldn't find valid RAM disk image starting at 0
List of all partitions :
No file system could mount root, tried :
Kernel Panic - VFS : Unable to mount root fs on unknown block (0,0)

This is quite weird since some lines above I can see that the RAMDISK has been initialized :

RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize

Does anynone have an idea of what could be the cause of the problem ?

Thanks

++++++++++++

Offline

#2 2008-02-06 18:14:33

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

can you post your grub config ? /boot/grub/menu.lst


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#3 2008-02-06 18:27:09

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

I have two Arch partitions. The "Testing" is the one I use for the bootsplash

# (0) Arch Linux
title  Arch Linux
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/sda6 ro vga=791
initrd /boot/kernel26.img

# (1) Arch Linux Fallback
title  Arch Linux Fallback
root   (hd0,5)
kernel /boot/vmlinuz26 root=/dev/sda6 ro
initrd /boot/kernel26-fallback.img

# (2) Arch Linux Testing
title  Arch Linux Testing
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro vga=791
initrd /boot/kernel26.img

# (3) Arch Linux Testing Bootsplash
title  Arch Linux Testing Bootsplash
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 vga=791 video=vesafb:ywrap,mtrr:3 splash=silent quiet
initrd /boot/initrd.splash

# (4) Arch Linux Testing Fallback
title  Arch Linux Testing Fallback
root   (hd0,4)
kernel /boot/vmlinuz26 root=/dev/sda5 ro
initrd /boot/kernel26-fallback.img

I tried everything for the grub. First I only had vga=791, then I added video=etc... and splash=silent, then quiet. Nothing works.

Offline

#4 2008-02-07 11:58:50

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

I think I've found what is the cause of the problem but this is quite weird.

To activate bootsplash, the bootsplash option have to be activated in the kernel configuration file (config) :

CONFIG_FBCON_SPLASHSCREEN=y

So I added this option at the end of the config file. The other required options were already activated by default.

After having installed the new kernel thanks to the pacman -U command, I can see in the config file, which has been automatically generated during the compilation (/boot/kconfig26), that the bootsplash option is no more activated ! The entire line has been erased.

How can an option be erased during the compilation ? Where could I find what caused this problem ? Here is my PKGBUILD, which I think is correct : (I have deactivated the Arch logo)

# $Id: PKGBUILD,v 1.286 2008/01/15 19:37:50 tpowa Exp $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgname=kernel26
_basekernel=2.6.23
pkgver=2.6.23.14
pkgrel=3
pkgdesc="The Linux Kernel and modules"
arch=(i686 x86_64)
license=('GPL2')
groups=('base')
url="http://www.kernel.org"
backup=('boot/kconfig26' etc/mkinitcpio.d/${pkgname}.preset)
depends=('coreutils' 'module-init-tools' 'mkinitcpio>=0.5.15')
# pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
# nforce package support was abandoned by nvidia, kernel modules should cover everything now.
# kernel24 support is dropped since glibc24
replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
          'alsa-driver' 'ieee80211' 'hostap-driver26'
          'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
      'zd1211' 'kvm-modules')
install=kernel26.install
source=(ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-$_basekernel.tar.bz2
    ftp://ftp.kernel.org/pub/linux/kernel/v2.6/patch-$pkgver.bz2
    ### next two lines only needed for rc kernel building
    #http://www.kernel.org/pub/linux/kernel/v2.6/testing/patch-2.6.23-rc9.bz2
    #http://www.kernel.org/pub/linux/kernel/v2.6/snapshots/patch-2.6.23-rc9-git2.bz2
    # the main kernel config files
    config config.x86_64
    # the archlinux boot logos
    #logo_linux_clut224.ppm
    #logo_linux_mono.pbm
    #logo_linux_vga16.ppm
    # standard config files for mkinitcpio ramdisk
    kernel26.preset
    mkinitcpio-$pkgname.conf
    # add possibility to load your own dsdt acpi table
    acpi-dsdt-initrd-v0.8.4-2.6.21.patch
    # fix bluetooth on some toshiba notebooks
    toshiba-bluetooth.patch
    # add additional unusual usb entry
    usb-storage-unusual-devs.patch
    # cfs scheduler backport, modified to apply with gregs stable patch
    #http://people.redhat.com/mingo/cfs-scheduler/sched-cfs-v2.6.23.8-v24.patch
    ftp://ftp.archlinux.org/other/kernel26/sched-cfs-v2.6.23.11-v24.patch
    # improve intel macintosh support
    mactel-linux-2.6.23.patch
    # update to alsa snapshot 20071124
    ftp://ftp.archlinux.org/other/kernel26/alsa-20071124.patch.bz2
    ftp://ftp.archlinux.org/other/kernel26/alsa-include-20071117.patch.bz2
    # fix broken acpi c states on buggy bioses, which violate acpi specification
    acpi-buggy-bios.patch
    # add squashfs and unionfs
    http://heanet.dl.sourceforge.net/sourceforge/squashfs/squashfs3.3.tar.gz
    http://download.filesystems.org/unionfs/unionfs-2.x/unionfs-2.1.11_for_2.6.23.9.diff.gz
    # two patches below for aufs compatibility
    put_filp.patch
    lhash-2.6.22.patch
    # fix hibernating support for saa7134 devices, implemented in .24 series finally
    hibernate-saa7134.diff
    # add possibility to undervolt certain cpus
    linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch
    # adding genpatches from gentoo
    2405_hostap-netdev-type.patch
    # fix Leadtek_WinFast_2000
    winfast-2000.patch
    bootsplash-3.1.6-2.6.21.diff
)

build() {
  [ "${CARCH}" = "i686" ]   && KARCH=i386
  [ "${CARCH}" = "x86_64" ] && KARCH=x86_64

  cd $startdir/src/linux-$_basekernel
  # add upstream patch from 2.6.23 series
  patch -Np1 -i ../patch-$pkgver || return 1

  # greg kroahs stable patches, in reference to:
  # http://git.kernel.org/?p=linux/kernel/git/stable/stable-queue.git
  # add them if needed

  # add latest CFS scheduler backport
  # in reference to lkml:
  # By popular demand, here is release -v24 of the CFS scheduler patch.
  # It is a full backport of the latest & greatest scheduler code to 
  # http://people.redhat.com/mingo/cfs-scheduler/
  patch -Np1 -i ../sched-cfs-v2.6.23.11-v24.patch || return 1

  ### next 2 lines are only needed for rc kernels
  #patch -Np1 -i ../patch-$pkgver-rc9 || return 1
  #patch -Np1 -i ../patch-2.6.23-rc9-git2 || return 1

  # add custom acpi dsdt patch, in reference to:
  # http://gaugusch.at/kernel.shtml
  # http://acpi.sourceforge.net
  patch -Np1 -i ../acpi-dsdt-initrd-v0.8.4-2.6.21.patch || return 1

  # fix enabling of bluetooth on some toshiba notebooks in reference to:
  # http://bugs.archlinux.org/task/5608
  # http://www.cwrose.de/toshiba/s5200.html#bluetooth
  patch -Np1 -i ../toshiba-bluetooth.patch || return 1

  # fix I/O errors with Teac HD-35PU devices
  patch -Np1 -i ../usb-storage-unusual-devs.patch || return 1

  # get latest alsa status, in reference to:
  # ftp://ftp.suse.com/pub/projects/alsa/snapshot/driver/
  # patches are created by diffing the kernel source,
  # against the alsa-kernel/ directory from tarball.
  # status is 20071124
  patch -Np0 -i ../alsa-20071124.patch || return 1
  patch -Np0 -i ../alsa-include-20071117.patch || return 1

  # improve intel macintosh support, in reference to:
  # http://www.mactel-linux.org/wiki/Main_Page
  # http://mactel-linux.svn.sourceforge.net/viewvc/mactel-linux/trunk/kernel/
  patch -Np1 -i ../mactel-linux-2.6.23.patch || return 1

  # add possibility to undervolt certain cpus, in reference to:
  # https://www.dedigentoo.org/trac/linux-phc/
  patch -Np1 -i ../linux-phc-0.3.0-kernel-vanilla-2.6.23rc3.patch || return 1

  # fix buggy bios acpi to get c states, which violate acpi specification, in reference to:
  # http://bugzilla.kernel.org/show_bug.cgi?id=7578
  # http://bugs.archlinux.org/task/6875
  patch -Np1 -i ../acpi-buggy-bios.patch || return 1

  # fix hibernate support on saa7134
  # made by the vl4 team in the kernel plus a lot of
  # help from one of the Alsa devs. The problem is that when you suspend to
  # ram or to disk, saa7134 devices don't come out of suspend.
  # sent in by: Hussam Al-Tayeb <ht990332@gmail.com>
  patch -Np0 -i ../hibernate-saa7134.diff || return 1

  # fix Leadtek_WinFast_2000
  # in reference to: 
  # http://www.linuxtv.org/v4lwiki/index.php/Leadtek_WinFast_2000
  patch -Np0 -i ../winfast-2000.patch || return 1

  # adding some genpatches from gentoo, in reference to:
  # http://sources.gentoo.org/viewcvs.py/linux-patches/genpatches-2.6/trunk/2.6.23/
  patch -Np1 -i ../2405_hostap-netdev-type.patch || return 1

  # add sqashfs support, in reference to:
  # http://squashfs.sourceforge.net/
  patch -Np1 -i ../squashfs3.3/kernel-patches/linux-2.6.23/squashfs3.3-patch || return 1

  # add unionfs support. in reference to:
  # http://www.fsl.cs.sunysb.edu/project-unionfs.html
  patch -Np1 -i ../unionfs-2.1.11_for_2.6.23.9.diff || return 1

  # add put_filp and lhash patches for aufs, in reference to:
  # http://aufs.sourceforge.net/
  patch -Np0 -i ../put_filp.patch || return 1
  patch -Np1 -i ../lhash-2.6.22.patch || return 1

  patch -Np1 -i ../bootsplash-3.1.6-2.6.21.diff

  # remove the extraversion from Makefile
  ### next line is only needed for rc kernels
  #sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =-rc9|g' Makefile
  sed -i 's|^EXTRAVERSION = .*$|EXTRAVERSION =|g' Makefile
  # Arch logo!
  #cp ../logo_linux_clut224.ppm drivers/video/logo/
  #cp ../logo_linux_mono.pbm drivers/video/logo/
  #cp ../logo_linux_vga16.ppm drivers/video/logo/
  if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
  else
    cat ../config >./.config
  fi
  # build the full kernel version to use in pathnames
  . ./.config
  ### next line is only needed for rc kernels
  #_kernver="2.6.23-rc9${CONFIG_LOCALVERSION}"
  _kernver="${_basekernel}${CONFIG_LOCALVERSION}"
  # load configuration
  yes "" | make config
  # build!
  ####################
  # stop here
  #msg "Stopping build"
  #return 1
  ####################
  make bzImage modules || return 1
  mkdir -p $startdir/pkg/{lib/modules,boot}
  make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
  cp System.map $startdir/pkg/boot/System.map26
  cp arch/$KARCH/boot/bzImage $startdir/pkg/boot/vmlinuz26
  install -D -m644 Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/Makefile
  install -D -m644 kernel/Makefile \
    $startdir/pkg/usr/src/linux-${_kernver}/kernel/Makefile
  install -D -m644 .config \
    $startdir/pkg/usr/src/linux-${_kernver}/.config
  install -D -m644 .config $startdir/pkg/boot/kconfig26
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include

  for i in acpi asm-{generic,i386,x86_64} config linux math-emu media net pcmcia scsi sound video; do
    cp -a include/$i $startdir/pkg/usr/src/linux-${_kernver}/include/
  done

  # copy files necessary for later builds, like nvidia and vmware
  cp Module.symvers $startdir/pkg/usr/src/linux-${_kernver}
  cp -a scripts $startdir/pkg/usr/src/linux-${_kernver}
  # fix permissions on scripts dir
  chmod og-w -R $startdir/pkg/usr/src/linux-${_kernver}/scripts
  #mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/.tmp_versions

  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel

  cp arch/$KARCH/Makefile $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile.cpu $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/
  fi
  cp arch/$KARCH/kernel/asm-offsets.s $startdir/pkg/usr/src/linux-${_kernver}/arch/$KARCH/kernel/

  # add headers for lirc package
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video
  cp drivers/media/video/*.h  $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/
  for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
   mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
   cp -a drivers/media/video/$i/*.h $startdir/pkg/usr/src/linux-${_kernver}/drivers/media/video/$i
  done
  # add dm headers
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
  cp drivers/md/*.h  $startdir/pkg/usr/src/linux-${_kernver}/drivers/md
  # add inotify.h
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/include/linux
  cp include/linux/inotify.h $startdir/pkg/usr/src/linux-${_kernver}/include/linux/
  # add CLUSTERIP file for iptables
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  cp net/ipv4/netfilter/ipt_CLUSTERIP.c $startdir/pkg/usr/src/linux-${_kernver}/net/ipv4/netfilter/
  # add wireless headers
  mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
  cp net/mac80211/*.h $startdir/pkg/usr/src/linux-${_kernver}/net/mac80211/
  # add vmlinux
  cp vmlinux $startdir/pkg/usr/src/linux-${_kernver}
  # copy in Kconfig files
  for i in `find . -name "Kconfig*"`; do 
    mkdir -p $startdir/pkg/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i $startdir/pkg/usr/src/linux-${_kernver}/$i
  done

  cd $startdir/pkg/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm

  chown -R root.root $startdir/pkg/usr/src/linux-${_kernver}
  find $startdir/pkg/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
  cd $startdir/pkg/lib/modules/${_kernver} && \
    (rm -f source build; ln -sf ../../../usr/src/linux-${_kernver} build)
  # install fallback mkinitcpio.conf file and preset file for kernel
  install -m644 -D $startdir/src/${pkgname}.preset $startdir/pkg/etc/mkinitcpio.d/${pkgname}.preset || return 1
  install -m644 -D $startdir/src/mkinitcpio-$pkgname.conf $startdir/pkg/etc/mkinitcpio.d/$pkgname-fallback.conf || return 1
  # set correct depmod command for install
  sed -i -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" $startdir/kernel26.install
  echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${startdir}/pkg/etc/mkinitcpio.d/${pkgname}.kver
  # remove unneeded architectures
  rm -rf $startdir/pkg/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
}

I'm a newbie in the kernel world so I'm a little bit lost in all theses files and options.

Thanks

Last edited by jaymz_64 (2008-02-07 12:20:37)

Offline

#5 2008-02-07 12:41:03

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

thats because some of the default options in the kernel disable the FBSplash option. I found that you have to remove some of the default graphics card specific Frame buffer modules.

the best way to twaek the setup is to run makepkg kerenel... and then stop it once it starts to compile the kernel

cd into the kernel-... dir and then the src directory
type make menuconfig and load an alternative config
the config file is in the root of your working direct so for me it's home/me/abs/kernel/config

make the changes save to the same file and make the pkg

if your really struggling i can upload a config file that i have made that works.


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#6 2008-02-07 16:40:03

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Thanks genesis300

I've tried what you said but it doesn't work. In the /src directory, when I type make menuconfig it tells me "No rules to build the target "menuconfig". Stop. "

Could you tell me what default modules should I remove ? Is it dangerous if I've got a graphic card (Nvidia) ? Is it default options like these ones ?

#
# Frame buffer hardware drivers
#
CONFIG_FB_CIRRUS=m
CONFIG_FB_PM2=m
CONFIG_FB_PM2_FIFO_DISCONNECT=y
CONFIG_FB_CYBER2000=m
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
CONFIG_FB_VESA=y
# CONFIG_FB_IMAC is not set
# CONFIG_FB_HECUBA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
CONFIG_FB_NVIDIA=m
CONFIG_FB_NVIDIA_I2C=y
# CONFIG_FB_NVIDIA_DEBUG is not set
CONFIG_FB_NVIDIA_BACKLIGHT=y
CONFIG_FB_RIVA=m
CONFIG_FB_RIVA_I2C=y
# CONFIG_FB_RIVA_DEBUG is not set
CONFIG_FB_RIVA_BACKLIGHT=y
CONFIG_FB_I810=m
# CONFIG_FB_I810_GTF is not set
CONFIG_FB_LE80578=m
CONFIG_FB_CARILLO_RANCH=m
CONFIG_FB_INTEL=m
# CONFIG_FB_INTEL_DEBUG is not set
CONFIG_FB_INTEL_I2C=y
# CONFIG_FB_MATROX is not set
CONFIG_FB_RADEON=m
CONFIG_FB_RADEON_I2C=y
CONFIG_FB_RADEON_BACKLIGHT=y
# CONFIG_FB_RADEON_DEBUG is not set
CONFIG_FB_ATY128=m
CONFIG_FB_ATY128_BACKLIGHT=y
CONFIG_FB_ATY=m
CONFIG_FB_ATY_CT=y
CONFIG_FB_ATY_GENERIC_LCD=y
CONFIG_FB_ATY_GX=y
CONFIG_FB_ATY_BACKLIGHT=y
CONFIG_FB_S3=m
CONFIG_FB_SAVAGE=m
CONFIG_FB_SAVAGE_I2C=y
CONFIG_FB_SAVAGE_ACCEL=y
CONFIG_FB_SIS=m
CONFIG_FB_SIS_300=y
CONFIG_FB_SIS_315=y
CONFIG_FB_NEOMAGIC=m
CONFIG_FB_KYRO=m
CONFIG_FB_3DFX=m
CONFIG_FB_3DFX_ACCEL=y
CONFIG_FB_VOODOO1=m
CONFIG_FB_VT8623=m
CONFIG_FB_CYBLA=m
CONFIG_FB_TRIDENT=m
CONFIG_FB_TRIDENT_ACCEL=y
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_SM501 is not set
# CONFIG_FB_VIRTUAL is not set

Otherwise if you have a config file that works I would appreciate your help

Offline

#7 2008-02-07 17:09:06

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

you need to run the makepkg until it has finished extracting and patching
then cd src/linux-2....
then make menuconfig sorry i missed one step

then follow the above with the alternative config file.

I'll post a config when i get home smile


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#8 2008-02-07 17:49:35

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

well now "make menuconfig" works ! big_smile

But I don't understand how can I stop and then restart the makepkg because when I restart the makepkg there's an error and I have to delete the src folder. Is there a commande to "pause" the makepkg ?

Otherwise the only way to do it is to stop at the beginning of the compilation like you said, to change the config file and then to start the compilation with make, make install, etc.. But I don't know how to do it, I would like to have an Arch package at the end and not to install the kernel in the "classic way" (I think). I have never made such compilations, except with small applications.

Can you tell me what do you mean exactly when you say "make the changes save to the same file and make the pkg"

Thank you smile

Last edited by jaymz_64 (2008-02-07 17:52:33)

Offline

#9 2008-02-07 18:55:47

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Ok this is how i did it

change to the directory your working from
remove the src director and all it's files
run the makepkg command

wait until you see it compiling the kernel and press control - c

go back into the src directory run make menuconfig and load the alternative config file located in the working dir like i said for me it's /home/me/kernel/config

make the changes save the file back to the same so /home/me/abs/kernel/config

exit and remove all files in the src directory
now run makepkg and your done

hope that helps smile

Last edited by genisis300 (2008-02-07 18:56:35)


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#10 2008-02-07 18:57:45

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

man makepkg

makepkg -o

-o, --nobuild
           Download and extract files only, but do not build them. Useful with
           the --noextract option if you wish to tweak the files in src/
           before building.

smile

Last edited by jacko (2008-02-07 18:58:21)

Offline

#11 2008-02-07 19:04:58

jacko
Member
Registered: 2007-11-23
Posts: 840

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

your problem is right here in the PKGBUILD

if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
  else
    cat ../config >./.config
  fi

your changes are getting overwritten by the default when the makepkg makes .config from the config files in the PKGBUILD. You are changing the wrong config file is what I am trying to tell you. If that makes any sense.

what I normally do is run makepkg -o, go into the src/ directory and run make menuconfig. Save the output to whatever file u want. then I take that file and copy it over to the PKGBUILD directory and save it has the $ARCH you have, which is config.x86_64 for me. If you are on 1686 then its just config. Look at the code above and u will see what to change.

Last edited by jacko (2008-02-07 19:08:52)

Offline

#12 2008-02-07 19:07:28

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

lol thanks jacko should have read the man pages


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#13 2008-02-07 19:08:44

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Yes so should I tongue thanks both of you big_smile I'm gonna try this tonight or tomorrow wink

Last edited by jaymz_64 (2008-02-07 19:09:04)

Offline

#14 2008-02-07 20:56:05

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Well it works, almost.

Now I have another problem, which I think was the original one.

Indeed, the config file I edited was the one from the ABS tree, the good one so, since it's the one which overwrites the '.config' file from the src folder.

Well, I ran makepkg -o, make menuconfig, saved the output in the file .config. Then I copied this over the config file from ABS.
At this point, three options are missing : CONFIG_FB, CONFIG_FB_VESA and CONFIG_FBCON_SPLASHSCREEN.
So I added these three options.

Then I ran makepkg -e and when I read the .conf file in the src folder I see that the third option is missing, whereas the first two are still there.

So I stopped the compilation and read the STDOUT in the shell and here is the problem :

HOSTLD  scripts/kconfig/conf
scripts/kconfig/conf arch/i386/Kconfig
.config:1030:warning: trying to assign nonexistent symbol FBCON_SPLASHSCREEN
*

So the real problem is the fact that this option is not recognized by the compilator. I have followed this HOW-TO for the options : http://archlinux.veloxis.de/howtos/boot … to_us.html

Maybe it is too old and this option is no more recognized in the kernel 2.6.23 ? Do you have an idea about how could I resolve this problem ? Thank you smile

Last edited by jaymz_64 (2008-02-07 20:59:44)

Offline

#15 2008-02-07 21:20:48

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

that wiki is very old
try this one

is the currentish one.

if i had to guess i would say the problems is down to manual editing the file instead of the make menuconfig option.

#
# Frame buffer hardware drivers
#
# CONFIG_FB_CIRRUS is not set
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ARC is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
# CONFIG_FB_VGA16 is not set
CONFIG_FB_VESA=y
# CONFIG_FB_IMAC is not set
# CONFIG_FB_HECUBA is not set
# CONFIG_FB_HGA is not set
# CONFIG_FB_S1D13XXX is not set
# CONFIG_FB_NVIDIA is not set
# CONFIG_FB_RIVA is not set
# CONFIG_FB_I810 is not set
# CONFIG_FB_LE80578 is not set
# CONFIG_FB_INTEL is not set
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_S3 is not set
# CONFIG_FB_SAVAGE is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
# CONFIG_FB_KYRO is not set
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_VT8623 is not set
# CONFIG_FB_CYBLA is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_ARK is not set
# CONFIG_FB_PM3 is not set
# CONFIG_FB_GEODE is not set
# CONFIG_FB_SM501 is not set
# CONFIG_FB_VIRTUAL is not set

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
# CONFIG_VGACON_SOFT_SCROLLBACK is not set
CONFIG_VIDEO_SELECT=y
# CONFIG_MDA_CONSOLE is not set
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY is not set
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
CONFIG_FB_CON_DECOR=y
CONFIG_FONTS=y
# CONFIG_FONT_8x8 is not set
CONFIG_FONT_8x16=y
# CONFIG_FONT_6x11 is not set
# CONFIG_FONT_7x14 is not set
# CONFIG_FONT_PEARL_8x8 is not set
# CONFIG_FONT_ACORN_8x8 is not set
# CONFIG_FONT_MINI_4x6 is not set
# CONFIG_FONT_SUN8x16 is not set
# CONFIG_FONT_SUN12x22 is not set
# CONFIG_FONT_10x18 is not set
# CONFIG_LOGO is not set

thats the part of my config that i have changed to make fbsplash work

i have made a few other changes but not many.


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#16 2008-02-07 21:23:55

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

just found this smile might be easier for you
AUR Package


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#17 2008-02-07 21:52:25

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Thanks genisis300 big_smile I'm gonna try this tomorrow, I don't have the courage to wait the 1h30 of compilation ! big_smile Time to bed...

Offline

#18 2008-02-11 23:52:17

jaymz_64
Member
From: Paris, France
Registered: 2007-05-08
Posts: 31

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

Well I'm stubborn and I want to make it work with the original kernel before using the easy way (Splashy or Fbcondecor) !

I've done it again with the new 2.6.24 kernel,with good options (thank you genisis300), and now I have the bootsplash from the beginning of initframs. But I still have quickly the kernel panic with this message :

RAMDISK : Couldn't find valid RAM disk image starting at 0
List of all partitions :
No file system could mount root, tried :
Kernel Panic - VFS : Unable to mount root fs on unknown block (0,0)

Google is my friend and with this HOW-TO from Gentoo Forums,http://forums.gentoo.org/viewtopic.php?t=193273, I realized that the Arch wiki is quite empty with the use of Splash : http://wiki.archlinux.org/index.php/Bootsplash.

First, there's an error (I think) here :

/usr/local/bin/splash -s -f /etc/bootsplash/themes/default/1280x800.cfg > /boot/initrd.splash

Would it be better to use this command ? : >>

/usr/local/bin/splash -s -f /etc/bootsplash/themes/default/1280x800.cfg >> /boot/initrd.splash

And then the "initrd.splash" described in the wiki, wouldn't it be the image generated by mkinitcpio ? So here is what I've done. I don't know if it's correct. I'm a little bit lost :

cp /boot/kernel26.img /boot/kernel26-splash.img
/usr/local/bin/splash -s -f /etc/bootsplash/themes/default/1280x800.cfg >> /boot/kernel26-splash.img

And in the grub :

initrd /boot/kernel26-splash.img

And now the boot runs until the end of initframs and ends with a kernel panic with this message :

:: Initframs Completed - control passing to kinit
IP-Config : no device to configure
waiting 0s before mounting root device...
kinit: running linuxrc: Invalid argument
kinit: init not found !
Kernel Panic - not syncing : Attempted to kill init !

I think I'm close to the goal and I don't want to give up ! big_smile It's clear that the problem comes from the initrd and not from the kernel (I think). How could we generate an image with mkinitcpio and use it with splash ? Is ">>" the good method ?

Thanks

Last edited by jaymz_64 (2008-02-11 23:56:15)

Offline

#19 2008-02-12 12:48:50

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

why have you not used the mkinicpio way of making the new initrams?

you have to update the hooks in /etc/mkinitcpi.conf and add fbsplash before filesystem
and also add the fbsplash theme information to the mkinicpio.conf in this format
FBTHEMES="darch"
FBRES="1024x768" etc

then do mkinicpio -g /boot/kernel26-splash.img
and reboot


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#20 2008-02-12 18:09:44

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

genisis300 wrote:

why have you not used the mkinicpio way of making the new initrams?

you have to update the hooks in /etc/mkinitcpi.conf and add fbsplash before filesystem
and also add the fbsplash theme information to the mkinicpio.conf in this format
FBTHEMES="darch"
FBRES="1024x768" etc

then do mkinicpio -g /boot/kernel26-splash.img
and reboot

I'm using bootsplash, how can I do this, but for bootsplash, not fbsplash ... ?

Offline

#21 2008-02-13 12:12:46

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

is fbsplash not the replacment for bootsplash?


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#22 2008-02-13 18:18:01

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

hello, I've installed that PKGBUILD, everything works, I can see splash and everything, but I can't get ipw3945 work ... When I run modprobe ipw3945 I get FATAL: Module ipw3945 not found...

Offline

#23 2008-02-13 19:27:50

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

because you have remade the kernel you need to remake the drivers / modules as well

you can download the driver here http://ipw3945.sourceforge.net/#downloads

and use that as your new driver


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

#24 2008-02-13 20:09:58

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

genisis300: can you explain me how can I do that ? smile

Offline

#25 2008-02-13 21:16:23

genisis300
Member
From: Uk
Registered: 2008-01-15
Posts: 284

Re: Bootsplash : Applying splash on a patched kernel makes a Kernel Panic

download the package from the link provided and extract it

As root
(go into the console and tar -xvf driverdownload.tar.gz)
cd drivedownload....
make
make install
and your done


"is adult entertainment killing our children or is killing our children entertaining adults?" Marilyn Manson

Offline

Board footer

Powered by FluxBB