LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-12-2017, 04:27 AM   #1
joris1973
LQ Newbie
 
Registered: Sep 2017
Posts: 1

Rep: Reputation: Disabled
Smile w/r RTC register


Hello everybody,

I am fairly new with Linux programming and have a school assignment reading and writing the RTC

Only problem is that we have to do it in userspace and cannot use operations to devices like(/dev/rtc)
We must write a simple program to read RTC up counter using its adress.
This will fail but we have to describe what happens...
I cannot find a solution on the internet so any help will be greatly appreciated!!

thanks...
 
Old 09-12-2017, 07:37 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,356
Blog Entries: 13

Rep: Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411Reputation: 4411
Hi and welcome to LQ.

A couple of suggestions are to look at sample projects for the Raspberry Pi related to a RTC. There is source code and helpful blog information which can help you down that direction.

No offense to your instructor, but somewhere along the line, .... It needs to talk to /dev/rtc! For instance there are userspace utilities to set time and save it to the RTC, and I believe that while you have a default, you can also specify the exact resource within the command argument, and technically speaking, you are accessing that resource. So their guidance is a minor amount confusing to their students. Perhaps what they ought to have said was that you should do this entirely within the userspace and left it at that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
looking for Open-Source Asset Register Software, IT Equipment and Register Database boninebm Linux - Software 1 09-13-2011 04:56 AM
Help On RTC ! anniedeepa Linux - Newbie 2 11-20-2009 11:26 PM
RTC . raajeshjt Linux - Embedded & Single-board computer 1 11-05-2009 07:39 PM
RTC . raajeshjt Linux - Embedded & Single-board computer 1 11-03-2009 02:22 PM
RTC Alarm wakes up, even while BIOS has RTC alarm disabled mastermind2501 Linux - Newbie 2 12-22-2008 03:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:10 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration