1. 29 Dec, 2017 4 commits
    • alex@thinkpad's avatar
      MPU spells: allow changing various Canon properties that require confirmation from the MPU: · bda26e94b018
      alex@thinkpad authored
      ISO, shutter, aperture, EC, FEC, metering, drive, AF mode, picture style, WB, ExpSim, ALO, HTP, MLU
      all but WB were broken if changed from ML menu/scripts; they are working now (fixme: not included in tests)
      some of them were working from Canon UI before this patch (picture style, WB, ExpSim, metering and drive mode)
      WB was working before, but uses confirmation in logs; updated for consistency
      
      could not test on: 5D2, 40D, 50D, 550D, 650D, 700D, EOSM2
      not working: EOSM (breaks previous tests => disabled)
      
      --HG--
      branch : qemu
      bda26e94b018
    • alex@thinkpad's avatar
      QEMU: experimental mode dial emulation · 09403d4ea610
      alex@thinkpad authored
      works on most models to some extent, except 40D, could not test on 550D, 650D, 70D, EOSM2
      
      --HG--
      branch : qemu
      09403d4ea610
    • alex@thinkpad's avatar
      MPU spells: comment out possible mode switches · f3f3d2de948b
      alex@thinkpad authored
      not required for the GUI, but will interfere later with the mode switching feature
      affected models: 6D (call/return trace changed), 70D, 700D (no side effects noticed)
      
      --HG--
      branch : qemu
      f3f3d2de948b
    • Alex's avatar
      Merged in t3r4n/magic-lantern/qemu_installer (pull request #893) · 060a1f0acd75
      Alex authored
      Further automation in install script to compile directly at the end.
      
      --HG--
      branch : qemu
      060a1f0acd75
  2. 28 Dec, 2017 5 commits
  3. 06 Dec, 2017 1 commit
  4. 27 Dec, 2017 5 commits
  5. 24 Dec, 2017 2 commits
    • alex@thinkpad's avatar
      QEMU install.sh: WSL fixes · 0a7e1da6cdb5
      alex@thinkpad authored
      - checking for Ubuntu (uname -a does not report Ubuntu)
      - hide 32-bit toolchain options
      
      --HG--
      branch : qemu
      0a7e1da6cdb5
    • alex@thinkpad's avatar
      run_canon_fw.sh: Mac fixes · eeacf80816df
      alex@thinkpad authored
      - use is_mounted (lsof checks are enough)
      - typo in osascript when trying to bring QEMU window to front
      
      --HG--
      branch : qemu
      eeacf80816df
  6. 23 Dec, 2017 4 commits
    • alex@thinkpad's avatar
      run_canon_fw.sh: fine-tuned checking of whether SD/CF image is in use · 54c02f65e81f
      alex@thinkpad authored
      - use lsof to detect whether another process opened the SD/CF image for writing
      - only allow multiple instances of QEMU if using -snapshot (read-only access to SD/CF image)
      - check all results returned by losetup (note: lsof does not show whether the image is mounted)
      - use alternate methods (grepping mount output) if losetup is not available
      - to be tested/refined on Mac and Windows 10 WSL
      
      --HG--
      branch : qemu
      54c02f65e81f
    • alex@thinkpad's avatar
      QEMU: RTC workaround to bring back 400D GUI · 44bce28e2993
      alex@thinkpad authored
      (broken in 0d654a083662, not covered by tests as it's very slow)
      
      --HG--
      branch : qemu
      44bce28e2993
    • alex@thinkpad's avatar
      QEMU: 40D GUI working! · 0bdb0619d0ee
      alex@thinkpad authored
      - MPU RX register was read 8 bits at a time (other models so far used 16-bit reads)
      - using 50D MPU spells
      - button codes found with extract_button_codes.py, from existing ML port
      - HotPlug: external monitor, USB, Toe, erase switch
      - CFDMA: new channel, protocol tweaks, enabled interrupts
      - Powersave workaround (GUI locked up after some seconds of inactivity, similar to 1300D)
      
      --HG--
      branch : qemu
      0bdb0619d0ee
    • alex@thinkpad's avatar
      QEMU: fix USB CONNECT on 450D/1000D · ff562b6fe2b7
      alex@thinkpad authored
      (incidentally, this also fixes the card format dialog on these cameras - likely UILock issue)
      
      --HG--
      branch : qemu
      ff562b6fe2b7
  7. 22 Dec, 2017 2 commits
    • alex@thinkpad's avatar
      QEMU: 1300D GUI works! · 7f1a436c2040
      alex@thinkpad authored
      - this camera uses a different DryOS timer (totally unexpected!)
      - removed JPCORE patch (firmware expects this to be initialized properly)
      - generic MPU spells; button codes from 1100D
      - powersave workaround (without it, GUI would lock up after a few seconds of inactivity)
      - no patches required!
      
      --HG--
      branch : qemu
      7f1a436c2040
    • alex@thinkpad's avatar
      QEMU: cleaned up serial flash handling on models that don't use one · 351f6deb24e5
      alex@thinkpad authored
      previously, they were called on unrelated SIO/SDIO channels, with little or no side effects,
      other than breaking a few function call trace tests
      
      --HG--
      branch : qemu
      351f6deb24e5
  8. 21 Dec, 2017 3 commits
  9. 19 Dec, 2017 4 commits
  10. 18 Dec, 2017 3 commits
  11. 17 Dec, 2017 1 commit
  12. 18 Dec, 2017 1 commit
  13. 17 Dec, 2017 1 commit
  14. 16 Dec, 2017 4 commits
    • alex@thinkpad's avatar
      QEMU: shared memory initialization for DIGIC 6 (MEMDIV messages) · 5154ad0cb505
      alex@thinkpad authored
      to try: SHM_SHOW_INFO / SHM_SHOW_DIST_INFO on serial console (only 80D, 750D and 760D reach this far)
      ( sleep 3; echo "akashimorino";
        sleep 1; echo "SHM_SHOW_INFO";
        sleep 1; echo "SHM_SHOW_DIST_INFO";
      ) | ./run_canon_fw.sh 80D -serial stdio
      
      --HG--
      branch : qemu
      5154ad0cb505
    • alex@thinkpad's avatar
      QEMU: refactored serial flash SIO handler with io_log · 26d2dc2fc97c
      alex@thinkpad authored
      --HG--
      branch : qemu
      26d2dc2fc97c
    • alex@thinkpad's avatar
      QEMU: refactored serial flash connections to avoid hardcoding camera model names · 6774de542a47
      alex@thinkpad authored
      fixme: D3 models and 1300D still hardwired to serial flash handlers to pass the tests
      
      --HG--
      branch : qemu
      6774de542a47
    • alex@thinkpad's avatar
      QEMU: experimental serial flash support for 80D · 652133663c39
      alex@thinkpad authored
      using SFDATA.BIN from 70D, patched at 0x10004 from 09 8B C1 20 to 00 00 01 20
      meaning: size of 70D's property block at 0x10000 is 0x12BC98 (data is shifted by 4 bytes)
      but 80D expects a maximum size of 0x12000 in FE47BF40 ("Liar Valid Packages!!" if the size check fails)
      so we trim the property block at the expected size of 0x12000
      this will lose a few properties, but at least the emulation goes further (no SF dumper for D6 yet)
      other 8MB SFDATA.BIN patched in the same way should also work (700D, 650D, EOSM, 6D),
      but their data block at 0x10000 is larger, so more properties will be probably lost (not tested)
      
      --HG--
      branch : qemu
      652133663c39