Kernel PPC

From VVCWiki
Revision as of 17:42, 15 August 2010 by Vvc (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

DRBD requires a custom kernel on PPC platform

  • install standard SRPM
rpmdev-setuptree
rpm -i http://ftp.redhat.com/pub/redhat/linux/enterprise/5Server/en/os/SRPMS/kernel-2.6.18-194.11.1.el5.src.rpm
  • modify source files
sed -i -e 's/^CONFIG_PPC_64K_PAGES.*/CONFIG_PPC_64K_PAGES=n/' ~/rpmbuild/SOURCES/kernel-2.6.18-ppc64.config
sed -i -e 's/\(%patch23256 .*\)/#\1/' ~/rpmbuild/SPECS/kernel-2.6.spec
sed -i -e 's/.*define buildid/%define buildid .vvc/' ~/rpmbuild/SPECS/kernel-2.6.spec
  • build kernel
setarch ppc64 rpmbuild -ba --target ppc64 --with baseonly --without kabichk ~/rpmbuild/SPECS/kernel-2.6.spec