How to use Cramfs as linux rootfs?

原创 2015年11月20日 10:44:56
@author:mingliang.lu
@date  :2015112010:51:58
@email :mingllu@163.com

1. Background


  • cramfs is a readonly-system,you can not write any data in this system.

  • if you want to use cramfs. you should config your linux kernel support your rootfs. You can find config place here :
    ->File system
    —–>Miscellaneous filesystems (MISC_FILESYSTEMS [=y])
    ———>Compressed ROM file system support(cramfs)

2. How to make cramfs?


mkfs.cramfs rootfs rootfs.cramfs

3. How to write Cramfs?


Step1. Enter U-boot console

1).reset/reboot your system and enter into uboot console

Step2. Tftp download rootfs image

2).tftp c0008000 rootfs.cramfs

Step3. nand erase rootfs sector

3).nand erase rootfs/ nand erase nand_flash_rootfs_sector_start rootfs_sector_size

Step4. nand write rootfs into sector

4).nand write c0008000 nand_flash_rootfs_sector_start rootfs_size

4. How to set u-boot bootargs to guide Cramfs as rootfs?


setenv bootargs noinitrd mem=128m root=/dev/mtdblock4 init=/linuxrc console=ttySAC2,115200 
版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

How to use json with as3corelib in flex( JSON )

How to use json with as3corelib in flex(  JSON ) 摘要:本文主要介绍as3corelib如何在flex中使用,以及如何在flex中使用json...

how to use a SQLite database in a standalone program with an HTML interface and VBScript as the programming language

This article describes how to use a SQLite database in a standalone program with an HTML interface a...

How to use linux

  • 2010年01月06日 20:24
  • 11.87MB
  • 下载

How to use git in Linux

从仓库中导出文件 我们需要将文件从 Git 仓库(隐藏目录中的那些文件)中导出到工作目录中才能开始自己的 hack 过程。下面的命令会在当前目录中写入没有隐藏的目录,其中包含了 Linux 的源代码...

How To Use Linux epoll with Python

原文:http://scotdoyle.com/python-epoll-howto.html?How To Use Linux epoll with PythonContentsIntroducti...
  • ani_di
  • ani_di
  • 2011年05月22日 18:38
  • 2554

How to use svn in Linux

1、检出文件(checkout)。 使用命令:svn co http://{svn repository url} /destination 然后系统会用当前的用户名登...

How to use on-screen virtual keyboard on Linux

On-screen virtual keyboard is an alternative input method that can replace a real hardware keyboard....

How to use the Linux top command

http://alvinalexander.com/linux/unix-linux-top-command-cpu-memory How to use the Linux top comm...
  • loryliu
  • loryliu
  • 2015年12月05日 08:58
  • 245

How to use Screen on Linux

GNU Screen is a terminal multiplexer. You can have multiple sessions / terminal from single Screen i...

How to use "chmod" under linux

This "chmod" command is be used quite a lot. and I cry for understanding and being familiar with thi...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:How to use Cramfs as linux rootfs?
举报原因:
原因补充:

(最多只允许输入30个字)