You are not logged in.
Hello, I hope someone can help me.
I wanted to compile my own kernel, to try. In my menu.lst, I just copy/past the actual entry for archlinux, and change the kernel location :
/boot/grub/menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /vmlinuz-linux root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initramfs-linux.img
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initramfs-linux.img
# (1) Arch Linux
title Arch Linux Fallback
root (hd0,6)
kernel /vmlinuz-linux root=/dev/sda8 ro
initrd /initramfs-linux-fallback.img
# (2) Windows
title Windows
rootnoverify (hd0,0)
makeactive
chainloader +1#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda7 /boot ext4 defaults,noatime 1 2
/dev/sda6 none swap sw 0 0
/dev/sda8 / ext4 noatime 0 1--> .config
http://pastebin.com/LD1iV2Zq
--> ls -l
http://kmuto.jp/debian/hcl/ASUS/Laptop+X72JR
I'm a little bit desesperate, so if you have an idea.
Thanks in advance,
Kai23
Last edited by Kai23 (2012-04-16 07:27:11)
Offline
Try generating a separate initramfs for your custom kernel.
Burninate!
Offline
Something like that ?
sudo mkinitcpio -g initFlo /dev/sdaand then
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initFloI got that
Last edited by Kai23 (2012-04-16 08:19:53)
Offline
"mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k kernelFlo" should do the trick. Wiki page for more info.
Burninate!
Offline
I did :
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k /boot/kernelFlo because the following
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k kernelFlo gave me that :
==> ERROR: '/lib/modules/kernelFlo/' is not a valid kernel module directoryBut I got the same error as before
Offline
So now your bootloader entry looks like:
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initFlo.imgAnd you get that string of characters when trying to boot from it?
Can you post the output of "lsinitcpio -a /boot/initFlo.img"?
Burninate!
Offline
Thank you for helping me.
/boot/grub/menu.lst
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initFlo.img==> Image: /boot/initFlo.img
==> Created with mkinitcpio 0.8.7
==> Kernel: 3.3.1-ARCH
==> Compressed with: gzip
-> Compression ratio: .353
-> Estimated decompression time: 0.106s
==> Included modules:
cdrom hid-logitech hid-topseed
crc-t10dif hid-logitech-dj hid-twinhan
drm hid-microsoft hid-uclogic
drm_kms_helper hid-monterey hid-waltop
ehci-hcd hid-multitouch hid-zpff
fb_sys_fops hid-ntrig hid-zydacron
ff-memless hid-ortek hv_vmbus
hid hid-petalynx i2c-algo-bit
hid-a4tech hid-picolcd i2c-core
hid-apple hid-pl lcd
hid-axff hid-primax radeon [explicit]
hid-belkin hid-prodikeys sd_mod
hid-cherry hid-roccat snd
hid-chicony hid-roccat-arvo snd-rawmidi
hid-cypress hid-roccat-common snd-seq-device
hid-dr hid-roccat-isku soundcore
hid-emsff hid-roccat-kone sr_mod
hid-ezkey hid-roccat-koneplus syscopyarea
hid-gaff hid-roccat-kovaplus sysfillrect
hid-gyration hid-roccat-pyra sysimgblt
hid-holtekff hid-samsung ttm
hid-hyperv hid-sjoy usb-common
hid-kensington hid-sony usbcore
hid-keytouch hid-speedlink usbhid
hid-kye hid-sunplus
hid-lcpower hid-tmff
==> Included binaries:
[ env iptunnel nslookup sleep
[[ expr kbd_mode openvt sort
ash false kill pgrep stat
awk findmnt killall pidof strings
basename free kmod ping switch_root
blkid fsck less ping6 tac
busybox fsck.ext2 ln poweroff tail
cat fsck.ext3 loadfont printf telnet
chgrp fsck.ext4 loadkmap ps test
chmod getopt losetup pwd tftp
chown grep ls readlink touch
chroot halt lsmod reboot true
cp head md5sum rm udevadm
cttyhack hexdump mkdir rmdir umount
cut ifconfig mkfifo rmmod uname
dd init mknod route uniq
depmod insmod mktemp sed uptime
df install modinfo seq vi
dirname ip modprobe setfont wc
dmesg ipaddr mount sh wget
du iplink mv sha1sum yes
echo iproute nc sha256sum
egrep iprule netstat sha512sum
==> Hook run order:
udevOffline
==> Hook run order:
udev
You seem to be missing quite a few things there. Doublecheck that you have the correct hooks configured in /etc/mkinitcpio.conf and then regenerate the custom initramfs again. Perhaps compare it with the hooks you have in /boot/initramfs-linux.img to get a quick idea of which ones you'll need.
Burninate!
Offline
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k kernelFlogave me that :
==> ERROR: '/lib/modules/kernelFlo/' is not a valid kernel module directoryBut I got the same error as before
"-k kernelFlo" needs to be "-k /boot/kernelFlo". The -k option expects either a kernel name (e.g. 3.3.2-1-ARCH) or a path to a kernel image in /boot.
You seem to be missing quite a few things there.
Such as? lsinitcpio only lists hooks which have a runtime component. Most don't. It's entirely possible to boot a simple single-disk root with only udev as a runtime hook. Things like sata, scsi, usbinput, filesystems, etc have only a build hook.
Offline
lsinitcpio only lists hooks which have a runtime component. Most don't. It's entirely possible to boot a simple single-disk root with only udev as a runtime hook. Things like sata, scsi, usbinput, filesystems, etc have only a build hook.
Ah ok, didn't know that (was under the impression that all included hooks would be listed). Thanks for clarifying that.
Burninate!
Offline
Kai23 wrote:mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k kernelFlogave me that :
==> ERROR: '/lib/modules/kernelFlo/' is not a valid kernel module directoryBut I got the same error as before
"-k kernelFlo" needs to be "-k /boot/kernelFlo". The -k option expects either a kernel name (e.g. 3.3.2-1-ARCH) or a path to a kernel image in /boot.
Gcool wrote:You seem to be missing quite a few things there.
Such as? lsinitcpio only lists hooks which have a runtime component. Most don't. It's entirely possible to boot a simple single-disk root with only udev as a runtime hook. Things like sata, scsi, usbinput, filesystems, etc have only a build hook.
I did
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/initFlo.img -k /boot/kernelFlo But it didn't work (Well, I got the same thing as what was on the last screenshot)
And for exemple,
lsinitcpio -a /boot/initramfs-linux.img give me that :
==> Image: /boot/initramfs-linux.img
==> Created with mkinitcpio 0.8.7
==> Kernel: 3.3.1-1-ARCH
==> Compressed with: gzip
-> Compression ratio: .339
-> Estimated decompression time: 0.130s
==> Included modules:
ahci hid-logitech hid-uclogic
cdrom hid-logitech-dj hid-wacom
crc16 hid-magicmouse hid-waltop
drm hid-microsoft hid-wiimote
drm_kms_helper hid-monterey hid-zpff
ehci-hcd hid-multitouch hid-zydacron
ext4 hid-ntrig hv_vmbus
fb_sys_fops hid-ortek i2c-algo-bit
ff-memless hid-petalynx i2c-core
hid hid-picolcd jbd2
hid-a4tech hid-pl lcd
hid-apple hid-primax libahci
hid-axff hid-prodikeys libata
hid-belkin hid-roccat mbcache
hid-cherry hid-roccat-arvo radeon [explicit]
hid-chicony hid-roccat-common scsi_mod
hid-cypress hid-roccat-isku sd_mod
hid-dr hid-roccat-kone snd
hid-elecom hid-roccat-koneplus snd-rawmidi
hid-emsff hid-roccat-kovaplus snd-seq-device
hid-ezkey hid-roccat-pyra soundcore
hid-gaff hid-samsung sr_mod
hid-gyration hid-sjoy syscopyarea
hid-holtekff hid-sony sysfillrect
hid-hyperv hid-speedlink sysimgblt
hid-kensington hid-sunplus ttm
hid-keytouch hid-tmff usb-common
hid-kye hid-topseed usbcore
hid-lcpower hid-twinhan usbhid
==> Included binaries:
[ env iptunnel nslookup sleep
[[ expr kbd_mode openvt sort
ash false kill pgrep stat
awk findmnt killall pidof strings
basename free kmod ping switch_root
blkid fsck less ping6 tac
busybox fsck.ext2 ln poweroff tail
cat fsck.ext3 loadfont printf telnet
chgrp fsck.ext4 loadkmap ps test
chmod getopt losetup pwd tftp
chown grep ls readlink touch
chroot halt lsmod reboot true
cp head md5sum rm udevadm
cttyhack hexdump mkdir rmdir umount
cut ifconfig mkfifo rmmod uname
dd init mknod route uniq
depmod insmod mktemp sed uptime
df install modinfo seq vi
dirname ip modprobe setfont wc
dmesg ipaddr mount sh wget
du iplink mv sha1sum yes
echo iproute nc sha256sum
egrep iprule netstat sha512sum
==> Hook run order:
udevLast edited by Kai23 (2012-04-16 10:51:21)
Offline
Offline
Sorry, with « It didn't work », I was meaning that I'm always stuck with the kernel panic.
Offline
Kai23,
It looks like your kernel and/or initrd image were built without support for your HDD controller driver. What is the output of lspci -k when booting from a working kernel or LiveCD?
Offline
Hello,
lspci -k
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 18)
Subsystem: ASUSTeK Computer Inc. Device 1c77
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 18)
Kernel driver in use: pcieport
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
Kernel driver in use: mei
00:1a.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
Kernel driver in use: ehci_hcd
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1643
Kernel driver in use: snd_hda_intel
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
Kernel driver in use: pcieport
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
Kernel driver in use: pcieport
00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
Kernel driver in use: pcieport
00:1d.0 USB controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
Kernel driver in use: ehci_hcd
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
[b] 00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
Kernel driver in use: ahci [/b]
00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
Subsystem: ASUSTeK Computer Inc. Device 1c77
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Manhattan [Mobility Radeon HD 5400 Series]
Subsystem: ASUSTeK Computer Inc. Device 1bf2
Kernel driver in use: radeon
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Cedar HDMI Audio [Radeon HD 5400/6300 Series]
Subsystem: ASUSTeK Computer Inc. Device aa68
Kernel driver in use: snd_hda_intel
03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
Subsystem: AzureWave AW-NE785 / AW-NE785H 802.11bgn Wireless Full or Half-size Mini PCIe Card
Kernel driver in use: ath9k
04:00.0 Ethernet controller: Atheros Communications Inc. AR8131 Gigabit Ethernet (rev c0)
Subsystem: ASUSTeK Computer Inc. Device 1820
Kernel driver in use: atl1c
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 05)
Subsystem: Intel Corporation Device 8086
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 05)
Subsystem: Intel Corporation Device 8086
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 05)
Subsystem: Intel Corporation Device 8086
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 05)
Subsystem: Intel Corporation Device 8086
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 05)
Subsystem: Intel Corporation Device 8086
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 05)
Subsystem: Intel Corporation Device 8086So, in my .config, I have this :
# Controllers with non-SFF native interface
#
CONFIG_SATA_AHCI=y
CONFIG_SATA_AHCI_PLATFORM=y
# CONFIG_SATA_INIC162X is not set
CONFIG_SATA_ACARD_AHCI=y
# CONFIG_SATA_SIL24 is not set
CONFIG_ATA_SFF=yOffline
Kai23,
It looks like the kernel does have support for your HDD controller after all, with the AHCI driver being compiled into it. What seems to be the issue in my opinion is that the new kernel doesn't find the root partition by its sda8 name. I suggest modifiying your fstab to include this line:
/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 / ext4 noatime 0 1Last edited by windscape (2012-04-16 14:27:53)
Offline
I'll try it, but I know that
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/sda8 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initFlo.imgDoesn't work.
Offline
I'll try it, but I know that
# (0) Arch Linux
title Arch Linux
root (hd0,6)
kernel /kernelFlo root=/dev/sda8 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet
initrd /initFlo.imgDoesn't work.
Edit : it doesn't work, too. Still this kernel panic.
Offline
Kai23,
It looks like the kernel does have support for your HDD controller after all, with the AHCI driver being compiled into it. What seems to be the issue in my opinion is that the new kernel doesn't find the root partition by its sda8 name. I suggest modifiying your fstab to include this line:
/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 / ext4 noatime 0 1
And what effect does /etc/fstab have before root is even mounted? Surely, you wanted him to use the UUID in his bootloader config, not his fstab... still, not the problem, but he isn't trying too hard either.
Offline
Thank you for helping me.
/boot/grub/menu.lst # (0) Arch Linux title Arch Linux root (hd0,6) kernel /kernelFlo root=/dev/disk/by-uuid/53826478-59d7-4de6-9217-63638d67ca24 ro radeon.modeset=1 radeon.agpmode=8 radeon.gartsize=32 quiet initrd /initFlo.img==> Image: /boot/initFlo.img ==> Created with mkinitcpio 0.8.7 ==> Kernel: 3.3.1-ARCH ==> Compressed with: gzip -> Compression ratio: .353 -> Estimated decompression time: 0.106s ==> Included modules: cdrom hid-logitech hid-topseed crc-t10dif hid-logitech-dj hid-twinhan drm hid-microsoft hid-uclogic drm_kms_helper hid-monterey hid-waltop ehci-hcd hid-multitouch hid-zpff fb_sys_fops hid-ntrig hid-zydacron ff-memless hid-ortek hv_vmbus hid hid-petalynx i2c-algo-bit hid-a4tech hid-picolcd i2c-core hid-apple hid-pl lcd hid-axff hid-primax radeon [explicit] hid-belkin hid-prodikeys sd_mod hid-cherry hid-roccat snd hid-chicony hid-roccat-arvo snd-rawmidi hid-cypress hid-roccat-common snd-seq-device hid-dr hid-roccat-isku soundcore hid-emsff hid-roccat-kone sr_mod hid-ezkey hid-roccat-koneplus syscopyarea hid-gaff hid-roccat-kovaplus sysfillrect hid-gyration hid-roccat-pyra sysimgblt hid-holtekff hid-samsung ttm hid-hyperv hid-sjoy usb-common hid-kensington hid-sony usbcore hid-keytouch hid-speedlink usbhid hid-kye hid-sunplus hid-lcpower hid-tmff ==> Included binaries: [ env iptunnel nslookup sleep [[ expr kbd_mode openvt sort ash false kill pgrep stat awk findmnt killall pidof strings basename free kmod ping switch_root blkid fsck less ping6 tac busybox fsck.ext2 ln poweroff tail cat fsck.ext3 loadfont printf telnet chgrp fsck.ext4 loadkmap ps test chmod getopt losetup pwd tftp chown grep ls readlink touch chroot halt lsmod reboot true cp head md5sum rm udevadm cttyhack hexdump mkdir rmdir umount cut ifconfig mkfifo rmmod uname dd init mknod route uniq depmod insmod mktemp sed uptime df install modinfo seq vi dirname ip modprobe setfont wc dmesg ipaddr mount sh wget du iplink mv sha1sum yes echo iproute nc sha256sum egrep iprule netstat sha512sum ==> Hook run order: udev
What hooks are in your mkinitcpio.conf? This image looks like its missing some modules, but your initramfs-linux isn't which I don't understand.
Offline
Hello,
Here is my mkinit.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="radeon"
# BINARIES
# This setting includes any additional binaries a given user may
# wish into the CPIO image. This is run first, so it may be used to
# override the actual binaries used in a given hook.
# (Existing files are NOT overwritten if already added)
# BINARIES are dependency 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 any way. This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options
# like so:
# FILES="/etc/modprobe.d/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
# '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 a pata mdadm array with an encrypted root FS.
## Note: See 'mkinitcpio -H mdadm' for more information on raid devices.
# HOOKS="base udev pata mdadm encrypt filesystems"
#
## This setup loads an lvm2 volume group on a usb device.
# HOOKS="base udev usb lvm2 filesystems"
#
## NOTE: If you have /usr on a separate partition, you MUST include the
# fsck and shutdown hooks.
HOOKS="base udev autodetect pata scsi sata filesystems usbinput fsck"
# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma. Kernels 2.6.38 and later support xz
# compression.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"
#COMPRESSION="xz"
#COMPRESSION="lzop"
# COMPRESSION_OPTIONS
# Additional options for the compressor
#COMPRESSION_OPTIONS=""Offline
Offline
But I added ext2, ext3 and ext4. Pretty sure of that.
Offline
I did it, on the fist thread
--> .config
http://pastebin.com/LD1iV2Zq
Offline