首次制作rootfs的过程
来源:互联网 发布:淘宝视频妹子 编辑:程序博客网 时间:2024/05/04 04:01
首次制作ubifs文件系统
准备工作:因为需要将img烧到板子上,所以必须使用包含板子驱动的目标文件系统的源文件系统release-image.tar.gz(该板通用的文件系统),解压缩到/disk/release-image
第一步:替换内核(同一块板子文件系统不变,新功能和模块都通过在内核中添加,然后将人工改造过的内核替换成该板通用的文件系统)
注释:freescale_change_kernel.tar.gz是目标内核
将里面的lib_modules_2.6.28解压缩后2.6.28-515-g4eec389/目录下的全部文件拷贝到/disk/release-image/lib/modules/目录下
将里面的amd-gpu-x11-bin-mx51-5.1.0.tar.gz解压后amd-gpu-x11-bin-mx51-5.1.0/目录下的全部文件拷贝到/disk/release-image/lib
cp -a 2.6.28-515-g4eec389/* /disk/release-image/lib/modules/
cp -a amd-gpu-x11-bin-mx51-5.1.0/* /disk/release-image/
第二步:安装上git
[root@localhost ~]#yum install git
第三步:安装mtd-utils工具
[root@localhost ~]#git clone git://git.infradead.org/mtd-utils.git
将mtd-utils.git下载到/home/fedora10/nfs/AE08/mtd-utils/目录下
[root@localhost ~]cd /home/fedora10/nfs/AE08/mtd-utils/
[root@localhost mtd-utils]# make
compr_lzo.c:29:23: 错误:lzo/lzo1x.h:没有那个文件或目录
缺少了一个开发包,安装上lzo-devel,再make通过
[root@localhost mtd-utils]#yum install lzo-devel
目标路径是自己决定的比如:"/home/robust/freescale/utils/"
[root@localhost mtd-utils]#make install DESTDIR=/home/robust/freescale/utils/
导入执行路径:
[root@localhost mtd-utils]# export PATH=/home/robust/freescale/utils/usr/sbin/:$PATH
第四步:
[root@localhost AE08]#mkfs.ubifs -d /home/fedora10/nfs/AE08/release-image/ -m 4096 -e 516096 -c 4096 -x none -o ubi.img
第五步:
创建和编辑/home/robust/freescale/utils/ubi.ini
内容如下:
[system]
mode=ubi
image=/home/fedora10/nfs/AE08/ubi.img
vol_id=0
vol_size=1024MiB
vol_type=dynamic
vol_name=NFSCHINA
vol_alignment=1
vol_flags=autoresize
第六步:
[root@localhost AE08]#/home/robust/freescale/utils/usr/sbin/ubinize -o rootfs.img -m 4096 -p 512KiB /home/robust/freescale/utils/ubi.ini
[root@localhost AE08]#mv rootfs.img AE08_1.0.2.100510_Alpha.img
将img改成自己需要的名字就完工了!
- 首次制作rootfs的过程
- rootfs和ramdisk的制作
- arm linux rootfs的制作
- linux rootfs.img的制作
- rootfs文件系统的制作(一)
- rootfs的挂载过程
- rootfs的挂载过程
- rootfs的挂载过程
- rootfs的挂载过程
- rootfs的挂载过程
- rootfs的挂载过程
- 用busybox制作自己的rootfs
- 根文件系统(rootfs)的制作
- rootfs的制作(busybox)和安装
- rootfs文件系统的制作(二)
- rootfs->ext2.img->ext2.bin->ext2.boot 制作过程
- 制作rootfs问题记录
- 制作rootfs, 使用udev
- MYSQL中EXPLAIN的说明
- QQ的在线拼音输入法
- 普通行列转换(交叉表,横表变列表)
- mysql连接测试程序
- 关于位运算的应用
- 首次制作rootfs的过程
- struts2 spring hibernate的整合
- 简单工厂与工厂方法
- vpn
- 健康开始专业管理
- 软件测试面试题集锦
- 在VC中使用自定义资源,FindResource,LoadResource,LockResource
- 生活
- 深入掌握JMS(一):JSM基础