Quantcast
Channel: Embedded Software (Read Only)
Viewing all articles
Browse latest Browse all 25965

Forum Post: RE: NAND Flash with AM335x

$
0
0

Hi Praveen,

If you are using AM335x then better to follow the procedure which you posted previous reply for SPL and u-boot and please use UBIFS for filesystem.

We have two types for flashing UBIFS filesystem into NAND flash.

1) At u-boot shell.

Copy the ubi.img file into MMC/SD card

u-boot# mw.b 0x82000000 0xFF   u-boot# mmc rescan  u-boot# fatload mmc 0 0x82000000 ubi.img
u-boot# nand erase 0x780000 0xF880000 u-boot# nand write 0x82000000 0x780000 0xFC0000
0x780000  --> This address should be the starting address of mtd7 partition.
#setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=256M rootwait=1 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs init=/init'

2) At Linux shell with the help of NFS or initramfs (ramdisk) booting.

Use the below TI wiki link.

U-boot

http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#UBIFS_file_system_flashing

Linux

http://processors.wiki.ti.com/index.php/UBIFS_Support#Creating_UBIFS_file_system


Viewing all articles
Browse latest Browse all 25965

Trending Articles