免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1021 | 回复: 0
打印 上一主题 下一主题

work相关 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-04-09 16:41 |只看该作者 |倒序浏览

硬件:rt2880F (mips)
FLASH:4M     0x00400000 + 0x00400000
SDRAM:32M   0x8A000000 + 0x02000000

Kernel:2.4
RootFs: squashfs


FW生成过程
mipsel-linux-objcopy -O binary -R .note -R .comment -S $(KERNELDIR)/vmlinux vmlinux.bin
./tools/squashfs-tools/lzma/lzma e vmlinux.bin $(KERNEL_IMG)
./tools/squashfs-tools/mksquashfs-lzma rootfs $(ROOTFS_IMG) -le
./tools/buildimg/packimgs -v -o raw.img -i $(KERNEL_IMG) -i $(ROOTFS_IMG)
./tools/buildimg/v2image -v -i raw.img -o web.img -d /dev/mtdblock/2  (specify mtdblock of f/w)

Vmlinux + rootfs = release.bin

Mtd device
Mtdblock1 =   rootfs  (This address is dynamic generate)
Mtdblock2 =   upgrade
Fw由kernel+rootfs生成烧在mtdblock2(包含了rootfs的地址)
系统启动的时候会根据rootfs的具体地址动态生成mtdblock1地址

FW使用lzma压缩
Bootloader bootm 中将其解压到指定位置:0x8a0000

启动:init脚本
/etc/init.d/rcS


App:
busybox
Xmldb
Httpd(mathopd)



2690:


网络子系统


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/38413/showart_1895582.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP