Can I get details about making initramfs in ltib?

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

Can I get details about making initramfs in ltib?

Jump to solution
993 Views
x10
Contributor V

Hi, All

My system is imx28 based + linux-2.6.35. With ubifs as rootfs, booting time is quite long. As my understand, the booting time can be reduced with iniramfs as rootfs. following some introduction on web, I make a initramfs which can not been unpacked by kernel. But the initramfs made by ltib is work, so is it possible to get the detail steps about making initramfs.cpio.gz in ltib. thanks!

BR

ChengShi

emtronix

Labels (1)
0 Kudos
1 Solution
509 Views
4guin4g4
Contributor IV

1. Select initramfs in Target Image Generation in "ltib -m config" and create initramfs.cpio.gz file.

2. Copy attached file to imx-bootlets-src-10.12.01  and build image.

   After build, you need check the file size to make sure file imx28_linux.sb and imx28_ivt_linux.sb

   include boot_prep, zimage and ramfs file.

   With the changes in linux_ivt.bd and linux.bd, the file size of initramfs.cpio.gz is less than 0x400000.

   If the file size of initramfs.cpio.gz is big than 0x400000, except modify linux_ivt.bd and linux.bd,

   also need modify  imx-bootlets-src-10.12.01/linux_prep/core/setup.c, change the size of u.initrd.size

1. Select initramfs in Target Image Generation in "ltib -m config" and create initramfs.cpio.gz file.

2. Copy attached file to imx-bootlets-src-10.12.01  and build image.

   After build, you need check the file size to make sure file imx28_linux.sb and imx28_ivt_linux.sb

   include boot_prep, zimage and ramfs file.

   With the changes in linux_ivt.bd and linux.bd, the file size of initramfs.cpio.gz is less than 0x400000.

   If the file size of initramfs.cpio.gz is big than 0x400000, except modify linux_ivt.bd and linux.bd,

   also need modify  imx-bootlets-src-10.12.01/linux_prep/core/setup.c, change the size of u.initrd.size

static void setup_initrd_tag(void)

{

        params->hdr.tag = ATAG_INITRD2 ;

        params->hdr.size = tag_size(tag_initrd);

        params->u.initrd.start = 0x40800000;

        params->u.initrd.size =  0x00400000;

        params = tag_next(params);

}

3. Select package list in "ltib -m config" to configure boot parameter as

   "console=ttyAM0,115200 rw gpmi"

3. Select package list in "ltib -m config" to configure boot parameter as

   "console=ttyAM0,115200 rw gpmi"

View solution in original post

0 Kudos
1 Reply
510 Views
4guin4g4
Contributor IV

1. Select initramfs in Target Image Generation in "ltib -m config" and create initramfs.cpio.gz file.

2. Copy attached file to imx-bootlets-src-10.12.01  and build image.

   After build, you need check the file size to make sure file imx28_linux.sb and imx28_ivt_linux.sb

   include boot_prep, zimage and ramfs file.

   With the changes in linux_ivt.bd and linux.bd, the file size of initramfs.cpio.gz is less than 0x400000.

   If the file size of initramfs.cpio.gz is big than 0x400000, except modify linux_ivt.bd and linux.bd,

   also need modify  imx-bootlets-src-10.12.01/linux_prep/core/setup.c, change the size of u.initrd.size

1. Select initramfs in Target Image Generation in "ltib -m config" and create initramfs.cpio.gz file.

2. Copy attached file to imx-bootlets-src-10.12.01  and build image.

   After build, you need check the file size to make sure file imx28_linux.sb and imx28_ivt_linux.sb

   include boot_prep, zimage and ramfs file.

   With the changes in linux_ivt.bd and linux.bd, the file size of initramfs.cpio.gz is less than 0x400000.

   If the file size of initramfs.cpio.gz is big than 0x400000, except modify linux_ivt.bd and linux.bd,

   also need modify  imx-bootlets-src-10.12.01/linux_prep/core/setup.c, change the size of u.initrd.size

static void setup_initrd_tag(void)

{

        params->hdr.tag = ATAG_INITRD2 ;

        params->hdr.size = tag_size(tag_initrd);

        params->u.initrd.start = 0x40800000;

        params->u.initrd.size =  0x00400000;

        params = tag_next(params);

}

3. Select package list in "ltib -m config" to configure boot parameter as

   "console=ttyAM0,115200 rw gpmi"

3. Select package list in "ltib -m config" to configure boot parameter as

   "console=ttyAM0,115200 rw gpmi"

0 Kudos