Towards BeagleBoard "CMOS RAM"
Pages: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
Dave Higton (281) 668 posts |
I’m honoured that you find the prospect so enticing :-) Where do you live? |
Trevor Johnson (329) 1645 posts |
Well, it’d just nice to witness the news as it happens! Anyway, I live in Bristol – but unfortunately it’s a no go, as I can’t afford the time. |
Peter van der Vos (95) 115 posts |
On the other hand, why does the CMOS file need a valid/correct timestamp?We never knew when CMOS data was changed so ‘this feature’ can be implemented later. What I would like to know is how many times the file was written. The date field can be misused for that. Increment the creation day or hour every time the CMOS file is written. Should be more interesting.As with any file, it can be useful to see when the information dates from. |
Dave Higton (281) 668 posts |
You’ll have access to the source eventually. The version in CVS will have a proper modification date and time. |
Peter van der Vos (95) 115 posts |
Sorry Dave, I didn’t want to push you into a direction. I hope to give suggestions how you can proceed more rapidly. If, as suggested, the timer initialisation routine is writing to the CMOS it can become difficult to read the time for the time stamp. |
Dave Higton (281) 668 posts |
I’ve got the 2011-02-28 OMAP ROM from the ROOL Downloads pages and booted from it. “Save CMOS” from the Configuration window doesn’t save a file on the hard drive. Is that functionality in the ROM (whose date we know) or in the HardDisc4 image (which, in the case of my BB, is probably well out of date)? |
Andrew Conroy (370) 740 posts |
Don’t we need to do *SaveCMOS <filename> now? I didn’t think the correct “Save CMOS” functionality had been included in the Configuration window yet. |
Dave Higton (281) 668 posts |
Yes – thank you, Andrew, that works. I wonder where I got the idea that the Configuration window’s “Save CMOS” works? |
Andrew Conroy (370) 740 posts |
Great. I guess we need to address the issue of the Configure window not doing it the new way at some point, but as it’s probably written in C then I shall have to leave that for someone else :-( |
Jeffrey Lee (213) 6048 posts |
The “Save CMOS” option should save the file to <Choices$Write>.CMOS. However until I fixed it 6 weeks ago, it would have only saved the first 240 bytes instead of the full amount. (Also while checking that I did check in that change, I’ve spotted that I’ve accidentally modified the Ursula version of the file and checked it into the main branch. Luckily it doesn’t look like it will cause any problems, although I’m not sure why we’re using the main branch anyway if the Ursula branch is better) |
Andrew Conroy (370) 740 posts |
Aha, thanks Jeffrey, missed that change! Just downloaded the HardDisc4 tarball and updated the Configure Runimage file. I should do a complete overwrite of !Boot with the ‘Newer’ option, I guess. |
Trevor Johnson (329) 1645 posts |
Is this a recent change to !Boot? I’m using an old-ish HardDisc4 image from at least a couple of months back and the CMOS file was written fine without me doing an update. |
Andrew Conroy (370) 740 posts |
I’d guess the change is about 6 weeks old :-) Previous versions would save a CMOS file when you clicked on “Save CMOS” but it was only 240bytes instead of the new 2k size. |
Trevor Johnson (329) 1645 posts |
Hmm… will check the size of the file I used with SDCreate last time – I think I kept a copy. |
Trevor Johnson (329) 1645 posts |
244 bytes, which is what I’m also getting with the 28 Feb ROM. |
Andrew Conroy (370) 740 posts |
As well as the ROM, you need the new version of !Configure, which is in the HardDisc4 tarball. |
Trevor Johnson (329) 1645 posts |
Of course – how dopey of me. Thanks. |
Trevor Johnson (329) 1645 posts |
Trevor: a few days ago I e-mailed you a RISC OS image, a CMOS file and a BASIC app to try. Did they arrive with you?[...]Anyway, I’ll give it a go as soon as I can. Sorry. Dave – I still do have your email and its attachments. Because I’m now using a recent ROM which incorporates your work, it perhaps wouldn’t achieve much if I were to test old code now. However, if there’s something there which wasn’t incorporated, then I’ll have a look if you let me know. And I shan’t offer to further test anything related until I’m ready to actually give it a go, i.e. spare SD card(s) and backup boot drive etc. Cheers – hope that’s OK with you. |
Dave Higton (281) 668 posts |
Yes, the need vanished long ago. |
Trevor Johnson (329) 1645 posts |
However until I fixed it 6 weeks ago, it would have only saved the first 240 bytes instead of the full amount.I should do a complete overwrite of !Boot with the ‘Newer’ option, I guess. According to the CVS log entry I don’t think that’s necessary.
Any ideas why I get file sizes 4 bytes greater than expected (with both versions of Configure)? i.e. 244 and 2052. I’ve just emailed code@riscosopen.org with an updated Res file to match VersionNum (2.03) |
Jeffrey Lee (213) 6048 posts |
Although it might still be a good idea to update everything, in case there have been improvements/fixes to other components.
Originally Configure/*SaveCMOS only used to store the 240 bytes of CMOS, but later it was updated to also save the value of <Boot$OSVersion>. This is why “new” versions (from about RISC OS 4 onwards, I think) always save files which are 4 bytes bigger than the actual CMOS size.
Another component that needs updating to have the version number baked into the messages file, then! |
Trevor Johnson (329) 1645 posts |
I didn’t know what to do with the messages file, as there don’t seem to be any version number references. (I did see that the file was referred to in v.1.2 of VersionNum.) |
Dave Higton (281) 668 posts |
Jeffrey:
; int readtimefornvram(struct rtctime *) ; Reads BCD time into given rtctime struct ; Returns zero on success, nonzero on failure readtimefornvram MOV a2, a1 ADRL a1, RTCDevice LDR a3, HALInitialised CMP a3, #0 ADREQL a3, IIC_DoOp_Poll LDRNE a3, OSentries+4*OS_IICOpV B RTCReadTime Shouldn’t there be something in a4 – “kernel workspace ptr”? Where do I get that from? (Sorry, TextSeek falls over when given a large amount of stuff to search through, especially when it includes binary; and the linkages to RTCRead and RTCWrite aren’t obvious.) I’ve been having an “interesting” time calling that code. I made it into a back door in my NVMemoryRead code (call with length <= 0 and it calls the above code instead). It works sometimes – depending on what lines of code follow the call. |
Dave Higton (281) 668 posts |
Also grep has just exited with “The area of memory reserved for the system heap is full” which means that neither of the meaningful RISC OS search tools works. |
Trevor Johnson (329) 1645 posts |
Do you think this means that the included grep source needs ARMv7 compatibility modifications? |
Pages: 1 ... 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18