[VxW] help needed on detail of vxWorks DosFs

VxWorks

    Sponsored Links

    Next

  • 1. TFFS format
    I have been trying to reformat a Flash device to a smaller size with not much luck. My system has a 16Mb Flash that contains a TFFS formatted section along with the boot. Once booted, I need reformat the Flash to be 8Mb. I have used raw IO calls to erase the contents of the 16 mb flash using TFFS_PHYSICAL_ERASE. The FLASH_SIZE and FLASH_ADDR of the Flash is then changed. The sysTFFSformat of the 8Mb device fails and crashes the system. When the card is rebooted tffsShowAll indicates that some formatting of the 8Mb size has succeeded, unit size and media size, but the tffsDevCreate of the newly partially formatted flash causes a crash.
  • 2. Free Bytes on dosFs2
    I have a disk partitioned into 4 - 3 x 1Gb and 1 x 32 Gb. Using fstatfs gives sensible results for the amll partitions but for the larger one - when empty returns free blocks > actual blocks. Does anyon have any experience of this?
  • 3. =?koi8-r?B?+sHEwd7BIMkgVGhyZWFk?=
    , VxWorks thread, POSIX thread. .
  • 4. Device Driver Debugging
    Hi, I am writing END (VxWorks 5.4 on MIPS) for proprietory device. Any good pointers on device driver debugging tricks? Thanks, Bhal. PS: I do not have tornado support, no gdb, the only debug facility currently I have is access to map file and print on console.
  • 5. Why I cannot use @pwd, @cd, @ll,etc.
    Hello all, I tried to get the path in the target , so I called pwd but what I got was the path of the host.Then I typied @pwd , but only got "syntax error". So did @cd, @ll,etc. My host was pcPentium, Tornado2.0.Hard disk boot, net download.And I have initialize dosFs useing code below, these codes have all passed throught. Anyone can tell me why. Thank you very much. BLK_DEV * pHardDiskBlkDev; DOS_VOL_DESC * pHardDiskVolDesc; DOS_VOL_CONFIG hardDiskConfigStruct; STATUS status; if((pHardDiskBlkDev = ataDevCreate(0, 0, 0, 0)) == NULL) { printf("ataDevCreate Failed\n"); return; } else printf("ataDevCreate Success\n"); if((pHardDiskVolDesc = dosFsMkfs("DEV2:", pHardDiskBlkDev)) == NULL) { printf("dosFsMkfs Failed\n"); return; } else printf("dosFsMkfs Success\n"); .

[VxW] help needed on detail of vxWorks DosFs

Postby well » Thu, 23 Oct 2003 19:24:01 GMT

Hi All

    I want to verify the capability of DosFs, for exzmple:
the max size it supports, how it works, what's its access
policy... etc.

    Can somebody tell me how to get informations about 
that or give me some suggestions.

    Any suggestions would be appreciated

Thanks

Well Lin


Re: [VxW] help needed on detail of vxWorks DosFs

Postby SGH1 » Fri, 05 Dec 2003 17:52:37 GMT

use function: statfs.
capacity: filesysStatus.f_bsize  * filesysStatus.f_blocks,
filesysStatus.f_bsize  * filesysStatus.f_blocks/1024);
free capacity:filesysStatus.f_bsize  * filesysStatus.f_bfree,
filesysStatus.f_bsize  * filesysStatus.f_bfree/1024 );

Shao Guohua

----- Original Message ----- 
From: "well" < XXXX@XXXXX.COM >
To: < XXXX@XXXXX.COM >
Sent: Wednesday, October 22, 2003 6:24 PM
Subject: [VxW] help needed on detail of vxWorks DosFs


Hi All

    I want to verify the capability of DosFs, for exzmple:
the max size it supports, how it works, what's its access
policy... etc.

    Can somebody tell me how to get informations about
that or give me some suggestions.

    Any suggestions would be appreciated

Thanks

Well Lin

_______________________________________________
VxWorks Users Group mailing list
 XXXX@XXXXX.COM 
 http://www.**--****.com/ 



Return to VxWorks

 

Who is online

Users browsing this forum: No registered users and 8 guest