~aleteoryx/muditaos

ref: f60b9c0013d4e81de64aeb3bca7631c820eb32f9 muditaos/board/linux d---------
da4ed4e2 — Wiktor S. Ovalle Correa 5 years ago
[EGD-5378] Add informative message before aborting iosyscalls

This fix gives basic information about missing syscalls
before aborting from libiosyscalls preload.
af960b6f — Lucjan Bryndza 5 years ago
[EGD-5146] Add read LFS block size from part

Add littlefs block size from partition bootable offset
7d06115f — Wiktor S. Ovalle Correa 5 years ago
[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.
dca37deb — Wiktor S. Ovalle Correa 5 years ago
[EGD-5297] Fix Release build on linux

Some minor warnings were preventing us from completing
Release build of Linux emulator.
dcc72e0b — Lucjan Bryndza 5 years ago
[EGD-5332] Fix heap size and other merge fixes

After merge with master we are unable to run any application
It was caused by the insufficent heap size
6b386720 — Wiktor S. Ovalle Correa 5 years ago
[EGD-5289] Fix VFS folder mapping in emulator

Folder filtering prevented us from accessing /sys folder
of VFS image. This fix redirects all /sys references to
the image by default, requiring us to explicitly specify
all paths we want to redirect to Linux fs.
f51a1e52 — Jakub Pyszczak 5 years ago
[EGD-5248] Add statvfs to the libiosyscall library

Added support for statvfs in the libiosyscall library.
It is needed in service desktop implementation.
165788e1 — Wiktor S. Ovalle Correa 5 years ago
[EGD-5139] Add some missing POSIX calls

This commit adds interceptions for common POSIX calls.
Issue [EGD-4551] has shown that some calls can be made from
stdlibc++ that we didn't trace or intercept so far. Our goal
here is to improve our POSIX coverage.
5bc3a96d — Wiktor S. Ovalle Correa 5 years ago
[EGD-4551] Add missing read() interception

Fix error caused by libstdc++ passing our fd to native read()
e8d1fd23 — Wiktor S. Ovalle Correa 5 years ago
[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).
6f3a6b4f — Lucjan Bryndza 5 years ago
[EGD-5199] Add support for mount umount

Add support for mount umount in the libiosyscall library
due to planning to use ro fatfs and remount to rw only
for update purposes.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
a92f163a — Wiktor S. Ovalle Correa 5 years ago
[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.
cb5b5a37 — Lucjan Bryndza 5 years ago
[EGD-5170] Fix native diropen

In the current implementation diropen is unable to listdir
in the native filesystem. This patch fix this issue.
37aee390 — Lucjan Bryndza 5 years ago
[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>
dde4bef8 — Lucjan Bryndza 5 years ago
[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
3780b484 — Lucjan Bryndza 5 years ago
[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>
3178bc72 — Lucjan Bryndza 5 years ago
[EGD-4524] Fix unable to build Linux Release tgt (#1093)

Due to the errors in the libiosyscalls it was impossible
to build emulator for Linux Debug target. This commit will fix this
problem.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
43b9c457 — Lucjan Bryndza 5 years ago
[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>
47740cab — Lucjan Bryndza 5 years ago
[EGD-4440] Redirect syscalls to underlay linux fs. (#1043)

Currently if file doens't exists on image the error is reported
but some subsystems need access to the underlaying linux fs.

In the feature release add strict checking for allowed paths
now it redirect syscall with warning.

Co-authored-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
192f5bc8 — Lucjan Bryndza 5 years ago
[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>
Next