crystalhd kernel module fails to build on 3.5.x kernel [fatal error: asm/system.h: No such file or directory]

Bug #1206618 reported by Niels Mayer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
crystalhd (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After updating 12.04.1 LTS to 'quantal' kernel, module "crystalhd" fails to build due to missing headers such as asm/system.h -- similar to https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/993506 and similarly, solved by copying missing x86 headers from ARM. Note that the original 12.04.1 LTS kernel did not have this problem with 'crystalhd-dkms' and module "crystalhd" ...

==============================================================================
npm@meegotab:~$ sudo apt-get install crystalhd-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-headers
The following NEW packages will be installed:
  crystalhd-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/736 kB of archives.
After this operation, 7,765 kB of additional disk space will be used.
Selecting previously unselected package crystalhd-dkms.
(Reading database ... 265224 files and directories currently installed.)
Unpacking crystalhd-dkms (from .../crystalhd-dkms_1%3a0.0~git20110715.fdd2f19-4.1_i386.deb) ...
Setting up crystalhd-dkms (1:0.0~git20110715.fdd2f19-4.1) ...
Loading new crystalhd-0.0~git20110715.fdd2f19 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-37-generic
Building initial module for 3.5.0-37-generic
Error! Bad return status for module build on kernel: 3.5.0-37-generic (i686)
Consult /var/lib/dkms/crystalhd/0.0~git20110715.fdd2f19/build/make.log for more information.
==============================================================================

To fix, I did the following as root (which needs to be redone on each quantal kernel upgrade until this bug is fixed):

==============================================================================
cd /usr/src/linux-headers-3.5.0-37/arch/
cp arm/include/asm/system.h x86/include/asm/
cp arm/include/asm/compiler.h x86/include/asm/
cp arm/include/asm/system_info.h x86/include/asm/
cp arm/include/asm/system_misc.h x86/include/asm/
apt-get purge crystalhd-dkms
==============================================================================

Now the package builds successfully:

==============================================================================
apt-get install crystalhd-dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
  linux-headers
The following NEW packages will be installed:
  crystalhd-dkms
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/736 kB of archives.
After this operation, 7,765 kB of additional disk space will be used.
Selecting previously unselected package crystalhd-dkms.
(Reading database ... 265224 files and directories currently installed.)
Unpacking crystalhd-dkms (from .../crystalhd-dkms_1%3a0.0~git20110715.fdd2f19-4.1_i386.deb) ...
Setting up crystalhd-dkms (1:0.0~git20110715.fdd2f19-4.1) ...
Loading new crystalhd-0.0~git20110715.fdd2f19 DKMS files...
First Installation: checking all kernels...
Building only for 3.5.0-37-generic
Building initial module for 3.5.0-37-generic
Done.

crystalhd:
Running module version sanity check.
 - Original module
 - Installation
   - Installing to /lib/modules/3.5.0-37-generic/updates/dkms/

depmod....

DKMS: install completed.
==============================================================================

And works (after starting youtube in browser with /etc/adobe/mms.cfg containing lines
EnableLinuxHWVideoDecode=1
OverrideGPUValidation=true)

==============================================================================
npm@meegotab:~$ lsmod | grep crystal
crystalhd 80471 2
==============================================================================

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: linux-image-3.5.0-37-generic 3.5.0-37.58~precise1
ProcVersionSignature: Ubuntu 3.5.0-37.58~precise1-generic 3.5.7.16
Uname: Linux 3.5.0-37-generic i686
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.25.
ApportVersion: 2.0.1-0ubuntu17.3
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: ALC269VB Analog [ALC269VB Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: npm 1950 F.... pulseaudio
 /dev/snd/pcmC0D0p: npm 1950 F...m pulseaudio
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xfe400000 irq 44'
   Mixer name : 'Realtek ALC269VB'
   Components : 'HDA:10ec0269,1b0a00c7,00100100'
   Controls : 23
   Simple ctrls : 11
Date: Tue Jul 30 10:32:46 2013
HibernationDevice: RESUME=UUID=f1eecaff-c75e-4fb5-9f62-b510fa2e9acc
InstallationMedia: Ubuntu 12.04.1 LTS "Precise Pangolin" - Release i386 (20120817.1)
MachineType: EXOPC EXOPG06411
MarkForUpload: True
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.5.0-37-generic root=UUID=75e86ab3-cf6e-428d-879f-03fdef91f7d3 ro quiet splash i8042.noloop=1 usbhid.quirks=0xeef:0x72a1:0x40 vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-3.5.0-37-generic N/A
 linux-backports-modules-3.5.0-37-generic N/A
 linux-firmware 1.79.6
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 11/22/2010
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: Lucid-CE-133
dmi.board.asset.tag: To be filled by O.E.M.
dmi.board.name: EXOPG06411
dmi.board.vendor: EXOPC
dmi.board.version: R2.0/R1.1
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 1
dmi.chassis.vendor: EXOPC
dmi.chassis.version: R2.0/R1.1
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrLucid-CE-133:bd11/22/2010:svnEXOPC:pnEXOPG06411:pvrR2.0/R1.1:rvnEXOPC:rnEXOPG06411:rvrR2.0/R1.1:cvnEXOPC:ct1:cvrR2.0/R1.1:
dmi.product.name: EXOPG06411
dmi.product.version: R2.0/R1.1
dmi.sys.vendor: EXOPC

Revision history for this message
Niels Mayer (nielsmayer) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: added: quantal
affects: linux (Ubuntu) → crystalhd (Ubuntu)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.