Verifying T-FAT on WinCE 5.0 - windows-ce

We were having serious problems with corrupt files on our flash based FAT filesystem on WinCE 5.0. We believed that the files got corrupted because the WinCE device was turned off while writing to the FAT. Thus, we changed to T-FAT (transactional FAT).
What is the least time consuming way of verifying that our problems are solved?

You might want to look at storage manager (which can be enabled in Control Panel if you are building your own O/S image).
Storage Manager has a UI for scanning, creating and repairing partitions.
You can also look at doing this programmatically: -
http://msdn.microsoft.com/en-us/library/aa910657.aspx
http://msdn.microsoft.com/en-us/library/aa916710.aspx

Related

Windows 10 IoT Enterprise - Soft Real-time Performance with Audio Service enabled

I want to use soft real-time performance on Windows 10 IoT Enterprise, but in the required steps it lists disabling the Windows Audio Service. Is there any way to keep audio on the machine while still utilizing RTP? This feature is exclusive to this version of Windows and is a drawing point for Kiosk Mode, but it removes any and all audio from your device. That doesn't seem like a fair trade...
One thought I had was dedicating a core(s) to the service because perhaps the issue was that the service was being pervasive to the CPU cores regardless of RTP which in turn affects RTP, but this was really just a shot in the dark since there is zero explanation as to why any of the services are required to be disabled in the first place. Regardless, it was not possible to even attempt this because Windows does not allow changing core affinity for Windows processes (from what little I have seen online on this subject).

Is there anyway to access files from usb without mounting it (in a terminal)

Is there anyway to access files from usb without mounting it (in a terminal)?
copying or accessing files without mounting it!!
First of all: I think it would be better to post this question on "superuser.com", not on "stackoverflow.com" because this is a question about usage of Linux, not about programming for Linux.
In the 1990s there was a tool which allowed you to read FAT-formatted media (floppys and hard disk partitions) under Linux.
The tool was intended for older Linux versions that did not have FAT file system support.
Because today all Linux versions have FAT file system support I think that tool is no longer maintained however the source codes should still be available somewhere!
FAT32 did not exist, yet, the time when this tool was used so the tool only supported FAT12 and FAT16.
To access the media "root" rights are required in any case.

What makes a background downloading task suspicious and how to make it less so?

Short question:
I have an application that fetches files from a cloud host. It looks suspicious to the security software and treated is as a virus.
What shall I do it make it get around the anti-virus software?
Longer story
I have a USB device and I need the firmware on it to be automatically updated.
When the device is connected to a computer, it presents itself as two removable USB mass storage devices.
The first one stores the application in question, the second is the place to put the upgrade package.
The user would go to the first partition and run the application, and while the user is doing his/her job with the application (like processing data collected by the device), the application fetches the upgrade package from an URL hosted in the cloud and places it in the second partition.
The device will upgrade itself when it's disconnected from the computer.
During this process, the application is isolated by the security software installed on the test machine.
Problems
This application raises a lot of red flags:
It runs from a removable USB drive
It starts downloading files from the internet without notifying the user.
The downloaded file is placed into another removable USB drive.
The operation, defined by the requirement, is suspicious itself. So I can imagine that an answer to this question is basically an answer to "how to get around a security software".
If this is the case, how shall I get the operating system or the user involved in the operation to make the application less suspicious?
Background
The application is written in C++/Qt.
The file being downloaded file is a linux opkg package with -rw-rw-r-- permission.
The file is fetched from an HTTPS URL hosted on Amazon S3.
The test machines runs Windows 10.

Adding drivers to already built CE 6.0 image

Is this possible? I am using a CE image from a manufacturer that won't release a custom image with an extra driver I need.
Give me some good news!
Yes, there is a possibility that you can add your driver over an existing image. You just need to place your driver dll(s) in the required folder (generally Windows folder) in your device where you want it to be and make some registry entries for it. If you already have a .reg file for the driver then you just need to import it on your device.
You can also make a CAB file to avoid the manual work.
It depends. You need to have permanent registry and storage. If you have, then you can configure registry entries to load your driver (at boot or when is detected by USB, SD, PCI etc.) and store it on the device. In some cases drivers are loaded from the image before any storage is mounted and this may prevent you from being able to load your driver at boot (or having your device detected if it's plugged in at boot).

How to safely remove a USB drive on Windows CE 5.0?

Until today, I assumed that Windows CE was writing everything to disk and I wouldn't end up with a broken FAT16 when I removed the USB stick. Today, I was proven wrong.
I use a USB stick to test things on a WinCE 5.0 device. I don't write anything from the app or WinCE to the stick. I just execute my app, and my app reads its settings and pictures from the stick. Today, just this order of operations broke my stick filesystem (and I have to fix it).
Is there a way to tell WinCE 5.0 to unmount the stick before I remove it? It sees it as a "Hard Drive", and the tap-and-hold menu has nothing along the lines of "safely remove drive".
I'm happy with both code to do this operation and some trick that I didn't find in Windows CE yet. Thank you.
You can probably disable paging and disable caching for the store using the FAT File System registry entries. Performance is, obviously, going to suffer.

Resources