![]() Read QSPI Flash from 0x0 to DDR 0x08000000 with 100 bytes Note: If erase size is less than QSPI Flash page size, u-boot reports erase error To make QSPI clock run faster, higher speed can be set to second parameter, SF: Detected N25Q128 with page size 256, total 16 MiBġ6384 KiB N25Q128 at 0:0 is now current device Sf update addr offset len - erase and write 'len'bytes from memory at 'addr' to flash at 'offset Sf erase offset len - erase 'len' bytes from 'offset' '+len' round up 'len' to block size Sf write addr offset len - write 'len' bytes from memory at 'addr' to flash at 'offset' Sf read addr offset len - read 'len' bytes starting at 'offset' to memory at 'addr' Sf probe cs] - init flash device on given SPI bus and chip select Here is an example of loading an image file to QSPI device. On all Xilinx platforms from u-boot, you can use SF command to program a QSPI device. Programming QSPI Flash U-Boot provides the SF command to program serial flash devices. Tftpboot- boot image via network using TFTP protocol Run - run commands in an environment variable Rarpboot- boot image via network using RARP/TFTP protocol Protect - enable or disable FLASH write protection Ping - send ICMP ECHO_REQUEST to network host Nfs - boot image via network using NFS protocol Mm - memory modify (auto-incrementing address) Loady - load binary file over serial line (ymodem mode) Loads - load S-Record file over serial line Loadb - load binary file over serial line (kermit mode) Itest - return true/false on integer compare Imxtract- extract a part of a multi-image Iminfo - print header information for application image The source of these values can be found in the UBIFS NAND boot Wiki page.Bootd - boot default, i.e., run 'bootcmd'īootm - boot application image from memoryīootp - boot image via network using BOOTP/TFTP protocolĬoninfo - print console devices and informationĮxt2load- load binary file from a Ext2 filesystemĮxt2ls - list files in a directory (default /)įatinfo - print information about filesystemįatload - load binary file from a dos filesystemįatls - list files in a directory (default /)įdt - flattened device tree utility commands It will default to 1, the only amount supported by the 335x U-Boot. All NAND sizes use a blank "Number of Sectors" field.The "Flash Sector Size" depends on the NAND size:.All NAND sizes use a 0x20000 byte "Env.All NAND sizes use /dev/mtd6 "Device Name" with a 0x0000 "Device Offset.".These settings may need to change based on the amount of NAND installed on your MitySOM-335x module: For a 512MB NAND module, /etc/fw_env.config should appear as follows: ~/u-boot-mityarm-335x> scp tools/env/fw_printenv /etc/fw_env.config file will need to be created to tell fw_printenv where to find the U-Boot configuration. ~/u-boot-mityarm-335x> make HOSTCC=arm-arago-linux-gnueabi-gcc env To build the fw_printenv tool, build the env target and transfer the program to the device: U-Boot also includes a utility to inspect the installed environment, fw_printenv, located in tools/env. Reading the U-Boot configuration stored in NAND ¶ The U-Boot Env is stored in NAND partition 6 for every MitySOM-335x configuration as explained in the UBIFS NAND boot Wiki page. To write the uEnv.dat file to NAND, copy it to the target board and run: This will create a uEnv.dat file from a uEnv.txt file. Tools/mkenvimage -s 131072 -o ~/uEnv.dat ~/uEnv.txt To use the tool, first save the U-Boot configuration file, then invoke mkenvimage as follows: After building U-Boot, the utility is located at tools/mkenvimage. The U-Boot source includes a utility called mkenvimage that will prepare a U-Boot configuration for nandwrite. Writing the U-Boot configuration stored in NAND ¶ To view or change this file from Linux, mount the boot partition and edit the file with a text editor. When booting from MMC, the U-Boot configuration is loaded from a file called uEnv.txt on the boot partition. Configure U-Boot from Linux ¶ Updating the U-Boot configuration stored on SD card ¶
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |