where are these images in ltib?

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

where are these images in ltib?

1,063 Views
KrishnaPavan
Contributor II

For loading linux OS on i.MX5X I need at least 3 images:

  1. bootloader image
  2. kernel image
  3. root file system image or tarball

I wanted to know the locations of these images in the ltib directory.

 

I came to know that I have to copy some files to SD_Card, and some image file uboot.bin from terminal..

 

A   DETAILED DESCRIPTION is always welcome.

Labels (1)
Tags (2)
0 Kudos
5 Replies

883 Views
daiane_angolini
NXP Employee
NXP Employee

Take a look on my super beautiful high technological draw of the sdcard.628-sdcard.bmp

 

 

When crafting sdcard, leave some unallocated space at sdcard beginning, for example, 20M. You can do that when you create EXT4 partition. Tell gparted you want some "free space preceding". It must have space for uboot and uImage binary files.

The complete yellow partition will be your rootfs.

 

Remember that first 512 k is for partition table

 

you will place uboot at 1K, for that use the no padding binary and the following command line:

 

$ sudo dd if=u-boot-no-padding.bin of=/dev/sdX bs=1K seek=1

 

If you use binary with padding (u-boot.bin) command line is different (and I don´t know it by heart)

 

You will place uImage at 1M, for that use the following command line;

 

$ sudo dd if=uImage of=/dev/sdX bs=1M seek=1

 

For rootfs, you should copy any rootfs file into the mounted ext4 partition. It´s just a cp command ;)

 

 

As Nico told:

/LTIB/boot/ -->here there are the kernel image and the bootloader image

/LTIB/rootfs --> here there's the file system

 

In fact I don´t know if you facing some problem in this step, but I think the picture can help someone else.....

0 Kudos

883 Views
KrishnaPavan
Contributor II

Is it that I should copy all the file contents that account to something around 30+ MB to my SD Card,

 

Then plug it into respective port, and then execute the commands to copy that bootloader and kernel image to BootROM?

0 Kudos

883 Views
KrishnaPavan
Contributor II

Thanks for your reponses @ Jovanovic & Nico

 

I found the    boot-loader image to be @ ltib/rootfs/boot/uboot.bin

 

                   kernel image is @ ltib/rootfs/boot/uImage

 

                   then what about rootfs image?

0 Kudos

883 Views
Nico
Contributor II

I use LTIB on  iMX28...if it's the same situation, the files you need are in the following directory:

/LTIB/boot/ -->here there are the kernel image and the bootloader image

/LTIB/rootfs --> here there's the file system

0 Kudos

883 Views
VladanJovanovic
NXP Employee
NXP Employee

After you install LTIB and build the BSP, u-boot and kernel images will be in <LTIB FOLDER>/rootfs/boot

 

You can generate root file sytem tarball yourself from the rootfs folder, which contains full file target system.

0 Kudos