@@ -269,6 +269,8 @@ In my case, I copied the tools produced by U-Boot into the **/tools/u-boot-tools
...
@@ -269,6 +269,8 @@ In my case, I copied the tools produced by U-Boot into the **/tools/u-boot-tools
### Create UBIFS images
### Create UBIFS images
[Documentation about the UBI/UBIFS file system](https://elinux.org/images/5/54/Weinberger.pdf)
**First, check that the mtd-utils package (debian and ubuntu) is installed on your host machine.**
**First, check that the mtd-utils package (debian and ubuntu) is installed on your host machine.**
From the root directory of the PetaLinux project...
From the root directory of the PetaLinux project...
...
@@ -287,10 +289,12 @@ $ tar -xzvpf rootfs.tar.gz -C rootfs
...
@@ -287,10 +289,12 @@ $ tar -xzvpf rootfs.tar.gz -C rootfs
$ mkdir datafs
$ mkdir datafs
```
```
Next, the two UBIFS images rootfs and datafs must be
Then, both rootfs and datafs UBIFS images must be created respecting the geometrical configuration of the flash memory.
**SF: Detected s25fl256s1 with page size 256 Bytes, erase size 64 KiB, total 32 MiB**
**SF: Detected s25fl256s1 with page size 256 Bytes, erase size 64 KiB, total 32 MiB**
**Information obtained using the sf probe command from U-Boot.**
| QSPI Flash memory size | 33554432 Bytes |
| QSPI Flash memory size | 33554432 Bytes |
|------------------------|----------------|
|------------------------|----------------|
| Page size | 256 Bytes |
| Page size | 256 Bytes |
...
@@ -299,9 +303,11 @@ Next, the two UBIFS images rootfs and datafs must be
...
@@ -299,9 +303,11 @@ Next, the two UBIFS images rootfs and datafs must be
|------------------------|----------------|
|------------------------|----------------|
| Max. erase blocks | 512 |
| Max. erase blocks | 512 |
**This information alone is not sufficient. Please refer to subsection [Geometric organisation](#howto-obtain-information-about-the-geometric-organisation-of-the-spi-nor-memory).**
**First of all, to flash the board, it is necessary to set switch SW1 (BOOT MODE) in JTAG mode. Then, once the card is flashed, it is necessary to set switch SW1 back in QSPI mode and reconnect the board.**
**First of all, to flash the board, it is necessary to set switch SW1 (BOOT MODE) in JTAG mode. Then, once the card is flashed, it is necessary to set switch SW1 back in QSPI mode and reconnect the board.**