mchr3k
Posts: 14
Joined: Thu May 10, 2012 9:04 pm

Re: Installing Debian Kernel Headers

Thu May 10, 2012 10:20 pm

I am trying to build a driver for my WG111T USB wifi stick by following these instructions: http://wiki.debian.org/ar5523

Unfortunately I am getting stuck at the "m-a a-i ar5523" step with the following error:

[email protected]:~$ sudo m-a a-i ar5523
Updated infos about 1 packages
Getting source for kernel version: 3.1.9+
apt-get install kernel-headers-3.1.9+
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package kernel-headers-3.1.9
E: Couldn"t find any package by regex "kernel-headers-3.1.9"
apt-get install build-essential
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 29 not upgraded.
Done!

What do I need to do to install the kernel-headers package? Do I need to build this myself? If so, how exactly can I do that?

I"ve blogged about my progress so far here:
http://mchr3k-arduino.blogspot.....g111t.html
http://mchr3k-arduino.blogspot.....aders.html

krnewell
Posts: 4
Joined: Sun May 13, 2012 6:23 pm

Re: Installing Debian Kernel Headers

Sun May 13, 2012 6:40 pm

Ditto,

I'm trying to install 8021q support and I'm not too familiar with debian. I'm mostly a Gentoo and Fedora person. I'd like to do this in the most "debian-supported" fashion and that appears to be through module-assistant. Being a Gentoo user I'm very familiar with grabbing the entire kernel source and building a module that way, but I'm hoping that's not the recommended method here. If so, that doesn't bode well for simple updates/management down the road. I can't even imagine what a complete compile time is going to look like.

I received my Model B two days ago and I've been doing a lot of exploration. The current step I'm stuck on is debian squeeze 802.1Q (VLAN) support. It's hard to securely turn one interface into two w/o tagging. I'm trying to build a modular UPNP-aware home router to replace my aging DD-WRT setup.

dontocsata
Posts: 1
Joined: Sun May 13, 2012 9:35 pm

Re: Installing Debian Kernel Headers

Sun May 13, 2012 9:42 pm

I'm also having trouble with this. I hit the same problems as you.

I decided to try grabbing the source from https://github.com/raspberrypi/linux.git and configuring it.

Then doing something like: sudo m-a prepare -k /path/to/raspberrypi/linux/
Basically, telling it to use the kernel sources/headers I checked out from git. I get this error though:
"Bad kernel version specification at /usr/bin/m-a line 566."

I don't know where to go from here.

krnewell
Posts: 4
Joined: Sun May 13, 2012 6:23 pm

Re: Installing Debian Kernel Headers

Tue May 15, 2012 4:34 pm

So, I gave up, and probably am better off for it...

I downloaded the github sources to my gentoo server and followed the directions here:
http://elinux.org/index.php?title=RPi_K ... did=126290

At first I tried native compilation on the pi (mounting the source via NFS), but both times I wound up with a kernel panic at some point during the process. I wasn't watching it closely (since it was taking hours).

On to cross compiling:

I would suggest modifying the line:

Code: Select all

make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabi- oldconfig
and using menuconfig instead of oldconfig. That way you can choose any modules that weren't already selected.


I cross-compiled a new kernel from gentoo in no time, then mounted the directory via NFS to my pi. After that it was as easy as copying kernel.img to /boot and running "make modules_install" (from the pi) to shake all the modules into /lib/modules/...

one last reboot and now I've got all the modules I need.

mchr3k
Posts: 14
Joined: Thu May 10, 2012 9:04 pm

Re: Installing Debian Kernel Headers

Wed May 16, 2012 10:51 pm

I got the kernel headers build working! It turns out that I was just out of space on my SD card: http://mchr3k-arduino.blogspot.co.uk/20 ... gress.html

User avatar
fusiooon
Posts: 9
Joined: Tue May 08, 2012 11:23 am

Re: Installing Debian Kernel Headers

Tue May 29, 2012 9:32 pm

Has anyone got the 8021q working? I tired following mchr3k's instructions, but still get the "Maybe you need to load the 8021q module, or maybe you are not using PROCFS??" error when trying to ifup a VLAN port. When I try modprobe 8021q, I get a FATAL: Module 8021q not found error. All I really need is just the 8021q module. Any suggestions?

yanhotdamn
Posts: 1
Joined: Wed Jul 18, 2012 6:55 pm

Re: Installing Debian Kernel Headers

Wed Jul 18, 2012 6:57 pm

Hi,

Did anyone manage to get this sorted? I have the same dongle and have ben unsuccessful as well.

- yhd

stockbroker
Posts: 14
Joined: Wed Jul 04, 2012 4:41 pm

Re: Installing Debian Kernel Headers

Fri Jul 20, 2012 2:27 pm

mchr3k wrote:I got the kernel headers build working! It turns out that I was just out of space on my SD card: http://mchr3k-arduino.blogspot.co.uk/20 ... gress.html
I am no linux expert or programmer but noticed that the second screen said are your headers installed in unusual location set the KERNALDIR environment variable to the path of the directory.
would this point to the fact that the kernal headers were not found? as I say I am no linux expert so might be barking up the wrong tree.
do you know how to find the kernal dir if so do you know how to point to the directory?
what do you think or have you given up the trying with this dongle.
thanks
marshall

Return to “Troubleshooting”