Discussion:
[Gumstix-users] i2c-tools "Device or resource busy"
Brett Graham
2009-10-08 21:57:41 UTC
Permalink
I am trying to use the adcs on the tps65950 power management chip. I
think I have everything working under uboot but when I try to use the
i2c tools in linux I'm getting the following error

***@overo:~# i2cget 1 0x49 0x91
Error: Could not set address to 0x49: Device or resource busy
Dave Hylands
2009-10-08 23:06:20 UTC
Permalink
Hi Brett,
Post by Brett Graham
I am trying to use the adcs on the tps65950 power management chip. I
think I have everything working under uboot but when I try to use the
i2c tools in linux I'm getting the following error
Error: Could not set address to 0x49: Device or resource busy
Brett Graham
2009-10-11 21:16:16 UTC
Permalink
Thanks for the advice. How do I go about finding what driver, module
or process is using /dev/i2c-1?

I've tried:
fuser /dev/i2c-1
which outputs nothing

and this is my output of lsmod:
Module Size Used by
libertas_sdio 13208 0
libertas 167676 1 libertas_sdio
lib80211 6472 1 libertas

and my output of ps -A
PID TTY TIME CMD
1 ? 00:00:00 init
2 ? 00:00:00 kthreadd
3 ? 00:00:37 ksoftirqd/0
4 ? 00:00:00 watchdog/0
5 ? 00:00:00 events/0
6 ? 00:00:00 khelper
170 ? 00:00:00 kblockd/0
173 ? 00:00:00 dsi
178 ? 00:00:00 kseriod
185 ? 00:00:00 twl4030-irqchip
186 ? 00:00:00 twl4030-irq
206 ? 00:00:00 omap2_mcspi
214 ? 00:00:00 ksuspend_usbd
220 ? 00:00:00 khubd
225 ? 00:00:00 kmmcd
232 ? 00:00:00 btaddconn
233 ? 00:00:00 btdelconn
264 ? 00:00:00 pdflush
265 ? 00:00:00 pdflush
266 ? 00:00:00 kswapd0
267 ? 00:00:00 aio/0
268 ? 00:00:00 nfsiod
422 ? 00:00:00 mtdblockd
459 ? 00:00:00 kpsmoused
471 ? 00:00:00 kondemand/0
479 ? 00:00:00 hid_compat
510 ? 00:00:00 krfcommd
512 ? 00:00:00 rpciod/0
524 ? 00:00:01 mmcqd
531 ? 00:00:00 kjournald
577 ? 00:00:00 udevd
1300 ? 00:00:00 ksdioirqd/mmc1
1333 ? 00:00:00 portmap
1376 ? 00:00:00 lbs_main
1377 ? 00:00:00 lbs_worker
1403 ? 00:00:00 dropbear
1414 ? 00:00:00 dbus-daemon
1419 ? 00:00:00 syslogd
1421 ? 00:00:00 klogd
1436 ? 00:00:00 avahi-daemon
1465 ttyS2 00:00:00 sh
1466 tty1 00:00:00 getty
1671 ? 00:00:00 wpa_supplicant
1764 ? 00:00:00 udhcpc
1851 ttyS2 00:00:00 ps

My guess (an uninformed one at that) is that the twl4030 processes are
locking the i2c line. If this is correct, should I recompile the
kernel with twl4030 as a module so that I can unload it before trying
to talk to the i2c bus?
Post by Dave Hylands
Hi Brett,
Post by Brett Graham
I am trying to use the adcs on the tps65950 power management chip. I
think I have everything working under uboot but when I try to use the
i2c tools in linux I'm getting the following error
Error: Could not set address to 0x49: Device or resource busy
Dave Hylands
2009-10-12 03:11:24 UTC
Permalink
Hi Brett,

On Sun, Oct 11, 2009 at 2:16 PM, Brett Graham
Post by Brett Graham
Thanks for the advice. How do I go about finding what driver, module
or process is using /dev/i2c-1?
The driver could be y statically linked into the kernel.

I suspect that you'd see something in /sys/bus/i2c/devices and/or
/sys/bus/i2c/drivers

And actually, the driver in question probably isn't using /dev/i2c-1.
It's probably using the core i2c driver (which is what i2c-dev does as
well).

You can see all of the drivers by doing

cat /proc/devices
--
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/
Steve Sakoman
2009-10-12 13:57:04 UTC
Permalink
Post by Brett Graham
I am trying to use the adcs on the tps65950 power management chip. I
The TWL4030_MADC driver is enabled by default in the kernel. You
should use that rather than trying to talk to the chip directly.

A search on the mailing list will turn up some sample code. The
driver bug that is mentioned in that thread was fixed several months
ago.

Steve
Post by Brett Graham
think I have everything working under uboot but when I try to use the
i2c tools in linux I'm getting the following error
Error: Could not set address to 0x49: Device or resource busy
Andy Maginnis
2009-10-12 18:54:43 UTC
Permalink
Just did a
git pull
in my org.... directory.

As soon as I try and bitbake I get the following message.

Dude>bitbake omap3-console-image
ERROR: Openembedded's config sanity checker detected a potential misconfiguration.
Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
Following is the list of potential problems / advisories:

Error, TMPDIR has changed ABI (2 to 3) and you need to either rebuild, revert or adjust it at your own risk.

Any ideas?
Thierry Genovese
2009-10-12 19:17:14 UTC
Permalink
Hi,

Unfortunately, this means that you have to delete your ~/overo-oe/tmp
folder and rebuild everything.

Thierry
Post by Andy Maginnis
Just did a
git pull
in my org.... directory.
As soon as I try and bitbake I get the following message.
Dude>bitbake omap3-console-image
ERROR:  Openembedded's config sanity checker detected a potential misconfiguration.
       Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
       Error, TMPDIR has changed ABI (2 to 3) and you need to either rebuild, revert or adjust it at your own risk.
Any ideas?
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gumstix-users mailing list
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Andy Maginnis
2009-10-13 09:20:35 UTC
Permalink
no worries, I suspected as much
many thanks for the swift response!

-----Original Message-----
From: Thierry Genovese [mailto:***@gmail.com]
Sent: 12 October 2009 20:17
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] TMPDIR has changed ABI

Hi,

Unfortunately, this means that you have to delete your ~/overo-oe/tmp
folder and rebuild everything.

Thierry
Post by Andy Maginnis
Just did a
git pull
in my org.... directory.
As soon as I try and bitbake I get the following message.
Dude>bitbake omap3-console-image
ERROR:  Openembedded's config sanity checker detected a potential misconfiguration.
       Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
       Error, TMPDIR has changed ABI (2 to 3) and you need to either rebuild, revert or adjust it at your own risk.
Any ideas?
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gumstix-users mailing list
https://lists.sourceforge.net/lists/listinfo/gumstix-users
Continue reading on narkive:
Loading...