You are not logged in.

#1 2008-05-12 07:48:08

monotiz
Member
Registered: 2007-10-20
Posts: 140

Problem with recompile kernel...

Hi,
I tryied to recompile kernel. I have follow the kernel compilation with ABS wiki page and now my /boot directory content:

System.map26      diag1.img  kconfig26-tiz          kernel26.img  vmlinuz26-tiz
System.map26-tiz  grub       kernel26-fallback.img  vmlinuz26

Next I have modified menu.lst:

# (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz26 root=/dev/sda1 resume=/dev/sda3 ro
initrd /boot/kernel26.img

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

# (2) Arch Linux
title  Arch Linux - Tiziano
root   (hd0,0)
kernel /boot/vmlinuz26-tiz root=/dev/sda1 ro
initrd /boot/kernel26.img

Next, I reboot the new kernel, but obtain some error:

ERROR: failed to parse block device name for '/dev/sda1'
unknow

ERROR: rootfs cannot be detected try using the root fstype kernel parameter
....

The problem is in the kernel or in boot parameter?

Thanks.

Offline

#2 2008-05-12 08:13:04

arunvragh
Member
Registered: 2007-04-17
Posts: 111

Re: Problem with recompile kernel...

I don't know if it is relevant but, i do mkinitcpio -k and generate a new image maybe kernel26-tiz.img and point initrd to that

Offline

#3 2008-05-12 09:23:02

Demind
Member
Registered: 2007-07-10
Posts: 111

Re: Problem with recompile kernel...

Probably the problem is in the kernel image.
have you included filesystem in the Hooks?
and which modules?

Offline

#4 2008-05-12 11:05:50

monotiz
Member
Registered: 2007-10-20
Posts: 140

Re: Problem with recompile kernel...

arunvragh wrote:

I don't know if it is relevant but, i do mkinitcpio -k and generate a new image maybe kernel26-tiz.img and point initrd to that

Thanks. But I have another problem. This is my mkinitcpio.conf:

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
#MODULES="pata_acpi ata_generic ahci ata_piix"
MODULES="ahci ata_piix"

# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish.  This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
#    FILES="/etc/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'modload' may be used in place of 'udev', but is not recommended
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
#    This setup specifies all modules in the MODULES setting above.
#    No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
#    This setup will autodetect all modules for your system and should
#    work as a sane default
#    HOOKS="base udev autodetect pata scsi sata filesystems"
#
#    This is identical to the above, except the old ide subsystem is
#    used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
#    This setup will generate a 'full' image which supports most systems.
#    No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
#    This setup assembles an pata raid array with an encrypted root FS.
#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
#    HOOKS="base udev pata raid encrypt filesystems"
#
#    This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
#HOOKS="base udev autodetect pata scsi sata usbinput keymap resume filesystems"
HOOKS="base udev autodetect scsi sata usbinput keymap filesystems"

and this is the error:

[tiziano@arch32 ~]$ sudo mkinitcpio -k kernel26-tiz
:: Begin build
find: /lib/modules/kernel26-tiz: No such file or directory
ERROR: module 'ahci' not found
find: /lib/modules/kernel26-tiz: No such file or directory
ERROR: module 'ata[-_]piix' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
find: /lib/modules/kernel26-tiz: No such file or directory
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usbinput]
:: Parsing hook [keymap]
:: Parsing hook [filesystems]
:: Dry run complete, use -g IMAGE to generate a real image

Thanks for the help...

EDIT:

[tiziano@arch32 ~]$ sudo mkinitcpio -k 2.6.25.3-Tiz -g kernel26-tiz.img
:: Begin build
ERROR: module 'ahci' not found
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [usbinput]
:: Parsing hook [keymap]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image 'kernel26-tiz.img'...SUCCESS

but I don't find kernel26-tiz.img in /boot and I would likt to solve the error..

Last edited by monotiz (2008-05-12 11:12:24)

Offline

#5 2008-05-12 11:44:49

bangkok_manouel
Member
From: indicates a starting point
Registered: 2005-02-07
Posts: 1,556

Re: Problem with recompile kernel...

Same thing happened to me:
http://bbs.archlinux.org/viewtopic.php?id=48057

Solution in the last post.

HTH

[edit]well, no, it's not exactly the same problem, can you post your config + PKGBUILD[/edit]

[edit2]errf, just reread your edit, well it may be related... are you trying to build your kernel from latest Arch's PKGBUILD and removed the ARCH patch ? If yes, then that's most certainly the same thing[/edit2]

Last edited by bangkok_manouel (2008-05-12 12:00:56)

Offline

#6 2008-05-12 15:16:45

monotiz
Member
Registered: 2007-10-20
Posts: 140

Re: Problem with recompile kernel...

Solved. I haven't check AHCI in .config.

Offline

#7 2008-05-12 18:01:50

arunvragh
Member
Registered: 2007-04-17
Posts: 111

Re: Problem with recompile kernel...

I think it is

sudo mkinitcpio -k 2.6.25.3-Tiz -g /boot/kernel26-tiz.img

Pl make sure that 2.6.25.3-Tiz has the same name as the folder in /lib/modules

Just try

Offline

Board footer

Powered by FluxBB