Roman Zeyde
2d7b4b8a39
wip: log GC roots from regs & stack
...
TREZOR_MODEL=T3T1 BITCOIN_ONLY=0 QUIET_MODE=1 PYOPT=0 make -C core build_unix_frozen
core/emu.py -ea --profiling -o /tmp/trezor.log -c pytest -xv tests/device_tests/test_msg_applysettings.py::test_apply_homescreen_jpeg
======================================================================================= short test summary info ========================================================================================
FAILED tests/device_tests/test_msg_applysettings.py::test_apply_homescreen_jpeg - trezorlib.exceptions.TrezorFailure: FirmwareError:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! stopping after 1 failures !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
========================================================================================== 1 failed in 1.55s ===========================================================================================
Terminating emulator...
Emulator shut down after 0.064 seconds
grep -B2 '>Layout' /tmp/trezor.log
alloc(424) = 0x71612f4723e0 flags: 0
alloc(176) = 0x71612f4725a0 flags: 1
>LayoutObj::new_root
--
alloc(424) = 0x71612f4711c0 flags: 0
alloc(176) = 0x71612f471380 flags: 1
>LayoutObj::new_root
grep 0x71612f471380 /tmp/dump*
/tmp/dump-002.json:6930 6900 6 0x71612f471380 #7 <0x637d78>
/tmp/dump-002.json:7089 6900 6 0x71612f471380 #2 <0x637d78>
/tmp/dump-003.json:6930 6900 6 0x71612f471380 #7 <0x637d78>
/tmp/dump-003.json:7089 6900 6 0x71612f471380 #2 <0x637d78>
...
python deps.py 6900 < /tmp/dump-002.json | colrm 200
6930 6900 6 0x71612f471380 #7 <0x637d78>
6769 6930 6 0x71612f471740 #3 <0x5e92>
3508 6769 1 0x71612f470320 #69 <0x71612f46ba60>
3040 3508 24 0x71612f456b80 #3 <0x6eba>
3036 3040 1 0x71612f453100 #1 dict {'T': 0, 'utime': 0x61d3e0, 'const': 0x61ef80, 'backlight_fade': 0x63b210, 'Shutdown': 0x71612f453920, 'refresh': 0x71612f453740, 'HEIGHT': 240
3437 3036 1 0x71612f453080 #1 module {'T': 0, 'utime': 0x61d3e0, 'const': 0x61ef80, 'backlight_fade': 0x63b210, 'Shutdown': 0x71612f453920, 'refresh': 0x71612f453740, 'HEIGHT': 2
3457 3437 2 0x71612f4562a0 #1 gen_wrap
3116 3457 15 0x71612f456520 #3 <0x7d6a>
3447 3116 1 0x71612f453a80 #14 dict {'_handle_usb_iface': 0x71612f4562a0, 'stop': 0x71612f456060, 'create_tasks': 0x71612f456220, '__del__': 0x71612f4563a0, '_handle_input_iface':
6156 3447 4 0x71612f4563e0 #13 type Layout
6187 6156 4 0x71612f46b680 #13 type HomescreenBase
6333 6187 4 0x71612f46ba60 #1 type Homescreen
6095 6333 12 0x71612f46cca0 #3 <0x7eaa>
6012 6095 1 0x71612f46aee0 #1 dict {'Homescreen': 0x71612f46ba60, 'busy_expiry_ms': 0x71612f457820, '__file__': 'apps/homescreen/__init__.py', '__name__': 'apps.homescreen', 'Mes
6285 6012 1 0x71612f46a480 #1 module {'Homescreen': 0x71612f46ba60, 'busy_expiry_ms': 0x71612f457820, '__file__': 'apps/homescreen/__init__.py', '__name__': 'apps.homescreen', 'M
2050 6285 2 0x71612f46c6a0 #5 gen_wrap
1948 2050 15 0x71612f44b540 #3 <0x7742>
1936 1948 1 0x71612f44a880 #1 dict {'IdleTimer': 0x71612f44b420, 'spawn': 0x71612f44ae20, 'default_constructor': 0x71612f46c6a0, 'ALLOW_WHILE_LOCKED': 0x71612f44ad40, '__name__':
2823 1936 1 0x71612f44a700 #33 module {'IdleTimer': 0x71612f44b420, 'spawn': 0x71612f44ae20, 'default_constructor': 0x71612f46c6a0, 'ALLOW_WHILE_LOCKED': 0x71612f44ad40, '__name__
1666 2823 15 0x71612f4515e0 #3 <0x84b2>
1663 1666 1 0x71612f448540 #1 dict {'UnexpectedMessageException': 0x71612f44d1c0, 'with_context': 0x71612f44d2c0, 'DataError': 0x71612f44f600, 'Message': 0x71612f44c0a0, '__name_
2802 1663 1 0x71612f4484e0 #1 module {'UnexpectedMessageException': 0x71612f44d1c0, 'with_context': 0x71612f44d2c0, 'DataError': 0x71612f44f600, 'Message': 0x71612f44c0a0, '__nam
2936 2802 2 0x71612f451340 #3 fun_bc
785 2936 19 0x71612f452400 #3 <0x85ca>
784 785 1 0x71612f441720 #1 dict {'UnexpectedMessage': 0x71612f44de80, 'failure': 0x71612f451340, 'PinInvalid': 0x71612f44ffa0, 'setup': 0x71612f4528e0, 'protobuf': 0x71612f445
2977 784 1 0x71612f441700 #1 module {'UnexpectedMessage': 0x71612f44de80, 'failure': 0x71612f451340, 'PinInvalid': 0x71612f44ffa0, 'setup': 0x71612f4528e0, 'protobuf': 0x71612f4
6450 2977 2 0x71612f452920 #2 gen_wrap
1644 6450 9 0x71612f46db40 #3 gen_instance
364 1644 15 0x71612f448280 #3 <0x23a>
293 364 1 0x71612f43e280 #1 dict {'close': 0x71612f442640, 'this_task': 0x71612f46db40, 'io': 0x61c830, 'schedule': 0x71612f442120, '__name__': 'trezor.loop', '_TIMEOUT_ERROR':
3906 293 1 0x71612f43d9a0 #7 module {'close': 0x71612f442640, 'this_task': 0x71612f46db40, 'io': 0x61c830, 'schedule': 0x71612f442120, '__name__': 'trezor.loop', '_TIMEOUT_ERROR
210 3906 5 0x71612f459d40 #3 <(nil)>
199 210 1 0x71612f43cf40 #1 dict {'log': 0x71612f43d8a0, '__name__': 'session', 'loop': 0x71612f43d9a0, 'utils': 0x71612f43d3a0, 'apps': 0x71612f44a380, 'workflow': 0x71612f44a
315 199 1 0x71612f43cde0 #1 module {'log': 0x71612f43d8a0, '__name__': 'session', 'loop': 0x71612f43d9a0, 'utils': 0x71612f43d3a0, 'apps': 0x71612f44a380, 'workflow': 0x71612f4
0 315 2 0x71612f43dc60 #552 fun_bc
nm core/build/unix/trezor-emu-core | grep 637d78
0000000000637d78 d _ZN10trezor_lib2ui6layout3obj9LayoutObj8obj_type4TYPE17hb6ebd6797ed3a6e4E
# from objdump => `637d78 <trezor_lib::ui::layout::obj::LayoutObj::obj_type::TYPE>`
2025-04-03 12:00:53 +03:00
Roman Zeyde
63a17ea0f9
chore(core): exclude all_modules.py
bytecode from frozen_mpy.c
...
See `all_modules.py.mako` for more details.
[no changelog]
2025-03-27 10:22:44 +02:00
Roman Zeyde
18c5927695
chore(vendor): update micropython to allow __main__
presizing
...
Following https://github.com/trezor/micropython/pull/15 .
[no changelog]
2025-03-27 10:08:34 +02:00
Roman Zeyde
2333a6a262
feat(core): log GC info in case of OOM
...
Enabled on debug firmware and non-frozen emulator.
[no changelog]
2025-03-17 20:17:42 +02:00
Ioan Bizău
4c699d6066
chore(core): add TROPIC01 model as a submodule
...
[no changelog]
2025-03-13 15:08:48 +01:00
Ioan Bizău
f385d20b84
chore(core): update libtropic
...
[no changelog]
2025-03-13 15:08:48 +01:00
tychovrahe
32bf5d82ff
feat(core/prodtest): add tropic01 HAL integration and basic production tests
...
[no changelog]
2025-02-26 08:53:16 +01:00
obrusvit
00740b560c
refactor(core): consistent naming of UI layouts
...
- follow-up on 862c987779
- layout_bolt stays the same
- layout_samson -> layout_caesar
- layout_quicksilver -> layout_delizia
- use super for importing rust modules in layout code
[no changelog]
2025-01-20 12:29:24 +01:00
obrusvit
862c987779
refactor(core): consistent naming of UI layouts
...
- UI layouts name changes:
- model_tt -> layout_bolt
- model_tr -> layout_samson
- model_mercury -> layout_quicksilver
- rust features `model_xyz` freed for different use, now it's
`layout_xyz`
- input_flow function names are based on UI layout and not internal
model name (i.e. quicksilver instead of t3t1)
- directory names and commentary changed accordingly
[no changelog]
2025-01-09 22:57:14 +01:00
matejcik
17f3e9b1bf
chore: update FIDO2 test helpers
2024-11-12 16:55:17 +01:00
Martin Milata
cc77425f39
test(core): fix T2T1 FIDO2 test
...
Submodule update only.
[no changelog]
2024-11-12 16:55:17 +01:00
Martin Milata
6ec9937ead
chore(vendor): update vendor/fido2-tests
...
[no chagelog]
2024-09-02 19:36:25 +02:00
Ondřej Vejpustek
eaa12f1cad
chore(crypto): update secp256k1 submodule to 0.5.1
...
[no changelog]
2024-08-23 17:00:52 +02:00
matejcik
d82d5a1fe5
build(core): fix build for GCC13
...
we need to cherry-pick two commits into the micropython submodule, and
adapt one of the fixes
2024-07-09 14:14:13 +02:00
cepetr
5d8a7ac5bf
feat(core): introduce new drawing library
...
[no changelog]
2024-05-17 09:17:37 +02:00
tychovrahe
1ea7ca4149
chore(core): change STM32Cube submodule to separate hal driver and cmsis submodules.
...
[no changelog]
2024-02-29 23:05:56 +01:00
cepetr
937b7d34d0
feat(core): add STM32CubeU5 submodule
...
[no changelog]
2024-02-29 23:05:56 +01:00
obrusvit
2f77434677
feat(core): device-tests of staking chunkify
2024-02-23 18:09:43 +01:00
obrusvit
ebcf3e2db2
feat(core): confirm ETH stake, unstake, claim
2024-02-23 18:09:43 +01:00
grdddj
b8ea21d24a
feat(all): implement translations into Trezor
...
Co-authored-by matejcik <ja@matejcik.cz>
2024-02-12 14:49:32 +01:00
Martin Milata
e7c2800798
build: fix compilation on darwin
...
[no changelog]
2023-05-10 20:59:00 +02:00
tychovrahe
6fe25eb305
chore(vendor): optimize uzlib (via micropython)
...
relevant commit:
a973bbca756ca0c9219deefea2873d3cc774839d Uzlib: partially optimize decompression for speed
[no changelog]
2023-04-26 14:14:48 +02:00
Martin Milata
3fb3f108cc
chore(vendor): bump micropython to 1.19.1
...
Relevant micropython commits:
01374d941f9d7398e35990b574769b20c6779457 py/mpconfig.h: Define initial templates for "feature levels".
7b89ad8dbf432ab51eea6d138e179bf51394c786 py/vm: Add a fast path for LOAD_ATTR on instance types.
68219a295c75457c096ac42dbe8411b84e1e1a51 stm32: Enable LOAD_ATTR fast path, and map lookup caching on >M0.
e0bf4611c3a8b23b3c52e6a7804aac341ac3a87d py: Only search frozen modules when '.frozen' is found in sys.path.
f2040bfc7ee033e48acef9f289790f3b4e6b74e5 py: Rework bytecode and .mpy file format to be mostly static data.
926b554dafffa1e9bd80aa12fea5c621221c9d79 extmod/moduos: Create general uos module to be used by all ports.
2b409ef8a46015f8f3bd20bc44e644637dbe9bd3 unix/moduos: Convert module to use extmod version.
47f634300c5572571816817f16836113c98814ae py: Change makemoduledefs process so it uses output of qstr extraction.
0e7bfc88c6ac6b5d64240f91183a3cfe2ab67ade all: Use mp_obj_malloc everywhere it's applicable.
2a6ba47110be88ff1e1f5abd1bd76c353447884c py/obj: Add static safety checks to mp_obj_is_type().
2023-04-21 13:14:07 +02:00
Pavol Rusnak
056ac9d70a
chore(vendor): update secp256k1-zkp to v0.3.1
2023-04-14 13:34:14 +02:00
Pavol Rusnak
67f3af619a
chore(vendor): replace secp256k1-zkp with secp256k1 (v0.3.0)
...
We don't use any ZKP features at the moment, so we might as well switch
to upstream secp256k1 which does stable releases now.
I am keeping the original submodule name and "zkp" in all integrations,
because it seemed kind of pointless to try to rename/refactor everything,
especially when we might want to switch back to secp256k1-zkp in the future.
2023-03-14 15:37:12 +01:00
Martin Milata
4622aec0f1
refactor(core): switch to Rust implementation of QR-Code-generator
...
[no changelog]
2023-03-09 23:36:36 +01:00
matejcik
52f0c70b95
chore: bump fido2 submodule (to get INTERACT support)
2022-11-24 13:03:34 +01:00
Ondřej Vejpustek
db0da196a8
chore(vendor): update secp256k1-zkp to latest
2022-05-16 16:23:18 +02:00
Martin Milata
a01516389a
chore(vendor): update QR-code-generator
2021-11-05 14:09:11 +01:00
Ondřej Vejpustek
dbfc7d241f
chore(vendor,crypto): bump version of secp256k1-zkp
2021-10-25 14:41:28 +02:00
Martin Milata
aace875fef
chore(vendor): bump micropython to 1.17
...
Relevant micropython commits:
d1bfb271d7686708fe8711a177629c8bf6e7f6a6 lib/uzlib: Move uzlib code from extmod to lib.
4d546713ec8858cbf908de45de11cbfc46a20971 shared: Introduce new top-level dir and move 1st party lib code there.
ca920f72184c50f61002aa9d5cd01555b1e28b7b py/mpstate: Make exceptions thread-local.
2021-09-17 11:18:14 +02:00
matejcik
31be44b5cd
chore(core): use micropython checkout without submodules
2021-08-04 15:01:53 +02:00
Pavol Rusnak
3d69ca1b1b
chore(vendor): update nanopb to 0.4.5
2021-07-14 17:34:12 +02:00
matejcik
5f4240d93c
feat(core): preallocate sys.modules to an appropriate size
2021-05-06 13:14:21 +02:00
Pavol Rusnak
1dad3b548c
chore(vendor): bump secp256k1-zkp to latest
2021-03-18 14:37:28 +01:00
Andrew Kozlik
1e34b06656
test: Update fido2-tests submodule.
...
Reduces Shannon thresholds to prevent tests from failing.
2021-02-22 16:33:50 +01:00
Pavol Rusnak
b9e8a7c999
chore(vendor): bump micropython (add systemview support)
2021-01-26 20:53:38 +01:00
Pavol Rusnak
453df567d3
ci: various fixes and updates
...
- fix Nix build on macOS Big Sur (by updating to nixpkgs-unstable)
- update gcc-arm-embedded from 9.x to 10.x
- update nix to 2.3.10
- update Alpine Linux to 3.12.3
- allow to change arch in Docker
2021-01-04 14:40:16 +01:00
Martin Milata
6c1a436325
fix(vendor): use correct micropython rev
...
Trees are the same, only commit metadata differ.
2020-12-17 16:35:06 +01:00
Martin Milata
e67465a7da
chore(vendor): update micropython to include more precise memory profiling
2020-12-08 18:07:50 +01:00
Martin Milata
54ce8482d3
feat: set micropython to the memorymap branch
2020-11-02 14:14:00 +01:00
Pavol Rusnak
ded61a4ccf
chore(vendor): update micropython to v1.13
2020-10-16 14:19:35 +02:00
Pavol Rusnak
9a6d891706
chore(vendor): update libopencm3
2020-10-07 17:16:01 +02:00
Pavol Rusnak
71058eedd5
chore(vendor/nanopb): update nanopb from 0.4.1 to 0.4.3
2020-09-24 10:52:31 +02:00
Martin Milata
a6fe6ad3dc
vendor: update micropython to include lineinfo fix
2020-08-18 21:08:46 +02:00
Andrew Kozlik
5cfb188bbe
vendor: update fido2-tests
2020-05-14 13:36:45 +02:00
Andrew Kozlik
4a889f34cd
vendor: update fido2-tests
2020-04-17 14:09:34 +02:00
Pavol Rusnak
80a07ca4af
vendor: update fido2-tests
2020-04-08 14:11:01 +02:00
Andrew Kozlik
fca92d7344
core/webauthn: Update attestation certificate to comply with WebAuthn requirements.
2020-04-06 18:29:05 +02:00
Andrew Kozlik
0b9d66ca2e
vendor: Update fido2-tests submodule.
2020-04-06 09:53:42 +02:00