免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: voidjackjiang

[g-bios] 完善boot kernel机制 [复制链接]

论坛徽章:
0
发表于 2011-10-18 19:52 |显示全部楼层
启动g-bios的时候,发现了两个有关于ping指令的bug:
(1)第一次执行ping命令的时候,会出现ping不通的情况,
  1. g-bios: 3# ping                                                               
  2. PING 192.168.2.101:

复制代码

需要按CTRL + C,才能接收到数据包,
  1. 255 bytes from 255.255.255.255: icmp_req = 65535, ttl = 255
  2. 28 bytes from 192.168.2.101: icmp_req = 2, ttl = 64
  3. 28 bytes from 192.168.2.101: icmp_req = 3, ttl = 64
复制代码


(2)在未执行ping命令的情况下,启动tftp无法传递数据,
  1. g-bios: 3# tftp -f zImage                                                      
  2. "zImage": 192.168.2.101 => 192.168.2.100
复制代码

需要进行ping指令,才能传递数据:
  1. g-bios: 3# ping                                                               
  2. PING 192.168.2.101:
  3. 255 bytes from 255.255.255.255: icmp_req = 65535, ttl = 255
  4. 28 bytes from 192.168.2.101: icmp_req = 2, ttl = 64
  5. 28 bytes from 192.168.2.101: icmp_req = 3, ttl = 64

  6. g-bios: 3# tftp -f zImage
  7. "zImage": 192.168.2.101 => 192.168.2.100
  8. 1459740(1M401K540B) loaded
复制代码

论坛徽章:
0
发表于 2012-08-23 17:07 |显示全部楼层
本帖最后由 zehn_w 于 2012-08-23 17:08 编辑
yifei_wang 发表于 2011-10-12 20:43
Create UBIFS image

       UBIFS 是工作在 UBI 层之上的, 因此意味着创建 ubifs image 必须包括两个步骤 ...


我也同样遇见 UBI error: ubi_read_volume_table: the layout volume was not found.
查找代码到
  1. sv = ubi_scan_find_sv(si, UBI_LAYOUT_VOLUME_ID);
  2.         if (!sv) {
  3.                 /*
  4.                  * No logical eraseblocks belonging to the layout volume were
  5.                  * found. This could mean that the flash is just empty. In
  6.                  * this case we create empty layout volume.
  7.                  *
  8.                  * But if flash is not empty this must be a corruption or the
  9.                  * MTD device just contains garbage.
  10.                  */
  11.                 if (si->is_empty) {
  12.                         ubi->vtbl = create_empty_lvol(ubi, si);
  13.                         if (IS_ERR(ubi->vtbl))
  14.                                 return PTR_ERR(ubi->vtbl);
  15.                 } else {
  16.                         ubi_err("the layout volume was not found");
  17.                         return -EINVAL;
  18.                 }
  19.         }
复制代码
当时问题是如何解决的?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP