1. 7045默认编译工具链为diab,无奈自己只有GNU的license,只能见招拆招,解决编译问题,最终VIP工程编译通过,
F:\WindRiver_6.9ppc\vxworks-6.9\target\h\tool\gnu\defs.gnu
将CC_COMPILER(关键)
#CC_COMPILER = -ansi -fno-zero-initialized-in-bss
改为,直接去掉-ansi也不要加-std=c99:
CC_COMPILER = -fno-zero-initialized-in-bss
2. 注意precise添加qspi,emmc等核心支持,成功log
0x108ee720 (tNet0): ...gmac_0-linkspeed: 100M bps...
Adding 7130 symbols for standalone.
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]] ]]]] ]]]]]]]]]] ]] ]]]] (R)
] ]]]]]]]]] ]]]]]] ]]]]]]]] ]] ]]]]
]] ]]]]]]] ]]]]]]]] ]]]]]] ] ]] ]]]]
]]] ]]]]] ] ]]] ] ]]]] ]]] ]]]]]]]]] ]]]] ]] ]]]] ]] ]]]]]
]]]] ]]] ]] ] ]]] ]] ]]]]] ]]]]]] ]] ]]]]]]] ]]]] ]] ]]]]
]]]]] ] ]]]] ]]]]] ]]]]]]]] ]]]] ]] ]]]] ]]]]]]] ]]]]
]]]]]] ]]]]] ]]]]]] ] ]]]]] ]]]] ]] ]]]] ]]]]]]]] ]]]]
]]]]]]] ]]]]] ] ]]]]]] ] ]]] ]]]] ]] ]]]] ]]]] ]]]] ]]]]
]]]]]]]] ]]]]] ]]] ]]]]]]] ] ]]]]]]] ]]]] ]]]] ]]]] ]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]]]] Development System
]]]]]]]]]]]]]]]]]]]]]]]]]]]]
]]]]]]]]]]]]]]]]]]]]]]]]]]] VxWorks 6.9 SMP
]]]]]]]]]]]]]]]]]]]]]]]]]] KERNEL: WIND version 2.13
]]]]]]]]]]]]]]]]]]]]]]]]] Copyright Wind River Systems, Inc., 1984-2019
3. 继续走,发现tffs文件系统异常,log如下:
rfaRegister!
flash ID1_2: 0x4D190201_30528001
ctrl_0: qspiFlash_ParseInfo: devSize:32 MB, sectSize:64 KB
addr_bytes_mode:3
flash interface: 4-line mode!
tffsDevCreate failed.
手动format,并创建文件系统后显示正常
-> tffsShow
0: socket=RFA: type=0x1902, unitSize=0x10000, mediaSize=0x1000000
value = 51 = 0x33 = '3'
-> devs
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
8 host:
9 /vio
value = 25 = 0x19
-> tffsDevFormat
value = 0 = 0x0
->
->
-> sysTffsFormat 0
Formatted 256 of 256 units(16M) = 100.0 %
value = 0 = 0x0
-> usrTffsConfig 0, 0, "/tffs0"
Instantiating /tffs0 as rawFs, device = 0x10001
value = 0 = 0x0
-> dosfsDiskFormat("/tffs0")
Formatting /tffs0 for DOSFS
Instantiating /tffs0 as rawFs, device = 0x10001
Formatting...Retrieved old volume params with %38 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 0, sysId (null) , serial number fdee0000
Label:" " ...
Disk with 31557 sectors of 512 bytes will be formatted with:
Volume Parameters: FAT type: FAT16, sectors per cluster 2
2 FAT copies, 15700 clusters, 62 sectors per FAT
Sectors reserved 1, hidden 63, FAT sectors 124
Root dir entries 512, sysId VXDOS16 , serial number fdee0000
Label:" " ...
OK.
value = 0 = 0x0
-> devs
drv name
0 /null
1 /tyCo/0
1 /tyCo/1
8 host:
9 /vio
3 /tffs0
value = 25 = 0x19
-> tffsShow
0: socket=RFA: type=0x1902, unitSize=0x10000, mediaSize=0x1000000
value = 51 = 0x33 = '3'
-> usrTffsConfig(0,0,"/tffs0")
value = 0 = 0x0
-> cd "/tffs0"
value = 0 = 0x0
-> ls
value = 0 = 0x0
-> ll
value = 0 = 0x0