Commit Graph

15 Commits

Author SHA1 Message Date
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +02:00
Marcin Smoczyński
74ae1a6589 [EGD-7031] Remove UT deps to the production image
Remove dependency to the production image by creating separate sysroot
for test assets alongside with a test image Test.img.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-07-27 23:36:37 +02:00
Wiktor S. Ovalle Correa
0fa3c714de [EGD-6067] Fix database performance issues
New filesystem works differently and some vFAT optimizations
backfired badly after switch.

- avoid unnecessary folder traversing
- eliminate some unnecessary fstats
- rework sqlite file driver
- reduce MMC startup delay
- fix errno bug in iosyscalls
2021-03-11 14:11:50 +01:00
Wiktor S. Ovalle Correa
7d06115f3e [EGD-5318] Fix coding style in board/
Code style check was disabled for board/ subfolder.
This commit fixes coding and enables style check
for this folder.
2021-02-17 17:06:59 +01:00
Wiktor S. Ovalle Correa
5bc3a96dbd [EGD-4551] Add missing read() interception
Fix error caused by libstdc++ passing our fd to native read()
2021-02-17 17:05:32 +01:00
Wiktor S. Ovalle Correa
e8d1fd23a3 [EGD-5177] Change iosyscalls code style
This commit is part of libiosyscalls refining task.
Its purpose is to make this code more predictable and
easier to maintain (as well as fixing some minor bugs).
2021-02-17 17:05:32 +01:00
Wiktor S. Ovalle Correa
a92f163afc [EGD-5137] Change iosyscalls symbols
Move iosyscalls symbols to a separate namespace `_iosys_*`

This helps us avoid accidentally overriding library calls
which are not exported as symbols.
2021-02-17 17:05:31 +01:00
Lucjan Bryndza
cb5b5a37b8 [EGD-5170] Fix native diropen
In the current implementation diropen is unable to listdir
in the native filesystem. This patch fix this issue.
2021-02-17 17:05:31 +01:00
Lucjan Bryndza
37aee3901c [EGD-5165] Fix emulator crash on lfs and fat
Disk access was not protected by the mutex and race contition
occurs when multiple access was made for lfs and fat.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-02-17 17:05:31 +01:00
Lucjan Bryndza
dde4bef8a5 [EGD-5075] Add new vfs core to new lib syscalls
Add new vfs core support to the new lib filesystem syscalls,
so currently new platform is switched to the new fs
2021-02-17 17:02:15 +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
43b9c45724 [EGD-4512] Prevent vfs crash before init (#1091)
Currently calling any method from class vfs
causes aplication crash when methods are called before
vfs.Init() call. This commit prevent to crash end return failure
instead. The fix is related to any any vfs methods and methods called
through the standard syscall.
It is only the hotfix and it will be removed when new VFS subsystem
will be ready.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-26 13:29:36 +01:00
Lucjan Bryndza
192f5bc854 [EGD-4331] Strict check fat handles (#1034)
In previous version fat handles was not strict checked.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-18 11:47:48 +01:00
Lucjan Bryndza
707b31ac3e [EGD-4264] directory reordering (#1001)
* [EGD-4264] VFS directory reordering

Currently VFS uses flat directory structure
for disc manager I need more sofisticated directory layout

* [EGD-4264] Remove redundant -Wno

* [EGD-4261] New purefs API

* [EGD-4264] Unittest fixes

* [EGD-4264] Directory relativity

* [EGD-4264] Relative path fixes

* [EGD-4264] Fix RT1051 compile errors

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-16 12:11:24 +01:00
Lucjan Bryndza
97d865c070 [EGD-4330] file streams ld preload library (#982)
* [EGD-4330] file streams ld preload library

It is concept library LD_PRELOAD for handle syscalls wrapper to the
image fat file.

* [EGD-4330] Stdlib implementation

* [EGD-4330] Stdio syscalls

* [EGD-4330] Dir searching stdlib replacement

* [EGD-4330] NL at end of file

* [EGD-4261] Working version of library wrapper

* [EGD-4330] Script for run emulator on fs image

Run phone emulator using filesystem image

* [EGD-4261] Missing debug file

* [EGD-4330] Not needed to link...

* [EGD-4330] Code review fixes #1
    iosyscalls

* [EGD-4330] Code review fixes round #2

* [EGD-4330] Code review round #3

* Ident fixes

* [EGD-4330] Ident fixes

* [EGD-4330] Code review round #4

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2020-11-12 16:53:23 +01:00