1. 12 Jun, 2021 1 commit
  2. 21 Jun, 2018 1 commit
  3. 19 Jun, 2018 1 commit
    • John Ballance's avatar
      Ensure cmos loaded at boot time in iMx6 if module active · 21f0aff2
      John Ballance authored
      Detail:
        Writes were saved to a SD based sector, but not read out at
        module initialisation
      Admin:
        (highlight level of testing that has taken place)
        (bugfix number if appropriate)
      
        (overview of change)
      Detail:
        (list files and functions that have changed)
      Admin:
        (highlight level of testing that has taken place)
        (bugfix number if appropriate)
      
      
      Version 0.19. Tagged as 'SDCMOS-0_19'
      21f0aff2
  4. 12 Aug, 2017 1 commit
    • ROOL's avatar
      Keep disc copy in sync with kernel when CMOS is reset · e91f79e2
      ROOL authored
      Detail:
        Check for a CMOS reset and re-save the disc copy if one happened, otherwise the kernel's default set is lost.
        The kernel clears the bit whenever there *isn't* a CMOS reset, so it doesn't matter what the state of the bit is trapped in the disc copy.
      Admin:
        Submission for USB bounty.
      
      Version 0.18. Tagged as 'SDCMOS-0_18'
      e91f79e2
  5. 15 Oct, 2016 1 commit
    • Robert Sprowson's avatar
      Drop StoreInHAL switch · 181b8cde
      Robert Sprowson authored
      No longer support or maintain the code which opened riscos.img and wrote values into it on the Pi.
      However, carry over the logic which attempts to restore the time from the timestamp of the CMOS file from last shutdown so that the time (on a clockless Pi) is a better guess than the Unix epoch until the network time can be read.
      
      Tested on a Pi 3.
      
      Version 0.17. Tagged as 'SDCMOS-0_17'
      181b8cde
  6. 03 Aug, 2015 1 commit
    • Robert Sprowson's avatar
      Build fix · 55290078
      Robert Sprowson authored
      There are no headers to export, so say so.
      
      Version 0.16. Tagged as 'SDCMOS-0_16'
      55290078
  7. 03 Feb, 2015 1 commit
    • Ben Avison's avatar
      Add Raspberry Pi Compute module support · 8a08fb2f
      Ben Avison authored
      Detail:
        The default drive on the Compute module is SDFS::4 rather than SDFS::0 as
        on all other platforms which use this module. Rather than duplicating the
        platform detect code in SDFS, SDCMOS now canonicalises a looser filespec,
        effectively letting SDFS decide which drive to store the CMOS on for us.
      Admin:
        Tested on Compute module and Pi 2
      
      Version 0.15. Tagged as 'SDCMOS-0_15'
      8a08fb2f
  8. 04 Nov, 2014 1 commit
    • Ben Avison's avatar
      Add another SDCMOS build variant · 51cfd31e
      Ben Avison authored
      Detail:
        Enabled by setting StoreAtDiscAddress on the amu command line or using
        -options in the Components file, this allows the CMOS to be stored at a
        fixed address on the SD card. Useful on platforms that don't use a boot
        FAT partition.
      
      Version 0.14. Tagged as 'SDCMOS-0_14'
      51cfd31e
  9. 29 Apr, 2014 1 commit
    • Ben Avison's avatar
      Add fallback for simplified Raspberry Pi distributions · 2069f731
      Ben Avison authored
      Detail:
        Much like the OMAP builds of this module allow for SDFS::0 either being
        a plain FAT disc or a FileCore disc containing a FAT partition, the module
        now allows for cases where SDFS::0 is a FAT disc on Raspberry Pi as well
        as the more normal FileCore disc.
      Admin:
        Tested on Raspberry Pi
      
      Version 0.13. Tagged as 'SDCMOS-0_13'
      2069f731
  10. 23 Dec, 2013 1 commit
  11. 22 Dec, 2013 1 commit
  12. 18 Nov, 2013 1 commit
  13. 14 Jul, 2013 1 commit
    • Robert Sprowson's avatar
      Add startup check for presence of NVRAM HAL device · e85c1977
      Robert Sprowson authored
      Logic is now
       * if NVRAM device is present, go dormant
       * if CMOS file is absent, go dormant
       * otherwise shadow it
      or if StoreInHAL, behave as before.
      Unrelated, added Hdr prefixes to includes so they can be double clicked on to open. Swap out OS_Word subreasons for symbolic names.
      
      Version 0.10. Tagged as 'SDCMOS-0_10'
      e85c1977
  14. 16 Oct, 2012 1 commit
  15. 05 Oct, 2012 1 commit
    • Robert Sprowson's avatar
      Timestamp the RPi HAL on fake HAL CMOS update · 41706835
      Robert Sprowson authored
      As the penny pinchers didn't fit a hardware real time clock, on a CMOS write (or desktop shutdown) the HAL CMOS is stamped with the current time. On power up, if the time is found to be 1970 (the kernel default) the last shutdown time is used instead - while this time is going to be incorrect it should at least ensure the time doesn't go backwards in the moments before NetTime manages to find a time server.
      
      Version 0.08. Tagged as 'SDCMOS-0_08'
      41706835
  16. 03 Oct, 2012 1 commit
  17. 27 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Make non-StoreInHAL variant look for both $.CMOS and $.!Boot.CMOS · 1371ea20
      Jeffrey Lee authored
      Detail:
        s/sdcmos - Reworked initialisation a bit to allow the code to look for CMOS files in multiple places.
        Specifically, non-StoreInHAL variants now look for both $.CMOS and $.!Boot.CMOS.
        This allows the special FAT+FileCore partitioned SD cards to be used with more than just the Raspberry Pi; specifically Pandora+TouchBook, where not requiring USB or a 2nd SD card for a FileCore partition is desireable
      Admin:
        Tested on Pandora
      
      
      Version 0.06. Tagged as 'SDCMOS-0_06'
      1371ea20
  18. 16 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Fix R7 corruption on CMOS write when StoreInHAL is TRUE · 08277dbd
      Jeffrey Lee authored
      Detail:
        s/sdcmos - MyByteV now preserves R7 when StoreInHAL is true, preventing it from being corrupted
      Admin:
        Tested on Raspberry Pi with high processor vectors
        Fixes Boot:Choices.Internet.Startup being left as filetype text, due to InetSetup's InternetEnabled pointer being corrupted and left pointing at &000000C3
      
      
      Version 0.05. Tagged as 'SDCMOS-0_05'
      08277dbd
  19. 01 Sep, 2012 1 commit
    • Jeffrey Lee's avatar
      Reinstate file existence for StoreInHAL={TRUE} case · d020e6b0
      Jeffrey Lee authored
      Detail:
        s/sdcmos - The previous change to remove the filetype check when StoreInHAL={TRUE} also had the side-effect of removing the check for whether the file exists.
        This resulted in the module not terminating itself if the file was absent, and consequently all attempts to write to CMOS would generate a 'file not found' error, causing assorted bits of code to malfunction.
      Admin:
        Tested on Raspberry Pi
      
      
      Version 0.04. Tagged as 'SDCMOS-0_04'
      d020e6b0
  20. 28 Aug, 2012 1 commit
    • Ben Avison's avatar
      Relaxed filetype checking on ROM image file in Raspberry Pi case · 228c9741
      Ben Avison authored
      Detail:
        Too many people were updating the ROM image file (for example using other
        OSes?) such that its filetype wasn't one of the two SDCMOS considered to
        be valid - EPROM or DOS. This resulted in CMOS support apparently not being
        functional for them. Since the filename tested for ("riscos/img") is
        probably quite a strong indicator that it really is a RISC OS ROM image,
        I think it's safe enough to remove the filetype check altogether.
      Admin:
        Tested on a Raspberry Pi
      
      Version 0.03. Tagged as 'SDCMOS-0_03'
      228c9741
  21. 20 Jul, 2012 1 commit
  22. 15 Jul, 2012 1 commit
    • Ben Avison's avatar
      Added support for writing fake CMOS on Raspberry Pi · 6e62fd1f
      Ben Avison authored
      Detail:
        For the Raspberry Pi, the CMOS RAM is embedded within the ROM image, since
        the default bootloader isn't flexible enough to load it from a separate
        file (and we need to know CMOS contents before modules like SDFS have
        initialised). This functionality is enabled by the build switch StoreInHAL
        passed in via the Makefile. Unrelatedly, removed a double free of the module
        workspace on finalisation.
      Admin:
        Tested on Raspberry Pi.
      
      Version 0.02. Tagged as 'SDCMOS-0_02'
      6e62fd1f
  23. 07 Jun, 2012 1 commit
    • Ben Avison's avatar
      Initial import of SDCMOS module · b8788829
      Ben Avison authored
      Detail:
        This module intercepts ByteV so every time a CMOS bte is written, it
        saves the CMOS to the file "CMOS" on whichever card was in drive SDFS::0
        when the module initialised (which will normally be the boot card, since
        the module would not normally be reinitialised after ROM initialisation).
        If you don't want to be nagged to change cards every time the CMOS is
        written, you have two options:
        * Delete the CMOS file from your boot SD card, and update your boot
          script so it doesn't try to load it
        * Use *Unplug SDCMOS
        In either case, you will then require an EEPROM carrier board if you want
        your settings to persist across a reset.
      Admin:
        Tested on beagleboard and beagleboard-xM, both with and without a CMOS
        file on the boot card.
      b8788829