You are not logged in.
I'm following this wiki page to compile a kernel from source. I have the 2.6.32-rc6 right now but can't boot into it.
The custom build goes okay and I can install it okay.
# pacman -U kernel26-my-2.6.32_rc6-1-x86_64.pkg.tar.gz
loading package data...
checking dependencies...
(1/1) checking for file conflicts [################################################] 100%
(1/1) installing kernel26-my [################################################] 100%
>>> Updating module dependencies...
>>> Creating initial ramdisk...
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [keymap]
:: Parsing hook [usb]
:: Generating module dependencies
:: Generating image '/boot/kernel26-MINE.img'...SUCCESS
When I try to boot into it from grub, I get:
::Loading Initramfs
Waiting 10 seconds for device /dev/sda2 ...
ERROR: failed to parse block device ids for '/dev/sda2'
ERROR: unable to detect or create root device for '/dev/sda2'
Then it just drops me to a recovery shell...???
My PKGBUILD
kgname=kernel26-my
basekernel=2.6.32-rc6
pkgver=2.6.32_rc6
pkgrel=1
pkgdesc="The Linux Kernel and modules"
arch=('x86_64')
license=('GPL')
url="http://www.kernel.org"
depends=('module-init-tools' 'mkinitcpio')
provides=(kernel26)
install=kernel26.install
build() {
LOCAL_VERSION="$(grep "CONFIG_LOCALVERSION=" $startdir/.config | sed 's/.*"\(.*\)"/\1/')"
cd ..
make || return 1
mkdir -p $startdir/pkg/{lib/modules,boot}
make INSTALL_MOD_PATH=$startdir/pkg modules_install || return 1
# There's no separation of firmware depending on kernel version -
# uncomment this line if you intend on using the built kernel exclusively,
# otherwise there'll be file conflicts with the existing kernel
#rm -rf $startdir/pkg/lib/firmware
install -Dm644 "System.map" "$startdir/pkg/boot/System.map26$LOCAL_VERSION"
install -Dm644 "arch/x86/boot/bzImage" "$startdir/pkg/boot/vmlinuz26$LOCAL_VERSION"
# Change the version strings in kernel26.install
sed -i \
-e "s/KERNEL_VERSION=.*/KERNEL_VERSION=\"$basekernel\"/" \
-e "s/LOCAL_VERSION=.*/LOCAL_VERSION=\"$LOCAL_VERSION\"/" \
$startdir/kernel26.install
}
My kernel26.install
ERNEL_VERSION="2.6.32-rc6"
LOCAL_VERSION="-MINE"
post_install () {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel26${LOCAL_VERSION}.img"
}
post_upgrade() {
echo ">>> Updating module dependencies..."
/sbin/depmod -A -v ${KERNEL_VERSION}${LOCAL_VERSION}
echo ">>> Creating initial ramdisk..."
mkinitcpio -k "${KERNEL_VERSION}${LOCAL_VERSION}" -g "/boot/kernel26${LOCAL_VERSION}.img"
}
Last edited by graysky (2009-11-03 23:31:16)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Nevermind... dunno what was wrong but it's working just fine now...???
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline