zet.aluzina.org

End user forums for Zet
It is currently 06 Sep 2010, 12:02

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: Writing the Time
PostPosted: 06 May 2009, 14:33 
Offline

Joined: 10 Jan 2009, 15:14
Posts: 267
Location: Kent, England
I did a Git pull on my work Kubuntu Virtual Box Image and the DE1 BIOS built :)

Daniel keeps saying he cannot build the BIOS, well on linux it is a easy as this.

  • Get BCC from the package manager
  • Start a console session
  • Switch to a good directory, maybe cd Documents
  • git clone git://zet.aluzina.org/zet.git (or git pull in the zet directory if you already did this)
  • Change to the BIOS directory cd zet/src/bios or after a pull cd src/bios
  • make de1

The whole process took about 1 minute (This forum message took much longer to write)

_________________
FordP, from the Garden of England
"Time is an illusion, lunchtime, doubly so"
http://www.minimorph.com/


Top
 Profile Send private message  
 
 Post subject: Re: Writing the Time
PostPosted: 27 Jul 2010, 10:57 
Offline

Joined: 28 Mar 2010, 09:48
Posts: 226
Location: Seattle, WA
I just ran into this same thing, I can write date but not time. I have the RTC working and can read the time from the RTC but can't set it. I guess there is something that has to be done to the bios to make that work? hmmm, I thought time was kept in DOS. Has anyone looked at this? I think it should not be too difficult to add into the bios, maybe it is in bochs somewhere


Top
 Profile Send private message  
 
 Post subject: Re: Writing the Time - got it working, pretty much...
PostPosted: 29 Jul 2010, 09:20 
Offline

Joined: 28 Mar 2010, 09:48
Posts: 226
Location: Seattle, WA
So I figured out the bios and now I have the RTC working and the bios is returning the correct values from the RTC for INT1A AH=2 and AH=4, which are the bios calls for gettime and getdate respectively. Also, now when DOS boots, it has the correct date !!! yeah. So presumeably, DOS is calling the bios to get the date. For some weird reason, it is not doing that for the time. I can now of course, set the time and it keeps time from there, but it is not automatically setting itself from the bios. But the bios time function does work. hmmm, so I guess I could make a simple .com program to run on autoexec.bat to do that, but it really seems like that should be working.


Top
 Profile Send private message  
 
 Post subject: Re: Writing the Time
PostPosted: 30 Jul 2010, 03:32 
Offline

Joined: 28 Mar 2010, 09:48
Posts: 226
Location: Seattle, WA
Well, I went ahead and made a little program settime.exe that reads time from the bios and sets DOS time and put it in the autoexec.bat. This is just a work around for now. I wish I knew why DOS is not doing that on it's own. There is no doubt some little code or something that it is not liking.


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ]  Go to page Previous  1, 2

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group