简体   繁体   English

RootFS类型,创建和引导

[英]RootFS types, creation and booting

If you are developing anything on embedded Linux you need a Rootfs to boot Linux. 如果要在嵌入式Linux上进行开发,则需要Rootfs来引导Linux。 Rootfs has always been a issue for me. Rootfs一直是我的问题。 I need some help. 我需要协助。
My target system is ARM, U-Boot Linux simple. 我的目标系统是ARM,简单的U-Boot Linux。

a) I have seen a rootfs.tar.gz file which is copied from SD card to say 0x60000000 and then a a)我已经看到了从SD卡复制的rootfs.tar.gz文件,说0x60000000 ,然后

bootm 0x40000000 0x50000000 0x60000000

-Does U-Boot uncompresses the rootfs image? -U-Boot是否解压缩rootfs映像?
-How does Linux know which type of rootfs it is? -Linux如何知道它是哪种类型的rootfs?

b) If bootarg is passed as root=/dev/mmcblk1p1 , how does Linux know which type of rootfs it is? b)如果bootarg作为root=/dev/mmcblk1p1 ,Linux如何知道它是哪种类型的rootfs?

c) sudo qemu-debootstrap --arch=armel precise ./precise/ creates directories with bin and other entries. c) sudo qemu-debootstrap --arch=armel precise ./precise/创建带有bin和其他条目的目录。 How do I create a tar.gz out of it? 如何从中创建tar.gz

In bootm you are specifying the system to where it can take the image of kernel. 在bootm中,您将指定可用于获取内核映像的系统。 Regarding filesystem, your filesystem reside in root=/dev/mmcblk1p1. 关于文件系统,您的文件系统位于root = / dev / mmcblk1p1中。 So copy the rootfs.tar.gz file in mmc and extract that .gz in mmc. 因此,在mmc中复制rootfs.tar.gz文件,然后在mmc中提取该.gz。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM