Hi, Here's what I have tried, but could not get result in my project.
Download the u-boot image:
sudo dd if=u-boot.bin of=/dev/sdb bs=1K skip=1 seek=1; sync
Or If you are using no padding u-boot image:
sudo dd if=u-boot-no-padding.bin of=/dev/sdb bs=1K seek=1; sync
Download the kernel image:
sudo dd if=uImage of=/dev/sdb bs=1M seek=1; sync
Download the initramfs image:
sudo dd if=uramdisk.img of=/dev/sdb bs=1M seek=6; sync
sudo fdisk /dev/sdb
u [switch the unit to sectors instead of cylinders]
d [repeat this until no partition is reported by the ‘p’ command ]
n [create a new partition]
p [create a primary partition]
1 [the first partition]
8192 [for kernel and other]
Until the required
w [ this writes the partition table to the medium and fdisk exits]
Partitions
sudo mkfs.vfat /dev/sdb1
sudo mkfs.ext4 /dev/sdb2 -O ^extent -L system
sudo mkfs.ext4 /dev/sdb4 -O ^extent -L recovery
mkfs.ext4 /dev/sdb5 -O ^extent -L data
mkfs.ext4 /dev/sdb6 -O ^extent -L cache
Download the Android system root image:
sudo dd if=system.img of=/dev/sdb2; sync
Download the Android recovery image:
sudo dd if=recovery.img of=/dev/sdb4; sync
Environment Variables
U-Boot > setenv loadaddr 0x90800000 [0x90800000 for i.MX51, 0x70800000 for i.MX50/3]
U-Boot > setenv rd_loadaddr 0x90C00000 [0x90C00000 for i.MX51, 0x70C00000 for i.MX50/3]
U-Boot > setenv bootcmd 'run bootcmd_SD; bootm ${loadaddr} ${rd_loadaddr}'
U-Boot > setenv bootcmd_SD 'mmc read 0 ${loadaddr} 0×800 0×2000; mmc read 0 ${rd_loadaddr} 0×3000 0×300;'
U-Boot > setenv bootargs console=ttymxc0 init=/init androidboot.console=ttymxc0 di1_primary calibration ip=dhcp gpu_memory=16M
U-Boot > saveenv
Error_Log
PMIC Mode: SPI
Detecting HOME+POWER key for recovery ...
** Bad partition 6 **
Net: FEC0 [PRIME]
Hit any key to stop autoboot: 0
MMC read: dev # 0, block # 0,count 0 ...
0 blocks read: OK
MMC read: dev # 0, block # 0,count 0 ...
0 blocks read: OK
## Booting kernel from Legacy Image at 90800000 ...
Bad Header Checksum
ERROR: can't get kernel image!
Please Suggest!