Automatically build kernel module after kernel update

Hello. Everytime kernel is updated, my wifi drivers don't work. I need to use this to get my adapter working: https://aur.archlinux.org/packages/8192cu-dkms/ .
After kernel update, I have to manually reinstall the package, so the kernel module gets rebuilt. Is there any way to make it automatic?

I noticed it, but your script doesn't run at all when I type `mkinitcpio -p linux`. And wifi still works after reboot. Same for graphics driver, it has a hook at shutdown, that rebuilds its module after kernel update, it haven't run too and graphics driver works. It's like 'mkinitcpio -p linux' does nothing to the system.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.0.4-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.0.4-2-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
Last edited by kox (2015-06-02 07:18:24)

Similar Messages

  • [SOLVED] Rebuild catalyst drivers automatically if kernel updated?

    Hi
    I use the catalyst proprietary drivers, and I read on the catalyst wiki page that it is possible to automatically rebuild (?) the drivers if the kernel was updated, to prevent the drivers not working on reboot. However, the wiki makes absolutely no sense to me.
    I need help installing catalyst_daemon, because I think that catalyst_daemon is the daemon that checks if a rebuild needs to be done. However, simply entering:
    pacman -S catalyst-daemon
    does nothing, because it complains that catalyst and catalyst-daemon are in conflict.
    What do I need to install, and how do I need to configure it, so that fglrx or the catalyst drivers are automatically rebuilt so that I don't get a black screen upon rebooting.
    Thanks in advance
    Last edited by sheomualjy (2012-04-22 06:22:07)

    Oh, that sounds good. If I were to use catalyst-hook, would I simply install catalyst-hook? Do I need to add anything else?
    EDIT: I just noticed that catalyst-hook also conflicts with catalyst. I am assuming that is for the same reason as you just said, so I am assuming I would remove catalyst to make way for catalyst-hook
    Last edited by sheomualjy (2012-04-22 03:59:13)

  • 5 year old deleted text messages automatically reload on startup after iOS update

    I have a 5 year old first generation iPhone which was running iOS 1 until I updated to iOS 3.1.3 yesterday. Instead of restoring from a back-up, i restored to factory settings as a new phone. When the phone started, it received 35 new text messages - but they were old messages from 2007 which I had deleted years ago. I deleted thm again, but the next time I turned the phone off, they redelivered again when the phone turned back on.
    How can I stop this?

    char208,
    I had the EXACT same issue as you. No text messages after upgrading to iOS 5 and coming across a bunch of errors during the process of upgrading.
    If you go to your Spotlight search (the search screen that is to the left of your home screen), and you search for a word that would of been in one of your most recent text messages, the text message will appear in the search results. If you try to tap on the message, it'll bring you to the Messages application but it will not show the text message. It almost seems like the text message is still on the phone, but the Messages application does not know where they are or will not show it. Hopefully Apple will release a fix for this as I'm not wanting to lose 3 years worth of text messages.

  • Satellite M30: can't install Common Modules after OS update

    Hi everyone,
    I have changed my OS from Win XP to Win XP Pro. Now I try to install Common Modules but when I try to launch it, the setup is visible in the Windows Task Manager but nothing happens. Do you have some idea to help me?
    Thanks

    Hello
    First of all be sure you install all stuff in the right installations order. That means Common Modules must be installed before you start installation of any other Toshiba tool or utility.
    Common modules can be installed like any other application following installations wizard.
    Unfortunately I can not tell you anything because I dont know which installations order you have used.
    Try to explain exactly how you make OS installation and OS configuration. Check also delivered Tools & Utilities CD. I am not 100% sure but maybe there you can find html document with exact installations order.

  • Can reinstall uuid after perl update to 5.16

    hello, guys
    i using pacmanager instead of putty, pacmanger depent on perl's modules. after i update whole the system, opened pacmanger fail, so i have to reinstall pacmanger, but when i reinstalled uuid, it response the error like this:
    http://aur.archlinux.org/packages.php?ID=30173
    btw: complie uuid from source ,it success to build only one,but other error same as above.

    [root@exorzist /]# pacman -S core/perl
    warning: perl: local (5.10.0-2) is newer than core (5.8.8-9)
    warning: perl-5.10.0-2 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: irssi: requires perl>=5.10.0-1
    :: perl-dbi: requires perl>=5.10.0
    :: perl-io-socket-ssl: requires perl>=5.10.0
    :: perl-locale-gettext: requires perl>=5.10.0
    :: perl-net-ssleay: requires perl>=5.10.0
    :: perl-xml-simple: requires perl>=5.10.0
    :: perlxml: requires perl>=5.10.0
    :: sdl_perl: requires perl>=5.10.0
    what should i do?

  • PC taking a LONG time to load everything before the win logo, after BIOS update.

    Every single time I turn on my PC, it takes a REALLY long time to start the first DOS-like screen and then it takes another while before the windows logo shows up. About 4-5 mins before the win logo. It used to be fast and sweet before updating my MSI MB BIOS...
    It all started when I updated the BIOS the first time (I just thought it was something good to do). The start up took a long time like 25% of the times and it got worse every month. I tried changing the config in the BIOS but nothing helped, so recently I decided to update the BIOS again with a flash drive step by step as indicated in the MSI website with their software, only to find out that the problem got worse and that it happened 100% of the times I turn my PC on.
    When the start-up is slow, it gets stuck in that black pre-DOS like screen, showing a "B4" in the bottom right corner. After that the usual first screen with some info shows up for about 3 seconds, then it all goes black again and shows some other pair of codes on the same corner (B2, A4,....)
    Today I tried manuallly reseting the MB to see if it helped (I removed the battey for a while, then used the reset CMOS button to make sure). It did not help at all. I have tried changing the hard drives from IDE to AHCI but windows 8 won't start: after showing its logo for a while, it shows a blue screen of death with the sad smily :( and tries to reset (I have to manually reset it afterwards). I have one 2TB WD green hard drive and one SSD in which I have windows 8 installed.
    I found some text today on the MB MSI website on the BIOS versions page... which I didn't see at the time, and it shows up only in my smartphone: "We recommend to only update to the M8 class module if you have an Ivy bridge processor. There is no way to go back to the previous M module after the update" (this is from memory by the way)
    Something to add, I used the Crystal Disk Info software to check my drives and it showed the were in good condition. Then used CrystalDiskMark 3.0.3 to test them and got low numbers in my opinion; for the WD green
       Sequential Read : 76 MB/s, Random Read 512KB : 26 MB/s, Random Write 512KB : 41 MB/s.
    And for the SSD
       Sequential Read : 167 MB/s, Random Read 512KB : 161 MB/s, Random Write 512KB : 111 MB/s
    My relevant PC parts are:
    Intel i5 2500k (sandy bridge)
    MSI Z68A GD65 (B3)
    SSD Mushkin Chronos 120GB SATA 6GB-s (windows 8.1 installed here) (MKNSSDCR120GB)
    2TB Western Digital HD (WD20EARS)
    2x Ati 6950 crossfire
    I also already tried turning it ON with everything disconnected, changing the video card slots, using only one... etc.
    Any ideas on how to fix this or what's causing it? I really need some help here...  If you need more info, I will be checking this constantly and will deliver your requests.

    Quote from: dan.djh on 30-November-14, 23:06:20
    I already fixed the IDE to AHCI problem, which was the minor one. Solution for this: Use regedit to change HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\"Error Control" to 0 and delete StartOverride. Then you should be able to go into BIOS and change to AHCI mode. You'll need to do this again if you ever start up in IDE mode.
    But I still need to fix the main one which is the slow startup... please help!
    B4 is a USB problem! what USB devices do you have plugged in? (if its a keyboard and/or Mouse please say what they are like make and model!)

  • [Solved] Can not build modules for VMware Player after kernel updates

    I have a problem generating the modules for VMware Player after kernel updates. I am using  VMware Player version 5.02 (without patches) and the softlink according to the Wiki.
    When I start the installation of the modules from the GUI, the program just closes. Running vmware-modconfig in the CLI generates the following log file:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Log for VMware Workstation pid=7478 version=9.0.2 build=build-1031769 option=Release
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: The process is 64-bit.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Host codepage=UTF-8 encoding=UTF-8
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Host is Linux 3.8.10-1-ARCH 2012.11.29
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Msg_Reset:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/usr/lib/vmware/settings": Datei oder Verzeichnis nicht gefunden.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: ----------------------------------------
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: PREF Optional preferences file not found at /usr/lib/vmware/settings. Using default values.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: Msg_Reset:
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: [msg.dictionary.load.openFailed] Cannot open file "/root/.vmware/config": Datei oder Verzeichnis nicht gefunden.
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: ----------------------------------------
    2013-04-29T09:49:27.891+01:00| vthread-3| I120: PREF Optional preferences file not found at /root/.vmware/config. Using default values.
    2013-04-29T09:49:27.891+01:00| vthread-3| W110: Logging to /tmp/vmware-root/vmware-modconfig-7478.log
    2013-04-29T09:49:27.892+01:00| vthread-3| W110: Icon name must be set.
    Interestingly, after deinstallation and reinstallation the VMWare Player works fine.
    Any hint, what's going wrong?
    Last edited by Thomas_Do (2013-08-07 07:25:51)

    Today, (Kernel  3.10.5-1, VMware Player version 5.02 with kernel patches) the modules could successful be generated from the CLI:
    vmware-modconfig --console --install-all
    Solved (somehow).

  • Automatic recompiling of kernel module after kernel update.

    Hello everyone,
    i tried to search for it but without success...
    my question is - is it possible to set it up somehow that aur package would recompile after kernel update?
    The package I would like to rebuild is rt3090 which is module for my wifi card. It is very annoying to rebuild it manually. I know that my fglrx module does it automaticaly but how to set it?
    Thank all of you for any advise.

    Thank you :-) It looks ok, I will try DKMS as soon as I get some free time. If there was any problem, I would tell you.
    BTW: I use catalyst mainly because of saving energy management, which is of course better for my netbook. My card is too new to be fully supported by the opensource driver.
    EDIT:
    I solved the situation by upgrading my system, I tried in-kernel module rt2800pci. In the previous kernels it didn't work well with my crappy ralink rt3090 wifi card, but that's been improved :-) so I do not need rebuild the package anymore even because this module isn't compatible with newest kernel.
    I also learnt how to write my own hook from archwiki (https://wiki.archlinux.org/index.php/Mkinitcpio) so if the new module didn't work I would try it.
    The final solution = replace module rt3090sta by rt2800pci.
    Thanks! Arch has very powerful community :-)
    Last edited by h@lf@rk (2012-06-02 18:34:17)

  • DKMS - module not compiled after kernel update

    Hello all,
    I'm using a USB Wifi Adapter which has very bad support : D-Link DWA160 B2
    I have followed the instruction from this excellent guide to add the driver sources to DKMS, to get it compiled automatically after all kernel update:
    http://bernaerts.dyndns.org/linux/229-u … er-to-dkms
    Unfortunatly the 2 last kernel upgrade did not trigger the driver compile.
    There is no DKMS logs, and everything seems to be well configured.
    My DKMS conf file:
    /root/driver-dkms
    [root@purelight driver-dkms]# more dkms.conf
    MAKE="make KERNELDIR=/lib/modules/${kernelver}/build"
    CLEAN="make clean"
    BUILT_MODULE_NAME=rt5572sta
    BUILT_MODULE_LOCATION=os/linux/
    DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
    PACKAGE_NAME=rt5572sta
    PACKAGE_VERSION=2.601
    REMAKE_INITRD=no
    [root@purelight 2.601]# pwd
    /var/lib/dkms/rt5572sta/2.601
    [root@purelight 2.601]# ls -lsa
    total 24
    4 drwxr-xr-x 6 root root 4096 Oct 17 20:54 .
    4 drwxr-xr-x 3 root root 4096 Oct 17 20:54 ..
    4 drwxr-xr-x 3 root root 4096 Oct 6 20:44 3.5.4-1-ARCH
    4 drwxr-xr-x 3 root root 4096 Oct 9 20:43 3.5.6-1-ARCH
    4 drwxr-xr-x 3 root root 4096 Oct 17 20:54 3.6.2-1-ARCH
    4 drwxr-xr-x 11 root root 4096 Oct 17 20:54 build
    0 lrwxrwxrwx 1 root root 24 Oct 6 20:42 source -> /usr/src/rt5572sta-2.601
    [root@purelight 2.601]# dkms build -m rt5572sta -v 2.601
    Module rt5572sta/2.601 already built for kernel 3.6.2-1-ARCH/4
    It seems that there is nothing relevant in the logs:
    [root@purelight log]# grep dkms /var/log/*
    auth.log:Oct 17 20:52:53 purelight sudo: syl : TTY=pts/2 ; PWD=/var/lib/dkms/rt5572sta/2.601 ; USER=root ; COMMAND=/usr/sbin/dkms build -m rt5572sta -v 2.601
    auth.log:Oct 17 20:54:14 purelight sudo: syl : TTY=pts/2 ; PWD=/var/lib/dkms/rt5572sta/2.601 ; USER=root ; COMMAND=/usr/sbin/dkms install -m rt5572sta -v 2.601
    pacman.log:[2012-10-06 20:42] Running 'pacman -S dkms'
    pacman.log:[2012-10-06 20:42] installed dkms (2.2.0.3-12)
    Any help would be nice, thanks!

    Unia wrote:
    Are you using systemd? If so, you might have to reboot twice. The catalyst-dkms package (video driver for amd cards) in [community] currently has the same problems. I'd suggest for you to read the last few pages in that thread to see background information:
    https://bbs.archlinux.org/viewtopic.php?id=57084&p=177
    Yes I do use systemd. Since I'm using a quite recent installation, it was included by default.
    At the next kernel upgrade I'll try this trick of reboot twice, and see if it works.
    Cheers!

  • Module 'asus-nb-wmi' stopped being auto-loaded after kernel update

    Well, the module 'asus-nb-wmi' which takes care of some FN keys and keyboard backlight stopped being auto-loaded after the latest kernel udpate (3.9.3), so I had to add it to /etc/modules-load.d/ to get it working. This has happened before, between kernel updates and I had to re-install arch to fix it, but now I found that manually adding the module is a nice solution, but I want it to be loaded automatically or at least know why does this happen. Kernel modules, such as this one, should be loaded automatically right?
    Best regards.
    Last edited by DanielRS (2013-07-04 19:54:48)

    I think there is a valid question here;  Same thing happened to me.
    Upon a default install of arch, the module was auto-loaded without the user touching any configuration files
    at some point during kernel updates, the module is no longer auto-loaded
    the user then has to find out what is happening and go add the module to the appropriate config file to force load on boot.
    So the larger question is; without config files being taken into consideration, how does the kernel decide what modules to load?  f
    I know it has something to do with the hardware that it detects, but am unaware if this is something within the RC or systemctl booting system, or if this is part of the kernel.
    I'm going to dig around some more on the internet, as i'm sure the answer is out there somewhere.. but if someone that is on this forum happens to read and know the answer, it would be nice to know
    thanks

  • Automatically Recompile AUR Module on Kernel Update?

    I'm using acpi_call-git from the AUR to turn off my NVidia graphics card on my Optimus laptop.
    It works great, but it breaks every time there is a kernel update.
    I have to recompile and reinstall the package, and then reboot again.
    Is there a more convenient way to get this done? I've tried recompiling before rebooting on a kernel update, but the compilation inevitably fails.
    Any advice would be appreciated.

    yes there is a dkms version in the AUR.  http://aur.archlinux.org/packages.php?ID=54641
    It will automatically recompile the module when a new kernel is installed. "dkms_autoinstaller" will need to be added to the DAEMONS array in /etc/rc.conf

  • Broadcom-wl-dkms not reinstalled after kernel update

    I use broadcom-wl-dkms for my wireless card (Broadcom BCM4352 rev 03). All works well, until the kernel is updated.
    I expected dkms to rebuild the package automatically, but apparently something goes wrong in the process: after every one of the last few kernel updates, the module was correctly rebuilt on reboot, but not re-installed.
    root@tank ~ # dkms status
    broadcom-wl, 6.30.223.248, 3.19.2-1-ARCH, x86_64: installed
    broadcom-wl, 6.30.223.248, 3.19.3-3-ARCH, x86_64: installed
    broadcom-wl, 6.30.223.248, 4.0.1-1-ARCH, x86_64: installed
    broadcom-wl, 6.30.223.248, 4.0.2-1-ARCH, x86_64: installed
    broadcom-wl, 6.30.223.248, 4.0.3-1-ARCH, x86_64: built
    Running
    root@tank ~ # dkms install broadcom-wl/6.30.223.248
    wl:
    Running module version sanity check.
    - Original module
    - No original module exists within this kernel
    - Installation
    - Installing to /usr/lib/modules/4.0.3-1-ARCH/kernel/drivers/net/wireless/
    depmod....
    DKMS: install completed.
    does the trick, but ideally I wouldn't have to do that.
    Looking at dkms logs, I get that:
    May 17 20:41:10 tank systemd[1]: Starting Dynamic Kernel Modules System...
    May 17 20:41:10 tank dkms[443]: Kernel preparation unnecessary for this kernel. Skipping...
    May 17 20:41:10 tank dkms[443]: Kernel preparation unnecessary for this kernel. Skipping...
    May 17 20:41:10 tank dkms[443]: Building module:
    May 17 20:41:10 tank dkms[443]: cleaning build area...
    May 17 20:41:10 tank dkms[443]: Building module:
    May 17 20:41:13 tank dkms[443]: cleaning build area....
    May 17 20:41:13 tank dkms[443]: make KERNELRELEASE=4.0.3-1-ARCH KVERSION=4.0.3-1-ARCH....
    May 17 20:41:16 tank dkms[443]: make KERNELRELEASE=4.0.3-1-ARCH -C /usr/lib/modules/4.0.3-1-ARCH/build M=/var/lib/dkms/broadcom-w
    May 17 20:41:16 tank dkms[443]: cleaning build area....
    May 17 20:41:19 tank dkms[443]: cleaning build area....
    May 17 20:41:19 tank dkms[443]: Kernel cleanup unnecessary for this kernel. Skipping...
    May 17 20:41:19 tank dkms[443]: DKMS: build completed.
    May 17 20:41:19 tank dkms[443]: steamos-xpad.ko:
    May 17 20:41:19 tank dkms[443]: Running module version sanity check.
    May 17 20:41:19 tank dkms[443]: .
    May 17 20:41:19 tank dkms[443]: Kernel cleanup unnecessary for this kernel. Skipping...
    May 17 20:41:19 tank dkms[443]: DKMS: build completed.
    May 17 20:41:19 tank dkms[443]: wl.ko:
    May 17 20:41:19 tank dkms[443]: Running module version sanity check.
    May 17 20:41:20 tank dkms[443]: - Original module
    May 17 20:41:20 tank dkms[443]: - Original module
    May 17 20:41:20 tank dkms[443]: - No original module exists within this kernel
    May 17 20:41:20 tank dkms[443]: - No original module exists within this kernel
    May 17 20:41:20 tank dkms[443]: - Installation
    May 17 20:41:20 tank dkms[443]: - Installation
    May 17 20:41:20 tank dkms[443]: - Installing to /usr/lib/modules/4.0.3-1-ARCH/kernel/drivers/input/joystick/
    May 17 20:41:20 tank dkms[443]: - Installing to /usr/lib/modules/4.0.3-1-ARCH/kernel/drivers/net/wireless/
    May 17 20:41:23 tank dkms[443]: depmod...depmod....
    May 17 20:41:23 tank dkms[443]: DKMS: install completed.
    May 17 20:41:23 tank dkms[443]: .(bad exit status: 1)
    May 17 20:41:23 tank dkms[443]: -------- Uninstall Beginning --------
    May 17 20:41:23 tank dkms[443]: Module: broadcom-wl
    May 17 20:41:23 tank dkms[443]: Version: 6.30.223.248
    May 17 20:41:23 tank dkms[443]: Kernel: 4.0.3-1-ARCH (x86_64)
    May 17 20:41:23 tank dkms[443]: -------------------------------------
    May 17 20:41:23 tank dkms[443]: Status: Before uninstall, this module version was ACTIVE on this kernel.
    May 17 20:41:23 tank dkms[443]: wl.ko:
    May 17 20:41:23 tank dkms[443]: - Uninstallation
    May 17 20:41:23 tank dkms[443]: - Deleting from: /usr/lib/modules/4.0.3-1-ARCH/kernel/drivers/net/wireless/
    May 17 20:41:23 tank dkms[443]: - Original module
    May 17 20:41:23 tank dkms[443]: - No original module was found for this module on this kernel.
    May 17 20:41:23 tank dkms[443]: - Use the dkms install command to reinstall any previous module version.
    May 17 20:41:26 tank dkms[443]: depmod....
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1873: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1875: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1873: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1875: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1873: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1875: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1873: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: /usr/sbin/dkms: line 1875: echo: write error: Broken pipe
    May 17 20:41:26 tank dkms[443]: DKMS: uninstall completed.
    May 17 20:41:26 tank dkms[443]: Error! Problems with depmod detected. Automatically uninstalling this module.
    May 17 20:41:26 tank dkms[443]: DKMS: Install Failed (depmod problems). Module rolled back to built state.
    May 17 20:41:26 tank systemd[1]: Started Dynamic Kernel Modules System.
    Apart from telling me that the broadcom-wl install failed, I don't see much in there.
    Any clue on what's going on? Thanks!
    Last edited by Gyscos (2015-05-18 08:25:32)

    The open source driver might work or might not. For me it was extremely unreliable and slow. Use the broadcom-wl driver or b43 like ugjk suggests.The wl driver is in aur.

  • [kernel] kernel update and third party modules management

    Hi all,
            I turned to Archlinux with my new thinkpad X220 just for a few days, while I have used Ubuntu for 4 years. I had never controlled my system in such a degree, and feel happy about it.
           However, I have a question about kernel update, for I had install some modules from AUR with yaourt( e.g. tp_smapi, acpi_call). For my poor knowledge about pacman, I don't know how to handle those modules while I upgrade my kernel. I cannot remember to re-install all of them!
          I think there must be a solution that I didn't found, so I write this thread to ask for help.
          Any help would be appreciate.

    Mr.Elendig wrote:You can use some silly wrapper around pacman that rebuilds them when there is a kernel update. I'm sure someone has written one already.
    Thank you, Mr.Elendig. Do you mean some kind of frontend such as yaourt?
    Or some kind of hooks like this:
    aur/mkinitcpio-vbox 2.0-3 (Out of Date) (29)
        VirtualBox hook for mkinitcpio that rebuilds kernel modules on next reboot
    Using the key words you provided, I searched " kernel upgrade module rebuild " and found that gentoo offically provide a tool called  "module-rebuild" to reinstall external modules. Maybe it's because gentoo always compile source code? But no other results.
    However, now I found what I need to do is just to build the modules listed in the /etc/rc.conf, and that is acceptable. Maybe after a few weeks of study, I can find out my way to solve this problem.
    And thanks for your reply.
    Last edited by ywarlock (2012-03-09 16:20:36)

  • [SOLVED] Catalyst-hook won't build kernel module

    I HAVE SOLVED THE PROBLEM. I WAS MISSING /usr/lib/modules/extramodules-3.11-ARCH/version !
    Hello, I got a problem with my Arch Linux install. Today I got a new kernel update (Linux-3.11.1-2-ARCH) and catalyst-hook attemptet to rebuild the fglrx kernel module, but failed.
    This is my /var/log/catalyst-install.log:
    2013-09-25 13:09:13
    Building fglrx module for 3.11.1-2-ARCH kernel ...
    OsVersion says: SMP=1
    file /proc/kallsyms says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: SMP=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/include/generated/autoconf.h says: MODVERSIONS=1
    file /usr/lib/modules/3.11.1-2-ARCH/build/arch/x86/include/asm/compat.h says: COMPAT_ALLOC_USER_SPACE=arch_compat_alloc_user_sp$
    make: Entering directory `/usr/src/linux-3.11.1-2-ARCH'
    CC [M] /tmp/catalyst.H8Xs1y/firegl_public.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_acpi.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_agp.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_debug.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_ioctl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_io.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_pci.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_str.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_iommu.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl.o
    CC [M] /tmp/catalyst.H8Xs1y/kcl_wait.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.o
    Building modules, stage 2.
    MODPOST 1 modules
    CC /tmp/catalyst.H8Xs1y/fglrx.mod.o
    LD [M] /tmp/catalyst.H8Xs1y/fglrx.ko
    make: Leaving directory `/usr/src/linux-3.11.1-2-ARCH'
    install: missing destination file operand after ‘fglrx.ko.gz’
    Try 'install --help' for more information.
    Please let me know if you need more information, and where/how I can get it.
    Last edited by xeekei (2013-09-25 21:30:35)

    Hey man have had the same issue.
    How did you go about solving it?

  • Proper method for building kernel modules? [solved]

    I am attempting to build a custom kernel module for a PCI express interface to an FPGA.  However, I seem to be running into some issues with getting the standard kernel module makefile to work correctly.  Here is my makefile:
    # object files to build
    obj-m += nnic.o
    nic-objs += nnic_driver.o
    all:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) modules
    clean:
    make -C /lib/modules/$(shell uname -r)/build M=$(pwd) clean
    However, the first time I ran 'make', I got this output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/kconfig/conf --silentoldconfig Kconfig
    *** Error during update of the configuration.
    /usr/lib/modules/3.14.1-1-ARCH/build/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
    make[3]: *** [silentoldconfig] Error 1
    /usr/lib/modules/3.14.1-1-ARCH/build/Makefile:512: recipe for target 'silentoldconfig' failed
    make[2]: *** [silentoldconfig] Error 2
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    After poking around online, I decided to try running make as root.  I got the following output:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    scripts/kconfig/conf --silentoldconfig Kconfig
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    Now, when runing 'make' as a normal user, I get:
    make -C /lib/modules/3.14.1-1-ARCH/build M= modules
    make[1]: Entering directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:608: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
    scripts/Makefile.build:44: /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile: No such file or directory
    make[2]: *** No rule to make target '/usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/syscalls/Makefile'. Stop.
    /usr/lib/modules/3.14.1-1-ARCH/build/arch/x86/Makefile:183: recipe for target 'archheaders' failed
    make[1]: *** [archheaders] Error 2
    make[1]: Leaving directory '/usr/lib/modules/3.14.1-1-ARCH/build'
    Makefile:7: recipe for target 'all' failed
    make: *** [all] Error 2
    I have the linux-headers package installed.  I do not need to build the whole kernel, only this small module.  What am I missing here?  What is the correct procedure for this?
    Last edited by alex.forencich (2014-04-25 08:16:31)

    Sigh, found the problem.  Should be $(PWD) and not $(pwd) in my makefile.

Maybe you are looking for