使用xbdCreatePartition 初始化硬盘的问题

jackydi 2014-08-11 04:03:08
500G的ATA硬盘,通过PCIe挂载到p2020子卡,系统是vxworks 6.9。
下面是两个日志,每个日志都很奇怪。

-> devs
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
8 host:
3 /sd0:1
4 /sd0:2
4 /ata0:0
9 /vio
3 RAM:
5 stdio_pty_0x8ff0410.S
6 stdio_pty_0x8ff0410.M
value = 26 = 0x1a
->
-> xbdCreatePartition "/ata0:0",4,25,25,25
Instantiating /ata0 as rawFs, device = 0x40001
Instantiating /ata0:4 as rawFs, device = 0x90001
value = 0 = 0x0
-> devs
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
8 host:
3 /sd0:1
4 /sd0:2
9 /vio
3 RAM:
5 stdio_pty_0x8ff0410.S
6 stdio_pty_0x8ff0410.M
4 /ata0:4
value = 25 = 0x19
-> /* 这里的问题,为什么只有一个/ata0:4,难道是之前分过区,并且分区错误的原因吗? */
-> dosFsVolFormat "/ata0:4",0
Formatting /ata0:4 for DOSFS
Instantiating /ata0:4 as rawFs, device = 0x60001
Formatting...Retrieved old volume params with %48 confidence:
Volume Parameters: FAT type: FAT32, sectors per cluster 0
0 FAT copies, 0 clusters, 0 sectors per FAT
Sectors reserved 0, hidden 0, FAT sectors 0
Root dir entries 32, sysId (null) , serial number a900000
Label:" " ...
Disk with 244192725 sectors of 512 bytes will be formatted with:
Volume Parameters: FAT type: FAT32, sectors per cluster 64
2 FAT copies, 3814579 clusters, 29809 sectors per FAT
Sectors reserved 32, hidden 0, FAT sectors 59618
Root dir entries 0, sysId VX5DOS32, serial number a900000
Label:" " ...
OK.
value = 0 = 0x0
->
-> copy "/sd0:1/vxworks","/ata0:4/vx"
copy: error writing file. errno 0x 38001d
value = -1 = 0xffffffff



可以确定上面的分区操作是没有成功的,为什么这样呢?
需要说明的是,这块硬盘之前分过区,但是没有成功,然后在电脑上删除错误的分区后重新分区,又把所有的分区删除,然后重新挂载子卡上分区,就变成上面的错误了。


第二个日志:

-> devs
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
8 host:
9 /vio
3 /sd0:1
4 /sd0:2
3 RAM:
4 /ata0:0
5 stdio_pty_0x1030b4f0.S
6 stdio_pty_0x1030b4f0.M
value = 27 = 0x1b
-> xbdCreatePartition "/ata:0",1,0,0,0
value = -1 = 0xffffffff
-> xbdCreatePartition "/ata0:0",1,0,0,0
Instantiating /ata0 as rawFs, device = 0x60001
value = 0 = 0x0
-> dosFsVolFormat "/ata0:1",0x20,0
Formatting /ata0:1 for DOSFS
Instantiating /ata0:1 as rawFs, device = 0x90001
Formatting...Retrieved old volume params with %95 confidence:
Volume Parameters: FAT type: FAT32, sectors per cluster 64
2 FAT copies, 0 clusters, 53699 sectors per FAT
Sectors reserved 32, hidden 536870975, FAT sectors 107398
Root dir entries 32, sysId (null) , serial number 3ba90000
Label:" " ...
Disk with 439902194 sectors of 512 bytes will be formatted with:
Volume Parameters: FAT type: FAT32, sectors per cluster 64
2 FAT copies, 6871793 clusters, 53699 sectors per FAT
Sectors reserved 32, hidden 536870975, FAT sectors 107398
Root dir entries 0, sysId VX5DOS32, serial number 3ba90000
Label:" " ...
OK.
value = 0 = 0x0
->
->
-> dosFsShow "/ata0:1"

volume descriptor ptr (pVolDesc): 0xf104280
XBD device block I/O handle: 0x90001
auto disk check on mount: NOT ENABLED
volume write mode: copyback (DOS_WRITE)
volume options:
max # of simultaneously open files: 26
file descriptors in use: 0
# of different files in use: 0
# of descriptors for deleted files: 0
# of obsolete descriptors: 0

current volume configuration:
- volume label: NO LABEL ; (in boot sector: )
- volume Id: 3ba90000
- total number of sectors: 439,902,194
- bytes per sector: 512
- # of sectors per cluster: 64
- # of reserved sectors: 32
- FAT entry size: FAT32
- # of sectors per FAT copy: 53,699
- # of FAT table copies: 2
- # of hidden sectors: 63
- first cluster is in sector # 107,430
- Update last access date for open-read-close = FALSE
- directory structure: VFAT
- file name format: 8-bit (extended-ASCII)
- root dir start cluster: 2

FAT handler information:
------------------------
- allocation group size: 688 clusters
- free space on volume: 112,587,440,102 bytes
value = 0 = 0x0



分区只有110G,硬盘实际是500G的,这是怎么回事?VxWorks的FAT32分区不能支持太大的分区容量吗?
...全文
923 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复
内容概要:本文档是关于“基于小信号扫频辨识的光伏并网逆变器正负序交互稳定性分析”的博士论文复现资源,配套提供Matlab代码与Simulink仿真实现。内容聚焦于弱电网条件下光伏并网逆变器的稳定性问题,深入研究其正负序阻抗建模方法、小信号扫频辨识技术及正负序交互失稳机理。通过构建高精度的系统仿真模型,采用扫频法提取逆变器在不同控制环路(如锁相环、电流环)影响下的序阻抗特性,并结合奈奎斯特稳定性判据评估其与电网阻抗之间的交互作用,系统性地揭示了宽频带振荡的产生机制。该资源完整还原了论文中的关键理论推导与仿真验证流程,适用于从事新能源并网、电力电子系统建模与稳定性分析的研究人员进行学习、复现与二次开发。; 适合人群:具备电力系统、电力电子与自动控制理论基础,熟练掌握Matlab/Simulink仿真工具,从事新能源发电并网、逆变器控制策略或电力系统稳定性研究的研究生、科研人员及工程技术人员。; 使用场景及目标:① 复现并验证博士论文中提出的光伏逆变器正负序阻抗建模与小信号扫频分析方法;② 深入理解弱电网环境下由正负序耦合引发的交互失稳现象及其物理机理;③ 掌握基于阻抗法的并网系统稳定性分析流程,为虚拟同步机、构网型控制等先进控制策略的稳定性研究提供技术参考与仿真支撑。; 阅读建议:建议学习者结合提供的代码与仿真模型,首先深入理解序阻抗建模与扫频辨识的基本原理,然后逐步调试仿真程序,重点关注锁相环动态、电流控制器参数对序阻抗曲线的影响,最终掌握从模型搭建、扫频测试到稳定性判据应用的全流程分析能力。

2,187

社区成员

发帖
与我相关
我的任务
社区描述
xworks是美国 Wind River System 公司( 以下简称风河公司 ,即 WRS 公司)推出的一个实时操作系统。
社区管理员
  • VxWorks开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧