.sdcard images for T4240 and related scripts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

.sdcard images for T4240 and related scripts

1,038 Views
vigneshwarensan
Contributor III

I used yocto to build a T4240 image using the meta-fsl-ppc-master meta-fsl-ppc - Layer containing Freescale PPC hardware support metadata

How do I create a .sdcard image? Are there any available layers that help me build a .sdcard image? And how do I find necessary scripts that help me burn an SD card with the images I have built. Thanks in advance.

Tags (3)
0 Kudos
3 Replies

502 Views
yipingwang
NXP TechSupport
NXP TechSupport

The Yocto SDK doesn't provide the function of generating SD card image directly.

Please use the following method to deploy SD card images.

1. Connect the card reader with SD card to the Linux Host PC.

2. Create the partitions by "fdisk /dev/sdb", one MS-DOS partition(sdb1 and this partition usually for u-boot) and one ext2 partition(sdb2) in the SD card.

   #fdisk /dev/sdb

3. Use the mkfs.ext2 command to create the filesystems.

   # mkfs.vfat /dev/sdb1

   # mkfs.ext2 /dev/sdb2

4. Copy the file system to SD card by extracing the QorIQ_SDK_V1.3.1_E6500_20121220_ROOTFS_Image.tar.gz ,Remove the tarball after extracting rootfs.

   # cp QorIQ_SDK_V1.3.1_E6500_20121220_ROOTFS_Image.tar.gz  .

   # tar -zxvf QorIQ_SDK_V1.3.1_E6500_20121220_ROOTFS_Image.tar.gz

   # rm QorIQ_SDK_V1.3.1_E6500_20121220_ROOTFS_Image.tar.gz

  

5. Plug in the SD card to the target board and power on.

6. Set the environment in uboot for SD boot.

   # setenv bootfile uImage

   # setenv fdtfile uImage.dtb

   # setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr   /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'

   # boot

502 Views
vigneshwarensan
Contributor III

And do I simply cp the uImage directly into the MS-DOS partition? Do I have to do anything to do the boot partition?

Thanks a lot, btw.

0 Kudos

502 Views
yipingwang
NXP TechSupport
NXP TechSupport

There is a document in SDK describing how to boot from eSPI/SD/NAND on CoreNet platforms.

Please refer to 1323833.html in SDK 1.4.