I can write uBOOT, UBL by CCS,
I also write a program run in Linux user-space, it can write uImage, but when I write uBoot, UBL, it failed to boot.
my program is somthing like:
open ( "/dev/mtdblock2", xxx ); //uboot
fopen ( "/root/sff" );
write ( xxxx );
And I 've added the header file (2048Bytes) in uboot.