摘要: 现象: 在cfe中,当给网卡配上ip地址以后,外面可以ping -f,但系统启动以后,用initramfs中的ipconfig配上网卡后,发现不能ping通虚拟机,用tcpdump发现arp的通信是正常的,通过调试,发现在sb1250的驱动中有 len = (int)G_DMA_DSCRB_PKT_SIZE(dsc->dscr_b) - 4;在收到包的时候会把dma传过来的长度减去4,查资料发现这个是crc的长度,由于在arp处理过程中没有检查skb的长度,所以,arp的通信正常,但在 ip_rcv中检查长度了,所以包被丢弃.在网卡模拟程序中加上crc的长度,问题解决.还可以用ping 阅读全文
posted @ 2011-04-05 13:44 konggang 阅读(195) 评论(0) 推荐(0) 编辑
摘要: screen shot of new version2006/5/24 8:05:43[root@localhost app]# ./simos==================================sibyte simulator hardware configration============================SIBYTE SIM MACHINE CONFIGRATION:machine num: 1max cpus per machine: 2max ether controller per machine: 3cell mode : offprom path 阅读全文
posted @ 2011-04-05 13:43 konggang 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 1.Fix some bugs, and the new version can run linux 2.6 and initramfs normally2. Clean the architecture of sibytesim, but it is not the end, the cleaning should goes further;3. Replace tcl with python, I'm satisfied with the job althoug it is not finished yet , because I need not to learn a new l 阅读全文
posted @ 2011-04-05 13:42 konggang 阅读(158) 评论(0) 推荐(0) 编辑
摘要: 2006/5/6 11:54:111. initialize cache sets and cache line size in probe_pcache()2.initialize shm_align_mask = max_t( unsigned long, c->dcache.sets * c->dcache.linesz - 1, PAGE_SIZE - 1); in r4k_cache_init() caculate the size of pcache , and minus 1, got cache mask3.let's look at how doeslin 阅读全文
posted @ 2011-04-05 13:41 konggang 阅读(305) 评论(0) 推荐(0) 编辑
摘要: 2006/4/26 19:58:30bug 暂时解决了,不过没有得到高手的认可:), 既然高手认为我的想法有问题,我还得花时间去仔细看看why does the code like this?关于此主题的全部 4 个帖子 - 树式浏览 发件人:konggangg...@163.com- 查看个人资料日期:2006年4月24日(星期一) 下午9时40分 尚未评分 显示选项 hi, guys, when I run initramfs with klibcon mips platform, myprogram always be killed , I found that it is becaus 阅读全文
posted @ 2011-04-05 13:40 konggang 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 2006/4/23 22:24:46 以前只能使用shell内置的命令,执行其他命令的时候都会被kill,跟了一下,原来是因为编出来的程序的data段长度为0,所以在 elf_map的时候,返回错误,进程被杀死,于是使用了static编译的程序,shell就跑起来了,执行程序没有问题。elf_map为什么要在那里返回一个错误呢?还要好好看看代码。[root@gkong app]# ./simosCurrent ISA is MIPS@@@@ sourcing standard.tcl@@@@ standard.tcl: detailLevel=0@@@@ TargetOS = LINUXSIM 阅读全文
posted @ 2011-04-05 13:39 konggang 阅读(344) 评论(0) 推荐(0) 编辑
摘要: 2006/4/23 7:47:20在编译mips程序的时候,如果想加入调试信息,用别的格式toolchain不能识别,使用-gstabs 阅读全文
posted @ 2011-04-05 13:39 konggang 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 2006/4/22 20:32:26 经过一天的调试和修改,终于可以运行shell了,顺便加了再maintance packet命令里面加了两条调试指令,这样可以很方便的从通过gdb直接调试simos的应用程序了,还修改了两个非常低级的编程错误,看来赶时间赶出来的东西质量还是不能保证啊。Current ISA is MIPS@@@@ sourcing standard.tcl@@@@ standard.tcl: detailLevel=0@@@@ TargetOS = LINUXSIMOS: pid 6654PARAM: PARAM(ETHERNET.Count) (machine 0) ha 阅读全文
posted @ 2011-04-05 13:38 konggang 阅读(278) 评论(0) 推荐(0) 编辑
摘要: 2006/4/16 21:22:27[root@gkong app]# ./simosCurrent ISA is MIPS@@@@ sourcing standard.tcl@@@@ standard.tcl: detailLevel=0@@@@ TargetOS = LINUXSIMOS: pid 13609PARAM: PARAM(ETHERNET.Count) (machine 0) has not been initialized===== SimOS Version 3.0 =====MIPSY: Turning off caches without flushing.simosb 阅读全文
posted @ 2011-04-05 13:37 konggang 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 1。能精确模拟sibyte sb1250 swarm板,尽量和真实的硬件兼容,希望以后能模拟所有broadcom开发平台2。提供非常强大的调试功能,让bootloader和kernel的开发变的比较简单3.把simos以前的功能都实现 阅读全文
posted @ 2011-04-05 13:36 konggang 阅读(151) 评论(0) 推荐(0) 编辑