- Set the root file system to
UBIFS
. For more information, see Root File System Type Configuration.- Select .
- Specify the arguments used in mkfs.ubifs to create the UBIFS
partition
-m 2 -e 130944 -c 400
For QSPI 128 erase block size. - Specify the arguments used in ubisize to create the UBIFS partition.
-m 2048 -p 128KiB -s 512
For QSPI 128 erase block size. - Specify the ubifs part name to add in bootargs, for
example, ubifs.Note: Ensure that you create the QSPI partition with the specified name.
- Specify the root file system format to build rootfs.ubi during the build.
For example,
.tar.gz cpio cpio.gz.u-boot cpio.gz ext4 jffs2 ubi
- Set Primary Flash as boot device and boot images storage. For more information, see Boot Images Storage Configuration and Primary Flash Partition Configuration.
- Build the system image. For more information, see Build System Image.
- Boot a PetaLinux Image on Hardware with SD Card. For more information, see Boot a PetaLinux Image on Hardware with an SD Card.
- Ensure that you have configured the TFTP server in the host.
- Set the server IP address to the host IP address using the
following command at U-Boot
prompt.
ZynqMP> setenv serverip <HOST IP ADDRESS>;
- Detect Flash Memory.
ZynqMP> sf probe 0 0 0
- Erase Flash Memory.
ZynqMP> sf erase 0 0x8000000
- Read images onto Memory and write into Flash.
- Read BOOT.BIN.
ZynqMP> tftpboot 0x80000 BOOT.BIN
- Write BOOT.BIN.
ZynqMP> sf write 0x80000 0x0 <size of boot.bin>
Example:
sf write 0x80000 0x0 0x10EF48
- Read image.ub.
ZynqMP> tftpboot 0x80000 image.ub
- Write image.ub.
ZynqMP>sf write 0x80000 <loading address of kernel> <size of image.ub>
Example:
sf write 0x80000 0xF40000 0x6cb0e4
- Read rootfs.ubi.
ZynqMP> tftpboot 0x80000 rootfs.ubi
- Write rootfs.ubi.
ZynqMP> sf write 0x80000 <loading address of rootfs.ubi> <size of rootfs.ubi>
Example:
sf write 0x80000 0x04000000 0x7d4000
- Read boot.scr
ZynqMP> tftpboot 0x80000 boot.scr
- Write boot.scr
ZynqMP> sf write 0x80000 <loading address of boot.scr> < size of boot.scr>
Example: sf write 0x80000 0x03e80000 0x80000
Note: Check the offsets for kernel and root file system at . If they do not match, the process may fail at the U-Boot prompt.
- Read BOOT.BIN.
- Detect Flash Memory.
- Enable QSPI flash boot mode on board.
- Reset the board (booting starts from flash).