Installing own kernel...

I have no problem git cloning my kernel of choice and configuring. My question is when compiling a new video drivers or any other package that might be dependent on Linux sources. I usually use the /usr/src directory. I am having trouble with the PKGBUILD on kernel26zen-git. It fails at installing after compile.
Is there a global symlink ?Like there is in Gentoo? Where, I can custom build my kernels, and not have to worry about when I install new Nvidia drivers from there website. I am just greatly disappointed in these custom PKGBUILDS, and I don't need a initrd package. Are there any special parameters I need to be aware of... such as any global symlinks?
Am I going to have problems install drivers from Nvidia's site if I decide not use the kernel26 packages, or any other package that compiles against the kernel sources..?
Here's the error I get from the PKGBUILD
==> ERROR: Failed... Your source tree might be broken. Run 'make mrproper' in src/kernel26zen to clean it up
==> ERROR: Build Failed.
Aborting...
Error: Makepkg was unable to build kernel26zen package
Last edited by StanIsTheMan (2009-09-26 20:36:48)

B wrote:
The PKGBUILD seems to be pointing to his own kernel chanco, shouldn't be a problem.
@ OP: did you try the suggestion the error is giving you? I.e. a
make mproper
in the source tree?
I was going to ... but I decided on a static kernel. And since I used to write ebuilds for my own packages, I decided to take up the task of writing my own PKGBUILD /w a static kernel, using the zen-sources git tree.
BTW, am I going to be running into any problems in the future when running updates through pacman /w the way my kernel is setup? That's ,my main concern, since I am using a static kernel.  Though I do use my own video drivers from the Nvidia site, so I am not worried about video drivers.
I guess I became accustomed with gentoo, that so much of the transition has been different.  Though I like Arch and its ABS, and AUR, plus there are lot of packages available.
Last edited by StanIsTheMan (2009-09-27 23:03:52)

Similar Messages

  • Rolling my own kernel off a fresh install

    Hey folks!
    I just recently acquired an Acer Aspire One. In a vain effort to get the wireless working off of a fresh install I thought that I might compile my own kernel version 2.6.27 (and I hoped that the ath5k driver would automagically work). Sadly I ran into some issues, and owing to my ignorance of Linux kernel compiling magic I have posted here to the Newbie forum:
    So I get to the point where I need to install the kernel (after compiling from source), but I lack the program mkinitrd. I did some research and apparently we use mkinitramfs, which the fresh install also doesn't come with.
    My questions are thus:
    1) Is it possible to make an initrd on a computer which the initrd is NOT intended for?
    2) Why is it that a fresh install doesn't come with the stuff required to recompile a kernel, I would think that might be important?
    I am thankful for any help!

    Hey awesome, this looks good.
    If a package is included in the "Core" repository, does that mean it comes rolled up with the Arch install?
    EDIT:
    I see now that this is the case. From the Official Arch Linux Install Guide:
    The core iso (~300MB) is a live environment which contains a snapshot of the entire /core repository. Packages are divided into 4 categories: BASE, SUPPORT, DEVEL and LIB. RAID/LVM are fully supported; all necessary packages are included within /core. Installing from a medium created with this image results in a completely functional GNU/Linux system, without any frills, expecting to be used from the command line; the Linux kernel, GNU toolchain and a few extra modules and libraries. This image is ideally suited for those who have a rather slow or nonexistent internet connection on the candidate machine, making an FTP install unfeasible. The name of the iso will be "archlinux-i686-2008.xx-x.core.iso", according to your architecture
    Last edited by amackera (2008-11-04 01:15:00)

  • Is it possible to install 2 kernels ?

    I have following questions about my newly installed arch system.
    1. Is it possible to have 2 kernels ? So that i can test the new one and then get rid of the older if I find the new one stable.
    If yes, please point me to the documentation.
    2. If it is not possible, how can I avoid  possible system breakdowns due to the untested (untested only for my system) kernel ?
    thanks & regards,
    Hardik

    1: Yes, if each kernel has a differnt name. You can either install another kernel like the -lts one, or you can build your own custom one with a different name. To do that, search on the wiki for "Custom kernel", the wiki is a very good resource.
    2: Also, if you don't want to go that far in case of something going wrong you can reinstall the older kernel from your cache if you haven't cleared it. To do that you would boot the live cd, chroot into your installation, then issue a pacman -U on the old kernel package. A tutorial on how to chroot into your installation can be found on the wiki page for dealing with kernel panics: http://wiki.archlinux.org/index.php/Kernel_Panics
    edit: I type very slowly
    Last edited by jac (2009-12-21 13:09:55)

  • Modules install wrong kernel

    Hi! I'm for 2 weeks on Arch. Came here from Gentoo
    I've build new kernel. Without pkgbuild (or how is it called?). It warks fine. But pacman still installs new modules in old kernel directory. For example, madwifi. Now my modules are in /lib/2.6.28-axell, but pacman installs all them in /lib/2.6.27-ARCH.
    How to fix it?
    Thanks!

    But how do they install modules when new kernel appears in pacman db? All packages got rebuild to fit it?
    Anyway, thank you)
    Btw, I'm trying to set up fbsplash. I've got framebuffer console with default kernel, but I had kernel panic when it tried to mount root fs. May be there is any othr way to fix it, then recompiling own kernel?
    And on more question: there is some way to get source pacages through pacman. I suppose, it has automated system for compiling them (like gentoo's portage). If I try installing madwifi that way, would modules install in proper kernel directory?
    Thank you once again.
    Last edited by Axell (2009-01-11 18:37:53)

  • A little question about compiling my own kernel

    Hii, How can I know please, wich moudle is loaded in my current kernel and being used?
    for example, if I have now the RAID xxxx , and I don't use it, so when compiling my own Kernel, I don't need it.
    How can I know wich ones arn't needed?

    Ok Lsmod I know, is there any thing else?

  • Not able to install own Plugin in Windows 7 Ultimate,Latest Firefox

    Not able to install own Plugin in Windows 7 Ultimate,Latest Firefox. Please provide any RDF changes i need to do for installing on Windows 7 Ultimate.Latest Firefox

    Hi raazb4u:
    Have a look at this for starters:
    https://developer.mozilla.org/en/Extension_Versioning,_Update_and_Compatibility
    Let me know, if this is already known to you and does not adress the problem. I'll then go and check deeper, if necessary.
    Regards
    smo

  • Making own kernel patches?

    Dear archers,
    I had to change a file (saa7134-card.c) in kernel source to make my Avermedia TV Tuner work. But i must try to change some code in the file several time. It's not a problem if i'm compiling the kernel by traditional way, but if i follow the arch way, it's so time consumed because i had to extract the original kernel source and then edit saa7134-card.c file again. Then, some questions pop-up in my mind...
    1. How do i edit a file in kernel source tarball and put it again in the tarball?
    2. How do i make my own kernel patch?
    3. Do pacman always extract the sources tarball and overwrite files in $startdir/src when i do makepkg? is it possible to skip that step in makepkg process?

    Your best bet would just be make a diff file and add that to your PKGBUILD. Just make the changes and save it under a different file name. Use diff to create the file and then use patch to apply it in your PKGBUILD. Here's how I do it
    patch --ignore-whitespace <$startdir/right-click.diff $startdir/src/$pkgname-$pkgver/src/adesklets.c

  • [SOLVED] How to install custom kernel from AUR?

    I am trying to install the custom kernel for the Acer Aspire One from AUR. What is the correct way to go about doing this? I pacman -U the .pkg.tar.gz I downloaded and it put a new kernel folder in /usr/src. Do I just copy the old .config file and make?
    Last edited by future stir-fry (2008-12-23 01:26:57)

    zaza224 wrote:
    After installing new kernel with pacman -U you  just need to add a new line to grub menu.lst pointing to it and reboot
    How would you go about doing this in syslinux instead of grub?
    Whoa there, get your shotguns, the zombies are coming!!
    Seriously, welcome to the Arch forums zaza224
    Please familiarize yourself with our forum guidelines, in particular the topic about waking the dead:
    https://wiki.archlinux.org/index.php/Fo … Bumping.22
    Closing.

  • Compiling and Installing Compiled Kernel

    Hi everyone, today i followed the "Kernel Compilation From Source" (https://wiki.archlinux.org/index.php/Ke … rom_Source) ArchWiki to compile a kernel downloaded from kernel.org. And i use the second method to compile and install with makepkg.
    When the compilation is done, it can't be installed because the name of the file.
    I know i must specify a new name for the new linux image and the System.map to have two or more kernels installed. But "where" in the PKGBUILD i must change the name of the files???
    I'm using the PKGBUILD from the wiki:
    pkgname=kernel26-my
    basekernel=2.6.32.8
    pkgver=2.6.32.8
    pkgrel=1
    pkgdesc="The Linux Kernel and modules"
    arch=('i686' '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 -
    # comment 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
    And also the kernel26.install
    KERNEL_VERSION="2.6.32.8"
    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"
    Thanks in advance.
    Last edited by Hyugga (2010-11-11 02:48:14)

    When installing the kernel there is some problem when the "mkinitcpio" is running: sd_mod error.
    I can install and boot the kernel afterwards but when i get to kdm, the keyboard and the touchpad/mouse doesn't work.
    I double checked the .config file and i have enabled the keyboard and the mouse options.
    What can i do?
    Thanks...

  • Compile my own kernel?

    Hi!
    I wan't to edit and compile my own kernel, so I got even more structure on my machine - and I hope to get a little more performance.
    How do I edit and Compile a custom kernel?
    [EDIT] And maybe how I make all my own-compiled programs to be compiled to a Pentium4 processor As i could when I was a Gentoo user

    Kris;
    There is a wiki for custom kernel generation.
    Basically, you can use ABS to obtain the basic kernel  and its accompanying patches and config file.  ABS is  Arch Build System which somewhat automates the making of packages, including custom kernels.
    Just run abs in CL and find the download in /var/abs/kernels.
    The kernel you desire to customize is found therein.
    You customize it by modifying the kernelconfig and setup PKGBUILD file.
    Run "makepkg" on the PKGBUILD and then run pacman -A (name of custom kernel.pkg.tar.gz).  If using lilo run/sbin/lilo before reboot.
    The steps are outlined in the wikis.
    Best of luck!!!

  • How to install SMP Kernel on RHEL 4

    Hi all,
    I am installing 2 Node RAC on VMWare on RHEL 4.
    For which i need to have SMP Kernel installed.
    As of now this is what i have.
    uname -a
    Linux abc.xyz.com 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux
    Kindly guide me to the rpms wherein i cud upgrade to the SMP Kernal, or is there any other way i cud do it??

    Hi, apologies for the delayed response.
    Yes i did reboot the machine after installing the SMP pacakge, yet i see the same as
    uname -r
    2.6.9-5.EL
    While /boot/grub/grub.conf shows
    default=1
    timeout=5
    splashimage=(hd0,0)/boot/grub/splash.xpm.gz
    hiddenmenu
    title Red Hat Enterprise Linux AS (2.6.9-5.ELsmp)
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.9-5.ELsmp ro root=LABEL=/ rhgb quiet
    initrd /boot/initrd-2.6.9-5.ELsmp.img
    title Red Hat Enterprise Linux AS (2.6.9-5.EL) ==> However it does not show here!!
    root (hd0,0)
    kernel /boot/vmlinuz-2.6.9-5.EL ro root=LABEL=/ rhgb quiet
    clock=pit nosmp noapic nolapic
    initrd /boot/initrd-2.6.9-5.EL.img
    I just let this pass and started the RAC configurations.
    Now here i hit another problem.
    oracleasm packages installed are
    [root@rac1] rpm -qa | grep -i oracleasm
    oracleasmlib-2.0.2-1
    oracleasm-support-2.1.2-1.el4
    oracleasm-2.6.9-55.0.12.EL-2.0.3-1
    Yet i get this error while configuring ASMLib Drivers
    [root@rac1 RPMs]# /etc/init.d/oracleasm configure
    Configuring the Oracle ASM library driver.
    Default user to own the driver interface [oracle]:
    Default group to own the driver interface [dba]:
    Start Oracle ASM library driver on boot (y/n) [y]:
    Scan for Oracle ASM disks on boot (y/n) [y]:
    Writing Oracle ASM library driver configuration: done
    *Initializing the Oracle ASMLib driver:                     [FAILED]*
    Help appreciated.

  • Problems with own kernel and nvidia

    Hi.
    I've got a little problem with nvidia driver. I removed stock kernel and compiled my own. Then I installed nvidia drivers (from nvidia.com) and everythings gone fine. But after reboot Xserver doesn't seem to start. The only way to run X is to reinstall nvidia drivers (after every reboot)... anyone knows any solution for that?

    Log:
    (**) NVIDIA(0): Depth 24, (--) framebuffer bpp 32
    (==) NVIDIA(0): RGB weight 888
    (==) NVIDIA(0): Default visual is TrueColor
    (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
    (**) NVIDIA(0): Option "NoLogo" "on"
    (**) NVIDIA(0): Option "TripleBuffer" "on"
    (**) NVIDIA(0): Option "AddARGBGLXVisuals"
    (**) NVIDIA(0): Enabling RENDER acceleration
    (II) NVIDIA(0): Support for GLX with the Damage and Composite X extensions is
    (II) NVIDIA(0): enabled.
    (EE) NVIDIA(0): Failed to initialize the NVIDIA kernel module! Please ensure
    (EE) NVIDIA(0): that there is a supported NVIDIA GPU in this system, and
    (EE) NVIDIA(0): that the NVIDIA device files have been created properly.
    (EE) NVIDIA(0): Please consult the NVIDIA README for details.
    (EE) NVIDIA(0): *** Aborting ***
    (II) UnloadModule: "nvidia"
    (II) UnloadModule: "wfb"
    (II) UnloadModule: "fb"
    (EE) Screen(s) found, but none have a usable configuration.
    Fatal server error:
    no screens found

  • Strange system behavior on MBP, no way to install OS, kernel panics keeps happening

    Hi ,
    I have a MBP mid 2009, with 8G Ram and 500 GB hard disk, the problem started 2 month ago when I was copying my files into my external hard drive due to strange crashes and kernel panics, that was the last time when My MBP was alive, a kernel panic happened and  No safe mode, no PRAM resetting and no clean install nothing was working, I could not use disk verification or repair using original Snow leopard disk utility so i had to go to a repair center for formatting the hard disk.
    By the time first crashes started I was using lion installed from app store. But i never could install it again, i had to change the hard disk which was not identified by any other computer as well,  so now I use a brand new hard disk, but even now the installation fails every time I try to clean install, the only way to make it work is to install the  snow leopard on my USB disk and then restore the image on internal drive which Has a single partition,  however the main problem is still there,
    For further information i have to add that I am not using bootcamp for windows or any VM tools,I have used the memtest for testing RAM and all tests passed, the disk repair and permission repair also finished successfully. The performance is ok there is no delay  in performing tasks but randomly application start to quit unexpectedly and sometimes there is one kernel panic a day but some times there are 3 in 15 min!
    Any suggestion that what might be wrong?

    Thanks for prompt response clinton,
    I dont have acess to terminal now becuase i am using apple test for checking hardware again,
    i have used AHT several times before with no alert or error but just now i got the following error when there was 2 4 Gb ram installed
    4mem/4/400000000 0 ac 112098
    And when i checked the Rams one by one I got this error for both of them
    4mem/4/400000000 0xac 10b618
    I have tested rams using memtest before and it passed all the tests,
    the strange point is for all three tests which i have done so far using AHT they took less than 2 min but now i am checking first ram in upper slot and its almost 15 min and its less than 20% progress, could it be a sign that lower slot got problem?
    I will post requested info asap.

  • None of the updates could be installed. Kernel panic

    Today I tried to install the two updates that apple had in store for me:
    IPhoto
    Thunderbolt
    The installer asked me to reboot and I said yes.
    After a while, the installer said:
      None of the updates could be installed.
    I pressed the only button: restart
    After staring at the canvas background for over 5 minutes, I hard-rebooted the iMac.
    Now I get a kernel panic when I boot!!!
    What to do?
    iMac 2011
    Mac os x. Latest update
    Wouter

    Ditto for me: kernel panic...repeatedly.
    What do I do if I am running Lion Server?!  When I attempt to reinstall Lion it tells me:
    "You cannot install Mac OS X on a server volume.  You need to use Disk Utility to erase this volume before you can continue to install Mac OS X."
    Well, I don't want to erase my volume...so how do I recover?
    Thanks for any help, it is much, much appreciated.
    Switon

  • Pbook G4 wont boot! 'unknown error: 0' shows while installing then Kernel P

    My powerbook decided not to respond anymore. I thought it could be a system error, something with system files, because i tried apple hardware test (quick and advanced) and everything was ok, the mac could even initiate with the cd installer, and i could read all drives with disk utility with all correct permissions and repairs. With another powerbook i used firewire connection and backup all files, and then made a 'erase and install' a new copy of Mac Os 10.3.7:
    the problem is:
    first time, it crashed in the middle of process with a kernel panic. i was frustrated
    second try, the installation finished but it wont boot again: i booted with install cd and i saw in 'system passwords' that there was no user in the system at all!
    last try: while installing i opened 'install log' and these where the sentences until it crashed -
    Extracting files from (...)
    Running task: /System/Library/PrivateFrameworks/(...)
    Finished task: /System/Library/PrivateFrameworks/(...)
    Extracting files from (...)
    Running task: /System/Library/PrivateFrameworks/(...)
    pax:
    could not read compressed data
    Unknown error: 0
    Finished task:/System/Library/PrivateFrameworks/(..)
    this was the error, it happened 3 times, in 3 distinct moments, until kernel panic appears.
    simple question: what could it be? thank you
    powerbook g4   Mac OS X (10.3.9)  

    May be a solution on one of these links.
    Troubleshooting
    The X Lab (Troubleshooting & Maintenance of OS X)
    OS X Routine Maintenance & Generic Troubleshooting
    Prevent Mac Disasters
    Kernel Panic
    Mac OS X Kernel Panic FAQ
    Mac OS X Kernel Panic FAQ
    Resolving Kernel Panics
    12-Step Program to Isolate Freezes and/or Kernel Panics
     Cheers, Tom

Maybe you are looking for

  • Photoshop CC: Font size bug

    I have been working on a project today and suddenly I cannot change the font size anymore. If I select the text layer with the move tool and double click the layer in order to edit the text I cannot change the size of the font by pressing the up and

  • How do I get rid of the gap?

    After draging the end of a music line to shorten it to the end of the movie, I have 2 minutes at the end with nothing in it, blank. How do I get red of the gap?  Thank you, Woody

  • Re:bookmarks in safari

    How can I bookmark my apps in safari because it says bookmarks are being synced, so it cannot be used. Someone tell me how can I fix this problem?

  • Uninstalling All Versions of Application Prior to Installation

    Hey Guys -  For the application Adobe Reader (X and XI), I've created custom source files/folders which have the updates slipstreamed into them plus include Transforms created with the Adobe Customization Wizard.  Once made into Applications, they de

  • Printing multi-page documents

    I have a 25-page .psd document that I want to print in CS6 in one hit, but I only seem able to print it by opening each page individually and processing it separately. What can this be done?