Andrei Radulescu
24c18d2c4b
agnos updater: set decompress max_length ( #33320 )
...
* agnos: decompress max_length
* flash last chunk after eof
* don't decompress more than length
* cleanup
---------
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ba098f509b
8 months ago
Justin Newberry
b982781570
tool to create casync manifest ( #32131 )
...
* manifest tool
* newline
* add to jenkins
old-commit-hash: b331e4a15b
1 year ago
Justin Newberry
b33aef01b8
move casync release creation to use a tarball of files ( #32089 )
...
* tar archive instead
* fix
* move this here
* migrate these
* fix this
* update readme
* fix that
* try to build nightly
* Revert "try to build nightly"
This reverts commit 4ea680cb6a
.
* caexclude is no longer required
* finish up
* sorted
* need this
* and that
* context mnager
* path based
old-commit-hash: 69982d43cd
1 year ago
Cameron Clough
9bd90112d0
use pyupgrade to update to new typing syntax ( #31580 )
...
* add pyupgrade hook
* run pyupgrade (pre-commit run -a)
* ruff --fix
* Revert "add pyupgrade hook"
This reverts commit 56ec18bb6b
.
* revert changes to third_party/
* manual type fixes
* explicit Optional wrapping capnp objects
old-commit-hash: 995250ae49
1 year ago
Adeeb Shihadeh
c925fd2d89
[bot] Update Python packages and pre-commit hooks ( #31508 )
...
* Update Python packages and pre-commit hooks
* remove that
---------
Co-authored-by: jnewb1 <jnewb1@users.noreply.github.com>
Co-authored-by: Justin Newberry <justin@comma.ai>
old-commit-hash: be4bbca9a3
1 year ago
Adeeb Shihadeh
16ec56398c
add openpilot prefix to imports ( #29498 )
...
* add openpilot prefix to imports
* more
* more
* fix docs
* fix linter
* bump submodules
* fix patched tests
* update dynamic imports
* debug
* Revert "debug"
This reverts commit db5e13b991
.
* fix pm test
old-commit-hash: a9626f95b6
2 years ago
Adeeb Shihadeh
497bc99c27
agnos updater: set timeout on download ( #25927 )
...
old-commit-hash: 74f741d0be
3 years ago
Adeeb Shihadeh
0325a33752
add pyside2 package ( #25602 )
...
old-commit-hash: c6b749fb96
3 years ago
Adeeb Shihadeh
35ff65121e
pre-commit: add codespell ( #25571 )
...
old-commit-hash: 6590fb2b93
3 years ago
Willem Melching
54bbb9332e
casync: only when run from updater ( #25130 )
...
* casync: only when run from updater
* also here
old-commit-hash: 906a8a912c
3 years ago
Willem Melching
e737b50c2d
casync: handle hash failure ( #25081 )
...
* casync: handle hashing failure due to IO errors
* fix comment
* all exceptions
* fix typo
* Update system/hardware/tici/agnos.py
old-commit-hash: b6df0cd242
3 years ago
Willem Melching
5dc7f22545
casync: compute seed caibx url on the fly ( #25046 )
...
* compute seed hash on the fly
* more logging
* partition name in url
* fix comment
old-commit-hash: 4080f729be
3 years ago
Willem Melching
3230474724
add casync support to agnos updater ( #23654 )
...
* add casync option to agnos updater
* open if necessary
* add python implementation
* last chunk can be small
* check flags
* cleaner check
* add remote and file stores
* remote caibx file
* print stats
* use python implementation
* clean up imports
* add progress
* fix logging
* fix duplicate chunks
* add comments
* json stats
* cleanup tmp
* normal image is still sparse
* Update system/hardware/tici/agnos.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* Update system/hardware/tici/agnos.py
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
* add some types
* remove comment
* create Chunk type
* make readers a class
* try agnos 5.2
* add download retries
* catch all exceptions
* sleep between retry
* revert agnos.json changes
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: 3900781092
3 years ago
Adeeb Shihadeh
9a45a3b99b
Move selfdrive/hardware/ to system/ ( #24725 )
...
* move hardware to system/
* fix mypy
old-commit-hash: 1139fe507b
3 years ago
Dylan Herman
2dfba97175
add mypy check for return-any ( #24379 )
...
* add mypy check for return-any
* remove unused import
* typing
* remove unnecessary variable typing
* cleanup
* cleanup
* bump submodules
* small fixes
* only a problem on mac
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: d2eef1955c
3 years ago
Dylan Herman
a8910d9d43
Add --warn-redundant-casts to mypy checks ( #24304 )
...
* add mypy checks for redundant-casts and unused-ignores
* revert unnecessary changes
* ignore
Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
old-commit-hash: ee0021b86c
3 years ago
Adeeb Shihadeh
1d429f7e90
fix missing time import
...
old-commit-hash: 7c9fa91fb8
3 years ago
Adeeb Shihadeh
087a332532
flush progress print from agnos and neos updaters
...
old-commit-hash: 7c611cd711
4 years ago
Adeeb Shihadeh
74f3f4ab1a
agnos updater: support non-sparse images ( #22371 )
...
* print progress for all partitions
* noop generator
* less spammy
* cleanup
old-commit-hash: 425020a849
4 years ago
Adeeb Shihadeh
a4cf1e33d8
only show updater UI if necessary ( #21787 )
...
* only show updater UI if necessary
* cleanup
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 060592e34a
4 years ago
Adeeb Shihadeh
e6db374ac0
fix unused
...
old-commit-hash: 6bc5566340
4 years ago
Comma Device
66f1ee1075
fix updater UI repaints
...
old-commit-hash: 56d682831b
4 years ago
Adeeb Shihadeh
f4708c153e
agnos updater UI ( #21776 )
...
* start agnos updater UI
* wifi
* progress
* sometimes things fail
* fix wifi
* in launch script
* fwd
* fwd stderr
* update that
* release files
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: 14d26d6d89
4 years ago
Willem Melching
63ac13feee
agnos.py: retry swap ( #21608 )
...
* retry until success
* try this
* redirect stderr
* also check positive
* add logging
* f string
old-commit-hash: f4d87cecf7
4 years ago
Adeeb Shihadeh
55d3871a5e
fix agnos updater bug + type hints ( #21566 )
...
* add type hints
* fix bug
* more hints
old-commit-hash: 21c7981919
4 years ago
Willem Melching
c8810406da
tici: flash bootloader partitions from manifest ( #21399 )
...
* move swapping to python
* only create downloader if needed
* typo
* number
* add sanity check
* boot full check to test
* manifest is required argument
* implement full hash check
* off by one
* new manifest
* only write tag for system
* bump splash
* review comments part 1
* trigger update
Co-authored-by: Robbe Derks <robbe.derks@gmail.com>
old-commit-hash: 7c6bf89e04
4 years ago
Josh Smith
2cae3a3799
Add type hints, small cleanups ( #21080 )
...
* improve tools.lib.kbhit and tools.sim.lib.keyboard_ctrl
* unpack more efficiently
* minor improvements
* agnos.py match spec better
* manual_ctrl test missing queue arg
* fix incorrect type annotation
* queues are generic
* varname reuse resulting in incorrect type inference
* bytes().hex() rather than bytes.hex(bytes())
* a bit of type hinting stuff
old-commit-hash: 77321dbac4
4 years ago
Adeeb Shihadeh
5db3d3f18e
don't reflash agnos update if already flashed ( #19944 )
...
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: c95c4df51d
4 years ago
grekiki
2ebacdc364
Add Github SSH keys ( #19879 )
...
old-commit-hash: 7408569c1b
4 years ago
Willem Melching
5ad8abdc24
OS Updater improvements ( #19914 )
...
* Clear hashes before swapping
* add retry logic
* better retry logic
* actually fail on retries exceeded
old-commit-hash: fe91b8a1b4
4 years ago
Adeeb Shihadeh
349429836c
agnos updater ( #2600 )
...
* agnos updater
* add manifest
* fix path
* get manifest from overlay
* update manifest
* remove merge markers
* add streaming decompressor
* dont need read all
* Unsparsify
* Fix output filename
* Optimization
* cleanup
* Small cleanup
* Read manifest from merged overlay
* Write hash at end of partition
* Sync before writing hash
* Write bytes in file
* add manifest with image sizes
* Fix manifest path
* File was closed already
* Format string
* Put raw hash
* Read hashes in launch script
* update launch script
* should be agnos version
* fix slot
* Make sure we clear the hash
* Verify partition size
* move updated
* Standalone flasher
* Don't rely on ordering
* Get path
* Debug log
* Download agnos
* Info is enough
* update manifest
* Remove f
* Check downloader return code
* Exit on wrong manifest
* Fix typos
* Set pythonpath before hardware init
* move agnos into hardware folder
* remove comments
* Fix abstractmethod
Co-authored-by: Comma Device <device@comma.ai>
Co-authored-by: Willem Melching <willem.melching@gmail.com>
old-commit-hash: b276881fcd
4 years ago