Loading modules for old kernel during boot up

Hello
After a kernel update I noticed this message during boot
Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
And taking a look at everything.log this came out
May 24 13:57:54 localhost kernel: Pid: 1772, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:31:25 localhost kernel: Pid: 1952, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:34:45 localhost kernel: Pid: 1872, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 14:54:53 localhost kernel: Pid: 1966, comm: modprobe Tainted: G         C  2.6.37-ARCH #1
May 24 15:14:03 localhost modprobe: FATAL: Could not load /lib/modules/2.6.37-ARCH/modules.dep: No such file or directory
Jun 13 13:34:20 localhost modprobe: FATAL: Could not load /lib/modules/2.6.38-ARCH/modules.dep: No such file or directory
I am using 2.6.39 kernel.
Could anybody help me solve this??

slytux wrote:
Samana, what does your error message say?  Do you have anything in /lib/modules/2.6.39-ARCH/misc/ ?
You can also try rebuilding the initrd image as jni suggested.
mkinitcpio -p kernel26
I have no "misc" folder in 2.6.39-ARCH
The error is like a resonse from bad syntax when running a modprobe command
Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
I rebuilt the image and got a few errors in autodetect that might be a clue.
# mkinitcpio -p kernel26
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.39-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
WARNING: All config files need .conf: /etc/modprobe.d/oldusbload, it will be ignored in a future release.
WARNING: All config files need .conf: /etc/modprobe.d/oldusbload, it will be ignored in a future release.
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26.img'
:: Image generation successful
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.39-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'
:: Image generation successful
==> SUCCESS
Note that the error does not show up when I boot in fallback mode. So it looks like the error has something to do with autodetect. But I have no idea what it is. I am going to try to get rid of the oldusbload and see what happens. [NOTE: Getting rid of oldusbload did n
ot fix the error]
Last edited by Samana (2011-07-09 17:46:02)

Similar Messages

  • Eth0 is being up and down for several time during boot

    My wicd doesn't connect to eth0 on the first attempt after boot up. It is configured to eth0 always have a higher priority to connect.
    My dmesg shows that eth0 being up and down for several time during boot. I have e1000e in my MODULES list.
    Here is my rc.conf
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
    # startup and during the boot process. If set to 'no', the C locale is used.
    # HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # Note: Using "localtime" is discouraged, using "" makes hwclock fall back
    # to the value in /var/lib/hwclock/adjfile
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # Note: if unset, the value in /etc/localtime is used unchanged
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    DAEMON_LOCALE="no"
    HARDWARECLOCK=""
    TIMEZONE="Asia/Hong_Kong"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
    # Replace every !module by an entry as on the following line in a file in
    # /etc/modprobe.d:
    # blacklist module
    # See "man modprobe.conf" for details.
    MOD_AUTOLOAD="yes"
    MODULES=(acpi-cpufreq fuse tp_smapi vboxdrv e1000e)
    # Udev settle timeout (default to 30)
    UDEV_TIMEOUT=30
    # Scan for FakeRAID (dmraid) Volumes at startup
    USEDMRAID="no"
    # Scan for BTRFS volumes at startup
    USEBTRFS="no"
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="antony-tp"
    # Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
    # Wired network setup
    # - interface: name of device (required)
    # - address: IP address (leave blank for DHCP)
    # - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
    # - broadcast: broadcast address (ignored for DHCP) (optional)
    # - gateway: default route (ignored for DHCP)
    # Static IP example
    # interface=eth0
    # address=192.168.0.2
    # netmask=255.255.255.0
    # broadcast=192.168.0.255
    # gateway=192.168.0.1
    # DHCP example
    # interface=eth0
    # address=
    # netmask=
    # gateway=
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="yes"
    # Enable these netcfg profiles at boot-up. These are useful if you happen to
    # need more advanced network features than the simple network service
    # supports, such as multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This requires the netcfg package
    #NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    # If something other takes care of your hardware clock (ntpd, dual-boot...)
    # you should disable 'hwclock' here.
    DAEMONS=(!hwclock syslog-ng dbus !network !dhcpcd rpcbind acpid @wicd nfs-common netfs @crond cups @laptop-mode @alsa @sensors ntpd @slim bluetooth)
    Here is a segment of my dmesg
    [ 2.759302] e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
    [ 2.759304] e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
    [ 2.759338] e1000e 0000:00:19.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
    [ 2.759348] e1000e 0000:00:19.0: setting latency timer to 64
    [ 2.759467] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 2.766107] tpm_tis 00:0a: 1.2 TPM (device-id 0x0, rev-id 78)
    [ 2.766808] ACPI: AC Adapter [AC] (on-line)
    [ 2.776492] wmi: Mapper loaded
    [ 2.777212] mei: module is from the staging directory, the quality is unknown, you have been warned.
    [ 2.777781] thermal LNXTHERM:00: registered as thermal_zone0
    [ 2.777783] ACPI: Thermal Zone [THM0] (66 C)
    [ 2.778291] iTCO_vendor_support: vendor-support=0
    [ 2.780137] ACPI: Battery Slot [BAT0] (battery present)
    [ 2.780958] input: PC Speaker as /devices/platform/pcspkr/input/input4
    [ 2.781462] iTCO_wdt: Intel TCO WatchDog Timer Driver v1.07
    [ 2.781547] iTCO_wdt: Found a Cougar Point TCO device (Version=2, TCOBASE=0x0460)
    [ 2.781919] iTCO_wdt: initialized. heartbeat=30 sec (nowayout=0)
    [ 2.783139] cfg80211: Calling CRDA to update world regulatory domain
    [ 2.789182] [drm] Initialized drm 1.1.0 20060810
    [ 2.789538] hub 4-1:1.0: USB hub found
    [ 2.789616] hub 4-1:1.0: 8 ports detected
    [ 2.792925] Non-volatile memory driver v1.3
    [ 2.795877] thinkpad_acpi: ThinkPad ACPI Extras v0.24
    [ 2.795879] thinkpad_acpi: http://ibm-acpi.sf.net/
    [ 2.795881] thinkpad_acpi: ThinkPad BIOS 8DET54WW (1.24 ), EC unknown
    [ 2.795882] thinkpad_acpi: Lenovo ThinkPad X220, model 4290NL5
    [ 2.797236] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
    [ 2.797352] thinkpad_acpi: radio switch found; radios are enabled
    [ 2.797466] thinkpad_acpi: possible tablet mode switch found; ThinkPad in laptop mode
    [ 2.799752] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is unblocked
    [ 2.800067] Registered led device: tpacpi::thinklight
    [ 2.800091] Registered led device: tpacpi::power
    [ 2.800106] Registered led device: tpacpi::standby
    [ 2.800120] Registered led device: tpacpi::thinkvantage
    [ 2.800192] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
    [ 2.800254] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
    [ 2.801077] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input5
    [ 2.801162] sdhci: Secure Digital Host Controller Interface driver
    [ 2.801164] sdhci: Copyright(c) Pierre Ossman
    [ 2.801707] Intel(R) Wireless WiFi Link AGN driver for Linux, in-tree:
    [ 2.801709] Copyright(c) 2003-2011 Intel Corporation
    [ 2.801744] iwlwifi 0000:03:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
    [ 2.801753] iwlwifi 0000:03:00.0: setting latency timer to 64
    [ 2.801789] iwlwifi 0000:03:00.0: pci_resource_len = 0x00002000
    [ 2.801791] iwlwifi 0000:03:00.0: pci_resource_base = ffffc90005abc000
    [ 2.801793] iwlwifi 0000:03:00.0: HW Revision ID = 0x34
    [ 2.801877] iwlwifi 0000:03:00.0: irq 49 for MSI/MSI-X
    [ 2.801913] iwlwifi 0000:03:00.0: Detected Intel(R) Centrino(R) Advanced-N 6205 AGN, REV=0xB0
    [ 2.801962] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
    [ 2.802045] sdhci-pci 0000:0d:00.0: SDHCI controller found [1180:e822] (rev 7)
    [ 2.802067] sdhci-pci 0000:0d:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 2.802107] sdhci-pci 0000:0d:00.0: setting latency timer to 64
    [ 2.802118] _regulator_get: 0000:0d:00.0 supply vmmc not found, using dummy regulator
    [ 2.802188] Registered led device: mmc0::
    [ 2.803329] mmc0: SDHCI controller on PCI [0000:0d:00.0] using DMA
    [ 2.815226] iwlwifi 0000:03:00.0: device EEPROM VER=0x715, CALIB=0x6
    [ 2.815229] iwlwifi 0000:03:00.0: Device SKU: 0X1f0
    [ 2.815231] iwlwifi 0000:03:00.0: Valid Tx ant: 0X3, Valid Rx ant: 0X3
    [ 2.815247] iwlwifi 0000:03:00.0: Tunable channels: 13 802.11bg, 24 802.11a channels
    [ 2.845674] iwlwifi 0000:03:00.0: loaded firmware version 17.168.5.3 build 42301
    [ 2.845820] Registered led device: phy0-led
    [ 2.850630] ieee80211 phy0: Selected rate control algorithm 'iwl-agn-rs'
    [ 2.862431] usb 1-1.2: new low-speed USB device number 3 using ehci_hcd
    [ 2.943648] e1000e 0000:00:19.0: eth0: (PCI Express:2.5GT/s:Width x1) f0:de:f1:92:77:26
    [ 2.943651] e1000e 0000:00:19.0: eth0: Intel(R) PRO/1000 Network Connection
    [ 2.943712] e1000e 0000:00:19.0: eth0: MAC: 10, PHY: 11, PBA No: 1000FF-0FF
    [ 2.943734] mei 0000:00:16.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 2.943739] mei 0000:00:16.0: setting latency timer to 64
    [ 2.943817] mei 0000:00:16.0: irq 50 for MSI/MSI-X
    [ 2.944502] agpgart-intel 0000:00:00.0: Intel Sandybridge Chipset
    [ 2.945021] agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
    [ 2.946341] watchdog: INTCAMT: cannot register miscdev on minor=130 (err=-16).
    [ 2.946452] watchdog: error registering /dev/watchdog (err=-16).
    [ 2.946523] mei: unable to register watchdog device.
    [ 2.946598] agpgart-intel 0000:00:00.0: detected 65536K stolen memory
    [ 2.946692] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xe0000000
    [ 2.946734] i801_smbus 0000:00:1f.3: PCI INT C -> GSI 18 (level, low) -> IRQ 18
    [ 2.948359] snd_hda_intel 0000:00:1b.0: PCI INT A -> GSI 22 (level, low) -> IRQ 22
    [ 2.948422] snd_hda_intel 0000:00:1b.0: irq 51 for MSI/MSI-X
    [ 2.948444] snd_hda_intel 0000:00:1b.0: setting latency timer to 64
    [ 3.022245] usb 1-1.3: new full-speed USB device number 4 using ehci_hcd
    [ 3.172080] usb 1-1.4: new full-speed USB device number 5 using ehci_hcd
    [ 3.274597] Bluetooth: Core ver 2.16
    [ 3.274611] NET: Registered protocol family 31
    [ 3.274612] Bluetooth: HCI device and connection manager initialized
    [ 3.274614] Bluetooth: HCI socket layer initialized
    [ 3.274614] Bluetooth: L2CAP socket layer initialized
    [ 3.274618] Bluetooth: SCO socket layer initialized
    [ 3.275535] Bluetooth: Generic Bluetooth USB driver ver 0.6
    [ 3.276006] usbcore: registered new interface driver btusb
    [ 3.338454] usb 1-1.6: new high-speed USB device number 6 using ehci_hcd
    [ 3.444567] Linux media interface: v0.10
    [ 3.447387] Linux video capture interface: v2.00
    [ 3.448573] input: Logitech Trackball as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2:1.0/input/input6
    [ 3.448671] generic-usb 0003:046D:C404.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:1a.0-1.2/input0
    [ 3.448690] usbcore: registered new interface driver usbhid
    [ 3.448691] usbhid: USB HID core driver
    [ 3.449136] uvcvideo: Found UVC 1.00 device Integrated Camera (04f2:b217)
    [ 3.450945] input: Integrated Camera as /devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.6/1-1.6:1.0/input/input7
    [ 3.450987] usbcore: registered new interface driver uvcvideo
    [ 3.450988] USB Video Class driver (1.1.1)
    [ 3.484049] input: HDA Digital PCBeep as /devices/pci0000:00/0000:00:1b.0/input/input8
    [ 3.491137] HDMI status: Codec=3 Pin=5 Presence_Detect=0 ELD_Valid=0
    [ 3.491298] HDMI status: Codec=3 Pin=6 Presence_Detect=0 ELD_Valid=0
    [ 3.491486] HDMI status: Codec=3 Pin=7 Presence_Detect=0 ELD_Valid=0
    [ 3.491637] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input9
    [ 3.491709] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input10
    [ 3.491765] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1b.0/sound/card0/input11
    [ 3.492050] i915 0000:00:02.0: power state changed by ACPI to D0
    [ 3.492053] i915 0000:00:02.0: power state changed by ACPI to D0
    [ 3.492059] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
    [ 3.492062] i915 0000:00:02.0: setting latency timer to 64
    [ 3.538056] mtrr: no more MTRRs available
    [ 3.538058] [drm] MTRR allocation failed. Graphics performance may suffer.
    [ 3.538266] i915 0000:00:02.0: irq 52 for MSI/MSI-X
    [ 3.538270] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
    [ 3.538271] [drm] Driver supports precise vblank timestamp query.
    [ 3.538292] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=io+mem:owns=io+mem
    [ 3.664501] psmouse serio1: synaptics: Touchpad model: 1, fw: 8.0, id: 0x1e2b1, caps: 0xd001a3/0x940300/0x120c00
    [ 3.664518] psmouse serio1: synaptics: serio: Synaptics pass-through port at isa0060/serio1/input0
    [ 3.716317] input: SynPS/2 Synaptics TouchPad as /devices/platform/i8042/serio1/input/input12
    [ 4.407165] fbcon: inteldrmfb (fb0) is primary device
    [ 4.575259] Console: switching to colour frame buffer device 170x48
    [ 4.577042] fb0: inteldrmfb frame buffer device
    [ 4.577043] drm: registered panic notifier
    [ 4.607860] acpi device:01: registered as cooling_device4
    [ 4.607985] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:00/input/input13
    [ 4.608039] ACPI: Video Device [VID] (multi-head: yes rom: no post: no)
    [ 4.608122] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 0
    [ 4.757243] EXT4-fs (sda3): re-mounted. Opts: discard
    [ 4.765917] EXT4-fs (sda4): mounted filesystem with ordered data mode. Opts: discard
    [ 4.776777] Adding 262140k swap on /dev/sda2. Priority:-1 extents:1 across:262140k SS
    [ 5.099467] NET: Registered protocol family 10
    [ 6.048650] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [ 6.098038] Bluetooth: RFCOMM TTY layer initialized
    [ 6.098055] Bluetooth: RFCOMM socket layer initialized
    [ 6.098057] Bluetooth: RFCOMM ver 1.11
    [ 6.278766] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
    [ 6.278893] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
    [ 6.568639] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
    [ 6.568775] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
    [ 6.684082] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [ 7.176563] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 7.226662] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 7.227110] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 10.229345] IBM TrackPoint firmware: 0x0e, buttons: 3/3
    [ 10.490618] input: TPPS/2 IBM TrackPoint as /devices/platform/i8042/serio1/serio2/input/input14
    [ 10.817814] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
    [ 10.819315] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 11.186166] iwlwifi 0000:03:00.0: L1 Disabled; Enabling L0S
    [ 11.186292] iwlwifi 0000:03:00.0: Radio type=0x1-0x2-0x0
    [ 11.313367] ADDRCONF(NETDEV_UP): wlan0: link is not ready
    [ 11.665342] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 11.717591] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 11.718042] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 11.964795] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 12.017213] e1000e 0000:00:19.0: irq 48 for MSI/MSI-X
    [ 12.017720] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 13.811264] EXT4-fs (sda3): re-mounted. Opts: discard,commit=0
    [ 13.826031] EXT4-fs (sda4): re-mounted. Opts: discard,commit=0
    [ 15.178905] e1000e: eth0 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
    [ 15.180472] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 25.663056] eth0: no IPv6 routers present
    Any hint for tracing the root of this problem? Thank you very much!

    Hi ...
    If you have moved the Safari application from the Applications folder, move it back.
    As far as the cache goes, there's a work around for that when you can't empty the Safari cache from the menu bar.
    Go to    ~/Library/Caches/com.aple.Safari.Cache.db.  Move the Cache.db file to the Trash.
    Try Safari.
    Mac OS X (10.7.2)   <  from your profile
    If that is corrrect, you need to update your system software. Click your Apple menu icon top left in your screen. From the drop down menu click Software
    Update ...
    ~ (Tilde) character represents the Home folder.
    For Lion v10.7x:  To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • Should modules for different kernels differ?

    I'm trying to build acpi_call-git from the AUR. The build seems to go rather too smoothly. I uninstalled a custom kernel (which I only have for debugging) which leaves the standard Arch and Arch LTS kernels installed. I have the headers installed for both kernels:
    $ pacman -Qs linux-[lts-]*headers
    local/linux-headers 3.11.4-1
    Header files and scripts for building modules for Linux kernel
    local/linux-lts-headers 3.10.15-1
    Header files and scripts for building modules for Linux-lts kernel
    What is confusing me is that the package seems to build identical modules for the two kernels and I am not sure whether that's right:
    $ diff pkg/acpi_call-git/usr/lib/modules/extramodules-3.11-ARCH/acpi_call.ko.gz pkg/acpi_call-git/usr/lib/modules/extramodules-3.10-lts/acpi_call.ko.gz
    $ echo $?
    0
    Shouldn't there be a difference between the two? That is, I know that you typically need modules which match the kernel - otherwise the modules can't be loaded. So presumably if building module M for kernel K1 produces M1, and building module M for kernel K2 produces M2, then M1 cannot be identical with M2.
    Is there a problem here or am I just horribly confused?

    If the kernel functions (especially the specifications) used by acpi_call haven't changed, then the module could indeed be the same for both kernels.
    You'd have to check the kernel commits for acpi related changes to be sure.

  • Nvidia module for custom kernel

    Hi all. I've compiled a custom kernel using abs according to the instructions on the wiki, but I'm having a hard time installing the nvidia module using the instructions on the Nvidia page of the wiki. The install always aborts complaining of not being able to find the kernel source. I do have the kernel-headers installed:
    [root@myhost greg]# pacman -Ss linux-headers
    core/linux-headers 3.1.5-1 [installed]
        Header files and scripts for building modules for linux kernel
    I've also edited the nvidia.install and PKGBUILD files to point to the correct version file:
    [greg@myhost ~]$ cat /lib/modules/3.1.5-1-test/extramodules/version
    3.1.5-1-test
    I've really searched hard, but can find no remedy. Any ideas?
    Thanks in advance.

    From what I can see, the only installable package that was built is linux-test-3.1.5-1-x86_64.pkg.tar.xz. That's with the PKGBUILD file supplied from /var/abs/core/linux as per the wiki.
    Last edited by pressman57 (2011-12-18 21:50:00)

  • Kernel won't load module for Epson Stylus CX4200

    Hi,
    I'm having an odd problem trying to set my printer up. I've blacklisted usblp but when I plug the printer in as suggested by the wiki, I get the following output from /var/log/messages.log:
    Oct 29 14:33:46 acer232 kernel: usb 1-5: new high speed USB device using ehci_hcd and address 10
    Oct 29 14:33:46 acer232 kernel: usb 1-5: configuration #1 chosen from 1 choice
    Oct 29 14:33:46 acer232 load-modules.sh: 'usb:v04B8p0820d0100dc00dsc00dp00icFFiscFFipFF' is not a valid module or alias name
    Oct 29 14:33:46 acer232 load-modules.sh: Not loading module 'usblp' for alias 'usb:v04B8p0820d0100dc00dsc00dp00ic07isc01ip02' because it is blacklisted
    I have cups 1.4.1-1, ghostscript 8.70-2, and gsfonts 8.11-5 installed. Cups starts as a daemon and I can get access to the web interface at http://localhost:631/ but the printer does not appear there.
    When I run lsusb the scanner component is displayed but not the printer:
    Bus 001 Device 010: ID 04b8:0820 Seiko Epson Corp. CX4200 MP scanner
    I tried putting in a custom udev rule to give lp ownership over the scanner but that isn't changing any of the output above and cups still won't recognize the printer.
    Does anyone have any ideas on how I can fix this? Thanks!

    It turns out if you delete the /etc/cups/printers.conf file, you can then use the cups web interface at localhost:631 to add the printer again and everything works with cups 1.4.

  • Script to easily build modules for custom kernels

    I got bored, and thought of this ages ago. I have no use for it now, but i'm sure someone else will.
    run:
    abs-module $modulename $kernel
    $modulename is any kernel module that's available in /var/abs, so if you have some that arent in a default abs, put em in /var/abs/local and they will be spotted by this.
    $kernel is the name of the kernel that you want to compile for. this can be found with 'uname -r'. If $kernel is not specified, then it will default to what you are running now.
    this will only work for module packages that have a variable called _kernver which sets the kernel it will be compiled for. I know all the winmodems, ATi and drivers I maintain do, not sure about some of the others. nvidia won't work.
    #! /bin/bash
    # Set the variables up
    module="$1"
    kernel="$2"
    pacman="1"
    current="`uname -r`"
    # Check things
    if [ -z "$module" ]; then
    echo "No module specified"
    return 1
    fi
    if [ -z "$kernel" ]; then
    echo "No kernel specified, building for: $current"
    kernel="$current"
    fi
    if [ ! -e "/lib/modules/$kernel/build" ]; then
    echo "Specified kernel is not installed"
    return 1
    fi
    # Check if module exists
    origdir="`find /var/abs -type d -name $module`"
    if [ -z "$origdir" ]; then
    echo "Specified module does not exist"
    return 1
    fi
    # Prepare to build
    newdir="/var/abs/local/$module-$kernel"
    if [ -d "$newdir" ]; then
    rm -rf "$newdir"
    fi
    cp -R $origdir $newdir
    cd $newdir
    source PKGBUILD
    if [ -z "$_kernver" ]; then
    echo "PKGBUILD does not have $_kernver."
    return 1
    fi
    sed "s/$_kernver/$kernel/g" -i PKGBUILD
    sed "s/pkgname=$pkgname/pkgname=$pkgname-$kernel/g" -i PKGBUILD
    # Build!
    makepkg
    # Post build messages/install
    if [ $? = 0 ]; then
    package="`find $newdir -name *pkg.tar.gz`"
    # variable is at top
    if [ "$pacman" = "1" ]; then
    pacman -U $package
    else
    echo "Package is ready to install: $package"
    fi
    else
    echo "Build failed"
    fi
    sorry if there's any stupid bash in there, i'm tired. and yeah, I know it's a tad verbose and spacy, but it seems to works fine.
    James

    Iphitus > I'm looking 4 something like your script that will allow me to load spca5xx when running my custom kernelbeyond
    Unfortunetely spca5xx seems not to be manageable by your abs-module script, as its PKGBUILD doesn't have a variable called _kernver.
    Log :
    /usr/bin/abs-make-module spca5xx
    No kernel specified, building for: 2.6.17-beyond-LLEWELLYN
    PKGBUILD does not have .
    /usr/bin/abs-make-module: line 52: return: can only `return' from a function or sourced script
    sed: -e expression #1, char 0: no previous regular expression
    ==> Making package: spca5xx-2.6.17-beyond-LLEWELLYN 0.60.00-2 (Sun Jul 23 11:44:52 CEST 2006)
    ==> Validating source files with MD5sums
        spca5xx-20060501.tar.gz ... Passed
    ==> Extracting Sources...
    ==>     tar --use-compress-program=gzip -xf spca5xx-20060501.tar.gz
    tar: spca5xx-20060501/drivers: implausibly old time stamp 1970-01-01 01:00:00
    ==> Starting build()...
    ./PKGBUILD: line 13: cd: /var/abs/local/spca5xx-2.6.17-beyond-LLEWELLYN/src/spca5xx-2.6.17-beyond-LLEWELLYN-20060501: No such file or directory
    make: *** No targets specified and no makefile found.  Stop.
    ==> ERROR: Build Failed.  Aborting...
    Build failed

  • What triggers the prompt for memory test during boot up of WLC.

    I have a controller that sometimes does and sometimes doesn't prompt for memory test at boot up. What triggers the prompt for memory test at boot up?

    We have the same behaviour with a 4402 controller.
    After a software upgrade from 4.2.130.0 to 4.2.176.0 the controller didn't reboot automaticly during the first restart with the new software. I connected via console and saw this message:
    Airespace 4200 Wireless LAN Switch Board - Memory Test
    Invalid Option...Press any key to continue
    Airespace 4200 Wireless LAN Switch Board - Memory Test
    1. Restricted [4kB per MB]
    2. Entire Range [512M]
    3. EXIT
    Then I choosed option <3 Exit> and the controller started correct.
    Regards
    Hendrik

  • Advice on writing kernel module for old pen device (ISA)

    I have not really a programming question, I need an advice.
    I have an old mobile computer for which no driver exists for the pen pointing device yet. Although it has USB so I can use a mice, it would be very nice if I could use the pen under linux. It came to my mind that this could be a good start to get into kernel programming since I have a problem to solve. It functions well under Windows NT and I know the address range it uses from driver.
    So, I have no imagination how hard it can be to program a device driver without any documentation. I need basically an advice on what the possible caveats may be and if I should start the project at all.

    stb wrote:So, I have no imagination how hard it can be to program a device driver without any documentation. I need basically an advice on what the possible caveats may be and if I should start the project at all.
    well, there's documentation
    Kernelnewbies.org is a good place to start. Heaps of documentation, and importantly, help for when you get stuck.
    Firstly, if you want a good introduction the kernel, there's Robert Love's Linux Kernel Development.
    I bought this one myself, it's a really good read, well written, and covers lots of interesting things.
    http://www.amazon.com/Linux-Kernel-Deve … 0672327201
    Then, there's Linux Device Drivers, 3rd Ed. Edition is important, Ed3 is 2.6.x, Ed2 is 2.4.x. Big difference.
    http://www.amazon.co.uk/Linux-Device-Dr … 874&sr=8-1
    This is available for free in PDF:
    http://lwn.net/Kernel/LDD3/
    Hope that helps,
    James

  • Mac Pro 3,1 Stuck on Grey screen for 1 min during boot

    I have a Late 2008 Mac Pro 3,1 and have started experiencing a very slow boot up.   The computer gets stuck for over a minute on the initial gray screen after the first boot chime.  Once the apple logo finally appears the boot goes normally.  Once running it seems OK.  The shut down seems normal with a  grey screen for a few seconds with the "clock" logo.
    Symptom:
    After the chime I see a blank gray screen for in excess of 1 minute, it used to last only a couple of seconds.
    Once the dark grey Apple logo appears the boot goes at normal speed
    I have a number of different hard drives with older systems and booting from each of then gives the problem - so it does not seem to be system/disc related
    Two partitions (Mavericks and ML) are on SSD's installed on a Sonnet PCIe Card and showed the same problem as the spinning hard discs.
    I tried: (following a trawl of the bb's etc)
    I repaired permissions and repaired all discs for all my boot partitions (10.5, 10.6, 10.7, 10.8 and 10.9) using the appropriate Disc Utility
    Zapping the Pram - this was very strange as I had to keep the cmd alt P R held down for around a minute before the second chime occurred, the time of the grey screen stays stuck
    Resetting the SMC
    Booting in Verbose Safe Mode: Again I had to hold the Alt V down for a minute on the gray screen before the screen went black and the text appeared
    I looked on the console log but could see nothing obvious, additionally from the verbose safe mode boot the text log seems to start from when the grey screen disappears. The time stamps show the boot finishing in well under the minute I wait.
    Any suggestions you may have are very welcome.
    Regards
    Dave

    Thanks The Hatter for that information.  The blank gray screen is now lasting 3 mins before the Apple appears.  When I restarted the system log is as below.  As  you can see there is just over a three minute gap between the shut down and the boot, indicating to me that it is not something in the system software after the boot but a problem at the very start.  It does look like it could be something to do with the hardware as you suggest.  I have verified all the discs with the disc utility and they report as OK and their SMART status is also OK.  I have disconnected the external drives with no change so I will now have to do a thorough check and systematically remove the internal ones but that will have to wait for the weekend.
    I have Mavericks on the Samsung 840 Pro and ML on a Crucial SSD (Crucial_CT240M500SSD1 Media) on a PCIe card.  The Mavericks install I think was an upgrade, not a clean install done quite a while ago.  I only noticed the problem this week when I re-booted in an ML to run some software not compatible with Mavericks.  I have made a system back up as a precaution to an external disc just in case my main drive is dying!
    There are some firmware updates for both the SSD discs that I have not applied these yet but I will leave them out of the mix until I have tried simplifying my configuration with a single disc.
    Apr 21 22:09:26 Davids-Mac-Pro.local shutdown[952]: reboot by _spotlight:
    Apr 21 22:09:26 Davids-Mac-Pro kernel[0]: Kext loading now disabled.
    Apr 21 22:09:26 Davids-Mac-Pro kernel[0]: Kext unloading now disabled.
    Apr 21 22:09:26 Davids-Mac-Pro.local shutdown[952]: SHUTDOWN_TIME: 1429650566 934799
    Apr 21 22:09:26 Davids-Mac-Pro kernel[0]: Kext autounloading now disabled.
    Apr 21 22:09:26 Davids-Mac-Pro kernel[0]: Kernel requests now disabled.
    Apr 21 22:09:26 Davids-Mac-Pro.local Mediatap[297]: XPC error messaging com.apple.IconServicesAgent: Connection interrupted
    Apr 21 22:09:26 Davids-Mac-Pro.local Mediatap[297]: XPC error messaging com.apple.IconServicesAgent: Connection invalid
    Apr 21 22:13:02 localhost bootlog[0]: BOOT_TIME 1429650782 0
    Apr 21 22:13:04 localhost syslogd[18]: Configuration Notice:
      ASL Module "com.apple.appstore" claims selected messages.
      Those messages may not appear in standard system log files or in the ASL database.
    Apr 21 22:13:04 localhost syslogd[18]: Configuration Notice:
      ASL Module "com.apple.authd" sharing output destination "/var/log/system.log" with ASL Module "com.apple.asl".
      Output parameters from ASL Module "com.apple.asl" override any specified in ASL Module "com.apple.authd".

  • [Solved]catalyst-rt module for realtime kernel

    Hello,
    I've compiled and intstalled the rtkernel with the directions posted here: http://bbs.archlinux.org/viewtopic.php?id=52201
    My laptop uses an ati card and needs catalyst drivers. The fglrx module works fine with the vanilla kernel and pacman does not install it for the rt kernel(I think they are not compatible?) so I think I need the catalyst-rt module(also while installing the kernel, the pkgbuild told me that I needed catalyst-rt).
    I could find no packages named catalyst-rt in the repos, but AUR database has one:
    http://aur.archlinux.org/packages.php?ID=16825
    But I think there is a problem with the install. After I compile the package and run it with "pacman -U", it complains about an unexpected EOF because of an unmatched quote mark. I've extracted the generated "catalyst-rt-8.5-2-i686.pkg.tar.gz" file to see if I can come up with something, there is indeed a missing quote in one of the echo statements in the contained catalyst-rt.install file. I tried fixing and retarring it but pacman complained about missing metadatas  in the package. This is my 3rd day with arch(and one of those days my Internet connection was broken) so I don't have many clues.
    I figure that there are very few people running ati drivers on a rt kernel here(searching for catalyst-rt yields to nothing) but maybe you can help me fix the issue myself, or maybe there is an easier way to use catalyst with an rt kernel?
    Any help will be greatly appreciated. Thanks!
    Last edited by pyramind (2008-07-27 18:47:04)

    Ok, some more progress:
    As I said, the vanilla kernel works fine with the catalyst drivers. Fully accelerated etc. When working with vanilla kernel if I say " dmesg | grep fglrx", the output is fine:
    fglrx: module license 'Proprietary. (C) 2002 - ATI Technologies, Starnberg, GERMANY' taints kernel.
    [fglrx] vendor: 1002 device: 71c5 count: 1
    [fglrx] Maximum main memory to use for locked dma buffers: 1898 MBytes.
    [fglrx] PAT is enabled successfully!
    [fglrx] module loaded - fglrx 8.50.3 [Jun 2 2008] with 1 minors
    [fglrx] Reserved FB block: Shared offset:0, size:1000000
    [fglrx] Reserved FB block: Unshared offset:1000000, size:5000
    [fglrx] Reserved FB block: Unshared offset:ffbf000, size:40000
    [fglrx] Reserved FB block: Unshared offset:ffff000, size:1000
    [fglrx] Reserved FB block: Shared offset:0, size:1000000
    [fglrx] Reserved FB block: Unshared offset:1000000, size:5000
    [fglrx] Reserved FB block: Unshared offset:ffbf000, size:40000
    [fglrx] Reserved FB block: Unshared offset:ffff000, size:1000
    As you can see, the loaded version is fglrx 8.50.3 [Jun  2 2008].
    Now if I try the same on rt-kernel with catalyst-rt drivers loaded, the loaded version is shown as the incompatible fglrx 8.49.7 [May 12 2008] version.
    The package PKGBUILD downloads is ati-driver-installer-8-5-x86.x86_64
    So I assume that should be at least 8.5? Where does this loaded 8.49.7 come from?
    I'm checking /lib/modules/<myrtkernel>/ to see if there are any other fglrx.ko floating around but there is only one, the one installed from the package built with ati-driver-installer-8-5-x86.x86_64.run
    Since I'm not very competent with linux, I'm hoping some of you can show me some directions. I may try packaging a new ati driver to check but if ati-driver-installer-8-5-x86.x86_64 is actually 8.49, which one should I try then? 8-6? 8-7? I quite don't understand.
    Last edited by pyramind (2008-07-27 18:24:34)

  • Menubar load modules for each sub-menu

    I am creating an application using the MENUBAR but cannot get a module to open when a sub-menu is clicked. I have stripped my app down to bare bones to eliminate other factors. The menubar has several main options, such as, Button1, Button2, Button3 and then each has a sub-menu dropdown. If Button1 has Button1Sub1 and Button1Sub2 dropdowns I want to have a different module launch when either of the sub-menus are clicked.
    I have been successful in using ModuleManager to open a particular module referencing the creationComplete="moduleLoadHandler()" but not by selecting a menu item from the menubar. My application needs to be as user-friendly and Windows-like as possible. There are many different modules which need to be loaded and unloaded.
    I have attached a screenshot image of my project tree and circled the ActionModule.swf file to show its location.
    I have attached my code below:
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" creationComplete="creationHandler();" >
        <mx:Script>
            <![CDATA[
                import mx.controls.menuClasses.IMenuBarItemRenderer;
                import mx.controls.MenuBar;
                import mx.controls.menuClasses.MenuBarItem;
                import mx.controls.Alert;
    import mx.modules.Module;
    import mx.events.ModuleEvent;
    import mx.modules.ModuleManager;
    import mx.modules.IModuleInfo;
    import mx.rpc.events.ResultEvent;
    import mx.rpc.events.FaultEvent;
    import mx.events.FlexEvent;
    import mx.events.MenuEvent;
                import mx.collections.*;
                public var _moduleInfo:IModuleInfo;
                [Bindable]
                public var menuBarCollection:XMLListCollection;
                private var menubarXML:XMLList =
                    <>
                        <menuitem label="Menu1" data="top">
                            <menuitem label="MenuItem 1-A" data="1A" itemClick="moduleLoadHandler()"/>
                            <menuitem label="MenuItem 1-B" data="1B"/>
                        </menuitem>
                        <menuitem label="Menu2" data="top">
                            <menuitem label="MenuItem 2-A" type="check"  data="2A"/>
                            <menuitem type="separator"/>
                            <menuitem label="MenuItem 2-B" >
                                <menuitem label="SubMenuItem 3-A" type="radio"
                                    groupName="one" data="3A"/>
                                <menuitem label="SubMenuItem 3-B" type="radio"
                                    groupName="one" data="3B"/>
                            </menuitem>
                        </menuitem>
                        <menuitem label="Menu3" data="top">
                            <menuitem label="MenuItem 3-A" data="3A"/>
                            <menuitem label="MenuItem 3-B" data="3B"/>
                        </menuitem>
                        <menuitem label="Menu4" data="top">
                            <menuitem label="MenuItem 4-A" data="4A"/>
                            <menuitem label="MenuItem 4-B" data="4B"/>
                        </menuitem>                                       
                    </>;
                private function creationHandler():void{
    menuBarCollection = new XMLListCollection(menubarXML);
    private function moduleLoadHandler(event:ModuleEvent ):void{
    canvas.addChild( _moduleInfo.factory.create() as Module );
    _moduleInfo = ModuleManager.getModule('ActionModule.swf');
    _moduleInfo.addEventListener(ModuleEvent.READY, moduleLoadHandler);
    _moduleInfo.load();
                // Event handler for the MenuBar control's itemClick event.
                private function menuHandler(event:MenuEvent):void  {
                    // Don't open the Alert for a menu bar item that
                    // opens a popup submenu.
                    //if (event.item.@data != "top") {
                    //    Alert.show("Label: " + event.item.@label + "\n" +
                    //        "Data: " + event.item.@data, "Clicked menu item");
                private function onTopSelection(event:MenuEvent):void{
                    var mb:MenuBar=event.target as MenuBar;
                    var selectedIndex:int=mb.selectedIndex;
                    for (var i:int=0;i<mb.menuBarItems.length;i++){
                        if(i==selectedIndex){
                            (mb.menuBarItems[i] as MenuBarItem).setStyle("fontWeight","bold");                   
                        else{
                            (mb.menuBarItems[i] as MenuBarItem).setStyle("fontWeight","normal");                           
             ]]>
        </mx:Script>
        <mx:Canvas id="canvas" height="75%" width="75%"
            paddingTop="10" paddingLeft="10">
            <mx:MenuBar labelField="@label" itemClick="menuHandler(event);" dataProvider="{menuBarCollection}" change="onTopSelection(event)" />
        </mx:Canvas>
    </mx:Application>

    Hi,
       I am also doing the same way, but ended up with some issues.
    I have a Main Application with a menu Bar on Top and Rest of the area occupied by a ModuleLoader.
    First I set the URL to login module, on successful login I initialize my menu Bar based on User role and load a new module, it contains only a SuperTabNavigator.
    On click of an item in my Application Menu, I add a Custom Componenet built on Canvas (Named MyCanMod , this contains a Module loader and a progress bar in it , I have attached the code) as a tab to the tab navigator.
    On menu item click, I take the data of my menu item and set that as the URL of my Module Loader inside the Custom canvas. Then it is added as a tab to my tab navigator.
          private function openItem(event:MenuEvent):void
    var myModule:MyCanMod = new MyCanMod();                tabNav.addChild(myModule);
                    tabNav.selectedChild = myModule;
                    myModule.label = event.item.@label;
                    myModule.icon = document_icon;
                    myModule.urlParam = event.item.@module;
    urlParam is a bined to the module Loader url in my Custom componenet.
    All works fine.  I am not unloading any modules and all the module loader are set to current domain.
    When the user logs out and logs back with out refreshing the browser I get Type Error or some time null Object error and it is random. If I refresh the browser and login back, every thing is fine.
    I do have reference for IDragManager,HistoryManager,PopUpManager,RemoteObject in main application.
    I am not concerned about unloading modules now, but then on Tab close event I unloaded the module, and that did not solve the problem.
    I get an error like
    TypeError: Error #1034: Type Coercion failed: cannot convert flexlib.controls::PromptingTextInput@6152a851 to flexlib.controls.PromptingTextInput.
                at mx.core::UIComponent/createReferenceOnParentDocument()
                at mx.core::Container/createComponentFromDescriptor()
                at mx.core::Container/createComponentsFromDescriptors()
                at mx.core::Container/createChildren()
                at mx.core::UIComponent/initialize()
                at mx.core::Container/initialize()
                at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::childAdded()
                at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::childAdded()
                at mx.core::Container/addChildAt()
                at mx.core::Container/addChild()
    Any help is appreciated; I am really struck with it, please help.

  • T430 USB keyboard not working for HD password during boot

    Ladies and Gentleman,
    I have a large problem.
    I use a T430 with a port replicator.
    I need to set a Boot password and a HD Password.
    When I boot the T430 in the port Replicator, the usb keyboard is not recognized and I had to open the T430 to enter the password.
    I tried different Bios settings, nothing helped.
    It seems to me that the keyboard drivers are not loaded at that time.
    Before I had a W500 and a port replicator. Worked without problems.
    Any help is welcome.
    Ralf

    Sorry. On my T430s, the USB3 port on the left starts faster than the always-on port on the back, so I hook a port replicator to that port. Is this the Lenovo port replicator or aftermarket? (I assume you are talking about a USB port replicator and not a docking station) Is the port replicator powered by an external power supply? I always plug in the power supply to the port replicator before I start the laptop.

  • Missing modules from previous kernel

    Hi guys,
    It's a long time that I can't fix following problem.
    I MUST run on kernel 2.6.14. Why ? When I try to upgrade my kernel my modules from old kernel(2.6.14) are not compiled to upgradet kernel.
    I use following commands: make clean bzImage modules modules_install
    Old school. I download kernel from www.kernel.org.
    Can u help me, finally to solve it ?
    Thank a lot.

    Aren't they compiled or aren't they installed? What is the output of:
    make modules
    make modules_install
    After modules_install, is there a directory in /lib/modules matching in name your kernel version (i.e., the output of
    uname -r
    after you reboot with the new kernel)?
    Anyway, on 2.6 kernels, it should be enough to do so:
    make
    make modules_install
    cp arch/i386/boot/bzImage /boot/<thenameyoulikeandyouputinthebootloaderconfigfile>
    That is to say, with 'make' you compile the modules too.

  • Is it possible to compile NVIDIA for multiple kernels simultaneously?

    Hi all,
    First, the reference is http://wiki.archlinux.org/index.php/NVI … tom_kernel, as well as a small discussion I started at http://aur.archlinux.org/packages.php?ID=20410.
    Basically, currently the nvidia-beta (and I'm sure the rest of the nvidia scripts) use `uname -r` to obtain the current kernel name, which is then used for the rest of the PKGBUILD. Its relatively trivial to alter that to the name of whichever kernel, meaning there's no problem compiling nvidia.ko for kernel26-ice from within kernel26 itself, and to alter the name of the package so that your nvidia-beta package does not need to be over-written (you then have two nvidia.ko, each for their own kernel.
    My question is, is it possible for a single PKGBUILD to compile nvidia.ko for all kernels currently installed (probably through looking at either /lib/modules or /usr/src)? This would mean only one maintainer is needed for nvidia-beta or nvidia-17xx or whichever series, and the same PKGBUILD could be used on any system, even those with multiple kernels.
    I'm not very familiar with the limitations of PKGBUILDs, or the rules governing what they may or may not do (for example, accessing and checking the machine itself outside the fakeroot?), so this may be nonsense, if so feel free to point it out. Another idea would be for a simple bash script to create as many PKGBUILDs as required, based on the most recent nvidia-beta PKGBUILD, simply sed-replacing uname -r with the appropriate kernel names and modifying the PKG name.

    Hi,
    it's not difficult to do but I DO NOT recommend to do it (see my notes below the code).
    PKGBUILD
    pkgname=nvidia-beta
    pkgver=185.18.04
    pkgrel=1
    pkgdesc="NVIDIA beta drivers for kernel26."
    arch=('i686' 'x86_64')
    [ "$CARCH" = "i686" ] && ARCH=x86 && NV=0
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64 && NV=0
    provides=(nvidia=${pkgver})
    url="http://www.nvidia.com/"
    depends=(kernel26 nvidia-utils-beta)
    conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
    license=('custom')
    install=('nvidia.install')
    source=(ftp://download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg${NV}.run)
    md5sums=('95b67e6f17cc54d36ae2743df76c9f6d')
    [ "$CARCH" = "x86_64" ] && md5sums=('33967a6d452c562bb8af02b0734ebf22')
    build()
    # Read list of installed kernels
    KERNELS=`ls -1 /lib/modules`
    # Extract the nvidia drivers
    cd $startdir/src/
    sh NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}.run --extract-only
    cd NVIDIA-Linux-${ARCH}-${pkgver}-pkg${NV}
    cd usr/src/nv
    ln -s Makefile.kbuild Makefile
    # Now build modules for each kernel
    for KERNEL in $KERNELS; do
    echo "Building for ${KERNEL}"
    # Compile the module
    make SYSSRC=/lib/modules/${KERNEL}/build module || return 1
    # Install kernel module
    mkdir -p $startdir/pkg/lib/modules/${KERNEL}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${KERNEL}/kernel/drivers/video/ || return 1
    # Clean
    make clean || return 1
    done;
    nvidia.install
    # arg 1: the new package version
    post_install() {
    KERNELS=`ls -1 /lib/modules`
    for KERNEL in $KERNELS; do
    depmod -v $KERNEL > /dev/null 2>&1
    done;
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    post_install $1
    rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
    # arg 1: the old package version
    post_remove() {
    KERNELS=`ls -1 /lib/modules`
    for KERNEL in $KERNELS; do
    depmod -v $KERNEL > /dev/null 2>&1
    done;
    op=$1
    shift
    $op $*
    PS: I haven't test it because I don't use multiple kernels
    But be aware of possible problems. Some modifications may influence kernel functionalities, so once you compile a driver for kernel26-xyz on kernel26-zyx the module may not work on kernel26-xyz or may cause unexpected issues.
    You also should not (you possibly even won't be able to) build module for different release version (eg. build for 2.6.28 on 2.6.29) due changes in kernel headers.
    I'm also not sure if it is safe to generate module dependencies for another kernel then you are currently running.
    As you can see above, it is not problem to make such a PKGBUILD, but it also brings too many problems and it's too dangerous that it is better to stay at current model "module package for each kernel". So if you want to you may try to use this PKGBUILD, but I strictly warn everyone else that it may cause more harm then use so don't blame me if something goes wrong. You were warned .
    Last edited by ProgDan (2009-04-30 13:48:06)

  • 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)

Maybe you are looking for

  • Size ideas for a n580 Skin

    Does anybody know a similar case size to the n580...ordered one for my daughter for christmas and I'm hoping to get her a skin as well...but skin-it does not have the n580 listed as one of the options.  It is very close to my g570, but not exact.

  • CAN'T CONNECT-self-assigned IP address

    I haven't been able to connect to any networks for days. I keep getting this message in my network control panel under "status": airport is connected to the network ABC. airport has a self-assigned IP address and may not be able to connect to the int

  • Mini won't start up

    our mini suddenly shut off by itself. There was no error message or anything unusual until it went black. Now it will not start up. There is no chime nor does the light come on. I have checked the powerbar that it is plug into and the powerbar is fin

  • I LOST ALL MY MOVIES

    I made 8 movies. They are all gone!!!!!!!!!! I don't know whether to cry or throw this computer out the window. Is there anything I can do to get my movies back?????? I was able to find the icons for the movies in the Finder. Clicking on them opened

  • Anonymous user

    hi experts, i have created a user on portal. i trying to add this user to anonymous users group but i am getting error. how can i add a user to anonymous users group? john