Connect
.
Enable NandFlash
choice in the drop down list, usually it is the default choice.
3. Click on Execute
.
Erase all
in the drop down list.
2. Click on Execute
.
NANDFLASH::EraseBlocks
command. Its first parameter is the offset from which erase will start, the second one is the size to erase.
If you want to erase a specific component for instance the rootfs, have a look to nand flash memory map to get the offset and size value.
Here is an example to erase the rootfs on a 256 MB nand flash:
1. Type NANDFLASH::EraseBlocks 0x800000 0xF800000
in the console and press Enter
.
Enable OS PMECC parameters
in the drop down list.
2. Click on Execute
.
You will have a configuration pop-up whose field values depend on the board reference (1):
|
|||||||
Send Boot File
in the drop down list.
2. Click on Execute
.
3. A pop-up will ask you to select the AT91Bootstrap binary. Once done, click on Open
.
trimffs
option before flashing the rootfs.
Then you can follow this:
1. Click on the open file button and select the appropriate binary.
2. Set the address according to the nand flash memory map. In this case, we are flashing U-Boot.
3. Click on Send File
.
There is an extra step for U-Boot: the setup of the environment. When you are using the scripts, the U-Boot environment is generated and stored into a file which will be flashed into the nand. Here we don't have the U-boot environment binary so you have to run U-Boot on the board and to enter these commands (replace dtbSize and kernelSize by appropriate values):
setenv bootargs 'console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/uboot/kernel)ro,-(rootfs) rw rootfstype=ubifs ubi.mtd=1 root=ubi0:rootfs' setenv bootcmd 'nand read 0x21000000 0x00180000 dtbSize; nand read 0x22000000 0x00200000 kernelSize; bootm 0x22000000 - 0x21000000' saveNotes 1 : In fact, it doesn't depend on the board but on the nand flash device. We are assuming that the nand flash device used is always the same for a given SAM family.
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.