linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: "Josep Maria Batlle" <jepmalinux@gmail.com>
To: linuxppc-embedded@ozlabs.org
Subject: i2c device for a linux 2.6 in XUPV2P
Date: Mon, 24 Dec 2007 22:27:08 +0100	[thread overview]
Message-ID: <ef1737dc0712241327t3cc7c14kcb91e9a4e550df18@mail.gmail.com> (raw)

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

Hi all,

I have booted up linux 2.6 on Xilinx XUPV2P (using the base of ml300 config
file).
Now I am trying to use the i2c in the user-space. First of all: is it
possible?

My first attempts have not worked. I have made this:
1) I enable "I2C Support" and "I2C device interface" in the kernel
recompilation.
2) I added the "i2c-0" device in /dev (# mknod i2c-0 c 89 0)
3) then I run a simple program to open the device (provided by the
"dev-interface" file of i2c kernel documentation) that returns this errno
message: "No such device".

I have tried to use the device number 1, 2, 3, 4 but these have not worked.
I have tried to use the device "i2cn" but not worked. I have tried to use
all the BSP's from the EDK (7.1i) and then only the "xparameters_ml300.h" in
the compilation. After all of this, now I am modifying the RFS for "mdev"...
Somebody can tell me what I am doing wrong if this use is possible?

I use the kernel tree "virtex-for-2.6.24" from SecretLab and Busybox 1.7.2.

Thanks.

[-- Attachment #2: Type: text/html, Size: 1142 bytes --]

             reply	other threads:[~2007-12-24 21:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-24 21:27 Josep Maria Batlle [this message]
2008-01-09 17:52 ` i2c device for a linux 2.6 in XUPV2P Stephen Neuendorffer
2008-01-16 12:43 ` greenlean

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=ef1737dc0712241327t3cc7c14kcb91e9a4e550df18@mail.gmail.com \
    --to=jepmalinux@gmail.com \
    --cc=linuxppc-embedded@ozlabs.org \
    /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;
as well as URLs for NNTP newsgroup(s).