Replies: 2 comments 2 replies
-
It is how I mount the file system in application. #define STORAGE_PARTITION littlefs_dev
#define STORAGE_PARTITION_ID FIXED_PARTITION_ID(STORAGE_PARTITION)
static struct fs_mount_t lfs_mnt = {
.type = FS_LITTLEFS,
.fs_data = &cfg,
.storage_dev = (void*)STORAGE_PARTITION_ID,
.mnt_point = "/littlefs",
};
...
fs_mount(&lfs_mnt);
... |
Beta Was this translation helpful? Give feedback.
-
Hi, I am having the same trouble building my project. The This post says out of tree driver is not known by MCUBOOT build but as I say it seems to be built. Here is the interesting part of my dts file :
Anyone knowing what I am doing wrong ? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Everyting works find when I move my spi flash driver out of Zephyr codebase to be an out-of-tree driver.
The flash driver has been built as an external module called 'externalLib'
Then I added the partitions in the device tree as below since I want to utilize Zephyr's FS subsystem on my external flash.
` &mx25rxxx {
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
};`
I can see the partitions of the spi flash are created correctly in devicetree_generated.h. (PARTITION_ID 0~3 are allocated for internal flash.)
/* fixed-partitions identifier: */ #define DT_N_S_soc_S_octospi_420d1400_S_ospi_flash_0_S_partitions_S_partition_0_PARTITION_ID 4
However, there is a error when bulding mcuboot.
[1/9] Linking C executable zephyr/zephyr_pre0.elf FAILED:ld.bfd: zephyr/libzephyr.a(flash_map_default.c.obj):(.rodata.default_flash_map+0x4c): undefined reference to __device_dts_ord_98
Upon checking the zephyr.map file, I noticed that '__device_dts_ord_98' corresponds to my spi flash driver. However, it seems that mcuboot is unable to reference my external module 'externalLib,' which includes the spi flash driver. Interestingly, there is no mention of '__device_dts_ord_98' in mcuboot's 'zephyr_pre0' file.
It seems strange to me since both mcuboot and externalLib are external modules for my main application."
My question is whether it's possible for mcuboot to include my additional external module 'externalLib' during the build process.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions