LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-18-2014, 09:52 AM   #1
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Rep: Reputation: Disabled
proprietary pc app on micro sd and wine


Hello! I use an Acer Aspire One 531h and Ubuntu 12.04.

Recently I acquired a 4sight dash cam 2 that formats its micro sd including an interface app that should be recognized by and run on a Windows XP or later to save recordings from raw to avi.

I don't have access to a windows machine at the moment, on the road, so I don't know yet how well the camera software works as intended.

In the meantime, I am learning how to use the terminal well enough to possibly run the proprietary app on the micro sd via WINE.

I have already studied this page: http://www.linuxquestions.org/linux/...e_command_line

When I try lsbusb, I find the super top micro sd card reader.
When I try mount /dev/sdb, I get the result /dev/sdb in yellow.
When I try blkid I get only my ext4 and swap drives.

I know I can read micro sds with this card reader because I have tried with other disks and with ls find all the folders on them listed.

When I try testdisk, I find all space on the camera sd as unallocated and tried the geometry fix unsuccessfully. When I try gparted, I can see that the disk is fat32 with the correct value of 255.

I called the camera tech support. They said try a windows emulator, which is what I was already getting busy with. They were not much help otherwise, except to explain that the disk is formatted by the camera in a way that is unrecognizeable to systems and depends on the interface that runs from the sd.

The camera has no way to view files except natively (if that is the correct term) or via micro sd.

I would like to use WINE to mount the sd, run the interface, and copy the avi to my linux machine for future editing.

While I try things based on searches, here is my question for any assistance.

Thanks!
 
Old 02-18-2014, 12:34 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
So basically a quick search found nothing on using the 4sight camera application under Wine. I would not expect the SD can be mounted so the application reads the data directly from the memory device. So is your question how to install the application under Wine?

I would probably just forgo Wine and run windows.
 
Old 02-18-2014, 01:24 PM   #3
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes Michael, that is my question. Why do you say give up on WINE? Is it because I am blocked by an unbootable sd so the exe, even if I knew the name for it, can't be seen?

Thanks!
 
Old 02-18-2014, 01:37 PM   #4
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
The sd partition table is msdos and the head value is 255...

This info from http://wiki.winehq.org/FAQ#head-7b61...b37027082b1c41

has me wondering:

Quote:
5.8. The application's CD or DVD looks empty or is missing some files!

Some discs are poorly mastered in a way that affects only Unix-based operating systems.

You may need to use the "unhide" or "norock" mount options for these discs.

Run mount once to see where the disc is mounted, then mount it again in the same place with the needed option (and the "remount" option). Some assembly required.

Examples:

sudo mount -o remount,unhide /dev/sr0 /mnt/cdrom

or

sudo mount -t iso9660 -o ro,unhide /dev/cdrom /media/cdrom0
 
Old 02-18-2014, 01:56 PM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
There is no guarantee that this particular application will work at all with Wine. The Wiki is referring to the installation CD not the data card. The data CD probably just contains the raw video so it will not be bootable.

Do you have the installation CD that came with the camera system?
 
Old 02-18-2014, 02:07 PM   #6
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
The problem may be that there is no installation cd; rather, the sd has both the exe application and the raw vid files on it.

I just tried this:
Quote:
fsck from util-linux 2.20.1
e2fsck 1.42 (29-Nov-2011)
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sdb

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
As I said earlier, the camera formats the sd and puts the exe on it. The user would put the sd in a Windows machine and the exe should auto run. I thought I could get WINE to recognize the exe on the sd, but I can't mount it.

Last edited by eslwise; 02-18-2014 at 02:08 PM.
 
Old 02-18-2014, 02:22 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Ok, I understand now... I'm a bit slow today. The only suggestion I have at the moment would be to use windows to copy the exe to another flash drive and then copy it to the wine folder.

What is the output of the following command:
file -s /dev/sdb
 
Old 02-18-2014, 03:00 PM   #8
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Yes, I think keeping a copy of the exe in WINE is a great idea, eventually.

Here is the output:

/dev/sdb: x86 boot sector, code offset 0x3c, OEM-ID "S&Q TECH", sectors/cluster 32, root entries 512, Media descriptor 0xf8, sectors/FAT 30, heads 255, sectors 7864320 (volumes > 32 MB) , serial number 0x0, label: "SQFSFATDISK", FAT (16 bit)

thanks!
 
Old 02-18-2014, 04:02 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Lets go back to your first post what do you mean by
Quote:
When I try mount /dev/sdb, I get the result /dev/sdb in yellow.
You did try
mount -t vfat /dev/sdb /media/test (or what ever you want to use as a mountpoint)

Post the errors
 
Old 02-18-2014, 04:39 PM   #10
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
The program gui launched. :) Now I will see if it works.

Quote:
lisa@lisa-AO531h:~$ cd ~/.wine/drive_c/Program\ Files
lisa@lisa-AO531h:~/.wine/drive_c/Program Files$ wine 4Sight.exe
fixme:shell:InitNetworkAddressControl stub
fixme:msg:ChangeWindowMessageFilter 49 00000001
fixme:msg:ChangeWindowMessageFilter 4a 00000001
fixme:msg:ChangeWindowMessageFilter 233 00000001
err:listview:LISTVIEW_WindowProc unknown msg 10b1 wp=00000000 lp=00000000
fixme:win:LockWindowUpdate (0x10072), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:wininet:InternetCheckConnectionW
fixme:ieframe:PersistStreamInit_InitNew (0x14d9c8)
fixme:ieframe:navigate_url Unsupported args (Flags 0x328938:3; TargetFrameName 0x328948:8)
fixme:urlmon:URLMoniker_BindToObject use running object table
fixme:dwmapi:DwmIsCompositionEnabled 0x6abae480
fixme:iphlpapi:NotifyAddrChange (Handle 0x18de8cc, overlapped 0x18de8b0): stub
fixme:ieframe:ClOleCommandTarget_QueryStatus (0x14da7c)->((null) 1 0x326578 (nil))
fixme:ieframe:ClOleCommandTarget_QueryStatus command_0: 27, 0x0
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 37 of group {000214d1-0000-0000-c000-000000000046}
fixme:ntdll:NtLockFile I/O completion on lock not implemented yet
fixme:ieframe:ClientSite_GetContainer (0x14da7c)->(0x326588)
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 84 of group {000214d1-0000-0000-c000-000000000046}
fixme:ieframe:ClientSite_GetContainer (0x14da7c)->(0x327418)
fixme:imm:ImmReleaseContext (0x100ec, 0x228c060): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 25
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:LockWindowUpdate ((nil)), partial stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x328cfc,0x00000000), stub!
fixme:win:EnumDisplayDevicesW ((null),0,0x328cfc,0x00000000), stub!
0 2
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
0 2
0 2
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
0 2
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:mountmgr:harddisk_ioctl Unsupported ioctl 90020 (device=9 access=0 func=8 method=0)
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 29
fixme:ieframe:DocHostUIHandler_GetDropTarget (0x14da7c)
fixme:jscript:JScriptProperty_SetProperty Unimplemented property 70000001
fixme:jscript:JScriptProperty_SetProperty Unimplemented property 70000002
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x228b470)->(0x3287c4 0x32879c 0)
fixme:wininet:InternetLockRequestFile STUB
fixme:mshtml:HttpNegotiate_GetRootSecurityId (0x19e018)->(0x3274cc 0x3274a4 0)
fixme:wininet:InternetLockRequestFile STUB
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of CGID_Explorer
fixme:ieframe:PropertyNotifySink_OnChanged unimplemented dispid 1005
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 69 of CGID_Explorer
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 28
fixme:win:EnumDisplayDevicesW ((null),0,0x327e78,0x00000000), stub!
fixme:resource:GetGuiResources (0xffffffff,0): stub
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 26
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 29
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 103 of group {000214d1-0000-0000-c000-000000000046}
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 2315 of group {de4ba900-59ca-11cf-9592-444553540000}
fixme:ieframe:ClOleCommandTarget_Exec Unimplemented cmdid 35
0 2
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled
fixme:mountmgr:harddisk_ioctl The DISK_PARTITION_INFO and DISK_DETECTION_INFO structures will not be filled

Last edited by eslwise; 02-18-2014 at 04:41 PM. Reason: disabled links and smilies
 
Old 02-19-2014, 12:02 PM   #11
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
update...wine runs the program as well as a windows xp machine does...both can launch the gui, but neither can see raw files to load into the editor...i am calling the company again, but as far as linux and wine go, SOLVED thank you Michael for helping me learn terminal basics.

Last edited by eslwise; 02-19-2014 at 12:07 PM.
 
Old 02-19-2014, 02:00 PM   #12
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,051

Rep: Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852Reputation: 852
i wonder if there is any hints to video data within the device using hexedit like so:
Code:
00000000   52 49 46 46  24 88 A5 15  41 56 49 20  4C 49 53 54  72 01 00 00  68 64 72 6C  RIFF$...AVI LISTr...hdrl
00000018   61 76 69 68  38 00 00 00  EC A2 00 00  00 00 00 00  00 00 00 00  10 09 00 00  avih8...................
00000030   69 02 00 00  00 00 00 00  02 00 00 00  00 00 00 00  56 03 00 00  E0 01 00 00  i...............V.......
00000048   00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  4C 49 53 54  C0 00 00 00  ................LIST....
00000060   73 74 72 6C  73 74 72 68  38 00 00 00  76 69 64 73  59 56 31 32  00 00 00 00  strlstrh8...vidsYV12....
00000078   00 00 00 00  00 00 00 00  E9 03 00 00  C0 5D 00 00  00 00 00 00  69 02 00 00  .............]......i...
00000090   E0 61 09 00  00 00 00 00  00 00 00 00  00 00 00 00  56 03 E0 01  73 74 72 66  .a..............V...strf
000000A8   28 00 00 00  28 00 00 00  56 03 00 00  E0 01 00 00  03 00 0C 00  59 56 31 32  (...(...V...........YV12
000000C0   E0 61 09 00  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  76 70 72 70  .a..................vprp
000000D8   44 00 00 00  00 00 00 00  00 00 00 00  18 00 00 00  56 03 00 00  E0 01 00 00  D...............V.......
000000F0   F8 23 00 40  56 03 00 00  E0 01 00 00  01 00 00 00  E0 01 00 00  56 03 00 00  .#.@V...............V...
00000108   E0 01 00 00  56 03 00 00  00 00 00 00  00 00 00 00  00 00 00 00  00 00 00 00  ....V...................
00000120   4C 49 53 54  5E 00 00 00  73 74 72 6C  73 74 72 68  38 00 00 00  61 75 64 73  LIST^...strlstrh8...auds
00000138   01 00 00 00  00 00 00 00  00 00 00 00  01 00 00 00  01 00 00 00  44 AC 00 00  ....................D...
00000150   00 00 00 00  0A D5 11 00  88 58 01 00  00 00 00 00  04 00 00 00  00 00 00 00  .........X..............
00000168   00 00 00 00  73 74 72 66  12 00 00 00  01 00 02 00  44 AC 00 00  10 B1 02 00  ....strf........D.......
00000180   04 00 10 00  00 00 4C 49  53 54 3E 00  00 00 49 4E  46 4F 49 53  46 54 31 00  ......LIST>...INFOISFT1.
00000198   00 00 4D 45  6E 63 6F 64  65 72 20 73  76 6E 20 72  33 34 35 34  30 20 28 55  ..MEncoder svn r34540 (U
000001B0   62 75 6E 74  75 29 2C 20  62 75 69 6C  74 20 77 69  74 68 20 67  63 63 2D 34  buntu), built with gcc-4
000001C8   2E 37 00 00  4A 55 4E 4B  2C 0E 00 00  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  .7..JUNK,...[= MPlayer j
000001E0   75 6E 6B 20  64 61 74 61  21 20 3D 5D  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  unk data! =][= MPlayer j
000001F8   75 6E 6B 20  64 61 74 61  21 20 3D 5D  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  unk data! =][= MPlayer j
00000210   75 6E 6B 20  64 61 74 61  21 20 3D 5D  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  unk data! =][= MPlayer j
00000228   75 6E 6B 20  64 61 74 61  21 20 3D 5D  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  unk data! =][= MPlayer j
00000240   75 6E 6B 20  64 61 74 61  21 20 3D 5D  5B 3D 20 4D  50 6C 61 79  65 72 20 6A  unk data! =][= MPlayer j
---  raw.tmp	   --0x0/0x15A5882C------------------------------------------------------------------------------
 
Old 02-19-2014, 05:27 PM   #13
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
I do not know much, but at one point I did wonder if I could write code that specifies some data by address. Now I need to find out how to emulate double clicking in WINE. Turns out that the executable launches/installs only by double clicking the icon in the drive folder. Raw video files are invisible in the drive folder. In Windows, the user must double click on the executable's icon. Then, the gui launches and automatically begins playing the raw footage. The user can save the raw data as some kind of avi, I do not know what interleave, on another drive. I was told the executable was written in C++.
 
Old 02-20-2014, 09:49 AM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Double clicking is just a GUI thing. How are you running the application now?

In a terminal change to the memory card mount point i.e.
cd /media/test (or whatever you use as a mount point)
wine app.exe
 
Old 02-20-2014, 02:31 PM   #15
eslwise
LQ Newbie
 
Registered: Feb 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
something fishy is going on with the double click. the only way to launch the app to view/reformat raw files is by double clicking. the raw files remain invisible on both platforms. double clicking launches the app with raw files preloaded as one long concatenation. single clicking results in a nonfunctional gui. that is the only gui i get on linux. maybe to be unhackable? why else no partitions? or maybe the firmware can be much simpler? a lot for me to learn here.

Last edited by eslwise; 02-20-2014 at 02:33 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: FOSDEM 2013: Lots Of Wine, X.Org & Micro-Kernels LXer Syndicated Linux News 0 02-12-2013 02:20 AM
Best GUI app for ripping DVD to play back on micro-projectors bjwrenn Linux - Software 5 09-06-2011 01:22 PM
Installing a proprietary app in Arch Alexvader Arch 2 05-27-2010 05:54 PM
LXer: Why Users Dumped Your Open Source App for Proprietary Software LXer Syndicated Linux News 0 09-12-2009 07:01 PM
LXer: OpenLX and KalCulate pair Linux distro with proprietary accounting app LXer Syndicated Linux News 0 06-25-2008 01:20 AM


All times are GMT -5. The time now is 08:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration