BBB Debian and M2Tech Hiface1 ( and Real Time )

Hi all, I’m trying to install BBB Debian with well known M2Tech Hiface1 USB>SPDIF converter.

I started with Debian 7.0 installation:
http://www.armhf.com/index.php/getting-started-with-ubuntu-img-file/

Then I start installing M2Tech Hiface1:

sudo apt-get install dkms
sudo apt-get install kernel-headers-$(uname -r)
sudo apt-get install build-essential
sudo apt-get install git
git clone git://github.com/panicking/snd-usb-asyncaudio.git
sudo dkms add ./snd-usb-asyncaudio/
sudo dkms autoinstall

2nd command gave me an error:

debian@debian-armhf:~$ sudo apt-get install kernel-headers-$(uname -r)
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package kernel-headers-3.8.13-bone20
E: Couldn’t find any package by regex 'kernel-headers-3.8.13-bone20

I tried to find out the right kernel-headers at following site and install it:

http://wget%20http://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone20/install-me.sh
sudo /bin/bash install-me.sh
(reboot)

I also tried with this one:

http://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone20/
linux-headers-3.8.13-bone20_1.0wheezy_armhf.deb

No luck … I still have an error:

root@debian-armhf:/# sudo dkms autoinstall

Kernel preparation unnecessary for this kernel. Skipping…
Building module:
cleaning build area…
make KERNELRELEASE=3.8.13-bone20 KVERSION=3.8.13-bone20…(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.8.13-bone20 (armv7l)
Consult /var/lib/dkms/snd-usb-hiface/1.0/build/make.log for more information

And log looks like:

root@debian-armhf:/snd-usb-asyncaudio# cat /var/lib/dkms/snd-usb-hiface/1.0/build/make.log
DKMS make.log for snd-usb-hiface-1.0 for kernel 3.8.13-bone20 (armv7l)
Mon Oct 7 16:17:03 UTC 2013
make -C /lib/modules/3.8.13-bone20/build SUBDIRS=/var/lib/dkms/snd-usb-hiface/1.0/build modules
make[1]: Entering directory /usr/src/linux-headers-3.8.13-bone20' CC [M] /var/lib/dkms/snd-usb-hiface/1.0/build/chip.o In file included from include/linux/timex.h:65:0, from include/linux/jiffies.h:8, from include/linux/ktime.h:25, from include/linux/timer.h:5, from include/linux/workqueue.h:8, from include/linux/srcu.h:34, from include/linux/notifier.h:15, from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:761, from include/linux/gfp.h:4, from include/linux/kmod.h:22, from include/linux/module.h:13, from /var/lib/dkms/snd-usb-hiface/1.0/build/chip.c:17: /usr/src/linux-headers-3.8.13-bone20/arch/arm/include/asm/timex.h:18:24: fatal error: mach/timex.h: No such file or directory compilation terminated. make[2]: *** [/var/lib/dkms/snd-usb-hiface/1.0/build/chip.o] Error 1 make[1]: *** [_module_/var/lib/dkms/snd-usb-hiface/1.0/build] Error 2 make[1]: Leaving directory /usr/src/linux-headers-3.8.13-bone20’
make: *** [default] Error 2

Any idea ?

Thanks in advance, Massimiliano

BTW - Is there any Real Time kernel available for Debian on BBB ?

"Welcome" to arm headers... Use this script, to setup everything properly..

wget https://raw.github.com/gkaindl/beaglebone-ubuntu-scripts/master/bb-get-rcn-kernel-source.sh

./bb-get-rcn-kernel-source.sh

Regards,

Is it for Ubuntu or for Debian as well ?

Max

Both.. it detects the distro release from lsb_release

Regards,

Still having an error compiling driver …

root@debian-armhf:/# sudo dkms autoinstall

Kernel preparation unnecessary for this kernel. Skipping…

Building module:
cleaning build area…
make KERNELRELEASE=3.8.13-bone20 KVERSION=3.8.13-bone20…(bad exit status: 2)
Error! Bad return status for module build on kernel: 3.8.13-bone20 (armv7l)
Consult /var/lib/dkms/snd-usb-hiface/1.0/build/make.log for more information.

root@debian-armhf:/# cat /var/lib/dkms/snd-usb-hiface/1.0/build/make.log
DKMS make.log for snd-usb-hiface-1.0 for kernel 3.8.13-bone20 (armv7l)
Tue Oct 8 20:32:25 UTC 2013
make -C /lib/modules/3.8.13-bone20/build SUBDIRS=/var/lib/dkms/snd-usb-hiface/1.0/build modules
make[1]: Entering directory `/usr/src/linux-3.8.13-bone20’

ERROR: Kernel configuration is invalid.
include/generated/autoconf.h or include/config/auto.conf are missing.
Run ‘make oldconfig && make prepare’ on kernel src to fix it.

CC [M] /var/lib/dkms/snd-usb-hiface/1.0/build/chip.o
In file included from :0:0:
/usr/src/linux-3.8.13-bone20/include/linux/kconfig.h:4:32: fatal error: generated/autoconf.h: No such file or directory
compilation terminated.
make[2]: *** [/var/lib/dkms/snd-usb-hiface/1.0/build/chip.o] Error 1
make[1]: *** [module/var/lib/dkms/snd-usb-hiface/1.0/build] Error 2
make[1]: Leaving directory `/usr/src/linux-3.8.13-bone20’
make: *** [default] Error 2

Max

Still struggling and unable to compile M2Tech Hiface1 driver …

Is it planned to be officially integrated in one of the upcoming kernel version ? I mean 3.11 or 3.12 …

Regards. Max

I’m have similar issues. The header files for 3.8.13-bone20 don’t appear to be in the repository. Is there another location to find them?

I removed bone20 from all my repo's last week..

Upgrade to bone28, as bone20 is a known "broken" kernel. the Patch and
config are still in the repo if you want to build it yourself.

Regards,

Hi Robert,
1.I am facing similar problems as above .When i type wget http://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone47/ on my beagle bone black i got following error messages.
root@beaglebone:/# wget http://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone47/
–2014-04-23 20:44:04-- http://rcn-ee.net/deb/wheezy-armhf/v3.8.13-bone47/
Resolving rcn-ee.net (rcn-ee.net)… failed: Name or service not known.
wget: unable to resolve host address `rcn-ee.net

2.Can also please help me in how to install linux headers in my BBB so that i can build my kernel modules.
– when i type apt-get install linux-headers-`uname -r’ i am getting following error message on my BBB

Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package linux-headers-3.8.13-bone47
E: Couldn’t find any package by regex ‘linux-headers-3.8.13-bone47’

Can you please help me to resolve above problems.

Regards,
Tarak.