using initrd or initramfs on imx28evk for temp rootfs

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

using initrd or initramfs on imx28evk for temp rootfs

ソリューションへジャンプ
1,421件の閲覧回数
blsousan
Contributor III

Has anyone used initrd or initramfs on the imx28evk for a rootfs in memory?  Or use them with u-boot?  I need the ability to do have a small temp rootfs to assist in mounting a full rootfs from a USB stick (for field upgrade purposes).

Thanks,

Bill

ラベル(2)
0 件の賞賛
1 解決策
1,082件の閲覧回数
MarekVasut
Senior Contributor I

As for initrd , sure , the bootm command in U-Boot takes up to three arguments:

bootm <kernel uImage address> <initrd address> <FDT blob address>

So if you want your initrd to be passed to kernel , just supply the second argument.

Of course, you can also use initramfs and build the ramdisk into the kernel image if needed be. That's possible if you run 'make menuconfig' in the kernel source tree, navigate into 'General setup' -> 'Init RAM filesystem and RAM disk...' , check it and put path to your initramfs root dir into 'Initramfs source file(s)' . Note that if you have any /dev/ nodes in your initramfs's /dev/ , you might want to read Documentation/filesystems/ramfs-rootfs-initramfs.txt (you might want to read that anyway) section 'Populating initramfs' ...

元の投稿で解決策を見る

0 件の賞賛
5 返答(返信)
1,082件の閲覧回数
YixingKong
Senior Contributor IV

Bill

It seems that someone has answered the question. I will close the discussion. If you still have question, please reopen the DI or create another DI.

Regards,

Yixing

0 件の賞賛
1,082件の閲覧回数
sensaurabh
Contributor I

Hi, I would like to know this too. Any updates?

0 件の賞賛
1,083件の閲覧回数
MarekVasut
Senior Contributor I

As for initrd , sure , the bootm command in U-Boot takes up to three arguments:

bootm <kernel uImage address> <initrd address> <FDT blob address>

So if you want your initrd to be passed to kernel , just supply the second argument.

Of course, you can also use initramfs and build the ramdisk into the kernel image if needed be. That's possible if you run 'make menuconfig' in the kernel source tree, navigate into 'General setup' -> 'Init RAM filesystem and RAM disk...' , check it and put path to your initramfs root dir into 'Initramfs source file(s)' . Note that if you have any /dev/ nodes in your initramfs's /dev/ , you might want to read Documentation/filesystems/ramfs-rootfs-initramfs.txt (you might want to read that anyway) section 'Populating initramfs' ...

0 件の賞賛
1,082件の閲覧回数
YixingKong
Senior Contributor IV


Bill

We are sorry for getting back to you so late. Are you still stuck with the issue? If you have somehow to resolved the

issue, can we close the discussion? If you still need Freescale help, please feel free to contact us.

Thanks,

Yixing

0 件の賞賛
1,082件の閲覧回数
Gatts
Contributor I

I am in the same boat.. Did you make it work?. If yes, please let me know the detailed instructions.

0 件の賞賛