Hi,
I have compiled u-boot in AM335x SDK-7 and i have flashed MLO, u-boot.img and u-boot.spl.bin files in NAND flash as
nand erase.chip
fatload mmc 0 0x81000000 MLO
nand write 0x81000000 0x0 0x80000
fatload mmc 0 0x81000000 u-boot-spl.bin
nand write 0x81000000 0x80000 0x40000
fatload mmc 0 0x81000000 u-boot.img
nand write 0x81000000 0xc0000 0x100000
fatload mmc 0 0x81000000 uImage
nand write 0x81000000 0x00a00000 0x500000
And i have able to boot kernel, but the problem is its trying to boot root file system from the mmc/sd card, i have tried to set the boot args as below but its again trying to boot from mmc/sd card.
setenv bootargs 'console=ttyO0,115200n8 noinitrd ip=off mem=128M rootdelay=5 rw ubi.mtd=7,2048 rootfstype=ubifs root=ubi0:rootfs'
The u-boot SPL is directly booting the kernel, can any one please tell how to set env variable and where i have to set these variables.