This sets up a backing device, creates a FAT file system, then opens a file as a loopback device and runs the disk_access tests on that. Signed-off-by: Armin Brauns <armin.brauns@embedded-solutions.at>
40 lines
689 B
Plaintext
40 lines
689 B
Plaintext
/*
|
|
* Copyright (c) 2024 Nordic Semiconductor ASA
|
|
*
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
&flashcontroller0 {
|
|
reg = <0x00000000 DT_SIZE_K(1024)>;
|
|
};
|
|
|
|
&flash0 {
|
|
reg = <0x00000000 DT_SIZE_K(1024)>;
|
|
partitions {
|
|
compatible = "fixed-partitions";
|
|
#address-cells = <1>;
|
|
#size-cells = <1>;
|
|
|
|
flashdisk_partition: partition@0 {
|
|
label = "flashdisk";
|
|
reg = <0x00000000 DT_SIZE_K(1024)>;
|
|
};
|
|
};
|
|
};
|
|
|
|
/ {
|
|
test_disk: storage_disk {
|
|
compatible = "zephyr,flash-disk";
|
|
partition = <&flashdisk_partition>;
|
|
disk-name = "NAND";
|
|
cache-size = <4096>;
|
|
};
|
|
|
|
ramdisk0 {
|
|
compatible = "zephyr,ram-disk";
|
|
disk-name = "RAM";
|
|
sector-size = <512>;
|
|
sector-count = <192>;
|
|
};
|
|
};
|