OK
button.
4. To erase only the nand flash rootfs partition, type this command after the SAM-BA prompt:
NANDFLASH::EraseBlocks 0x800000 0xFFFFFFFThe SAM-BA EraseBlocks command takes two parameter: a start and an end address of FLASH that you want to erase. 5. Press Send File Name Browse button and choose your UBI filesystem. 6. Enter the proper address on media in the Address text field. You can find the product map in GettingStarted_9x5. So in our case, the value for the filesystem is 0x800000. 7. Press Send File button. A Please Wait... dialog window is appearing: wait for the end of the flashing process. 8. Close SAM-BA, remove the USB cable. Ok, now you must have the Linux root filesystem flashed on your board.
<my_rootfs.ubi>
):
tftp 0x22000000 <my_rootfs.ubi>Erase the rootfs flash partition (248 MB):
nand erase 0x800000 0xf800000And write the downloaded ubi file on the flash memory. You must use the nand write.trimffs function to avoid ECC errors.
nand write.trimffs 0x22000000 0x800000 0x8e0000If the default arguments are not correct, you can also set them with this command:
setenv bootargs 'mem=128M console=ttyS0,115200 mtdparts=atmel_nand:8M(bootstrap/uboot/kernel)ro,-(rootfs) root=/dev/mtdblock1 rw rootfstype=ubifs ubi.mtd=1 root=ubi0 :rootfs'
|
||||||||||||||||||||||
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.