work相关
时间:2009-04-09 来源:rw99yy
硬件: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:
网络子系统