some files generated by vxworks dosfs (fat32) can't be seen in windows7 - vxworks

The embedded system has a portable disk(with fat32 file system) and running vxworks with DosFS to create and write the files on the disk. some times(occasionally), the files on the disk generated by the system can't be seen from windows 7. while in Vxworks shell, using the command "ll" can show the files.
what happened?

Related

What is the way to run c program's .exe file compiled on Windows OS to IMX8M Yocto Linux Board

I want to run hello.exe file generated on Windows OS platfrom for simpe hello.c file on IMX8M yocto linux board. I am very new to use this board and I am not finding any helping material on the same. Can anyone guide me is it possible or not and where can I find related documents.
If it's not possible, what are the other ways to run .exe generated from any HOST OS to Yocto Linux board.
I think there is some misunderstanding.
As the host and the device are not the same architecture (x64/ARM) and the same OS (Windows/Linux), you need to cross-compile your code. This is done by using a specific compiler, able to run on your host machine, to generate your binary for your device machine.
If you want to compile an application for your iMX8M from your Windows computer, you will need to find a cross-compiler toolchain able to run on Windows, generating binaries for Linux ARM architecture.
If you use Yocto, you can generate a SDK, which contains a cross-compiler toolchain by using bitbake <image> -c populate_sdk or bitbake <image> -c do_populate_sdk (depending on your Yocto version).
By default Yocto generates a SDK for a Linux host, so you will need to develop on a Linux OS.
There is aslo a specific meta that helps to generate a SDK for Windows: meta-mingw

Mount VHDX within WSL Ubuntu 18.04 to edit Linux files

I'm looking to change a process (which currently is an elevated PowerShell script running in Windows 10, and I want to keep it close to that) I have that currently uses Paragon Linux Filesystem for Windows tool. While it does work, it doesn't work consistently. What I'd like to do instead is to use WSL on Windows 10, 1909 currently (will go to 2004 when available), to mount a VHDX which contains to partitions, /dev/sda1 for /boot, and /dev/sda2 another for an Linux LVM. The OS within this VHDX is CentOS 7.5, and the filesystem I want to modify is formatted in ext4. I need to edit some files within a logical volume within the group.
Currently, I'm running into an issue where qemu-nbd doesn't help, as there doesn't appear to be an NBD kernel mode driver provided by the Microsoft Linux kernel in Ubuntu 18.04 image from the Windows Store. I've tried guestfish (using guestmount), but it is unable to find an operating system and fails to mount any of the volumes.
Is this possible? Am I going down the wrong path, and is this not possible?
As I understand your question...
Seems to me that you want to offline access a .vhdx containing Linux
using powershell to manipulate some files...
(I think the issue here is ext4 and file rights)
1. Mount the .vhdx you want to '''work''' in a linux virtual machine as second disk
2. Install Powershell 7 in linux VM
3. Configure Powershell remote in the Linux VM (via SSH)
4. Access the Linux VM from Windows Powershell 7 and execute your scripts.
there are other ways using VMs+NBD or using WSL and mounted
drives... but this seems to be the most practical end efficient!
as you for sure know you can start/stop the VMs from Powershell

cannot see files copied to usb drive from ubuntu to USB drive ini windows

I have inserted my usb drive into my computer. I have created a mount point "mount /dev/sdb1 /media/usb. I have copied files from cp home/my_name/folder/file_name to /media/usb.
I can see the files in ubuntu /media/usb, but I cannot see the files in the stick when I plug it in windows. All I see is this folder is empty.
Apparently, I transferred my files from ubuntu to my usb drive but I cannot see then in the usb drive in windows.
What am I doing wrong?
Thanks
You need to umount /media/usb before removing the stick.
Otherwise the changes to the filesystem might only reside in RAM (cache). USB drives are rather slow - it is highly likely that only some changes made it to the actual device. Try running chkdsk on the stick.

wkhtmltopdf goes extremely slow on different environment

I am developing a PHP web application with CakePHP 3.4 framework, and i am using wkhtmltopdf 0.12.4 to output dynamic content in a .pdf file. Currently i'm using three different environments where i develop and test my application:
In my local environment (XAMPP 32-bit for Windows), wkhtmltopdf works great. It takes ~1 second in rendering .pdf files
In a remote testing environment (CentOS 7 64-bit using apache2, 4GB memory), works great too.
In my third remote testing environment (Another CentOS 7 64-bit distro with similar CPU specs as the second one and 4GB memory), wkhtmltopdf takes up to 20 seconds in rendering the same .pdf file
What could be causing this behavior in the third environment? How can i monitor or debug wkhtmltopdf process to help me identify why .pdf rendering is so slow?
Remove rgba and set border-radius to 1px in your CSS files (or completely remove them if they are not needed). That should speed up the PDF generation process.
Similar issue
Another reson can be your current default printer on windows. See:
https://github.com/wkhtmltopdf/wkhtmltopdf/issues/4891
If you use a standard printer that is
a network printer
you use the windows default driver for that printer and have not installed the manufactors printer driver
-> wkhtmltopdf is really slow

Accessing files without installing Dropbox from Linux OS installed parellelly in Windows7

I have installed Dropbox in Windows 7. Also, installed Ubuntu Linux 14.04 in parallel. Through online login to Dropbox account allows access to files in Dropbox. However, to work with the files in Dropbox I have to install Dropbox in Linux also. This require additional space in the same PC. So, is it possible to access and work with files in Dropbox#Windows7 without installing Dropbox in Ubuntu (which is installed in the same PC parelelly)?.
You can access windows disks in linux, you just need to map it correctly. Then you can do whatever you want with files. But dropbox magic will not work until you load windows again.
Only when you bootup from windows again, since it is dropbox app that does syncing. What you may do is to deploy dropbox on both windows and linux, but point them to the same data folder. Still there could be some problems with text files, as windows and linux are not treating line endings the same way. So if a file was synchronized in windows, it will have windows endings, and vice-versa.
Maybe you could configure a remote filesystem on a USB-Stick so both your systems can access on it and you have a directory where dropbox stores the files.
Look here: https://www.dropboxforum.com/t5/Dropbox/Idea-Portable-Dropbox-folder-on-flash-drive/idi-p/122804