Page 1 of 1

Where are kernel headers?

Posted: Fri Dec 20, 2013 4:59 am
by wsanders
I am trying to build the generic hsfmodem Winmodem driver from http://www.linuxant.com/drivers/hsf/full/downloads.php. The thing that seems to be holding me back right now is lack of kernel headers:

Code: Select all

cc1: fatal error: /usr/src/kernel-headers-3.10.24+/include/linux/config.h: No such file or directory compilation terminated
I try this and it fails:

Code: Select all

 #  apt-get install kernel-headers-3.10.24
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package kernel-headers-3.10.24
E: Couldn't find any package by regex 'kernel-headers-3.10.24'
The kernel headers in/usr/src are still for 3.2.0-4 and were not updated by "rpi-update". Can someone point me to a doc about how compiling new kernel modules is supposed to be done? Thanks,
-W Sanders

Re: Where are kernel headers?

Posted: Fri Dec 20, 2013 8:30 am
by joan
I don't know about current practice.

This http://raspberrypi.stackexchange.com/qu ... 1-9-kernel suggests one way (needs to be adapted according to the version you want).

Re: Where are kernel headers?

Posted: Sun Dec 22, 2013 6:32 am
by wsanders
Well, the intent was to see if any of the dgc/hdfmodem Linmodem drivers would build on Raspbian, but after taking a look they heavily depend on i386 features like MMX. So the chances of these drivers working on a Pi are zero.

So, the best bet, if one is thinking of connecting a Pi to a dialup line, is to use a standalone modem and build or buy a TTL to RS232 converter. Dang, I have a whole bag of MAX232's right here - which are for 5V not 3.3V. Bah. Have to buy one.