LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PCMCIA(Quatech SPP100>EconoROM), DOSvWINE (https://www.linuxquestions.org/questions/programming-9/pcmcia-quatech-spp100-econorom-dosvwine-535514/)

bioe007 03-07-2007 05:34 PM

PCMCIA(Quatech SPP100>EconoROM), DOSvWINE
 
Hi all,
<edit much later 'cause this is still a problem, but better focused now.. :D
All this line of questioning refers to #2 in my sig.

I have a personal mission, that is to get my embedded suite up and running using linux instead of windows.

1) How to find and address my parallel port?

-it is a Quatech SPP100 PCMCIA parallel port adapter.

the kernel detects the card and I find:
Code:

ls -l /sys/bus/pcmcia/devices/
total 0
lrwxrwxrwx 1 root root 0 2007-04-26 10:56 0.0 ->
                    ../../../devices/pci0000:00/0000:00:1e.0/0000:03:01.0/0.0/

Code:

$ /sbin/pccardctl info
PRODID_1="Quatech Inc"
PRODID_2="PCMCIA Enhanced Parallel Port Card"
PRODID_3="SPP-100"
PRODID_4=""
MANFID=0137,0003
FUNCID=3
$ /sbin/pccardctl ident
Socket 0:
  product info: "Quatech Inc", "PCMCIA Enhanced Parallel Port Card", "SPP-100", ""
  manfid: 0x0137, 0x0003
  function: 3 (parallel)

so is there any simple way to test the 'port' from linux? like connect to an old printer or something and try and dump something to it? just to see if the kernel driver is working for it? sorry I really have _no_ idea how to go about sending output through a pcmcia card.

Also I don't think there are any 'nix drivers for this card. The webpage says there is Linux support, but just points to the old pcmcia-cs kernel page. I've emailed Quatech and they are completely clueless/useless/unwilling to help.

I hope changing this post is not poor etiquette ->noflameme<-

I didn't want to re-post the same problem.

above is the -current- issue i'd love help with.
**************************
below this line is the 'rest' of my litany of problems related achieving my embedded prog in linux dreams. :D

WINE troubles

2) I need parallel port to work for my EconoROM3 (ER3). The ER3 comes with its own Win32 app that I run from the cmd-line in WinXp like so:

rtload -pfdf0

where fdf0 is the addr of my 'parallel port' in windows. to try and satisfy the need for a 'port' I created:

.wine/dosdevices/lpt1 -> /sys/bus/pcmcia/devices/0.0

but still i get this output:
Code:

$ wine Ql40/rtload32.exe /lpt1
err:module:import_dll Library tbus32.dll (which is needed by L"C:\\Ql40\\rtload32.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"C:\\Ql40\\rtload32.exe" failed, status c0000135

btw- I know the tbus32.dll is both set to native and present in my system32 directory.

3. I use the tasking 8051 compiler (v7r1) which is only available in Win32 or Solaris. I of course have the Win32 version.
<snip for update>
have succesfully installed this in wine.. waiting on the slow @ss vendor to git me a new node-locked license key because I cant get flexlm running in wine or Linux. otherwise it seems to be working (but not the EDE, which I never use anyway)

if I have more problems will create a new thread for it, if I have success will post to wine app-DB

also please disregard post#2...

bioe007 03-10-2007 02:43 PM

hi all, thought I'd bump this with a bit more knowledge gained.

I can now find pcmcia0.0 but the address eludes me (i.e. the hex address)

I have installed wine and it seems to work? I can run:

$wine cc51 #(the compiler)

but it doesn't seem to recognize options or filenames?

I'm thinking of trying to run it through a dos emulator but not sure because as above it is a Win32 program. I think DOS is exclusively 16bit, but I can run cc51 from the cmd: in WinXP.

another thing is there is this flexible license manager program that is supposed to run in the background, so i tried doing that before running the compiler but can't seem to put my 'license.dat' and associated licensing files in the right place (in wine).

Is there a syntax to tell wine to just use everything from my actual (hda2) XP partition? I could move everything to my fat32 partition if need be.

anyways, holding out hope for any tips here.

many thanks!

XavierP 03-12-2007 04:17 PM

As requested, moved to Programming


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