Commit Graph

62 Commits

Author SHA1 Message Date
Lefucjusz
13269271e6 [MOS-998] Provide additional info in crashdump filename
Added info about product, OS version and
commit hash to crashdump filename to
simplify analysis of the crashdumps
without corresponding logs available.
2023-06-22 12:14:07 +02:00
Lefucjusz
ebcd139412 [CP-1962] Add Harmony color detection
* Added serial number based Harmony color
detection.
* Unified serial number handling for both
products.
2023-06-06 14:37:52 +02:00
Bartosz
a4406ec5a7 [MOS-783] Fixed tests and simulator for Harmony
Fixed tests and simulator for Harmony
after implementation of new filesystem
structure.
2023-01-19 16:41:56 +01:00
Lefucjusz
215e4d96b7 [MOS-783] Fixed Pure unit tests
Fixed (most of the) hardcoded
paths in Pure's unit tests.
2023-01-19 16:41:56 +01:00
Lefucjusz
afd7e7bc2c [MOS-783] Working Pure simulator after partition changes
Fixed iosyscalls so that Pure simulator
works after directory structure changes.
2023-01-19 16:41:56 +01:00
Lukasz Mastalerz
00b2deac97 [CP-1512] Add information allowing identification to crashdump file
Add the serial number and generation timestamp to crashdump filename.
2023-01-10 09:16:42 +01:00
Lefucjusz
49e6eca966 [MOS-790] Workaround for ext4 booting
Workaround required to make MuditaOS
able to boot from ext4-formatted OS
partition.
Previously OS partition was mounted
on /sys and user partition on
/sys/user. This worked
when two separate FS drivers
(FATFS and lwext4) were used.
Changing OS partition to ext4
created an ambiguity whether
/sys/user is user partition
mountpoint or folder 'user'
on OS partition. This
workaround still may create
ambiguities, so the issue
should be fixed in one of
the further releases by
completely removing 'sys'
prefix.
2022-11-10 00:24:52 +01:00
Adam Wulkiewicz
fe708cdf31 [MOS-670] Change clang-format AlwaysBreakTemplateDeclarations to Yes
Add --all and --fix-all options to style-check-hook
2022-08-26 15:22:39 +02:00
Dawid Wojtas
34ca4a1bd0 [MOS-573] RT1051 and linux documentation
Created readme about files in directories. Also added
documentation on how to add or update syscalls wrappers.
2022-07-25 09:54:52 +02:00
Dawid Wojtas
58319eba9a [MOS-574] Fix GCC12 port
Add missing include file.
2022-06-24 11:23:43 +02:00
Dawid Wojtas
915f3334c3 [MOS-549] Linux simulator crashes on GCC12
Add wrapper for posix stat function
in order to invoke our implementation.
2022-06-23 16:45:40 +02:00
Dawid Wojtas
0a6799579e [MOS-534] Pure simulator crashes on startup fix
Fix missing syscall used by std::filesystem and update glibc version.txt
file.
2022-06-15 10:03:55 +02:00
Piotr Tański
1d2f5cf7a4 [EGD-7754] Dates bumped in disclaimers
Dates bumped from 2020 to 2021.
2021-10-11 19:08:26 +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
Marcin Smoczyński
bd90e57516 [BH-907] Split utils module into components
Split module-utils into smaller components for better dependency
management. Fix many dependencies throughout the project.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-23 15:14:40 +02:00
Marcin Smoczyński
e0fae087a6 [BH-908] Fix macros header location
Remove duplicated header for linux; move header for rt1051 to the same
tree as for linux.
_exit.c uses os so it should be placed in the os.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-09-22 10:26:32 +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
Marcin Smoczyński
9267e2d871 [EGD-7161] Remove image name reference in vfs
Add ability to change an image name in the vfs code by decoupling vfs
from a so-called board code.

Introduce platforms as a hardware and os abstraction layer for product
code.

Signed-off-by: Marcin Smoczyński <smoczynski.marcin@gmail.com>
2021-07-21 12:53:47 +02:00
Mateusz Grzegorzek
0684b1271b [BH-515] Create main Bell app
Create main Bell app
2021-06-15 16:02:40 +02:00
Radoslaw Wicik
943fef9643 [BH-353] Add Documentation for main targets
* clean up mimimu required cmake version
* fixes for release workflow

Add documentation for targets, fixes for cmake
and release workflow.
2021-06-11 09:07:41 +02:00
Radoslaw Wicik
aa1ca514cb [BH-353] Add minimal build target for BH
Introducing changes required for adding BellHybird target without
removing PurePhone.
Adden new targets:
* Pure (builds PurePhone and PurePhone.img)
* Bell (builds BellHybird and BellHybird.img)
* [PurePhone|BellHybrid]-[UpdatePackage|StandaloneImage)
2021-06-07 17:05:29 +02:00
Wiktor S. Ovalle Correa
20180437c8 [EGD-6035] Fix support for glibc-2.32
GLIBC 2.32 doesn't work with changes made for 2.33.
2021-06-03 16:16:21 +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
Wiktor S. Ovalle Correa
35ef7358fd [EGD-6035] Fix iosyscalls build on GLIBC_2.33
Newer versions of glibc have stat symbols family
incompatible with earlier versions.
2021-05-14 15:40:26 +02:00
Radoslaw Wicik
7c66dbf5e5 [EGD-6695] Fix simulator build for valgrind
Valgrind requires sanitizer to be off, fixing cmake errors.
2021-05-06 15:13:32 +02:00
Lucjan Bryndza
b419649f7f [EGD-6590] Add /mfgconf mount to iosyscalls lib
Add translation of the /mfgconf mount point in the libiosyscall
library when redirection is disabled.
2021-04-21 11:13:19 +02:00
tomaszkrosnowski
5ef611b30e [EGD-6557] Support glibc older than 2.28
Added preprocessor cases to disable code not supported in glibc older
2021-04-16 13:03:51 +02:00
Wiktor S. Ovalle Correa
b09cd552c1 [EGD-6482] Remove unnecessary iosyscalls messages
Unimplemented syscalls should fail silently to avoid breaking
tests.
2021-04-09 13:01:46 +02:00
Wiktor S. Ovalle Correa
3fe2bff567 [EGD-3469] Fix assets and image creation
Preparing and copying of assets to the image was unreliable.
Switched from cmake mechanism to rsync, making resulting
scheme universal and reducing output folder pollution.
2021-04-09 12:47:57 +02:00
Wiktor S. Ovalle Correa
b07bcacbaf [EGD-6239] Fix Linux Release build on gcc-10
strncpy() was provided with size equal to a buffer size, not leaving
buffer space for a trailing zero; also sml fix.
2021-03-23 12:38:47 +01: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
2c4dd15023 [EGD-5927] Redirect access to '/lib' in emulator
Sanitizer was trying to access libraries after all objects
got deleted and hung in a nested bug state.
2021-03-01 18:13:54 +01:00
Wiktor S. Ovalle Correa
2d2e432893 [EGD-5900] Fix filesystem performance issue (Linux)
Make fread/fwrite ignore requested item size
and perform on 8KB blocks
2021-03-01 11:50:58 +01:00
Radoslaw Wicik
9d8eff64fc [EGD-5860] Fix build packages
Merging and cleaning cmakes requred cleaning.
2021-02-26 14:20:11 +01:00
Wiktor S. Ovalle Correa
4614846d38 [EGD-5590] Fix boot config procedure
Boot config procedure was outdated and didn't actually work
2021-02-17 17:08:18 +01:00
Wiktor S. Ovalle Correa
0cea748888 [EGD-5596] Fix fread() handling of EOF
iosyscalls' fread() should interpret zero bytes read as EOF.
2021-02-17 17:08:18 +01:00
Wiktor S. Ovalle Correa
dc2059fd8b [EGD-5522] Remount fs R/W for backup or update
After setting vFAT to be read only by default backup,
update and factory reset procedures need to remount R/W
first.
2021-02-17 17:08:18 +01:00
Jakub Pyszczak
7797a2eaf0 [EGD-5266] Fix test harness
Covers harness issues that occures on experimental branch
due to the new filesystem implementation.
2021-02-17 17:08:18 +01:00
Wiktor S. Ovalle Correa
fa22300369 [EGD-5378] Fix missing condition
Some strange mistake happened during a rebase.
2021-02-17 17:07:41 +01:00
Wiktor S. Ovalle Correa
da4ed4e2da [EGD-5378] Add informative message before aborting iosyscalls
This fix gives basic information about missing syscalls
before aborting from libiosyscalls preload.
2021-02-17 17:07:41 +01:00
Lucjan Bryndza
af960b6fac [EGD-5146] Add read LFS block size from part
Add littlefs block size from partition bootable offset
2021-02-17 17:07:00 +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
dca37deb75 [EGD-5297] Fix Release build on linux
Some minor warnings were preventing us from completing
Release build of Linux emulator.
2021-02-17 17:06:49 +01:00
Lucjan Bryndza
dcc72e0bec [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
2021-02-17 17:06:49 +01:00
Wiktor S. Ovalle Correa
6b386720e8 [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.
2021-02-17 17:05:32 +01:00
Jakub Pyszczak
f51a1e525e [EGD-5248] Add statvfs to the libiosyscall library
Added support for statvfs in the libiosyscall library.
It is needed in service desktop implementation.
2021-02-17 17:05:32 +01:00
Wiktor S. Ovalle Correa
165788e15f [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.
2021-02-17 17:05:32 +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
Lucjan Bryndza
6f3a6b4f7d [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>
2021-02-17 17:05:32 +01:00