You are not logged in.
@ phrakture maybe at autodetection, if the module is hmm ext3 for example, echo jbd as well as piix no ? that should solve this *machine specific* issue...
piix is autodetected fine here. I have a laptop with a PII4 IDE controller, which is supported by the piix driver. Maybe you should disable the autodetect hook.
@baze: Indeed i noticed vfat partition refuses to mount too, Try playing a bit with the MODULES section and ide specific modules.. i haven't tried a lot but generic piix haven't changed anything it's somewhere else then
We just solved that problem. The issue came up because /proc/sys/kernel/modprobe hasn't been reset correctly.
Offline
piix is autodetected fine here.
Yeah. piix is also autodetected fine just over there i.e. my desktop, but not here i.e. my laptop - the point being it appears to fail on some machines (not yours obviously), for reasons as yet unknown.
Maybe you should disable the autodetect hook.
OK - if we were in production and urgently needed to get a machine up and running. But we're in test, so if we disable autodetect, how can we test it?
Offline
@phrakture, in init file replace
[0123456Ss]) continue;;
With
[0123456Ss]) kinit_params="${kinit_params} ${cmd}" ;;
Otherwize Run level request is completely useless...
[My Blog] | [My Repo] | [My AUR Packages]
Offline
@phrakture, in init file replace
[0123456Ss]) continue;;
With
[0123456Ss]) kinit_params="${kinit_params} ${cmd}" ;;
Otherwize Run level request is completely useless...
Not true, kinit reads /proc/cmdline
Offline
Re my non-working laptop - I still have the image generated with the 20060503 tarball i.e. the first version, and it works. All subsequent versions produce the error described above.
HTH.
Offline
Re my non-working laptop - I still have the image generated with the 20060503 tarball i.e. the first version, and it works. All subsequent versions produce the error described above.
HTH.
I've changed how the -M flag works, so next -Syu you should get the 0.2 package. Let me know if anything changes.
Offline
Yeah, I saw that 0.2 was just in, so I grabbed the PKGBUILD and built it. I'm still getting filesystems only:
# mkinitcpio -M
Modules autodetected:
ext2
reiserfs
Offline
tomk, please run the following in a terminal:
aliases=$(find /sys/devices/ -name modalias -exec cat {} ;)
mods=$(modprobe --show-depends -a $aliases 2>/dev/null | sed 's|insmod (.*)|1|' | sort -u)
and post the output of:
echo $aliases
echo $mods
Offline
@phrakture, well kinit have not used the cmdline, I tried it i always got Init 5... i have same setup as urs now for the initramfs, btw since tomk and I have the same problem here's the output (ignore the gz modules i took care of that in my version):
[wael@nasreddine ~]$ echo $aliases | tr ' ' 'n'; echo; echo $mods | tr ' ' 'n'
pci:v00008086d000024C6sv0000103Csd00003080bc07sc03i00
pci:v00008086d000024C5sv0000103Csd00003080bc04sc01i00
pci:v00008086d000024C3sv0000103Csd00003080bc0Csc05i00
ide:m-cdrom
ide:m-disk
pci:v00008086d000024CAsv0000103Csd00003080bc01sc01i8a
pci:v00008086d000024CCsv00000000sd00000000bc06sc01i00
pci:v0000104Cd00008034sv0000103Csd00003080bc08sc05i00
pci:v0000104Cd00008033sv0000103Csd00003080bc01sc80i00
pci:v0000104Cd00008032sv0000103Csd00003080bc0Csc00i10
pci:v0000104Cd00008031sv0000103Csd00003080bc06sc07i00
pci:v00008086d00004220sv0000103Csd000012F6bc02sc80i00
pci:v000010ECd00008139sv0000103Csd00003080bc02sc00i00
pci:v00008086d00002448sv00000000sd00000000bc06sc04i00
usb:v0000p0000d0206dc09dsc00dp01ic09isc00ip00
pci:v00008086d000024CDsv0000103Csd00003080bc0Csc03i20
usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00
pci:v00008086d000024C7sv0000103Csd00003080bc0Csc03i00
usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00
pci:v00008086d000024C4sv0000103Csd00003080bc0Csc03i00
usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00
pci:v00008086d000024C2sv0000103Csd00003080bc0Csc03i00
pci:v00008086d00003582sv0000103Csd00003080bc03sc80i00
pci:v00008086d00003582sv0000103Csd00003080bc03sc00i00
pci:v00008086d00003585sv0000103Csd00003080bc08sc80i00
pci:v00008086d00003584sv0000103Csd00003080bc08sc80i00
pci:v00008086d00003580sv0000103Csd00003080bc06sc00i00
serio:ty06pr00id00ex00
serio:ty01pr00id00ex00
/lib/modules/2.6.16-NUX/kernel/drivers/cdrom/cdrom.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/char/agp/agpgart.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/char/agp/intel-agp.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/char/hw_random.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/i2c/busses/i2c-i801.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/i2c/i2c-core.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ide/ide-cd.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ide/ide-core.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ide/ide-disk.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ide/pci/generic.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ide/pci/piix.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ieee1394/ieee1394.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/ieee1394/ohci1394.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/input/serio/serio_raw.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/net/8139cp.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/net/8139too.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/net/mii.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/net/wireless/ipw2200.ko.gz
led=1
/lib/modules/2.6.16-NUX/kernel/drivers/pci/hotplug/pci_hotplug.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/pci/hotplug/shpchp.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/pcmcia/pcmcia_core.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/pcmcia/rsrc_nonstatic.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/pcmcia/yenta_socket.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/scsi/ata_piix.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/scsi/libata.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/usb/core/usbcore.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/usb/host/ehci-hcd.ko.gz
/lib/modules/2.6.16-NUX/kernel/drivers/usb/host/uhci-hcd.ko.gz
/lib/modules/2.6.16-NUX/kernel/net/ieee80211/ieee80211.ko.gz
/lib/modules/2.6.16-NUX/kernel/net/ieee80211/ieee80211_crypt.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/core/snd-page-alloc.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/core/snd-pcm.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/core/snd-timer.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/core/snd.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/pci/ac97/snd-ac97-bus.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/pci/ac97/snd-ac97-codec.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/pci/snd-intel8x0.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/pci/snd-intel8x0m.ko.gz
/lib/modules/2.6.16-NUX/kernel/sound/soundcore.ko.gz
[My Blog] | [My Repo] | [My AUR Packages]
Offline
As requested:
# echo $aliases
pci:v0000125Dd00001978sv00001028sd0000009Fbc04sc01i00 pci:v00008086d00007113sv00000000sd00000000bc06sc80i00 usb:v0846p4110d0132dc00dsc00dp00icFFiscFFipFF usb:v0506p00A0d0001dcE0dsc01dp01icFEisc01ip00 usb:v0506p00A0d0001dcE0dsc01dp01icE0isc01ip01 usb:v0506p00A0d0001dcE0dsc01dp01icE0isc01ip01 usb:v04B4p6560d0009dc09dsc00dp00ic09isc00ip00 usb:v0000p0000d0206dc09dsc00dp00ic09isc00ip00 pci:v00008086d00007112sv00000000sd00000000bc0Csc03i00 ide:m-cdrom ide:m-disk pci:v00008086d00007111sv00000000sd00000000bc01sc01i80 pci:v00008086d00007110sv00000000sd00000000bc06sc80i00 pci:v00001002d00004C4Dsv00001028sd0000009Fbc03sc00i00 pci:v00008086d00007191sv00000000sd00000000bc06sc04i00 pci:v00008086d00007190sv00000000sd00000000bc06sc00i00 serio:ty06pr00id00ex00 serio:ty01pr00id00ex00
# echo $mods
--No Output--
Please read on for the solution, and thanks in advance for your patience.
We can put this particular case down to pilot error - or to be more precise, pilot_trying_to_fly_a_747_when_he_can_barely_get_a_Cessna_off_the_ground.
On its own, the modprobe command in your mods= statement gives me:
# modprobe --show-depends -a $aliases
Usage: modprobe [-v] [-V] [-C config-file] [-i] [-q] [-b] <modname> [parameters...]
As I'm damn sure you haven't given me the wrong command, I try
which modprobe
which gives me
/bin/modprobe
- yeah, /bin, not /sbin. It all goes back to my attempt to poke around inside the image on Page 1, which resulted in the image's files being expanded into /, and as /bin comes before /sbin in $PATH, my system has been using the initcpio version of modprobe instead of the module-init-tools version. So, revisiting
# echo $mods
lists the following:
/lib/modules/2.6.16-ARCH/kernel/drivers/bluetooth/hci_usb.ko /lib/modules/2.6.16-ARCH/kernel/drivers/cdrom/cdrom.ko /lib/modules/2.6.16-ARCH/kernel/drivers/char/agp/agpgart.ko /lib/modules/2.6.16-ARCH/kernel/drivers/char/agp/intel-agp.ko /lib/modules/2.6.16-ARCH/kernel/drivers/i2c/busses/i2c-piix4.ko /lib/modules/2.6.16-ARCH/kernel/drivers/ide/ide-cd.ko /lib/modules/2.6.16-ARCH/kernel/drivers/ide/ide-core.ko /lib/modules/2.6.16-ARCH/kernel/drivers/ide/ide-disk.ko /lib/modules/2.6.16-ARCH/kernel/drivers/ide/pci/generic.ko /lib/modules/2.6.16-ARCH/kernel/drivers/ide/pci/piix.ko /lib/modules/2.6.16-ARCH/kernel/drivers/input/gameport/gameport.ko /lib/modules/2.6.16-ARCH/kernel/drivers/input/serio/serio_raw.ko /lib/modules/2.6.16-ARCH/kernel/drivers/media/radio/radio-maestro.ko /lib/modules/2.6.16-ARCH/kernel/drivers/media/video/compat_ioctl32.ko /lib/modules/2.6.16-ARCH/kernel/drivers/media/video/videodev.ko /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng/p80211.ko /lib/modules/2.6.16-ARCH/kernel/drivers/net/wireless/linux-wlan-ng/prism2_usb.ko /lib/modules/2.6.16-ARCH/kernel/drivers/pci/hotplug/pci_hotplug.ko /lib/modules/2.6.16-ARCH/kernel/drivers/pci/hotplug/shpchp.ko /lib/modules/2.6.16-ARCH/kernel/drivers/usb/core/usbcore.ko /lib/modules/2.6.16-ARCH/kernel/drivers/usb/host/uhci-hcd.ko /lib/modules/2.6.16-ARCH/kernel/net/bluetooth/bluetooth.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/seq/snd-seq-device.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/snd-page-alloc.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/snd-pcm.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/snd-rawmidi.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/snd-timer.ko /lib/modules/2.6.16-ARCH/kernel/sound/core/snd.ko /lib/modules/2.6.16-ARCH/kernel/sound/drivers/mpu401/snd-mpu401-uart.ko /lib/modules/2.6.16-ARCH/kernel/sound/pci/ac97/snd-ac97-bus.ko /lib/modules/2.6.16-ARCH/kernel/sound/pci/ac97/snd-ac97-codec.ko /lib/modules/2.6.16-ARCH/kernel/sound/pci/snd-es1968.ko /lib/modules/2.6.16-ARCH/kernel/sound/soundcore.ko install modprobe -i i2c-core ; modprobe i2c-dev ; true
Again, thanks, and I stand by my previous statement about laptop funkiness - the only difference is that I now have to admit to being the funkmaster.
Offline
Ok, that's odd - the only thing autodetect does is an extra grep or two, for something like "/ide/" - are you guys don't have some funky versions of grep or sed, do you?
Offline
It's all working for me now, phrak:
# mkinitcpio -M
Modules autodetected:
cdrom
ide-cd
ide-core
ide-disk
generic
piix
p80211
prism2_usb
usbcore
uhci-hcd
bluetooth
ext2
reiserfs
I'm about to reboot with a new fully-autodetected image. See you on the other side.
Offline
Aha, yeah looks like you overwrote some crap with the klibc versions - I'd make sure to re-pacman coreutils and util-linux just to make sure
Gandalf: fixed the init issue, it was a bug in kinit cmdline handling - updated the patch in cvs and mailed the list
Offline
Aha, yeah looks like you overwrote some crap with the klibc versions
Oh yeah - although when my system wouldn't boot at all, my conclusion was the reverse i.e. that I overwrote some perfectly decent files with klibc crap!
I'd make sure to re-pacman coreutils and util-linux just to make sure
Already done, along with udev, sysvinit, procps, bash, and gzip - just to be sure.
Offline
@phrakture: It is very odd now, I changed only the way I include modules and that fixed my issue, piix is included now, also thanks for the patch i'll update mine too
[My Blog] | [My Repo] | [My AUR Packages]
Offline
For beyond users, here's fbsplash install hook to include fbsplash theme, This is the one I use on my system, it should work quite well on Arch too... maybe phrakture adds it too
###
# fbsplash: This file is a part of mkinitramfs which will include fbsplash if installed!
# Copyright (C) 2006, Aaron Griffin <aaronmgriffin>
# Copyright (C) 2006, Wael Nasreddine <wael>
# The code has been inspired from splash_geninitramfs :
# Copyright (C) 2004-2005, Michal Januszewski <spock>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
###
install()
{
[ ! -x /sbin/splash_helper ] && return 1 # splashutils is not installed, we don't include
# fbsplash...
local dir fil theme pic pics icon icons font fonts
# create directory structure
for dir in "/dev/fb" "/dev/misc" "/dev/vc" "${FBTHEMEDIR}" "/sbin"; do
add_dir "${dir}"
done
# Include splash_helper
add_binary "/sbin/splash_helper"
for theme in ${FBTHEMES}; do
echo " Adding ${theme} fbsplash Theme..."
# check if the user specified which resolutions are accepted
# (default: all res)
if [ -z "${FBRES}" ]; then
FBRES=$(cd ${FBTHEMEDIR}/${theme}; ls *cfg | sed -e 's/.cfg//g')
fi
for j in ${FBRES} ; do
if [ ! -e "${FBTHEMEDIR}/${theme}/${j}.cfg" ]; then
echo " Warning: config file for theme '${theme}', resolution ${j} does not exist!" 1>&2
continue
fi
add_file "${FBTHEMEDIR}/${theme}/${j}.cfg"
t=""
# config file parsing
pics=`cat "${FBTHEMEDIR}/${theme}/${j}.cfg" |
sed -r -e "/(^(silent)?jpeg=)|(^(silent)?pic${t}*=)/! d"
-e 's/[a-z0-9]+=(.*)/1/'`
for pic in ${pics} ; do
add_file "${pic}"
done
icons=`cat "${FBTHEMEDIR}/${theme}/${j}.cfg" |
egrep -v '^#' | grep icon | awk '{print $2}'`
for icon in ${icons} ; do
add_file "${icon}"
done
fonts=`cat "${FBTHEMEDIR}/${theme}/${j}.cfg" |
egrep -v '^#' | grep 'text ' | grep -o '[^ ]+.ttf'`
for font in ${fonts} ; do
add_file "${font}"
done
font=`cat "${FBTHEMEDIR}/${theme}/${j}.cfg" | egrep -v '^#' | grep 'text_font='`
font=${font#*=}
if [[ -n "${font}" ]]; then
add_file "${font}"
else
add_file "/etc/splash/luxisri.ttf"
fi
done
done
}
help ()
{
cat<<HELPEOF
This hook will include fbsplash theme in the initramfs image,
Only files will be included no script...
HELPEOF
}
# End Of File
# vim: set ft=sh ts=4 sw=4 expandtab:
PS: it seems there's a problem with the forum, the forum is parsing what is inside the code tags, it should not do this!!! anyway pastebin link as the content might have changed : http://arch.pastebin.com/704471
[My Blog] | [My Repo] | [My AUR Packages]
Offline
I'll pass the above on to iphitus - the hook/install scripts for fbsplash belong with the splashutils package.
Offline
Oh ok u will included as part of splashutils package, though there's something, the mkinitcpio.conf must be edited too, there's 3 parameters to be set, well 2 of them are important which are the Theme and the Theme Resolution, the third is the splash themes path, it's probably always /etc/splash so we can ignore this parameter, I added them to the conf file coz i don't see anywhere else where we can add them...
[My Blog] | [My Repo] | [My AUR Packages]
Offline
Downloaded latest klibc elements..etc... Modified mkinitcpio HOOKS to include usb and usbinput in place of scsi and sata
Ran mkinitcpio -g /boot/mkinitcpio to generate new /boot image.
Mkinitcpio -M did not list usb and usbinput in place of scsi and sata::::::=================================================================
Modules autodetected:
cdrom
ide-cd
ide-core
ide-disk
generic
via82cxxx
ieee1394
ohci1394
8390
via-ircc
ne2k-pci
usbcore
ehci-hcd
uhci-hcd
usbhid
irda
snd-usb-audio
snd-usb-lib
ext2
jbd
ext3
jfs
reiserfs
xfs
zlib_inflate
cramfs
fat
vfat
[root@n6re ~]#
Received kernel panic when running the result. No root,boot
EDIT: Discovered a second line of HOOKS that I missed...commented it out and re-ran mkinitcpio -g /boot/mkinitcpio. Rebooted into kernel panic. Mkinitcpio -M now includes usb and usbinput in place of scsi and sata.
Still doesn't boot.
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
Oh ok u will included as part of splashutils package, though there's something, the mkinitcpio.conf must be edited too, there's 3 parameters to be set, well 2 of them are important which are the Theme and the Theme Resolution, the third is the splash themes path, it's probably always /etc/splash so we can ignore this parameter, I added them to the conf file coz i don't see anywhere else where we can add them...
Well, seeing as fbsplash is a very specific setup, it doesn't make sense to jam settings into mkinitcpio.conf and have them empty for most cases. It just gets messy with a policy like that.
It would be best to, in the install hook, check for the configure parameters, if they do not exist, just
echo "fbsplash has not been properly configured, see 'mkinitcpio -H fbsplash' for more info"
exit 1
That makes sense for any mkinitcpio "add on". The whole point of the modular architecture is so that different things can be added on without changing the core. fbsplash is a good example.
Offline
FYI - the resume hook is working perfectly with suspend2 and my custom beyond kernel.
Offline
If anyone runs into the firmware_helper error, reported by baze, give the repos a few minutes, I added the firmware helper to the klibc-udev package, which was left out somehow.
Offline
Re-identified the /boot initrd entry in lilo.conf after changing the ID in mkinitcpio.to eliminate any confusion with file mkinitcpio.
Re-ran the system with kernel panic recurring...............
Last 20 lines in boot sequence as follows:
===========================================================================
: : Loading Initramfs
: : Running Hook (udev)
: : Loading udev...done
: : Running Hook [usb]
Waiting for usb to settle...done
: : Running Hook [filesystems]
: : Loading root filesystem module..attempting to create root device '303'
/init : 28 : Cannot open 303 : No such device or address
: : Initramfs completed- control passing to kinit
IP-config: argc = = 2
argc[1] : '-n'
IP-Config: no devices to configure
kinit: do mounts
kinit: name_to_dev_t (303=dev(3,3)
kinit:root_dev = dev(3,3)
kinit: trying to mount /dev/root on /root with type ext2
kinit: cannot open root device dev(3,3)
kinit: init not found
kernel panic -not syncing : attempted to kill init!
======================================================================
Whazzup?
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline
: : Loading root filesystem module..attempting to create root device '303'
/init : 28 : Cannot open 303 : No such device or address
This is a problem currently, it has to do with vmware, which passes root devices as hex device IDs. The filesystems hook needs more error checking - you can get around that by removing the filesystems hook and adding the module for your root device to the MODULES= setting.
Offline
Danke!
Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit! X-ray confirms Iam spineless!
Offline