Using PCMCIA IDE Flash with qnx4?

message unavailable

Hugh Brown <hsbrown@qnx.com> writes:

It looks to me like you have Plug 'n Play turned on on this machine.
Can you turn it off in the BIOS?

It’s Compac Armada 1500c, and it does not have traditional bios, but
some windows-sw running on dedicated partition. I could see PnP, but
can’t disable it. Does ACPI relate to problem (it can be disabled)

Have you tried the latest pccard driver fron 4.25G instead of
Pcmcia.generic?

No, I haven’t. I’m not sure if I still remember password for getting
updates…

Do you think it might help?

BTW, the news groups have changed. You must now post in the
qnx.qnx4 conference at inn.qnx.com.

Ok, let’s try that.

M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

“M. Tavasti” <tavastixx@iki.fi.invalid> wrote in message
news:m28yjut21k.fsf@akvavitix.vuovasti.com

Hugh Brown <> hsbrown@qnx.com> > writes:

It looks to me like you have Plug 'n Play turned on on this machine.
Can you turn it off in the BIOS?

It’s Compac Armada 1500c, and it does not have traditional bios, but
some windows-sw running on dedicated partition. I could see PnP, but
can’t disable it. Does ACPI relate to problem (it can be disabled)

You can try disabling ACPI, but I’m not sure that it will help. The problem
is that you don’t have any resources assigned to the CardBus controller and
QNX4 relies on the BIOS to setup these values. The most important one is the
IRQ, and this is not being setup by the BIOS.
From the show_pci output that you sent me, it looks as though the CardBus
controller is using IRQ 11. The other problem is that Pcmcia.generic cannot
read the CIS of the card, so as I said in a previous conference, you can try
playing around with the ‘memory = 0xd4000’ line in you pcmcia.cfg file. You
can try the range between 0xa0000 and 0xeffff. Don’t forget to slay and
restart Pcmcia.generic every time you change the file.

Have you tried the latest pccard driver fron 4.25G instead of
Pcmcia.generic?

No, I haven’t. I’m not sure if I still remember password for getting
updates…

Do you think it might help?

You can give it a try, but I’m not sure that it is going to help. Compaq
obviously assume that you will be running Windows on the machine, and it
sets up its own resources.

BTW, the news groups have changed. You must now post in the
qnx.qnx4 conference at inn.qnx.com.

Ok, let’s try that.

M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

“Hugh Brown” <hsbrown@qnx.com> writes:

You can try disabling ACPI, but I’m not sure that it will help. The problem
is that you don’t have any resources assigned to the CardBus controller and
QNX4 relies on the BIOS to setup these values. The most important one is the
IRQ, and this is not being setup by the BIOS.

Are you sure? Pcmcia works, for example 3c589 works fine.


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

OK, well I didn’t remember you saying anything about other cards working on
the laptop! Does your flash card work on any other machines? What confuses
me is that when you do a ‘pin cis’, you get no output. If you do a ‘pin cis’
on your 589 card, do you get valid output?

“M. Tavasti” <tavastixx@iki.fi.invalid> wrote in message
news:m2smi0lcao.fsf@akvavitix.vuovasti.com

“Hugh Brown” <> hsbrown@qnx.com> > writes:

You can try disabling ACPI, but I’m not sure that it will help. The
problem
is that you don’t have any resources assigned to the CardBus controller
and
QNX4 relies on the BIOS to setup these values. The most important one is
the
IRQ, and this is not being setup by the BIOS.

Are you sure? Pcmcia works, for example 3c589 works fine.


M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

“Hugh Brown” <hsbrown@qnx.com> writes:

Does your flash card work on any other machines?

I don’t know about other machines, but in this same machine it works
with linux. And this is only qnx laptop I have.

What confuses
me is that when you do a ‘pin cis’, you get no output. If you do a ‘pin cis’
on your 589 card, do you get valid output?

Yes, here is what I get with both cards connected. And situation is
same if change order of cards.

pin cis

Socket : 1
Device : Null
Attribute Device : EEPROM 8k
Manufacturer ID : 0x101 0x589
PC Card function : NetworkLAN Adapter
POST : 0x0
Card tuple version : 4.01
Manufacturer : 3Com
Name of Product : Megahertz 589E
Add’nl info (lot #) : TP/BNC LAN PC Card
Add’nl info (programming): 005
Configuration base/st : 0x10000 0-subtuples
Configuration Index : 0x1 Default
Interface : I/O
Feature : 0x1d
Timing Info : Wait Busy
IO Space : Bus16 Bus8 0x0-0xF(4 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x3 Last
Feature : 0x1
Attribute memory JEDEC : 0x0000
Checksum addr, len, val : 0xff8f 122 0x00
Socket : 2


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

Have you tried upgrading to QNX 4.25G and using the latest pccard driver
instead of Pcmcia.generic?

“M. Tavasti” <tavastixx@iki.fi.invalid> wrote in message
news:m2llmwvrdm.fsf@akvavitix.vuovasti.com

“Hugh Brown” <> hsbrown@qnx.com> > writes:

Does your flash card work on any other machines?

I don’t know about other machines, but in this same machine it works
with linux. And this is only qnx laptop I have.

What confuses
me is that when you do a ‘pin cis’, you get no output. If you do a ‘pin
cis’
on your 589 card, do you get valid output?

Yes, here is what I get with both cards connected. And situation is
same if change order of cards.

pin cis

Socket : 1
Device : Null
Attribute Device : EEPROM 8k
Manufacturer ID : 0x101 0x589
PC Card function : NetworkLAN Adapter
POST : 0x0
Card tuple version : 4.01
Manufacturer : 3Com
Name of Product : Megahertz 589E
Add’nl info (lot #) : TP/BNC LAN PC Card
Add’nl info (programming): 005
Configuration base/st : 0x10000 0-subtuples
Configuration Index : 0x1 Default
Interface : I/O
Feature : 0x1d
Timing Info : Wait Busy
IO Space : Bus16 Bus8 0x0-0xF(4 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x3 Last
Feature : 0x1
Attribute memory JEDEC : 0x0000
Checksum addr, len, val : 0xff8f 122 0x00
Socket : 2


M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

“Hugh Brown” <hsbrown@qnx.com> writes:

Have you tried upgrading to QNX 4.25G and using the latest pccard driver
instead of Pcmcia.generic?

No, I haven’t. In my first post I said ‘System is 4.25E, should it be
something else?’

Do you think it might help?


M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

Replied via e-mail.

“M. Tavasti” <tavastixx@iki.fi.invalid> wrote in message
news:m2k72dsyez.fsf@akvavitix.vuovasti.com

“Hugh Brown” <> hsbrown@qnx.com> > writes:

Have you tried upgrading to QNX 4.25G and using the latest pccard driver
instead of Pcmcia.generic?

No, I haven’t. In my first post I said ‘System is 4.25E, should it be
something else?’

Do you think it might help?


M. Tavasti / > tavastixx@iki.fi > / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

5000 Euro Belohnung / 5000 Euro Reward --------------------------------------Ich biete eine Belohnung von 5000 Euro wenn mir jemand verraetwie ein Streetgame (International Money Game) die Leute um den Spieler herrum beeinflusst.Ich stecke in genau diesem Unfug drin und irgendjemand manipuliertalle Leute, denen ich begegne und Radio bzw. Fernsehprogramme, dieich beobachte.I offer a reward of 5000 Euro if anybody tells me how a streetgame(International Money Game) manipulates the people around the player.I’m currently trapped in something like that and somebody manipulateseverybody I meet and radio or TV programs I watch or listen to.http://www.fastenrath.net/, http://slashdot.org/~fastenrath/Bernhard FastenrathSteinfelder Gasse 1, 50670 Koeln, Germanyfon: +49-173-5166326fax: +49-69-13306976636email: fasten@hrs.com

Hugh Brown <hsbrown@qnx.com> writes:

It looks as though you will need to increase your I/O port range
in your pcmcia.cfg file, so that both devices can get I/O ports.
I have 0x300-0x37f in my pcmcia.cfg file. This should not be a
version problem, so upgrading will not help you with the pccard
problem.

This is my pcmcia.cfg now:


;
; Minimal resource set
;

[resources]
memory = 0xd4000-0xd5fff
;ports = 0x320-0x33f
ports = 0x300-0x37f
rports = 0x2e8+8, 0x3e8+8, 0x170+8, 0x376+2
irqs = 5,7,11,12

And this is what I get:

0 root@2:/#pin
Sock Win Type Flags PID Base Size IRQ Base Size DMA
1 0 Network C—I-±-------W None 0x300 16 7
2 0 Memory C—M----------W None - -
0 root@2:/#pin con
; socket 1
[device]
manufacturer = “3Com”
product = “Megahertz 589E”
info1 = “TP/BNC LAN PC Card”
info2 = “005”
regbase = 0x10000
config = 0x01, 0x0601, irq any, io any+16 (width=16)
config = 0x03, 0x0601, irq any, io any+16 (width=16)
register = 0, 0x40, 0x40 ; level mode interrupts
; socket 2
[device]
pin: unknown or missing card type.
register = 0, 0x40, 0x40 ; level mode interrupts
0 root@2:/#pin cis
Socket : 1
Device : Null
Attribute Device : EEPROM 8k
Manufacturer ID : 0x101 0x589
PC Card function : NetworkLAN Adapter
POST : 0x0
Card tuple version : 4.01
Manufacturer : 3Com
Name of Product : Megahertz 589E
Add’nl info (lot #) : TP/BNC LAN PC Card
Add’nl info (programming): 005
Configuration base/st : 0x10000 0-subtuples
Configuration Index : 0x1 Default
Interface : I/O
Feature : 0x1d
Timing Info : Wait Busy
IO Space : Bus16 Bus8 0x0-0xF(4 lines)
IRQ Description : Level 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Configuration Index : 0x3 Last
Feature : 0x1
Attribute memory JEDEC : 0x0000
Checksum addr, len, val : 0xff8f 122 0x00
Socket : 2

\

M. Tavasti / tavastixx@iki.fi / +358-40-5078254
Poista sähköpostiosoitteesta molemmat x-kirjaimet
Remove x-letters from my e-mail address

On Fri, 18 Jan 2002 00:57:16 +0300, Rob <rob@spamyouself.com> wrote:

“Rodney Lott” <> rod@fuelcelltechnologies.ca> > wrote
I was wondering if anyone could tell me if there was a port of snprintf
to QNX4 that someone has used. I have found several code
implementations of snprintf, but if there is already one working with
QNX4, then I would like to know.

There’s _bprintf that comes with the Watcom libraries.
I think the arguments are the same as snprintf. You could just put:
#define snprintf _bprintf
in your favorite header file

:slight_smile:
This is a very old message I came across while searching for the
vsnprintf() at QNX4.

Does the following apply too:
#define vsnprintf _vbprintf
since the prototypes of the both are very similar and the original trick
did work for Rondey Lott?

I want to make zlib v1.2.2 happy, it searches for either snprintf() or
vsnprintf() and issues the scary warning about the possible buffer
overflow vulnerability because of not finding any of those…

Tony.

“Tony” <mts.spb.suxx@mail.ru> wrote in message
news:op.spo3akcxo93ri4@mobile…

On Fri, 18 Jan 2002 00:57:16 +0300, Rob <> rob@spamyouself.com> > wrote:
“Rodney Lott” <> rod@fuelcelltechnologies.ca> > wrote
I was wondering if anyone could tell me if there was a port of snprintf
to QNX4 that someone has used. I have found several code
implementations of snprintf, but if there is already one working with
QNX4, then I would like to know.

There’s _bprintf that comes with the Watcom libraries.
I think the arguments are the same as snprintf. You could just put:
#define snprintf _bprintf
in your favorite header file

:slight_smile:
This is a very old message I came across while searching for the
vsnprintf() at QNX4.

Does the following apply too:
#define vsnprintf _vbprintf
since the prototypes of the both are very similar and the original trick
did work for Rondey Lott?

I want to make zlib v1.2.2 happy, it searches for either snprintf() or
vsnprintf() and issues the scary warning about the possible buffer
overflow vulnerability because of not finding any of those…

There is no _vbprintf. There are version available on the net. Monday I
can email you a copy that I use for QNX4.

Tony.

On Sun, 24 Apr 2005 05:41:03 +0400, Mario Charest postmaster@127.0.0.1
wrote:

There is no _vbprintf.
Strange!

This is what I see in the Watcom C v10.6B+SecPatch:
_vbprintf()
Format data, and put the result into a buffer
Synopsis:
#include <stdio.h>
#include <stdarg.h>

int _vbprintf( char *buf, unsigned int bufsize,
const char *format, va_list arg );
Description:
The _vbprintf() function formats data under control of the format control
string, and writes the result to buf. The argument bufsize specifies the
size of the character array buf into which the generated output is placed.
The format string is described under the description of the printf()
function. The _vbprintf() function is equivalent to the _bprintf()
function, with the variable argument list replaced with arg, which has
been initialized by the va_start() macro.
Returns:
The number of characters written, or a negative value if an output error
occurred.

There are version available on the net. Monday I can email you a copy
that I use for QNX4.
Yes, please!

Also interesting is how to fool the zlib’s ./configure into believing I do
have [v]snprintf()…
Or I must just add [v]snprintf.o into the Makefile to link with it?

Tony.

Ping!

Tony.

On Thu, 28 Apr 2005 21:11:26 +0400, Tony <mts.spb.suxx@mail.ru> wrote:

Ping!

Tony.

I’m using zlib 1.1.4 under QNX4.
In gzio.c there is an ifdef for vsnprintf:

#ifdef HAS_vsnprintf
(void)vsnprintf(buf, sizeof(buf), format, va);
#else
(void)vsprintf(buf, format, va);
#endif

and this for snprintf:

#ifdef HAS_snprintf
snprintf(buf, sizeof(buf), format, a1, a2, a3, a4, a5, a6, a7, a8,
a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19,
a20);
#else
sprintf(buf, format, a1, a2, a3, a4, a5, a6, a7, a8,
a9, a10, a11, a12, a13, a14, a15, a16, a17, a18, a19,
a20);
#endif


Carlos

On Fri, 29 Apr 2005 16:02:00 +0400, Carlos Clarke <carlos@ptdprolog.net>
wrote:

In gzio.c there is an ifdef for vsnprintf
Thank you!

Tony.

I have a Windows 2000 Server that has the Citrix ICA server installed on
it. I am thikning of installing the Citrix ICA client for QNX 4.2.

Can I then use this software to copy files to and from my Windows server?
And are there any limitations to this?

I apprecaite your suggestions.

Shashank

Shashank <sbalijepalli@precitech.com> wrote:

I have a Windows 2000 Server that has the Citrix ICA server installed on
it. I am thikning of installing the Citrix ICA client for QNX 4.2.

Can I then use this software to copy files to and from my Windows server?
And are there any limitations to this?

I guess you could use ICA for copy files between QNX and Windows, but
really it is more intended for creating a Windows UI session under QNX.

I apprecaite your suggestions.

I’d suggest, instead, using Samba (now called CIFS). This will allow
you to mount a windows “share” under a QNX machine.

A set of commands something like:

#!/bin/sh
/bin/SMBfsys &
sleep 2
/usr/bin/user_smb windows_userid windows_password
/bin/mount_smb “//WindowMachine/WindowsDirectory” /qnx/directory

Then “ls /qnx/directory” will show the contents of the windows directory,
and you can copy files to/from the windows box using normal cp type
commands under QNX.

If you want to “share” your QNX filesystem with a Windows box, you’d
either want a NFS client for Windows, or Samba for QNX. I’ve not
setup Samba, but there seem to be a port of it available at:
ftp.qnx.com:/usr/free/qnx4/tcpip/utils/samba-qnxbin-2.0.4b.tgz

I don’t know how out of date, protocol wise, that will be.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com

I’ve used SMBFsys to mount a windows folder to my QNX machine and copied
files to it. However, our customers are not very Computer savvy and prefer
having a windows interface to copy large files from their Windows server to
their QNX machine. Some of our customers have large files (upto 1.5GB in
size) residing on their windows computer that need to be copied to their QNX
computers.

Does ICA hog up resources and do you know if it has any limitations?

Thanks
Shashank




“David Gibbs” <dagibbs@qnx.com> wrote in message
news:d81nln$59m$4@inn.qnx.com

Shashank <> sbalijepalli@precitech.com> > wrote:

I have a Windows 2000 Server that has the Citrix ICA server installed
on
it. I am thikning of installing the Citrix ICA client for QNX 4.2.

Can I then use this software to copy files to and from my Windows
server?
And are there any limitations to this?

I guess you could use ICA for copy files between QNX and Windows, but
really it is more intended for creating a Windows UI session under QNX.

I apprecaite your suggestions.

I’d suggest, instead, using Samba (now called CIFS). This will allow
you to mount a windows “share” under a QNX machine.

A set of commands something like:

#!/bin/sh
/bin/SMBfsys &
sleep 2
/usr/bin/user_smb windows_userid windows_password
/bin/mount_smb “//WindowMachine/WindowsDirectory” /qnx/directory

Then “ls /qnx/directory” will show the contents of the windows directory,
and you can copy files to/from the windows box using normal cp type
commands under QNX.

If you want to “share” your QNX filesystem with a Windows box, you’d
either want a NFS client for Windows, or Samba for QNX. I’ve not
setup Samba, but there seem to be a port of it available at:
ftp.qnx.com:/usr/free/qnx4/tcpip/utils/samba-qnxbin-2.0.4b.tgz

I don’t know how out of date, protocol wise, that will be.

-David

David Gibbs
QNX Training Services
dagibbs@qnx.com