Commit Graph

26 Commits

Author SHA1 Message Date
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
Mateusz Piesta
5447774803 [BH-1449] Fix crash during startup
* Moved all Bell-specific paths to AlarmSoundPaths.
* Fixed loading default layout logic. Currently, there is no
db update schema which in specific cases can lead to
layout setting field missing. In this case, load default layout and
update missing db field.
* Added support for Aarch64 Linux.
2022-04-28 10:02:15 +02:00
Lucjan Bryndza
31b661a20e [MOS-316] Fix compile lfs fuse with GCC11 host
Fix compilation for the LFS fuse tools with GCC11

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2022-03-17 09:16:03 +01: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
a21a787cd7 [EGD-7458] Remove samity checkf from the pureflash
Remove mount and device type sanity check from the
purefs tool.

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-08-30 16:34:43 +02:00
Lucjan Bryndza
e483dd587a [EGD-7301] Documentation added to the pure flash
Pureflash documentation added

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-08-24 13:35:24 +02:00
Lucjan Bryndza
667ba85f08 [CP-314] Allow genlittlefs to create empty part
Allow genlittlefs tool to create empty partition
without any data on the partition. It will allow
to create empty backup partition
2021-07-07 15:21:36 +02:00
DariuszSabala
aae83f8502 [BH-458] Pureflash turned to ExternalProject
Changed way the pureflash utility is linked to  project. Now
it is builded as cmake ExternalProject
2021-06-08 10:36:37 +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
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
Lucjan Bryndza
b2f3f6416b [EGD-6897] Change force flag to disable check
Now force flags disable all sanity check in the
pure flash tool

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-04 10:38:21 +02:00
Lucjan Bryndza
511bab97aa [EGD-6897] Add force flag to the pureflash
On some devices like ESCSI minor device id is not
properly recognized.
This patch add --force flag for skip checking minor
device numbers (partitions).

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-04 09:57:14 +02:00
Lucjan Bryndza
ae5e4bd5f3 [EGD-6841] Add more sanity check in the pureflash
Add more sanity check before flashing to the
block device. Add additional checks against:

* Write image partition is mounted in a linux
* Write image into the partition instead of blkdev

Signed-off-by: Lucjan Bryndza <lucjan.bryndza@mudita.com>
2021-06-02 12:30:16 +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
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
Lucjan Bryndza
e5948375e0 [EGD-6188] Add PurePhone flash script
Currently dd doesn't handle sparse files properly,
so the mudita pure flashing script should be used
on the linux platform instad of the dd command.

Tools will be created in the build dir
example usage is: pureflash <image_file> <block_device>
2021-03-18 09:31:04 +01:00
Lucjan Bryndza
436c2ed3cc [EGD-5609] Fix lfs partition erase size bug
Storing LFS erase size in the boot byte is not possible
because Linux kernel is unable to detect the partitions
after change boot bytes to values other than 0x80 or 0x00

In this patch LFS_BLOCK_SIZE is moved to the second
MBR bootcode AREA
2021-02-17 17:08:18 +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
Lucjan Bryndza
9269d9c72e [EGD-5737] Merge master into experimental
Keep experimental up to date with changes from master
2021-02-17 17:06:50 +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
f7fef9937f [EGD-5259] Fix littlefs format for block devices
Currently genlittlefs is unable to format block devices
currently it works only on the file images.
This patch resolves problem with bd format.
2021-02-17 17:05:32 +01:00
Lucjan Bryndza
ad4fba1f58 [EGD-5135] Add new lfs part scheme in emulator
Add new littlefs filesystem user partion in the fat database
2021-02-17 17:02:15 +01:00
Borys Jelenski
fdfe1f5369 [EGD-5279] Add building genlittlefs in RT1051 config
Additionally, some uninitialized variables in genlittlefs were fixed
in order to build it without warnings
2021-01-20 11:04:48 +01:00
Lucjan Bryndza
f980abd28a [EGD-4758] Add lfs object state sync
Add lfs object state sync.
2020-12-17 18:20:13 +01:00
Lucjan Bryndza
0f3a622ad2 [EGD-4758] Fix includes in littlefs
Fix includes in the littlefs
2020-12-17 18:20:13 +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