new-dryos-task-hooks

View source
new-dryos-task-hooks
  • Contributors
    1. Loading...
Author Commit Message Date Builds
17 commits behind default.
Alex
Tasks: new method for checking whether an interrupt is active (old method was not compatible with DIGIC 7; to be tested on all models)
Alex
Merged qemu into new_dryos_task_hooks
Alex
run_ml_all_cams.sh: fix QEMU_DIR once more
Alex
run_ml_all_cams.sh: fix QEMU_DIR
Alex
Menu: hack to allow browsing ML menu on EOSM and EOSM2 (requires CONFIG_QEMU=y)
Alex
Merged makefile-updates into qemu (also updated README regarding "make install_qemu" on modules)
Alex
QEMU: moved default installation directory to qemu-eos Rationale: user is likely to have another qemu directory, unrelated to ML (such as the vanilla qemu repo) Can be changed by setting QEMU_DIR, e.g. "export QEMU_DIR=qemu" before running install.sh will install QEMU in the old path To be thoroughly tested.
Alex
Makefile: moved default QEMU directory to qemu-eos
Alex
QEMU: trim HTML logs to 10000 lines if higher (very slow to render; also, at these sizes, browsing/grepping plain text is way faster)
Alex
Makefile: also updated QEMU_INSTALLED_DBI_DIR to use QEMU_PATH
Alex
Makefile: fix copy/paste error
Alex
Makefile: fix cleaning up after "make zip"; removed warning
Alex
Makefile: allow changing QEMU installation directory from Makefile.user and/or the environment (QEMU_DIR)
Alex
Makefile: zip and install_qemu targets for modules
Alex
Makefile: always clean after running install_check http://www.magiclantern.fm/forum/index.php?topic=991.msg194444#msg194444
Alex
Makefile: always rebuild version.o
Alex
Makefile: prevent install_check from running in parallel with building regular ML (conflicts while compiling from the same sources - http://www.magiclantern.fm/forum/index.php?topic=991.msg194315#msg194315 )
Alex
GDB scripts: logging hook for prop_deliver
Alex
GDB scripts: logging hooks for CreateStateObject useful to find all state objects created during the emulation http://www.magiclantern.fm/forum/index.php?topic=17969.msg196010#msg196010
Alex
QEMU installer: fine-tuned prompt when reinstalling
Alex
QEMU: fix Q button handling on 550D, 600D, 1100D (to be tested)
Alex
QEMU readme: table of contents; minor typos
Georg Hofstetter
QEMU readme: GPIO section update
Alex
6D: fix task_max
Alex
boot-hack: use CONFIG_NEW_DRYOS_TASK_HOOKS to enable new-style DryOS hooks (undefining HIJACK_TASK_ADDR was not obvious)
Alex
dump_srec.py: updated to decode lens firmware updates (*.lfu) http://www.magiclantern.fm/forum/index.php?topic=20969
Alex
QEMU readme: misc updates (formatting, rephrasing); GPIO section
Alex
QEMU installer: make it clear the script expects user input when it's asking whether to compile QEMU
Daniel Fort
eject removes the disk image completely while unmount doesn't remove the disk image from /dev.
Georg Hofstetter
reworked description of the peripherals
Alex
QEMU install: fix mistakes
Alex
QEMU readme: typos, formatting
Alex
QEMU readme: note for Bitbucket not always rendering the RST (reloading the page usually works; apparently it doesn't need javascript, so what's going on?)
Alex
QEMU readme: some basic concepts related to how the DIGIC hardware works (some parts adapted from https://jsandler18.github.io/ )
Alex
QEMU readme: misc notes - tip to save SD images as qcow2 (they take less disk space) - instrumentation tools - history updates - minor formatting fixes
Alex
QEMU: use 600D MPU messages for 1300D fixes toggling drive mode, http://www.magiclantern.fm/forum/index.php?topic=17969.msg196013#msg196013
Alex
GDB scripts: hide warnings about undefined task addresses when running with patches.gdb (when running with debugmsg.gdb, full context info is printed)
Alex
GDB scripts: fix address in log_result (LR is no longer valid, as we are no longer at the beginning of a function call)
Alex
QEMU install.sh: recent git no longer accepts empty identities http://www.magiclantern.fm/forum/index.php?topic=20214.msg195892#msg195892
Alex
QEMU scripts: removed hardcoded references to ../magic-lantern and documented how the directories can be customized
Alex
QEMU readme: documented directory structure
Alex
boot-hack: uninstall cache hacks after booting (to be tested)
Alex
boot-hack: more debug messages regarding memory allocation (for HIJACK_CACHE_HACK and RSCMGR_MEMORY_PATCH_END)
Alex
boot-hack: fix CONFIG_HELLO_WORLD & friends when booting with HIJACK_CACHE_HACK (task_dispatch_hook should not be set in this case)
Alex
boot-hack: fix task dispatch hook message missing when booting with HIJACK_CACHE_HACK
Alex
QEMU logging: cleaned up hacks around memory logging options (logging tools may require any memory logging backends, but in the logs, only those items specifically requested by user will be printed)
Alex
run_canon_fw.sh: hide osascript messages on Mac (when trying to bring the QEMU window in foreground, but there isn't any)
Alex
QEMU install: keep the 64-bit gdb warning prompt on Mac and WSL (to be tested)
Alex
QEMU install: attempt to fix warnings about 64-bit gdb on Mac and WSL (to be tested) the script should print warnings about them, but accept them as valid
Alex
QEMU install: fix path issue after compilation
Alex
QEMU install: fix warning about lsb_release on Mac or other systems without it
Alex
QEMU install: attempt to fix warnings about 64-bit GDB on Mac (to be tested)
Alex
QEMU install: fine-tuned QEMU compilation, to be tested (error handling, display the next steps after compilation finished)
Alex
QEMU install: on WSL and Mac, try the latest 64-bit toolchain (to be tested) Linux installation still uses the 32-bit one (older version) TODO: attempt to compile a 32-bit GDB for Mac Reworded warnings, as a 32-bit GDB is now only needed for development; it's no longer mandatory for running the examples, since http://www.magiclantern.fm/forum/index.php?topic=2864.msg190823#msg190823
Alex
QEMU: simplified SFDMA mapping by removing model-specific redirection (they are fairly consistent across all models)
Alex
QEMU tests: 40D call trace still not fully deterministic (CF uses some status polling, not just DMA) re-applying workaround (only check the "basic" call trace, without function arguments and extra info)
Alex
QEMU: documented SD detect registers on recent DIGIC 5 models (non-functional)
Alex
QEMU: refactored CFDMA/UartDMA handling to remove model-specific redirections enabled UartDMA on all models (including VxWorks), but it's not working yet 70D: IFE DMA handling moved from SDDMA to CFDMA (minor, no noticeable side effects other than breaking the tests)
Alex
QEMU: fix 5D3 CF emulation (disabled by default; can be enabled from mpu_spells/5D3.h)
Alex
QEMU: documented property groups ("complex" MPU messages) including GDB logging hooks to find them
Alex
QEMU tests: relaxed shutdown checks (some false positives caused by non-deterministic emulation) (note: menu tests are executed non-determinstically, unlike the call trace, so each run is different)
Alex
QEMU: attempt to get deterministic execution on CF models when using -icount operations are slowed down to avoid timing variations default behavior (without -icount) is not affected on main firmware, the call/return trace test is now deterministic on all models! fixme: CF emulation in PIO mode is still non-deterministic
Alex
GDB scripts: generic logging hooks
Alex
QEMU readme: example of identifying the location of an assertion using gdb and -d callstack; minor updates
Alex
QEMU: updated 750D/760D GDB scripts and tests; file I/O works! (using 750D SFDATA.BIN)
Alex
Merged in t3r4n/magic-lantern/qemu (pull request #894)
Alex
QEMU: fix some MPU spells (typos caught by automated checking)
t3r4n
Added the serial flash line for 750D and 760D into model_list. See https://www.magiclantern.fm/forum/index.php?topic=17627.msg195357#msg195357
Alex
QEMU readme: minor link updates
Alex
QEMU readme: moved developer and reverse engineering notes to a new file (reason: bitbucket seems to have trouble rendering large files)
Alex
QEMU readme, GDB scripts: info on debugging symbols; more symbol-file choices in comments (depending on what you are debugging - regular ML, reboot shim or Canon firmware)
Alex
QEMU readme, GDB scripts: recommend '-ex quit' after patches.gdb, but not after debugmsg.gdb reason: when running with patches.gdb, you may not want to type "quit" after stopping the emulation however, this trick removes the ability to use interactive breakpoints in GDB (it would quit as soon as reaching one), so don't recommend it for debugmsg.gdb
Alex
QEMU readme: fix typos; minor updates
Alex
QEMU: fix serial flash DMA on DIGIC 6 (tested on 80D, 5D4 and 750D with PR #894); refactored serial flash to use its own DMA (not shared with SD)
Alex
QEMU: updated 80D test results for actual serial flash contents http://www.magiclantern.fm/forum/index.php?topic=17360.msg195519#msg195519
Alex
QEMU readme: formatting
Alex
QEMU readme: GDB scripting examples, including callstack
Alex
QEMU readme: use em-dashes instead of simple dashes
Alex
QEMU: changed I/O logging behavior - "-d io" implies "-d nochain -singlestep" (this prints correct PC values, but emulation is slower) - "-d io_quick" to get the old behavior (faster, with incorrect PC values) - "-d io_log" to print mmio_log entries for dm-spy-experiments - "-d nochain" always implies "-singlestep" (easier to enable this mode on other kind of logs that may need it) - updated README
Alex
QEMU readme: moved the "Incorrect firmware version" section to Hacking (it's no longer an issue for regular users)
Alex
QEMU readme: started to document the steps needed to emulate Canon GUI
Alex
QEMU readme: minor updates, corrections
Alex
QEMU tests: updated after changing the SD image - format screenshots slightly different at free space (before only) - call/return traces are also different (different layout on the SD image)
Alex
QEMU: updated sd.img.xz with latest portable display test (main change: fix identification of firmware version - 7889972)
Alex
GDB scripts: fix assert handling on EOS M10
Alex
QEMU: moved 7D2 patches to GDB scripts; initial GDB script for 7D2 slave
Alex
QEMU: defined FPGA memory regions for 5D2 and 50D (just to prevent some warnings; nothing changed in functionality)
Alex
QEMU tests: run all cleanups on CTRL-C (stop all background tasks, make sure QEMU is no longer running, remove temporary files...)
Alex
QEMU: enabled serial flash emulation on 5D4 (emulation on main firmware doesn't go that far, but can be tested from bootloader menu)
Alex
QEMU: refactored serial flash CS handling to reduce duplicate code (moved CS register and tested value to model_list.c)
Alex
QEMU tests: reworked menu tests (including format) - use vncexpect whenever the md5 of the next screen is known (reduces timing sensitivity and also faster overall) - no more wait hacks required for format tests - use a single vncdotool command whenever possible (faster) - removed duplicate code (function for sending a menu sequence) - fine-tuned progress indicator
Alex
MPU spells: allow changing various Canon properties that require confirmation from the MPU: 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)
Alex
QEMU: experimental mode dial emulation works on most models to some extent, except 40D, could not test on 550D, 650D, 70D, EOSM2
Alex
MPU spells: comment out possible mode switches 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)
Alex
Merged in t3r4n/magic-lantern/qemu_installer (pull request #893) Further automation in install script to compile directly at the end.
Alex
QEMU: more MPU properties identified by brute-forcing
Alex
QEMU: formatting fixes in extract_init_spells.py / known_spells.h
Alex
QEMU: added property IDs to known MPU spells also alternate names as comments
Alex
QEMU: identified more MPU spells, corrected a few others - experimentally (playing around in menus) - brute-forcing MPU messages to identify properties - cross-checked names and IDs in startup logs and ROM strings - still, it's impossible not to find a few incorrect ones
Alex
QEMU: experiment - brute-force MPU messages to find out their meaning
Alex
GDB scripts: hooks for logging properties (prop_request_change, MPU property functions) (example for 5D3.113 and 550D.109; useful for identifying properties)
Alex
qemu-util: fix compilation in bootloader context; sample boot messages in reboot.c, e.g. printing firmware signature or RESTARTSTART address (only present in the output binary when compiling with CONFIG_QEMU=y)
Alex
GDB scripts: disable serial flash version check patch on EOS M2 not really needed (the error message seems harmless and doesn't prevent GUI emulation) but changed ML firmware signature checking and won't be needed after getting a serial flash dump from a real camera anyway
Alex
QEMU install.sh: further Ubuntu/WSL cleanups (minor)
Alex
QEMU install.sh: fine-tuned messages and date format when renaming an older installation
Alex
Merged in t3r4n/magic-lantern/qemu_install_improvement (pull request #892) Option to rename or delete existing QEMU directory during installation
Alex
QEMU install.sh: WSL fixes - checking for Ubuntu (uname -a does not report Ubuntu) - hide 32-bit toolchain options
Alex
run_canon_fw.sh: Mac fixes - use is_mounted (lsof checks are enough) - typo in osascript when trying to bring QEMU window to front
Alex
run_canon_fw.sh: fine-tuned checking of whether SD/CF image is in use - 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
Alex
QEMU: RTC workaround to bring back 400D GUI (broken in 0d654a0, not covered by tests as it's very slow)
Alex
QEMU: 40D GUI working! - 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)
Alex
QEMU: fix USB CONNECT on 450D/1000D (incidentally, this also fixes the card format dialog on these cameras - likely UILock issue)
Alex
QEMU: 1300D GUI works! - 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!
Alex
QEMU: cleaned up serial flash handling on models that don't use one previously, they were called on unrelated SIO/SDIO channels, with little or no side effects, other than breaking a few function call trace tests
Alex
QEMU: updated 80D tests for 1.0.2; DCIM test also works!
Alex
QEMU: 80D file I/O support from main firmware (experimental, tested with "dumpf" in the serial console)
Alex
QEMU: enable card support on generic MPU spells (experimental, some models work better than others)
Alex
GDB scripts: some experimental 80D patches, to be fixed in the emulation
Alex
GDB scripts: log state object transitions (stubs for 550D and 80D)
Alex
GDB scripts: 80D logging hooks for semaphores and message queues (disabled by default; also updated assert_log for 1.0.2)
Alex
QEMU: RomRead DMA is actually XDMAC (up to 4 channels; 80D only uses 2)
Alex
Task hooks: disabled task switch debug messages by default (too verbose)
Alex
550D, 600D: fix memory allocation (amend 5b4fe18)
Alex
QEMU: experimental MPU support for 80D, 750D and 760D seems to work with generic spells - at least the emulation goes further also minor refactoring / comments on MPU registers for earlier models also enabled for 5D4 just to avoid a crash - emulation doesn't reach mpu_send yet, but it calls InitializeIntercom
Alex
QEMU tests: do not start if compilation fails (small nitpick that could result in false test results)
Alex
QEMU: updated tests after b75e1342711a (context info is now correctly printed when returning from msg_queue_receive, take_semaphore etc)
Alex
QEMU: generic MPU spells compatible with most EOS models (experimental)
Alex
QEMU logging: fix losing track of called functions when DryOS tasks are switched outside interrupts see the assertion error on 5D4 callstack consistency test (after 442b691) to be tested; there was a similar error was on 80D, non-deterministic (encountered when running with -d debugmsg,callstack,tail with all patches enabled)
Alex
6D: ADTG shutter addresses did not work, trying another set
Alex
QEMU: MPU status doesn't seem to matter much; simplified to prepare for DIGIC 6 compatibility todo: cross-check with actual hardware
Alex
6D: fix ADTG shutter addresses after memory layout change http://www.magiclantern.fm/forum/index.php?topic=5601.msg194754#msg194754 http://www.magiclantern.fm/forum/index.php?topic=5601.msg191914#msg191914 http://www.magiclantern.fm/forum/index.php?topic=15088.msg190890#msg190890 not tested, just confirmed the new addresses in QEMU fixme: are these deterministic? under what conditions?
Alex
QEMU: shared memory initialization for DIGIC 6 (MEMDIV messages) 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
Alex
QEMU: refactored serial flash SIO handler with io_log
Alex
QEMU: refactored serial flash connections to avoid hardcoding camera model names fixme: D3 models and 1300D still hardwired to serial flash handlers to pass the tests
Alex
QEMU: experimental serial flash support for 80D 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 f…
Alex
QEMU: RomRead DMA for DIGIC 6, used for initializing property blocks (very similar to regular DMA, slightly different register offsets)
Alex
QEMU: slow down UART input to work around race conditions (not exactly clean, but at least DryShell tests are now passing on all models)
Alex
QEMU: fixed UART on DIGIC 6 (DryShell works!) fixme: tests are failing, but typing on the UI works fine note: DIGIC 4/5 emulation changed a bit (0xC0270000 was misinterpreted before)
Alex
QEMU: found out why DIGIC 6 models were getting stuck at startup! The firmware was reading the memory layout from CP15 registers; most of them were emulated well in QEMU, except ATCM and BTCM, which were implemented as NOP. They are still NOP in current QEMU git. Patching the memory regions loop is no longer required! (keeping empty 80D patch for future use)
Alex
MPU spells: some names could not be identified (fixed)
Alex
QEMU tests: call mtools_setup.sh rather than duplicating its work (fixes some tests failing if mtools is configured to use lowercase by default)
Alex
run_canon_fw.sh: on Mac, bring QEMU window to foreground (by default, the window is opened behind the terminal, so one may not even notice it)
Alex
run_canon_fw.sh: print camera name in QEMU window title
Alex
run_canon_fw.sh: only clear the terminal if running in interactive mode https://serverfault.com/questions/146745/how-can-i-check-in-bash-if-a-shell-is-running-in-interactive-mode
Alex
QEMU logging: always log unmapped memory regions
Alex
GDB scripts: fix text alignment with "native" logging options (minor)
Alex
QEMU install.sh: fix null byte warning when parsing model list (bash 4.4 and newer? http://www.magiclantern.fm/forum/index.php?topic=2864.msg193118#msg193118 )
Alex
QEMU install: print fewer help details after installation; link to the online documentation
Alex
QEMU readme: formatting, typos
Alex
QEMU readme: more info regarding custom SD/CF images
Alex
QEMU readme: more ways to install ML to the virtual SD/CF images
Alex
QEMU readme: note about "make install_qemu" not available in all branches
Alex
QEMU readme: note about models using a serial flash
Alex
QEMU README: minor updates to 050a3cc
Alex
Merged unified into qemu
Alex
Merged in makefile-updates (pull request #873) Makefile updates to use any valid ARM toolchain
Alex
Makefile: fix 7D build_fir
Alex
Makefile: fix building Lua with gcc 4.7.3
Alex
Makefile: only attempt to build/install/check ML-SETUP.FIR if there is a valid installer directory (some platforms may not have have one - 7D_MASTER, new ports)
Alex
Card LED: always use CARD_LED_ADDRESS, LEDON and LEDOFF (backed out 5bfab05 to fix installer on 7D - 0x800c00 not mandatory?)
Alex
Makefile: moved 7D-specific tweaks (FIR etc) into main target (7D.203) for consistency with other platforms, including 7D2 to build the regular FIR: make build_fir to build the installer FIR: make ML-SETUP.FIR -B
Alex
Makefile: FIR building updates - always install ML-SETUP.FIR (zip, install, install_qemu) - build_fir for regular ML (not installer) now gives AUTOEXEC.FIR - to recompile ML-SETUP.FIR: "make ML-SETUP.FIR -B" from platform directory - "make zip" will also compile the installer from source, without replacing the precompiled ML-SETUP.FIR (just to make sure the source code changes do not interfere with building the installer)
Alex
Makefile: fix building xor_chk from its own directory
Alex
Makefile: more .NOTPARALLEL fixes
Alex
Makefile: fix 7D FIR path (just for consistency)
Alex
Makefile: use .NOTPARALLEL in top-level Makefiles, rather than double-colon rules ML platforms/modules are built sequentially, but within each platform/module, parallel build is used to be tested on Mac with -j8 (on Make 3.81, double-colon are executed in parallel, while in 4.2.1 they are sequential)
Alex
Makefile: fix README.rst generation with POSIX shells to reproduce: cd modules/filepref; make clean; rm -f README.rst; make SHELL=dash
Alex
Makefile: serialize "make install", fix some related dependencies parallel copying could lock up WIFI_SD cards to reproduce: "WIFI_SD=y make install ML_MODULES=" from platform/CAM directory
Alex
Makefile: monitor wifi connection when using WIFI_SD=y (experimental, helps troubleshooting connectivity issues)
Alex
Makefile: minor refactors for WIFI_SD (coding style) also fixed a typo
Alex
Modules: better error handling for missing rst2html http://www.magiclantern.fm/forum/index.php?topic=17099
Alex
Makefile: speed optimizations - helper to evaluate only once, only if used - modules hgstamp: only evaluate if used - CF_CARD, VERSION: only evaluate once if used - PWD is special? renamed to avoid unneeded shell calls Profiling tips: - perf record make; perf report --sort comm - make SHELL="sh -x" - make clean SHELL="sh -x" |& grep "^+" | sort | uniq -c
Alex
Makefile: enable parallel compilation for modules, but compile them sequentially huge modules like Lua will compile much faster compiling everything in parallel is not 100% safe (some dependency checks may fail)
Alex
Makefile: do not print toolchain info on recursive calls
Alex
Makefile: reworked global targets install: doesn't make sense, as we no longer have a "one size fits all" build capable of running on all models (alternative: 5D3.113_install, 60D_install etc) zip: build zip for each camera model, sequentially (parallel build still used within each zip) all: similar to zip (build camera models sequentially, but use parallel compilation within each platform) clean, check: these can run in …
Alex
Makefile: fix module dependency checking on "make zip" by default, a module succeeds if it can be loaded on any camera model, from those compiled (doesn't matter which one) when using "make zip", we only want to include the modules compatible with current camera model, without considering other models (fixme: not the cleanest way to implement this)
Alex
Makefile: fix module_strings dependency rule (previously, there was an error with make -j)
Alex
Makefile: dropped ML_MODULES_STATIC (unused) and renamed ML_MODULES_DYNAMIC to ML_MODULES note: if you have customized the module list in Makefile.modules.user, just rename ML_MODULES_DYNAMIC to ML_MODULES to compile without modules: make 5D3 ML_MODULES=
Alex
Makefile: fix "make clean" from modules directory with stale modules from other branches https://bitbucket.org/hudson/magic-lantern/pull-requests/873/makefile-updates-to-use-any-valid-arm/diff#comment-48250675
Alex
Makefile: fix running from other directory e.g. from qemu: make -C ../magic-lantern/ 500D_install_qemu
Alex
Makefile: model-specific install targets for the root directory examples: make 500D_install; make 500D_install_qemu
Alex
7D: fix compiling with FEATURE_VIDEO_HACKS
Alex
Makefile: fix building 7D_MASTER
Alex
Merged makefile-updates into qemu
Alex
Makefile: minor cleanups from 0b9b550
Alex
Makefile: backout 0b9b550 ?= not needed when overriding from command-line, e.g. make CONFIG_QEMU=y
Alex
Makefile: always define CONFIG_$(MODEL)_$(FW_VERSION) e.g. CONFIG_5D3_113, CONIFG_7D_203 and so on
Alex
Makefile: fix for GNU make 3.8.1 (thanks g3gg0)
Alex
Makefile: fix newline issue with WIFI_SD=y
Alex
Merged makefile-updates into qemu
Alex
Makefile: fix Mac issue (undefine not supported) http://www.magiclantern.fm/forum/index.php?topic=2864.msg192847#msg192847
Georg Hofstetter
fixed late evaluation issue in rule builder
Alex
Makefile.platform.map: fix indentation
Alex
run_canon_fw.sh: Mac compatibility fixes
Alex
QEMU: 5D3 1.2.3 GUI works! fixme: not covered by tests
Alex
QEMU: refactored RTC CS each model now uses its own GPIO, rather than enabling all possible registers on all models 70D call trace test: minor change to 0xC02201F8, no impact on functionality
Alex
QEMU: 70D GUI works! - GDB patch required (SIO locking up DisplayMgr task, probably touch screen not responding) - RTC (similar to 6D, but on different SIO channel) - updated tests (menu, format, call trace) - minor change to 100D call trace test (0xC022005C = 450D RTC CS; no impact on functionality)
Alex
QEMU: 6D GUI works! - MPU log and serial flash from Audionut, https://bitbucket.org/hudson/magic-lantern/issues/1974/#comment-40853231 - RTC (a bit hackish, to be refactored) - GPIOs for HDMI and WriteProtect - tests (menu, format, call trace) - patched MPU spells to avoid an intermittent issue (race condition when setting picture quality?)
Alex
QEMU: fix typo in MPU spells script (broken in a42e55a) "Complete WaitID = 0x80020000" should have been commented out this disables LiveView "emulation" in 700D/650D and fixes ML menu for nightly tests todo: add a test for this (existing tests did not catch this issue)
Alex
QEMU tests: reordered (important, breaks often and/or very fast == runs earlier)
Alex
QEMU tests: run in parallel when it's straightforward to do so (experimental) not parallelized: tests requiring custom builds or checking card contents afterwards
Alex
QEMU tests: prepare for parallel execution (3) - stop each QEMU instance from the monitor socket - two methods: shutdown (clean DryOS shutdown, for GUI tests) and quit (clean QEMU shutdown without turning off the guest OS, for all other tests) - check for any stale qemu-system-arm / arm-none-eabi-gdb only after each set of tests
Alex
QEMU tests: prepare for parallel execution (2) - unique QEMU_JOB_ID for each job - unique GDB port and VNC display, derived from QEMU_JOB_ID
Alex
QEMU tests: prepare for parallel execution (1) - allow overriding GDB port for each instance (replaced '-s -S' with '-S -gdb tcp::$GDB_PORT'; gdb receives '-ex "set \$TCP_PORT=$GDB_PORT"') - allow overriding VNC display for each instance (replaced ':12345' with '$VNC_DISP') - indentation of qemu/gdb commands
Alex
QEMU scripts: rough backend support for parallel execution - requires manual resource allocation - QEMU_JOB_ID used as prefix for qemu.monitor (each instance would get its own monitor socket) - GDB port can be overriden and derived from QEMU_JOB_ID (see README) - VNC port can be handled in the same way - README updated
Alex
QEMU tests/readme: recent netcat requires -N
Alex
QEMU tests: one more race condition fix
Alex
QEMU tests: speed optimizations - only restore SD/CF images if they were actually changed - do not wait for gdb if it's not running - overhead with no tests running: from ~30 seconds to ~10 seconds
Alex
QEMU tests: more race condition fixes
Alex
QEMU tests: attempt to fix some race conditions
Alex
QEMU tests: minor fixes after refactoring
Alex
QEMU tests: use -snapshot to prevent changing SD and CF images (exceptions: tests for ROM dumper and DCIM, where we check card contents to validate the test result)
Alex
QEMU tests: allow selecting only specific tests to run (lowercase arguments) Can be mixed freely with camera models (uppercase arguments) Default (no arguments): run all tests
Alex
QEMU tests: refactored each test as a bash function - top-level continue -> return - moved common preparations to run_test - each test function uses globals $CAM and $TEST (camera model and test output basename) - test outputs named $TEST.whatever or $TEST-foo.bar - generic cleanup after each test - top-level for loops kept; the loop body calls run_test
Alex
QEMU: make sure mtools prints uppercase filenames by default (our tests assume this behavior, but some systems have different defaults)
Alex
Merged makefile-updates into qemu
Alex
550D, 600D: reserve 576K for ML (640 is a bit too much, 512 is too tight)
Alex
Makefile: rules for "make install_qemu" (to use them, qemu has to be installed first)
Alex
Makefile: with WIFI_SD=y, ping the card until it comes online (useful for router connections)
Alex
Makefile: portable way to get number of processors
Georg Hofstetter
further makefile cleanup, added make check to show which models were built and their memory usage
Georg Hofstetter
fix 'all' target for models
Georg Hofstetter
disable ASSERT for 7D_MASTER