分类: 嵌入式
2010-12-01 01:05:49
vivi的配置与编译
STEP 1:
将MIZI 工具包的vivi-20030629.tar.bz2拷贝到工作目录下并解压,生成vivi目录。
STEP 2:
修改/vivi/Makefile里的一些变量设置:
LINUX_INCLUDE_DIR = ../kernel/include (需要上级目录下有kernel源码包)
(或LINUX_INCLUDE_DIR = /usr/local/arm/2.95.3/include )
CROSS_COMPILE = /usr/local/arm/2.95.3/bin/arm-linux-
ARM_GCC_LIBS = /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3
(需根据你arm-linux的安装目录修改,/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3,如果设置不正确会出现找不到libgcc.a的错误。)
STEP 4:
在arch/s
mtd_partition_t default_mtd_partitions[] = {
{
name: "vivi",
offset: 0,
size: 0x00020000,
flag: 0
}, {
name: "param",
offset: 0x00020000,
size: 0x00010000,
flag: 0
}, {
name: "kernel",
offset: 0x00030000,
size: 0x00200000,
flag: 0
}, {
name: "root",
offset: 0x00230000,
size: 0x01400000,
flag: MF_BONFS
},{
name: "usr",
offset: 0x01630000,
size: 0x02800000,
flag: 0
}
};
STEP 4:
# make menuconfig
选择”Load an Alternate Configuration File”菜单,然后写入”arch/def-configs/smdk
再选择”OK”,最后选择”Yes”退出.
再输入“make”开始编译,如果不报错,在vivi根目录下就会生成vivi二进制文件。
注意:以这个vivi作为bootloader时,先用下面的命令进行bon分区:
vivi > bon part 0 192K 2240K 22720K:M
然后再下载vivi。