All of lore.kernel.org
 help / color / mirror / Atom feed
From: "w.b.b" <rememberme_2000@126.com>
To: Linux-omap-open-source@linux.omap.com
Subject: Re: AW: GPIO OF OMAP5912
Date: Wed, 30 Aug 2006 10:15:50 +0800	[thread overview]
Message-ID: <000a01c6cbda$36a4b1f0$4e0aa8c0@wbb> (raw)
In-Reply-To: 1156870223.2844.28.camel@localhost.localdomain

[-- Attachment #1: Type: text/plain, Size: 3145 bytes --]

 thanks.
  I get information about how to get use of the hardware in linux,but I am still confused about it.
-----------------------------------------------------------
the following steps about it:
 1. apply for the resource to linux kernel
 2. if you have applied ,then you can do some work about it.
 3.if you have finished ,release the resouce.
-------------------------------------------------------------
 i can only get the physical memory of the registers from the omap process guide.but I don't know their address in linux.
though it's a very basical question,i have to apply for help.
 maybe a simple example can make me understand quickly!
                         thanks
                                    w.b.b

 I 
----- Original Message ----- 
From: "Hingkwan Huen" <hkh@cypress.com>
To: "LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)" <DuongThanh.Nguyen@de.bosch.com>
Cc: "w.b.b" <rememberme_2000@126.com>; <Linux-omap-open-source@linux.omap.com>
Sent: Wednesday, August 30, 2006 12:50 AM
Subject: Re: AW: GPIO OF OMAP5912


> Don't think you can access physical memory directly in user space. You
> should use /dev/mem instead.
> 
> -kwan
> 
> On Tue, 2006-08-29 at 16:08 +0200, LIMITED Nguyen Duong Thanh (CR/AEM
> Praktikant) wrote:
>> Hello,
>> 
>> I don't know if my idea help you.
>> Maybe the problem is about the libraries in directory /lib/ on OMAP file systems. It doesn't contain the libraries, which your program need.
>> 
>> Regard,
>> Thanh 
>> 
>> -----Ursprüngliche Nachricht-----
>> Von: linux-omap-open-source-bounces@linux.omap.com [mailto:linux-omap-open-source-bounces@linux.omap.com] Im Auftrag von w.b.b
>> Gesendet: Dienstag, 29. August 2006 08:44
>> An: Linux-omap-open-source@linux.omap.com
>> Betreff: GPIO OF OMAP5912
>> 
>> hi:
>> 
>>  i want to do some work about OMAP5912'GPIO.but I am failed to do that.
>> 
>>  the following is a simple program:
>> 
>> test.c 
>> 
>> -----------------------------------------------------
>> 
>> #include <stdio.h>
>> #include <unistd.h>
>> #include <asm/io.h>
>> 
>> #define GPIO3_OUT 0xfffbbc40 /* lp1 */
>> 
>> int main()
>> {
>>   /* Get access to the ports */
>>   
>>   
>>   /* Set the data signals (D0-7) of the port to all low (0) */
>>   outb(0xffff, GPIO3_OUT);
>>   
>>   /* Sleep for a while (100 ms) */
>>   usleep(100000);
>> }
>> -----------------------------------------------------
>> arm-linux-gcc -g test.c -o test.out
>> ----------------------------------------------------
>> I run the binary file on the omap:./test.out
>> -----------------------------------------------------
>> but i get the result:segmentation falt!
>> ---------------------------------------------------
>> who can provide me with information? if you have done work related with gpio,would you like send me some examplefile?                                
>>    thanks!
>> _______________________________________________
>> Linux-omap-open-source mailing list
>> Linux-omap-open-source@linux.omap.com
>> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>> 
>> 
> 
>

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  reply	other threads:[~2006-08-30  2:15 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-28 12:34 [PATCH] ARM: OMAP: Remove IVA IRQ bank Komal Shah
2006-08-29  6:43 ` GPIO OF OMAP5912 w.b.b
2006-08-29 14:08   ` AW: " LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)
2006-08-29 16:50     ` Hingkwan Huen
2006-08-30  2:15       ` w.b.b [this message]
2006-08-30 12:51         ` Loading program to OMAP5910 Raja Mallik
2006-08-30 17:01           ` Dirk Behme
2006-08-31  9:09             ` Raja Mallik
2006-09-06 19:48             ` Random Number Generation Abot Botbot
2006-09-06 20:20               ` lamikr
2006-08-29 14:29 ` [PATCH] ARM: OMAP: Remove IVA IRQ bank Tony Lindgren
     [not found] <B3FDBBC0428C8145A83F312B740CE67D075859@si-mail48.de.bosch.com>
2006-08-31  1:08 ` AW: GPIO OF OMAP5912 w.b.b

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000a01c6cbda$36a4b1f0$4e0aa8c0@wbb' \
    --to=rememberme_2000@126.com \
    --cc=Linux-omap-open-source@linux.omap.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.