Can I get details about making initramfs in ltib?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Can I get details about making initramfs in ltib?

ソリューションへジャンプ
1,493件の閲覧回数
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,009件の閲覧回数
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,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 件の賞賛
返信