Forum: Mikrocontroller und Digitale Elektronik Foxboard G20 - Using ADC


von Maturaprojekt-HTL (Gast)


Lesenswert?

(Falls Englisch ein Problem ist bitte melden, kann es dann Übersetzen. 
Antworten in Deutsch oder Englisch. Ist egal)

Hallo,

I've been working on this Problem for a few days now. Also my teachers 
don't know how to solve this.

Ok first, what do i got..
I got the Foxboard G20 with the MicroSD Card where the Linux System and 
everything is already installed. I got a Windows PC with programm 
"WinSCP" to transfer Data to the Foxboard and "PuTTY" to get into the 
command line of the foxboard.

I want to use the ADC so i did read the "Using the Analog to Digital 
Converter" Tutorial. 
http://www.tanzilli.com/doku.php?id=contributes:antoniogalea:at91_adc
I downloaded the driver code file "at91_adc_driver-20100518_0821.tgz" 
and then i wanted to follow the next instructions which are:

"tar zxvf at91_adc_driver-20100518_0821.tgz
cd at91_adc_driver
KDIR=<position of your kernel tree> make
scp at91_adc.ko root@<ip address of your fox g20>:"

and the tiny looking problem i got is "<position of your kernel tree>". 
I dont know where to find the position of my kernel tree, nor i know 
what this is or if i got it.
So I did search and search on the internet for a sulution to my problem. 
But I couldn't find anything, probably i'm just too dumb for it. ;)
I asked some friend of mine who is more common to Linux.
He said i dont even got a kernel tree and that i should follow the 
instructions on the tutorial: "Compiling the Linux Kernel 2.6.35.4" 
http://www.acmesystems.it/foxg20/doku.php?id=tutorial:compiling_the_linux_kernel

But i quickly regognized that i need a Linux Pc not a Windows, like mine 
is, to build that kernel.
So next try. I saw this "Another method" line at the end of this kernel 
tutorial which leads to this tutorial:
"How to update the kernel image" 
http://www.acmesystems.it/foxg20/doku.php?id=howtos:update_the_kernel_image

so i did follow that tutorial, downloaded the uImage, saved the old one, 
sync, reboot.. But still i dont know if there is a root tree now, or 
where i can find that tree.

In my opinion the last tactic to get a root tree is not working since a 
update is descripted there.


Please, seriously PLEASE help me. This tiny looking problem is making me 
crazy..

Looking forward hearing from you,
yours sincerely,
Patrick Mathè

von Roland Jankowski (Gast)


Lesenswert?

Hallo Patrick,

um kernel module unter linux zu bauen brauchst du die sourcen zum 
entsprechenden kernel (der bei dir am foxboard läuft)

mit 'uname -a' kannst mal am foxg20 die kernel release rausfinden.

verwendest du das debian binary image von acmesystems? willst du auf dem 
board selbst kompilieren musst du dir das packet 
linux-headers-KERNELVERSION installieren.

für openwrt kernel 2.6.35.9 hab ich das modul bereits kompiliert und als 
.opkg verpackt falls es wer braucht

lg/Roland

Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.