using initrd or initramfs on imx28evk for temp rootfs

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

using initrd or initramfs on imx28evk for temp rootfs

跳至解决方案
1,438 次查看
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,099 次查看
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,099 次查看
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,099 次查看
sensaurabh
Contributor I

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

0 项奖励
1,100 次查看
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,099 次查看
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,099 次查看
Gatts
Contributor I

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

0 项奖励