🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.os.linux.programowanie
Article #72268

Re: Sterownik I2C

#72268
From: elonica.pl
Date: Wed, 10 Aug 2011 16:03
28 lines
2165 bytes
Witam,

OK. Jeśli moglibyście mnie trochę naprowadzić co nie działa.
Potrzebuje uruchomić RTC (pcf8563) który jest podłączony przez I2C do
procka.

Stworzyłem prosty moduł sterownika i2c-rt3352. Jak na razie niewiele
sie w nim dzieje, ale chciałbym dotrzeć do miejsca w którym wywołanie
hwclock będzie wysyłało do niego ioctl-e. Ładuje po kolei:
insmod i2c-core
insmod i2c-rt3352
insmod rtc-pcf8563
insmod rtc-dev

Po zaladowaniu tego ostatniego mam:
#cat /proc/devices
253 rtc

Dalej tworze noda:
#mknod /dev/rtc c 253 0
#ls -l /dev/rtc
crw-r--r-- 1 0 0 253, 0 /dev/rtc

Jednak w efekcie nadal dostaje:
#cat /dev/rtc
can't open: no such device or address
#hwclock
hwclock:can't open /dev/rtc
Technical Details
Message-ID: <08db7d3a-2544-4ba6-ad05-c74a1dfbfeb7@df3g2000vbb.googlegroups.com>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!postnews.google.com!df3g2000vbb.googlegroups.com!not-for-mail
References: <89c17ddd-6492-40d1-906e-792989e1d4f3@e35g2000yqc.googlegroups.com> <m34o2e5k66.fsf@intrepid.localdomain> <67c90105-f34b-45fe-9a9b-2d07725bf899@fq4g2000vbb.googlegroups.com> <m3tyadgmjn.fsf@intrepid.localdomain>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!agh.edu.pl!news.agh.edu.pl!news.cyf-kr.edu.pl!news.nask.pl!news.nask.org.pl!news.unit0.net!news.glorb.com!postnews.google.com!df3g2000vbb.googlegroups.com!not-for-mail
From: "elonica.pl" <bartlomiej.grzeskowiak@gmail.com>
Newsgroups: pl.comp.os.linux.programowanie
Subject: Re: Sterownik I2C
Date: Wed, 10 Aug 2011 09:03:57 -0700 (PDT)
Organization: http://groups.google.com
Lines: 30
Message-ID: <08db7d3a-2544-4ba6-ad05-c74a1dfbfeb7@df3g2000vbb.googlegroups.com>
References: <89c17ddd-6492-40d1-906e-792989e1d4f3@e35g2000yqc.googlegroups.com> <m34o2e5k66.fsf@intrepid.localdomain> <67c90105-f34b-45fe-9a9b-2d07725bf899@fq4g2000vbb.googlegroups.com> <m3tyadgmjn.fsf@intrepid.localdomain>
NNTP-Posting-Host: 193.101.167.170
Mime-Version: 1.0
X-Trace: posting.google.com 1312992237 20411 127.0.0.1 (10 Aug 2011 16:03:57 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Wed, 10 Aug 2011 16:03:57 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: df3g2000vbb.googlegroups.com; posting-host=193.101.167.170; posting-account=8XX-bwoAAAB8TXULBSxONI_rrl5C-PTv
User-Agent: G2/1.0
X-Google-Web-Client: true
X-Google-Header-Order: HUALESNKRC
X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110628 Ubuntu/10.04 (lucid) Firefox/3.6.18,gzip(gfe)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit