• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jmbw

#1
Networking / Re: DFE-530TX+ gigabit NIC
2010.07.08, 03:26:44
Not to nitpick, since maybe the Newegg link is somehow stale already, but their description of the DFE-530TX+ seems to say that it's a 10/100 card, not gigabit.

There's an OS/2 driver for at least *some* of the RealTek gigabit cards, which are super cheap on eBay, FWIW.  People bust on RealTek but I've always had great luck with their stuff.

John Wilson
D Bit
#2
Quote from: rwklein on 2010.06.21, 16:11:55
How well intended your description sounds it sounds like an attempt "lets throw mud at the wall and see if it sticks".
And if does not work, lets try again.

Taking pot shots at a customer -- sweet!

Btw my network ports don't work either.  I've tried everything, but apparently that's a newbie move?  Stupid, stupid, STUPID!  (while bonking head on desk)

John Wilson
D Bit
#3
Worth a shot, but no luck.  Thanks anyway!  I set OPTIONS = "NONE" on both drivers but still got the error messages (plus another that GenMac wasn't loading at all), and the red X is still there.  That .ZIP file is where I got the L2 LAN driver so I think I have the right files in the right places.  Weird...

Thanks,

John Wilson
D Bit
#4
Freaky!  OK I guess it's time to dig out some older, smaller flash drives.

Follow-up question:  is it possible to remove LVM from eCS entirely?  I don't seem to have the problem(s) that it solves so all it does is get in the way...

Thanks!

John Wilson
D Bit
#5
I gather this was done already in eCS 2.0rc5 days, but I've been unable to reproduce it.  Does anyone know how to get eCS 2.0 GA working with the (Attansic) LAN and/or (Atheros) WLAN ports on an Asus Eee 701 netbook?  The Atheros WLAN driver (athw.sys) was installed by the eCS 2.0GA CD, which is good because when I tried to install a freshly downloaded copy of GenMac, it claimed it had no drivers for me at all (I think that's the opposite of how it's supposed to be).  But I can't make it work.  I've also tried using the l251x86.sys driver (for the 10/100 LAN port) from the writeup on Hobbes but I get the same problem that I had with the WLAN driver, which is that I get this message at boot:

GenMac Wrapper (WPA-Support) for OS/2 Warp4/Ecs.
Copyright 2001-2007 Willibald Meyer (MyWi).
Release Version 2.2 built Dec 08 2007 19:05:22.

NO VALID HARDWARE-INFO IN PROTOCOL.INI FOR  ("WRND32$ ")

Sheesh, flashing green and everything!  I'm not familiar enough with PROTOCOL.INI to understand this complaint.  The only mention of WRND32$ is in the DriverName item in the [xxxxx_nif] section for the port (where it's alongside the PCI VID/DID and the .INF and .SYS filenames for the Windows drivers).  If I have MPTS install both the LAN and WLAN drivers then I get two similar messages, so at least it's listening, sort of.

Just for variety I tried replacing both instances of GENM32W.OS2 with the one from Hobbes (whose timestamp is a few months newer) but then the system crashes during boot.  I'm guessing I'm very close ... but I'm too stupid to hand-edit the relevant files so I'm relying on MPTS.

I had no trouble running eCS 2.0silver on a desktop, but that was with a "real" driver (speaking of which, are there docs on how to write native LAN drivers?  I can't find it in the ToolKit).

Thanks,

John Wilson
D Bit
#6
Do you need to LVMify the flash drive?  I couldn't get the 2.0GA installer to recognize either a flash drive, or an existing FAT partition on my hard disk (that was there since before I installed eCS), and had to type the reg key by hand each time.  I definitely think I'm missing the point of flash in eCS -- I also can't figure out how to make it notice when I remove or replace the flash drive now that 2.0GA is installed (it only sees whatever it cached last time).

Tnx,

John Wilson
D Bit
#7
BWG:  yes, installing eCS2.0GA from a USB CD-ROM works on the Asus Eee 701.  The one thing I had to do was go into the CD boot options (from the second prompt that the eCS installation CD gives at boot) and on the final page, and tell it to recognize the USB CD and install from it.  I never did figure out how to get it to recognize SD cards and/or USB flash drives, or even a secondary partition on the SSD, so I had to type the registration key in by hand.

What I *can't* figure out how to do is enable the network.  eCS recognizes the Atheros WLAN port and seems to install a GenMac driver for it, but the driver doesn't actually work (it complains about a missing section of PROTOCOL.INI at bootup, and the Hardware Manager calls it "Unsupported DEVICE!!!" (although that may be on purpose???  since all the dev info is believable).  The wired LAN port isn't recognized at all.

I gather (from googling) that people figured this out a couple of years ago with eCS 2.0rc5 but I haven't been able to make it fly with 2.0GA (the current version of GenMac seems to be newer than they used, but does that mean it incorporates their patches or not?).  It writes a log file in ecs\system\genmac\driver (um, sometimes), which looks like a log of Windows calls being emulated, and there are a couple of file-not-found errors in there.  But do they matter?  Also it's possible I've gummed up my CONFIG.SYS by running MPTS repeatedly trying to uninstall/reinstall drivers (there are some lines duplicated).

John Wilson
D Bit
#8
Setup & Installation / Re: OpenGL 1.1
2010.03.22, 22:32:49
Thanks!  Weird, I expected it to be able to install off the CD.  But this seems to have worked -- so thanks again!
#9
Setup & Installation / OpenGL 1.1
2010.03.20, 10:03:02
This seems like it ought to be obvious ... but, how do you install OpenGL 1.1 on eCS 2.0-rc7?  Going through the Add/Remove thing seems to get me 1.0 (and the installer seems to think we're still on Warp 4) but 1.1 is out there on the CD as a zip file.  I tried unpacking the zip in \OS2\DLL but I can't tell whether my problems with that were because that doesn't count as "installing" it, or just that I don't know how to program.

Thanks,

John Wilson
D Bit
#10
Holy crap!  THANK YOU!  That was really nice of you to take the trouble, and I'm sorry it messed up your font situation.

I'm starting to think I must be an idiot though, or else there's something wrong with my computer.  If I try to make all, WMAKE fires up WCC386 which dies (compiling an empty program?!) with a stack overflow.  I deleted OW1.9Beta1 and installed OW1.8 in case that's the problem, but it still does the same thing.  This is on a Cyrix 300 MHz with 32 MB that I had lying around with Warp 4 installed on it (no fixpaks).  Yes it's old, this is my first foray into OS/2 in ages, but it worked fine to write a VDD 10 years ago.

If I try to run RC using your files and the switches from the Makefile, I still get the same set of errors (with IBM RC V5.00.001) that I got with mine:
RC:(MYFNT.RC:5:25):2034:RC cannot create resource item type '7' and id '100'.
RC:(MYFNT.RC:5:25):2037:RC failed to add a resource. The return code is '7'.
RC:(MYFNT.RC:5:25):1009:RC detected errors during compilation.
Compile ending.

So once again I'm too stupid to do basic things which are known to work.
What version of RC.EXE do you use?  I wonder if I just have a broken version.

Meanwhile I dug into the source code to WRC.EXE to see why it's claiming an unexpected EOF on my .FNT file and I think I have it -- WRC doesn't really work with OS/2 fonts.  It looks like it *thinks* it does, but it tries to read from my .FNT file directly into a struct FontInfo (in readFontInfo() in bld\sdk\rc\rc\c\sem2sngl.c), and struct FontInfo seems to be the *Windows* form of .FNT header (the kind that starts with dfVersion, dfSize, dfCopyright), not the OS/2 form (which has the tagged/sized records).  Sure enough, if I tell WRC to attach a Windows .FNT file to an OS/2 LX DLL, it does it happily, producing a crazy mixed-OS .FON file which I imagine is no use anywhere.  So maybe the answer is to hack proper OS/2 FONT/FONTDIR support into sem2sngl.c.

Anyway, thanks!

John Wilson
D Bit
#11
OK I admit I hadn't tried using the IDE (I'm allergic to them) but the results are the same.  Interesting that OW1.9Beta1 chooses to use IBM's RC instead of its own (WRC) but anyway it says:

... well OK I was going to cut and paste the error code but apparently if you click on the mouse the wrong way, the OW IDE crashes and loses the project file.  Don't get me started on IDEs!!!  Anyway I believe the first error from RC was #2034 (I don't know where to look that up) and it was the same one I got by hand.  All the message says is that it failed to do what I said, no mention of why.  I tried it with my .FNT file as well as the one you get by saving the default one (as monospace) that FONTEDIT starts up with.  Doesn't seem to matter whether I tell it to make a 16-bit or 32-bit DLL (I don't know which is right -- I think the ones I looked at were LXes which are mixed, right?  Obviously the code isn't what matters but I don't know what OS/2 expects here).

I've skimmed some of the Hobbes stuff but the descriptions make it sound like it's mostly stuff for maintaining collections and/or changing defaults, it doesn't seem like it's for programmers.  But I'll keep looking.

Thanks!

John Wilson
D Bit
#12
Programming / How to generate .FON files
2010.02.26, 10:31:25
This should be an easy one, after all there's a recipe right in GPI4.INF, but it doesn't work for me.  How do you build .FON files out of bitmapped fonts?  I wrote a utility to convert my font into the OS/2 .FNT format (as defined in GPI4.INF) and got it to the point that FONTEDIT.EXE likes it OK.  Then I built a null executable as a LX .DLL as described in the doc.  But when I try to add a font resource to it I get an error -- both under Watcom (WRC 1.9Beta1 says unexpected EOF on my .FNT file and then gives internal error 3) and under older IBM utilities (RC says it can't add resource type 7 to my .EXE file but doesn't say why -- type 7 is RT_FONT, obviously).

What's the right way to do this?

The weird thing is that this is eerily familiar -- I previously ported my program to Windows and found that its similar-but-different bitmapped .FNT files were a pain to generate and its similar-but-different .FON libraries couldn't be correctly generated by most of the utilities that claim to do the job.  So I ended up writing my own utility to generate a null NE .EXE file from scratch and stick font resources on it.  I'm not familiar with the OS/2 .EXE formats though so I'd really like to avoid having to do all that again (although the existing .FON files I've looked at seem to start suddenly resembling the documentation at file address 0404h so if everything before that can be canned, maybe it's not so bad).  Is it just that no one uses bitmapped fonts so none of this stuff ever gets exercised?  Or is it trivially easy and I'm just an idiot?

In case it makes any difference, this is for the part of my program that's supposed to do a hauntingly perfect emulation of a particular model of 30-year-old video terminal.  So I'm not just looking for some nice font, I need this exact one.

Thanks!

John Wilson
D Bit