Can I get details about making initramfs in ltib?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Can I get details about making initramfs in ltib?

跳至解决方案
1,494 次查看
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

标签 (1)
0 项奖励
回复
1 解答
1,010 次查看
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 项奖励
回复
1 回复
1,011 次查看
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 项奖励
回复