Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 1 Mar 2015 12:13:30 -0800
From:      Waitman Gobble <gobble.wa@gmail.com>
To:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Chronodot on RPI
Message-ID:  <CAFuo_fxhC_psyOp-Yw1f7i=cK4rK53erw=gYiHKJHu6U1Ji%2B-w@mail.gmail.com>
In-Reply-To: <CAFuo_fzzGV%2B=FcQ=bqxeAQBL9kGusDfW=t5oF6og2kOrN8WZZQ@mail.gmail.com>
References:  <CAFuo_fzzGV%2B=FcQ=bqxeAQBL9kGusDfW=t5oF6og2kOrN8WZZQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Mar 1, 2015 at 11:12 AM, Waitman Gobble <gobble.wa@gmail.com> wrote:
> Anyone have luck with the ChronoDot (D3231) on Raspberry Pi?
> I have a RPI B+ (rev 1), tried with HEAD r277133 and r279488 without luck.
>
>
> # uname -a
> FreeBSD ARTiming150228 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r277133:
> Tue Jan 13 20:18:52 PST 2015
> waitman@rpidev.waitman.net:/usr/home/waitman/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/TMRDEV
>  arm
>
> # uname -a
> FreeBSD raspberry-pi 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r279488: Sun
> Mar  1 10:27:33 PST 2015
> waitman@rpidev.waitman.net:/usr/home/waitman/crochet-freebsd/work/obj/arm.armv6/usr/src/sys/TMRDEV
>  arm
>
>
> # dmesg | grep iic
> iichb0: <BCM2708/2835 BSC controller> mem 0x205000-0x20501f irq 61 on simplebus0
> iicbus0: <OFW I2C bus> on iichb0
> iic0: <I2C generic I/O> on iicbus0
> iichb1: <BCM2708/2835 BSC controller> mem 0x804000-0x80401f irq 61 on simplebus0
> iicbus1: <OFW I2C bus> on iichb1
> iic1: <I2C generic I/O> on iicbus1
>
>
> a) tried the DS1307 program from Vadim Zaigrin, without success.
>
> b) tried i2cscan from Winston Smith,
>
> only get errors. ie,
>
> ioctl(I2CRDWR) failed: Input/output error
>
> I have VCC pin 1, GND pin 6, SDA on 3 and SCL on 5.
>
> trying /dev/iic0 and /dev/iic1
>
> Any help/suggestions apprecitated.
>
> Thank you,
>
>
> --
> Waitman Gobble
> Los Altos California USA
> 510-830-7975



OOPs, I just realized that the code on Vadim's github is working. I
had previously tried the code in the blog post.

# ./ss -s -f /dev/iic1
# ./ss -r -f /dev/iic1
20:12:29 01/03/2015
root@raspberry-pi:~ # date
Sun Mar  1 20:12:32 UTC 2015

https://github.com/vzaigrin/ds1307

Thank you,

-- 
Waitman Gobble
Los Altos California USA
510-830-7975



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFuo_fxhC_psyOp-Yw1f7i=cK4rK53erw=gYiHKJHu6U1Ji%2B-w>