LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-07-2007, 05:34 PM   #1
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
PCMCIA(Quatech SPP100>EconoROM), DOSvWINE


Hi all,
<edit much later 'cause this is still a problem, but better focused now..
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.

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...

Last edited by bioe007; 04-27-2007 at 12:45 AM.
 
Old 03-10-2007, 02:43 PM   #2
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Original Poster
Rep: Reputation: 30
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!
 
Old 03-12-2007, 04:17 PM   #3
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
As requested, moved to Programming
 
  


Reply



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
PCMCIA controller and PCMCIA-card ST Lab C140 10/100 not detected on Mepis 3.4-3 nilsms Linux - Hardware 0 04-30-2006 11:56 AM
386 + ISA-PCMCIA adapter + PCMCIA Ralink wifi card v6sa Linux - Newbie 0 05-19-2005 12:42 PM
PCMCIA WPC11 driver and pcmcia-cs Marcusj2 Linux - Hardware 1 01-05-2003 08:47 AM
Using pcmcia-cs and kernel pcmcia jbanafato Linux - General 0 03-14-2002 02:09 PM
Pcmcia not working off pcmcia/pcmciadd.img mikeyt_333 Linux - Networking 0 02-06-2002 11:12 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 04:07 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
Open Source Consulting | Domain Registration