|
发表于 2010-1-11 11:13:32
|
显示全部楼层
具体可以查看你的vivi源码中的lib/load_file.c文件,看看其中是否支持load命令的t协义传输。
比如我的vivi中- static size_t
- download_file(char *buf, size_t size, int modem, char *name)
- {
- switch (modem) {
- case X_MODEM:
- #ifdef CONFIG_SERIAL_XMODEM
- printk("Ready for downloading using xmodem...\n");
- printk("Waiting...\n");
- return xmodem_receive(buf, size);
- #else
- printk("Not support XMODEM protocol by this vivi\n");
- #endif
- break;
- case Y_MODEM:
- #ifdef CONFIG_SERIAL_YMODEM
- printk("Ready for downloading using ymodem...\n");
- printk("Waiting...\n");
- return ymodem_receive(buf, size, name);
- #else
- printk("Not support YMODEM protocol by this vivi\n");
- #endif
- break;
- case Z_MODEM:
- printk("Not support zmodem yet.\n");
- break;
- default:
- printk("Not support this modem\n");
- break;
- }
- return 0;
- }
复制代码 可见上面代码中只支持x协议传输。
如果要加入tftp协议传输的话,得修改lib/load_file.c文件中相关函数,增加load命令的相应选项,给vivi增加网络支持。(可能移植uboot会更方便一些)
ps:我还未见过有2楼那个功能的vivi,可否放源代码上来看下? |
|