Commit Graph

92 Commits

Author SHA1 Message Date
Lefucjusz
1f50621c2f [MOS-184] Fix unit tests not failing on duplicate test case
Fix of the issue that unit tests build would not
fail when unit test contained 2 test cases with
identical name.
Changed Catch2 submodule to local fork.
Minor unit tests and build target docs cleanup.
2023-06-27 09:21:37 +02:00
Adam Dobrowolski
3343f02809 [MOS-266] Call StateMachine implementation
With some tests, documentation and so on
2022-05-02 15:54:33 +02:00
Mateusz Piesta
2f42cd5e73 [BH-1424] FreeRTOS update
Updated FreeRTOS source code to 10.4.6.
Moved FreeRTOS sources to the third-party directory.
Added necessary changes to the CMake configuration.
Split FreeRTOSConfig.h. From now, each board has its own.
Added missing log headers.
Minor refactor of the module-os cmake.
Fixed stack overflows in bell application main and time service.
2022-04-07 13:31:28 +02:00
Adam Dobrowolski
30487c6008 [MOS-110] Statistics api for system
Gets data from freertos and prints on frequency change depending
if it's important. Gathering is not costly, printing is though.
For less intrusive checks I would rather disable names gathering
as in worst case scenario it hangs rtos context switching till
thread id is found.
2022-02-17 16:46:56 +01:00
Lucjan Bryndza
b83605d227 [EGD-7573] Add support for reliance edge fs
Added support for reliance edge file system.
The initial port is done.
The whole effort is still WIP.
Left a note in readme file what should be done next.
2021-12-14 09:44:34 +01:00
Kuba
feb9fc50d0 [EGD-8075] Add dr_libs as subrepo
It adds dr_libs as third party subrepo.
2021-12-09 14:12:07 +01:00
Lucjan Bryndza
aa8a698129 [EGD-7757] Improve stdlib iobuf MTP for ext4 fs
Improve stdlib file transfer performance for ext4
on the MTP file transfer

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-10-07 14:39:28 +02:00
Lucjan Bryndza
ca75ebe449 [EGD-7587] Change user partition to ext4 fs
Add support for the EXT4 filesystem using LWEXT4
Add minor VFS fixes
Add unittest for the EXT4 partitions
Reformat partition for use EXT4 filesystem

[EGD-7587] Initial cmake of the ext4

[EGD-7587] Block driver for the ext4

Initial version of the block driver for the ext4 device

[EGD-7587] Initial version of the EXT4 fs support

Initial version of the ext4 filesystem support

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

[EGD-7587] Mount unmount initial unit tests

Mount and unmount initial unit tests

[EGD-7587] Unit tests and fixes for ext4

Unit tests and fixes for the ext4 partition

[EGD-7587[ adjust flags

Adjust ext configuration flags

[EGD-7587] Change to generate ext4 image

Change image generation script to generate ext4 image

[EGD-7584] Change cache memory settings

Change cache memory settings

[EGD-7587] Change create image flags

Change create image flags

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

[EGD-7587] Git change lwext4 to the mudita version

Change LWEXT4 to mudita version

[EGD-7587] Modify ext4 implementation

Modify ext4 implementation according to the new lwext4
mudita branch. Some issues were fixed in this branch

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

[EGD-7587] Add to VFS rmdir syscall

Add to VFS missing rmdir for compliance POSIX std

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-10-07 14:39:28 +02:00
tomaszkrosnowski
11ab62aa9b [EGD-7560] Added klib to submodules
Khash will be used in MTP.
2021-10-01 14:54:40 +02:00
Piotr Tański
bf3897b649 [EGD-7610] Unnecessary services and apps removed
Removed lwIP, FOTA and clock application.
2021-09-21 08:34:53 +02:00
Paweł Joński
27c9c8e5e3 [BH-692] Add iCal library
Add iCal library
2021-08-04 15:31:47 +02:00
Mateusz Grzegorzek
211a6e078c [BH-375] Clean module-utils/third-party
Clean `module-utils/third-party`
2021-07-15 16:55:16 +02:00
Mateusz Grzegorzek
8521193df8 [BH-362] Move segger to a separate directory
Move segger to a separate directory
2021-07-12 15:19:40 +02:00
DariuszSabala
752033164f [BH-464] Moved USB stack to third-party dir
Moved USB stack, defined separate library and its dependencies,
assigned library to specific sections in linker script, reduced
build time by more than 10 percent thanks to ending building
usb stack file both in module-bsp and module-vfs
2021-06-29 16:40:55 +02:00
Marek Niepieklo
3bdc27a104 [CP-270] Replace CRC32 library
Replaced CRC-32 lib from csbruce.com/software/ with
github.com/stbrumme/hash-library
2021-06-29 13:47:59 +02:00
Mateusz Grzegorzek
82b5859474 [BH-363] Move libphonenumber to a separate directory
Move libphonenumber to a separate directory
2021-06-29 12:19:03 +02:00
Marek Niepieklo
db6e7d0416 [CP-163] Implement FS Endpoint read file
Implemented get file opration in FS Endpoint
2021-06-23 15:23:46 +02:00
Lukasz Skrzypczak
028804eab6 [BH-459] Moved fatfs to third-party v2
2nd approach to moving fatfs to third-party. Declared as INTERFACE.
2021-06-18 02:21:12 -07:00
Maciej Gibowicz
39a760bad6 [EGD-6702] Add time zone library
The library is used to manually set the time zone.
It is based on the IANA time zone database.
2021-06-16 14:03:54 +02:00
Mateusz Grzegorzek
c3a6c4a92e [BH-396] Move CrashDebug to a separate directory
Move CrashDebug to a separate directory
2021-06-07 11:55:55 +02:00
DariuszSabala
40cef99e6d [BH-360] Move TPLIB re2 to separate dir
Changed submodule directory and updated cmake scripts.
Updated paths in PureCoverage script and Doxyfile
2021-06-07 11:30:34 +02:00
Paweł Joński
5ad878c6c4 [BH-371] Replace gsl with mainline submodule and move to third-party
Replacing loose gsl files with gsl mainline project as submodule
and moving it to third-party
2021-06-07 09:30:04 +02:00
DariuszSabala
a360d13b5e [BH-460] Moved TPLIB littlefs
Moved littlefs library to dedicated third party directory,
fixed include paths
2021-06-04 11:28:33 +02:00
Lukasz Skrzypczak
40530e39aa [BH-399] Cleaning
Cleaned to match newest master
2021-05-28 19:29:04 +02:00
Artur Śleszyński
fbb820c284 [BH-357] Move protobuf to third-party dir
* Use the CMakeLists.txt from lib authors.
* Disable building libprotobuf in the all target.
* Disable warnings in the libprotobuf-lite target.
2021-05-28 15:00:31 +02:00
DariuszSabala
e6e9a79fa5 [BH-397] Move TPLIB parallel-hashmap
Changed submodule directory and changed way its linked,
in order to use target_link_libraries checkouted phmap
dependency to the newest revision which includes small
cmake fixes (see 031d214f2ce1973933abdf2a998d986ff8094d8e),
updated paths in PureCoverage script and Doxyfile
2021-05-28 13:51:49 +02:00
Pawel.Paprocki
b969442853 [BH-365] Move TPLIB (tinyexpr) to separate directory
Move library, amend CMAKE files
2021-05-28 13:05:32 +02:00
DariuszSabala
6fe90d4bef [BH-461] Move TPLIB minimp3 to separate dir
Moved minimp3 to third-party directory,
added our CMakeLists.txt with interface
library defined and upgraded include paths
2021-05-28 12:39:40 +02:00
Mateusz Grzegorzek
b4a40bd21c [BH-398] Move sml to a separate directory
Move sml to a separate directory
2021-05-27 10:11:24 +02:00
DariuszSabala
2d164b9690 [BH-359] Move TPLIB pugixml to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-26 13:34:18 +02:00
Mateusz Grzegorzek
798a2fb45a [BH-361] Move date to separate directory
Move date to separate directory
2021-05-25 10:21:46 +02:00
Pawel.Paprocki
040550f3b7 [BH-356] Move TPLIB (microtar) to separate directory
Move microtar to lib, amend CMAKE files
2021-05-24 09:44:29 +02:00
DariuszSabala
339f3d52fa [BH-364] Move TPLIB magic_enum to separate dir
Changed submodule directory and updated cmake scripts and include paths
2021-05-21 11:12:20 +02:00
Pawel.Paprocki
ce82aad981 [BH-358] Add Move TPLIB (CRC32) to separate directory
Change directory location and update CMAKE
2021-05-19 12:25:37 +02:00
Radoslaw Wicik
515f670910 [EGD-4651] Fix CrashDump submodule path
git:protocol requires proper credential, prevents some script to be run
correctly
2021-04-07 15:35:15 +02:00
Artur Śleszyński
33d652c1a1 [EGD-6156] Create crash dumps
Integrate the CrashCatcher library in order to store phone state after
a fault occurs. The dumps are stored in the CrashCatcher hex format and
can be debugged using the CrashDebug stub built for x86_64 via the
'debug_crash_dump.sh' script.
2021-04-02 14:58:42 +02:00
Marek Niepieklo
5ab1ef65dd [EGD-5868] Add access to backup over MTP
This change adds access to backups via MTP
after backup file has been successfuly created.
2021-03-22 18:59:11 +01:00
Radoslaw Wicik
7a55c370cf [EGD-5855] Daily build scripts
Adding script for creating daily releases in docker environment
2021-03-10 09:59:20 +01:00
Adam Dobrowolski
05d26bd1fc [EGD-6027] Moved test harness to separate repository
Common code for QAE and development moved to separate repository to
achieve more granular controll and more fluent flow
2021-03-09 08:39:16 +01:00
Marcin Smoczyński
e9fae2e321 [EGD-5869] Add puregdb
Add misc-tools repo containing:
 - linker map file analyzer (firmware size analyzer)
 - gdb's plugin which checks system memory health

Automatically load puregdb at startup of a debug session.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-02-24 12:49:53 +01:00
Wiktor S. Ovalle Correa
3b141041e9 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:09:37 +01:00
Lucjan Bryndza
a53bd826c6 [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:08:06 +01:00
Piotr Tański
9c922727d2 [EGD-5462] SML library introduced
Introduced SML library for further state machines development.
2021-01-28 14:37:25 +01:00
Marek Niepieklo
6fbd2397cd [EGD-5053] Change pick up fix for USB full spedd
Piecked up following fixes for UBS submodule:
- [EGD-5052] Fix for USB Full Speed
- [EGD-5214] Change USB_DEVICE_MAX_POWER to 500mA
- [EGD-5191] Fix crash during USB deinitialization
2021-01-22 16:45:41 +01:00
Lucjan Bryndza
3780b4844c [EGD-5074] Add native fscore for emulator
This is a first commit when the emulator uses
the new filesystem core.

libiosyscall library read environment variable

IOSYSCALS_REDIRECT_TO_IMAGE

When  IOSYSCALS_REDIRECT_TO_IMAGE=1 all syscalls
are redirected to the image. If env is not defined
or set to 0 only paths are translated and redirected
to the native linux syscalls

[EGD-5074] Remove free rtox library

Remove unneeded fat library from the freertos

[EGD-5074] Fix freertos mutex as unique

Add freertos mutex in the unique_ptr for avoid inclusion of the
freertos.h

[EGD-5074] Remove frertos-fat submodule

Remove uneeded fat freertos submodule

[EGD-5074] Add handle types in the vfs_subsystem

Add handle types in the vfs subsystem

[EGD-5074] Add submodule for hashmap

Add submodule for hashmap

[EGD-5074] Add support for dirent

Add support for dirent for new filesystem

[EGD-5074] Fix mutex class

Remove mutex in header

[EGD-5074] Remove old vfs from file indexer

File indexer should be fixed for use new vfs

[EGD-5074] Fix unit test vfs

Remove unit tests vfs for clas

[EGD-5074] Add Posix implementation with new fs

Add posix implementation with new fs core

[EGD-5074] Fix stdio syscalls

Fix all stdio syscalls

[EGD-5074] Fix iosyscalls scan family

Fix iosyscalls scan family

[EGD-5074] Fix native API

Fix native api

Work in progress some minor fixes

[EGD-5074] Fix lib stdio

Fix lib stdio

[EGD-5074] fix lseek return value in fat driver

Fix lseek return value in the fat driver

[EGD-5074]  Unit test fix

Unittest fixes

[EGD-5074] Emulator syscalls

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-01-04 16:04:33 +01:00
Lucjan Bryndza
58cc0a1847 [EGD-4760] littlefs host tools (#1161)
* [EGD-4760] Remove littlefs sumbmodule

* [EGD-4760] littlefs submodule in new location

* [EGD-4760] Littlefs host tools inital build

* [EGD-4760] Find fdisk

* [EGD-4760] LFS Cmake file changed

* [EGD-4760] GenLittlefs work in progress

* [EGD-4760] Parse args in the tool

* [EGD-4760] Inital version of genlittlefs

* [EGD-4760] genlittle fs seams to be working

It is a first working release for genlittle fs

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittle Speed improvement

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittlefs verbose flag

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] genlittlefs fix file support

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4760] Check if it is a littlefs

* [EGD-4760] Genlittle fs image

* [EGD-4760] Gen image fixed

* [EGD-4760] Final version of genlittlefs

* [EGD-4760] Rename littlefs rootdir.

* [EGD-4760] Code review round #1 fixes
2020-12-15 12:37:59 +01:00
Lucjan Bryndza
bfd50c5886 [EGD-4762] Add littlefs library (#1152)
Create library with littlefs filesystem
2020-12-07 16:17:26 +01:00
Lucjan Bryndza
55ab66e55a [EGD-4499] Create drivers for the VFS (#1128)
* GId modules updated

* Remove module

* Gitmodules update

* [EGD-4499] Global module VFS

* [EGD-4499] vfat driver in progress + fsfat

* [EGD-4499] fffat glue to our implementation.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4498] Glue logic between ff_fat and disk mgr.

* [EGD-4499] Mount and unmount fat_fs.

* [EGD-4499] Filesystem mount seams to be working

* [EGD-4499] Missing umount volume removal

* [EGD-4499] Code review vol 1

* [EGD-4499] Missing erase element from map

* [EGD-4499] Missing mount umount

* [EGD-4261] Mount and unmount tests

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Initial filesystem implementation

Iterate over directories are not completed yet

* [EGD-4261] unit test fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Stat vfs for RT1051

* [EGD-4499] Small fix in the seek

* [EGD-4499] Directory handle fix

* [EGD4499] Completed ffat implementation

It is already completed vfat driver for vfs core
but it is not tested yet.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Code review part #1

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Remove double dynamic allocation of mount point

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD4499] Partition out of range fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] Handle leak fix

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] VFS vfat completed.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>

* [EGD-4499] File descriptors from 3 according to POSIX std

0,1,2 fds are reserved for stdin,stdout,stderr

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-12-07 14:18:03 +01:00
Radosław Wicik
ff7af9601a [EGD-4313] Fix usb_stack submodule path (#969) 2020-11-05 10:40:09 +01:00
Roman Kubiak
eb1f8206b4 [EGD-3688] usb stack as an external module (#906)
* [EGD-3688] usb stack as an external module
removed old usb code

* [EGD-3688] linux fix

* [EGD-3688] fixes for new USB code

* [EGD-3688] updated submodule
2020-11-04 18:10:34 +01:00