Commit Graph

28 Commits

Author SHA1 Message Date
Dawid Wojtas
76a62e8062 [BH-1884] Fix biwin memory errors
The BIWIN eMMC memory
doesn't work stable when enablePreDefinedBlockCount
flag is enabled.
2024-02-23 08:43:02 +01:00
Dawid Wojtas
54bf8311b0 [BH-1770][BH-1677] Update fsl drivers
Now the system uses 2.14.0 version.
Add only necessary drivers:
- pit
- pmu
- rtwdog
- snvs_hp
- snvs_lp
- src
- trng
- wdog
- gpio
- gpt
- lpi2c
- lpuart
- lpuart_edma
- common
- common_arm
- dmamux
- edma
- flexram
- flexram_allocate
- clock
- cache
- CMSIS
- dcp
- iomuxc

Changed speed of the USDHC clock from ~109MHz to ~81MHz.
Also changed bus timing from kMMC_HighSpeedTiming to
kMMC_HighSpeed200Timing for better efficiency.
2024-02-21 18:58:12 +01:00
Lefucjusz
32c6769cb6 [BH-1657][BH-1833][BH-1854] Add WFI and SDRAM self-refresh mode
* Added mechanism enabling CPU to
enter WFI mode when the OS is
in idle, what results in large
power consumption reduction.
* Added mechanism to switch SDRAM to
self-refresh mode before entering
WFI, what resulted in further power
consumption reduction.
2024-01-22 12:32:35 +01:00
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
Lefucjusz
fdede98a11 [BH-1672] Add logging of eMMC parameters
Added logging of eMMC storage card
parameters so that it's easy to
determine what chip is installed
in the device the logs are from.
2023-04-12 15:03:48 +02: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
Mateusz Piesta
150f1cfdef [CP-1560] New user directory structure
* New user directory implemented.
* Generate user directory structure at compile
time instead of at runtime(Pure/Harmony).
* Changed MTP root path to /storage
* FileIndexer: Minor refactor
* FileIndexer: Fixed handling incorrect/non-existing
scan directories.
* Updated Repository module to correctly handle
many assets paths.
* MultimediaDB: Minor unit tests refactor and fixed
some issues when using simulator.
* MultimediaDB: Added new queries and unit tests
* Harmony/Relaxation: Updated to correctly
use audio assets from more than one source.
* Harmony/Relaxation: Updated model and list items
provider.
* Harmony/Relaxation: Fixed stack overflow in audio service
2023-01-19 16:41:56 +01: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
Mateusz Piesta
6ad290366f [MOS-296] Merge SNVS cherry-pick conflicts fixed
Fix SNVS Harmony approach conflicts with master
2022-03-09 19:34:39 +01:00
Maciej Janicki
2b2bb13a49 [MOS-296] Merge remote-tracking branch 'origin/stable'
Merge stable Harmony branch into merge wip branch
2022-03-09 19:27:50 +01:00
Mateusz Piesta
c1391090c6 [BH-1389] Catch2 unit tests optimization
Removed redundant recompilation of catch2 main
resulted in over 20% speed up of unit tests compilation.
2022-01-26 15:04:23 +01:00
Alek Rudnik
9cf11913a1 [EGD-8129] Add atexit functionality
Added atexit functionality. All global destructors and functions
registered with atexit() should be called at program exit.
It was possbile to reuse original newlib implementation with
MALLOC_PROVIDED flag set.

Made sure logger destructructor is called as last one.

Due to mudita OS legacy, it was not possible to simply fix dependencies
in global objectes and hence there are neither global objects
destructors nor functions registered with atexit() called when exit()
is called.
Possibly it will be changed later.
2022-01-05 13:59:51 +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
Lucjan Bryndza
1b7e8828d6 [EGD-7881] Fix stat syscalls in the VFS
Fix and unifying the stat() syscall in the VFS.
Fix the ftruncate() syscalls in the FAT and VFS.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-11-23 10:55:14 +01:00
Lucjan Bryndza
f82d6f1085 [EGD-7423] Revert FSL MMC driver may stuck in inifinite loop"
This reverts commit da4f9ea2e2.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-11-16 13:24:10 +01:00
Alek Rudnik
da4f9ea2e2 [EGD-7423] FSL MMC driver may stuck in inifinite loop
There was an issue in FSL MMC driver.
Proper fix would be to swith to never 2.10 version - as it looks
like the issues is solved there - but this is out of scope of
this Jira case.
2021-11-05 13:37:00 +01:00
Kuba
1ab84f774f [EGD-7720] Unmounting file system on system closure
Make sure file system is properly unmounted on gentle system
shut down.
2021-10-20 14:38:08 +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
Marek Niepieklo
a0677af340 [CP-615] Update existing backup/restore implementation in OS
[CP-648] Handle updated API requests

Updated B&R to handle new API
Extended error reporting
Backup/Restore code clean up

[CP-649] Check OS version compatibility during restore
Added check of OS and backup versions
Fixed adding of version.json to PurePhone.img
2021-10-11 16:19:20 +02:00
Lucjan Bryndza
1348391002 [EGD-7742] Fix stat() on the ext4 fs
Fix stat() on the ext4 rootfs

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-10-07 14:39:28 +02:00
Lucjan Bryndza
84515a251c [EGD-7731] Fix issue with diropen() on rootdir
Fix issue with opendir() on the root directory
and ext4 filesystem.

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
Marek Niepieklo
22a02078cd [CP-162] Implement Logs directory
Added listing of log/crash dump files
Reorg'ed log/crash dump files locations
Added harness api/device_info
Updated test and tool scripts
2021-09-29 10:37:58 +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
Lucjan Bryndza
efa0a16543 [BH-848] Split board h for bell and pure
Split board.h for the bell and Pure

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-09-06 11:19:47 +02:00
Wojtek Rzepecki
4562a0379b [BH-769] Add vfs configuration for pltaforms
Add platform dependent configuration of vfs
partitions

revert of layout config
2021-08-24 18:11:21 +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