Unsuccessful email exchange with developers how to compile linux header source > today I received Foxboard. You have a nice tutorial how to get started. > My friend Plotzeneder recommended uses Foxboard for teaching. Great thanks :-) Feel free to ask for special prices when you and Plotzeneder need products from Acme. > Now in couple hours I have already set-up mjpg-streamer and webcam. > For comparison, it took me 3 days to get webcam running on NanosG20 > board, as webcam kernel modules were not existing and had to learn to build > them. :-) What is NanosG20 ? Have you a link to see it ? > Now I would like to connect micro WiFi donge Edimax wireless EW-7811un. I had a look at this adapter and Edimax website. I like very much their products and probably I'll add them (just the wi-fi dongles) on our site. Thanks for letting me know about them :-) > HERE I WOULD LIKE TO ASK YOU FOR HELP. > I need to compile a driver for it but > /lib/modules/2.6.38/build > is not existing. > Where can I download linux source to be placed under > /usr/src ? > It is empty now. > apt-get install linux-headers has many options, but I do not want to risk install > wrong one. > Could you please tell me where to get linux-headers. I'm out of office today so I can't help you but I'm sending this email to my friends Claudio Mignanti and Antonio Galea that probably could help you. In the meanwhile could be a good thing to post your request on the Netus G20 newsgroup to share the answers with the other Fox Board users http://groups.google.com/group/netusg20 > ======================================================== > Here is what I did trying to set up Edimax wireless EW-7811un > Linux driver page: > http://www.edimax.com/en/downloadBox.php?pd_id=347&download_link=../i > mages/Image/Driver_Utility/Wireless/NIC/EW- > 7811Un/rtl8192CU_8188CU_linux_v2.0.939.20100726.zip > > apt-get install unzip build-essential > > cd ~ > > wget http://www.edimax.com/images/Image/Driver_Utility/Wireless/NIC/EW- > 7811Un/rtl8192CU_8188CU_linux_v2.0.939.20100726.zip > > unzip rtl8192CU_8188CU_linux_v2.0.939.20100726.zip > > cd ~/rtl8192CU_8188CU_linux_v2.0.939.20100726/driver > > tar xzvf rtl8192CU_linux_v2.0.939.20100726.tar.gz > > mv rtl8192CU_linux_v2.0.939.20100726 ~ > > cd ~/rtl8192CU_linux_v2.0.939.20100726/ > > > make > > make ARCH=armv5tejl CROSS_COMPILE= -C /lib/modules/2.6.38/build > M=/root/rtl8192CU_linux_v2.0.939.20100726 modules > make: *** /lib/modules/2.6.38/build: No such file or directory. Stop. > make: *** [modules] Error 2 > > uname -r > 2.6.38 > > apt-get install linux-headers > Package linux-headers is a virtual package provided by: > linux-headers-2.6.32-5-versatile 2.6.32-35squeeze2 > linux-headers-2.6.32-5-orion5x 2.6.32-35squeeze2 > linux-headers-2.6.32-5-kirkwood 2.6.32-35squeeze2 > linux-headers-2.6.32-5-ixp4xx 2.6.32-35squeeze2 > linux-headers-2.6.32-5-iop32x 2.6.32-35squeeze2 > linux-headers-2.6-versatile 2.6.32+29 > linux-headers-2.6-orion5x 2.6.32+29 > linux-headers-2.6-kirkwood 2.6.32+29 > linux-headers-2.6-ixp4xx 2.6.32+29 > linux-headers-2.6-iop32x 2.6.32+29 > You should explicitly select one to install. > > Could you please tell me where to get linux-headers. > ========================================================== >I tried Wifi USB stick with rtl8188 chip. It works immediately. >But Edimax stick is more compact and draws 0.4 W less >power. For that the driver is not found. Chip is rtl8192 >dmesg >usb 1-2: new full speed USB device using at91_ohci and >address 5 >lsusb >Bus 001 Device 005: ID 7392:7811 Edimax Technology Co., >Ltd >I have set up Edimax stick on "NanosG20" and for that needed >to download the "Linux Kernel source code Debian package >[85.90 MB]" from their website. >I read now in forums that it is necessary to cross compile it by >every user. I am had tried it once before for "Bifferboard". After >some 5 hours waiting the built thing had some errors and was >useless. The day was spent useless. >Would it be possible to download Linux Kernel Source from >the yuor website as Foxboard is the same for everyone why >should everyone compile. >P.S. One more question. Is there a sleep or power-down mode. >I want to make a mobile webcam that sends picture via Huawei >GSM modem once an hours and rest of time sleeps to save >battery. Unfortunately I have not yet had time to experience the power down on the fox but we have the have the energy saving in out minds. We are designing a new FOX version that can turn down also the USB power lines (see www.acmesystems.it/?id=FOXG20-V2). I'll be happy to send you a board for free when it will be ready :-) >My Linux webserver is >barbara320.gotdns.com I was very impressed by the experiences you've done. I'll show your site to my friend Roberto Asquini (Acme owner with me and FOX board hardware designer), we probably have a lot of things to share in the future :-) >> HERE I WOULD LIKE TO ASK YOU FOR HELP. >> I need to compile a driver for it but >> /lib/modules/2.6.38/build >> is not existing. >> Where can I download linux source to be placed under >> /usr/src ? >> It is empty now. Hello Janis, I usually prefer to compile my own kernel directly on the Fox, but it does take quite some time. Before resorting to that, you might try with Backports provided headers: on my desktop they work smoothly, and even if on the G20 I've never tried them, your chances are good. First, add Backports to you /etc/apt/sources.list, with deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free then update the apt cache using "apt-get update", then install the headers: apt-get install linux-headers-2.6.38-bpo.2-all The headers package will bring along a few dependencies (most notably the kbuild package that you are loocking for). Just confirm and wait for apt to finish the install - then you should be able to compile any Debian-supported module without a complete kernel source tree. HTH, Antonio On Tue, Sep 20, 2011 at 11:20, wrote: > > Backports installation created many folders. [...] The simlink is still not active > cd /lib/modules/2.6.38 > cd build > No such file or directory. I'll have a look into this issue. Maybe I could find the time to produce the Acme kernel as a proper .deb file, together with the corresponding headers. > wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.38.tar.bz2 > service temporarily unavailable > http://kernel.org/ > down for maintanance > Tried it also yesterday. Same result. May be you know what to do. You might look up on Google cached pages for "kernel.org mirrors". Here's a fast one located in Germany: http://ftp.halifax.rwth-aachen.de/kernel/linux/kernel/v2.6/ Antonio > --------------------------------------------------------------------------------- > I download kernel source from your link, run make modules, > and also copy it to SD card. Now compiling wifi driver gives > some other complain > > make[2]: Entering directory `/media/data' > CC [M] > /root/rtl8192CU_linux_v2.0.939.20100726/core/rtw_cmd.o > scripts/basic/fixdep: 1: Syntax error: "(" unexpected > make[3]: *** Mh, this looks like an object file compiled for the wrong architecture; you might try a "make clean" or "make dist-clean" (depends on the driver's makefile).