From: Hingkwan Huen <hkh@cypress.com>
To: "LIMITED Nguyen Duong Thanh (CR/AEM Praktikant)"
<DuongThanh.Nguyen@de.bosch.com>
Cc: Linux-omap-open-source@linux.omap.com
Subject: Re: AW: GPIO OF OMAP5912
Date: Tue, 29 Aug 2006 09:50:23 -0700 [thread overview]
Message-ID: <1156870223.2844.28.camel@localhost.localdomain> (raw)
In-Reply-To: <B3FDBBC0428C8145A83F312B740CE67D075854@si-mail48.de.bosch.com>
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
>
>
next prev parent reply other threads:[~2006-08-29 16:50 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 [this message]
2006-08-30 2:15 ` w.b.b
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=1156870223.2844.28.camel@localhost.localdomain \
--to=hkh@cypress.com \
--cc=DuongThanh.Nguyen@de.bosch.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox