| Project LPWS |
|
|
|
Posted by Kim Foder - Friday, 23 June 2006
The goal of Project LPWS is to create a cheap, silent web server with almost no power consumption (or at least as little as possible), but enough computing power to give a reasonable response to web requests. What is Project LPWS? The answer to this question requires some explanation. Late 2004 I got ADSL (as it's known here, other call it DSL) , which means I'm on line 24/7. I have installed a four port router and connected my OS/2 and my Linux boxes to it, using a KVM switch, so I only need one keyboard, screen and mouse. After playing around with this setup for some time, I decided it could be fun to set up a web server, and experiment with CGI and such. If I should have a web server I had some requirements it had to fulfill:
The goal of Project LPWS is to create a cheap, silent web server with almost no power consumption (or at least as little as possible), but enough computing power to give a reasonable response to web requests. Nothing more, nothing less ;o) ![]() Take 1: I have been in the IT business since before IBM created the PC, and I have a large collection of bits and pieces of computers, old and not so old. So I raided my stock to see what I could find, and found:
The old 500 MB hard disks, was just too noisy and power hungry, so I dropped those, and bought two Compact flash to IDE connectors, this means that I could use some of my CF cards (I have a a lot of old cards I'm not using any more as they has become too small for my camera) as hard disks, they are not fast, but they also do not use much power, they are absolutely silent, and (not to forget) I already have them ! ![]() The motherboard is not exactly young, and 66 MHz is somewhat slower than I had hoped for, but it could be replaced later. The power consumption of the motherboard is unknown but, taking the age into consideration, probably not small, and would have to be tested, with everything not used, disabled. The 16 Mb ram was a problem, In my experience OS/2 can run fairly decent on a slow computer, if it has a lot of ram, and 16 Mb is not much, further more, 31 pin ram's are nearly impossible to get hands on today, and 16 Mb or 32 Mb sticks (only room for 4 sticks on the mother board) is as close to impossible as you get ! The Realtec net cards should be no problem, I use these cards in my other computers without any problems. Status: 1 out of 3, not good! ![]() Take 2: I could use an laptop, by nature they normally do not use much power, they also are fairly quiet, and can go in power down mode when not used for some time. I do have two old Thinkpads, 166 MHz Pentium, one of them with 72 MB ram, but none of them has net cards, and pc-card net card's without bus mastering, and supported by OS/2, is at best difficult to get hands on. Status: No go! Back to the old drawing board. ![]() Take 3: A short time ago, I was ordering some hardware at work, for a customer. When I got the goods, our supplier had added a flier with some stock clean out sales, among others a single board computer (SBC) Wafer 5820-300 for around $50, as far as I can see, normal price for this computer is somewhere around $550 ! Data for the Wafer 5820-300:
![]() ![]() Just what I needed, so I bought 2 (you never know, and it is cheap !). I have no experience with the Cyrix processor, but I believe I have heard about some problems with OS/2 and some Cyrix processor. I have searched the net, but cannot find anything about this. Even though I was not ready with a power supply yet, I started to play with the SBC. At first I connected the board's IDE controller to a CF-card connector as master, and a CD-rom as slave, and a 3.5" floppy drive to the floppy controller. For power I use the power supply in the cabinet I was thinking of using in take one. Right at the start I found a problem, the floppy-drive (one found in the old cabinet) did not work ! I am not sure if this is because the drive is dead, or there are a problem with the FDC on the board, but nothing happens when the processor tries to access the floppy. The CF card and the CD, both are detected and seemed to work. Next i tried to install eCS (it can be installed from a bootable CD), it booted as it should, and I got the configuration screen, but when it tried to access the CF card, it told me it couldn't install on this type of drive. Hm, time to panic, what now ?! In the many years I have used OS/2, I have had a lot of hard disks, and I have not always reinstalled OS/2 when I changed the disk, now and then I have just copied the OS2 from the old disk to the new one, which is fairly straight forward, as long as you remember to get all the files, also the hidden ones, except for OS2BOOT. I decided to try that approach in this case. First I tried to format the CF card with the HPFS file system, in my USB Sandisk Imagemate CF card reader, and met (again) some problems. When format was done, it told me, it was unable to transfer the system files. I asked for help on the os2world site, and have to thank warpcafe for his help in solving this problem. It would seem you have to have the CF-card installed in the reader while booting, for OS/2 to be able to format the card as HPFS. When the format was done, I installed the boot system by executing the command SYSINSTX J: (sysinstx is found in \os2\install\bootdisk) and J: is the USB drive for my imagemate card reader. OS2 boot 101. (Quick and dirty) Maybe this would be a good place to describe the basic boot process for those who don't know about it. This explanation is as I understand the process and may not be entirely true or the entire story, but it does help in understanding what I'm doing ! When you turn on your computer, the BIOS loads the contents of the Master Boot Record. The MBR then loads the file OS2BOOT from a predetermined position on the disk, using standard BIOS calls (this is why the boot disk must be located within the first 1024 tracks, as the standard BIOS cannot handle larger track numbers). OS2BOOT is generated by the Sysinstx command, are file system aware, and can find the nessesary files to continue the boot process. Next to load are the file OS2LDR which loads OS2KRNL, whereafter the rest of the system are loaded. Sysinstx creates the master boot record (MBR), and the system file OS2BOOT in the root, this is the boot program, then I could copy OS2LDR, OS2LDR.MSG and OS2KRNL from the root of my boot disk to the card. Now I had a minimal bootable system, it would not be able to finalize the boot operation, but I would be able to see if the system was booting, so I installed this card in the CF connector, and booted the SBC. After the self diagnostic screen came up, the card was detected, and the system tried to load the master boot record, whereafter the computer froze ! As a test I did the same with another card, except I formatted it as FAT, then the boot succeeded until the loader was looking for the ALTF1 files, then it (as expected) halted with an error. So there might be a problem booting HPFS from the CF card! ![]() Power supply. The manual states, the SBC needs only gnd and +5V, at 2A, so I have purchased a 5V, 4A switching mode power supply, with a very high efficiency, of the kind used for laptops. When I connected this to the SBC ..... nothing happened! After fooling around for some time, I found that the SBC also needed +12V at 100 mA. So, I purchased a 12V, 2A power supply. This was unfortunately very bulky and generated a lot of heat (ie. not very efficient). When I connected both power supplys to the SBC it ran without any problems, but now I had a rather bulky and somewhat power hungry setting. After looking around on the net, I found just what I needed, Farnell has a solid state 5V to 12V, 2W dc to dc converter with an efficiency of over 89% ! I now have constructed a power supply board, consisting of a veroboard with a single component, a connector for the external power supply at one end, and two power connectors for the SBC and CF 'drive' on the other (see picture above). This has eliminated the need for an external 12V power supply, so I'm back to one efficient 5V power supply. Some comments to the image shown above:
![]() Installing OS/2 and Why OS/2? If you're the one asking this question, you may be on a wrong site ;o) There are many reasons (ordered in with most significant first):
I formated a 250MB CF card with FAT, and installed the boot files with sysinstx, then I copied everything I believed I would need from my desktop system to the CF card. This was using a lot of space (about 200MB), but it was a starting point. I have tried the bootos2 utility but got some weird results, so I decided to do the configuration manually. ![]() Up and running I inserted the card in the CF drive, and booted the SBC, after a lot of error messages (because of missing hardware, and software) I had the OS2 desktop running with network and GUI ! The network was no problem, I'm using a Realtec net card in my desktop system, and the one on the SBC is either the same chip set, or so closely related, that the same drivers worked without modification. Also I'm using my router as DHCP, so the IP address is assigned automatically. Now to the time consuming task, cleaning up in the copied files. I started by removing any references to non existing hardware and software from config.sys, then I removed the mdos folder from the OS2 folder, anything associated with dos in the config.sys, and added "Set protectedonly=yes". This removes the ability to run Dos, and 16 bit OS/2 programs which I'm not planning anyway, as a trade off it makes the system much more reliable. I continued this process for some time, moving files I wanted to remove, to other folders, rem'ing lines in config.sys and renaming folders, then rebooting. If the boot succeeded and everything worked, I then deleted files, folders and rem'ed lines. Then I started trying some other files / folders. Now I have a fine tuned system with GUI and network using about 50 MB of disk space. The disk has been repartitioned with a FAT boot partition of 64 MB and a HPFS partition of 180 MB. While experimenting, I have found it impossible to boot from a 1GB CF drive, and I have also discovered that a CF card cannot be a slave drive (there are a slave jumper on the CF to IDE converter, but in reality it is a cable select jumper), this means I cannot install a larger card as boot drive, and I cannot install a card as slave ! So I have activated the om board USB, installed the USB drivers, and connected an USB card reader, with a 1GB card installed, this gives me a total disk capacity of 1.2 GB. Thats more like it ! The beauty of this, is that whenever I get a larger card (I have seen 2GB for less than $100, and 4GB for a bit more than $200), I just zip everything on the old card, unzips on the new card, and we are up and running with a larger disk. I have installed the Web/2 tiny web server, FTPD FTP server by Peter Moylan, and the Apache web server, all running without problems. I have even written a small CGI program (web chat) for use with Web/2. Now I just need to build the SBC, CF disk and power board into a box, and I'm done for now. Next generation: In time it could be fun to make the LPWS totally 'green', by making it run on wind- or solar-power. With a power consumption of less than 10W it should not be too difficult. But that's another story ;o) Remaining problems: There still are some problems, but they are not hampering the use of the SBC as a web server.
*Prices are approximated as I have bought all components here in Denmark, and paid in Danish Kroner (DKKr), I have calculated the prices as DKKr / 7 = $, and I believe the US dollar is somewhere around 6.50 DKKr right now. The prices are inclusive tax, vat and shipping. Contacts If you have comments and / or questions you are welcome to contact me either on e-mail at kim at foder dot dk or here at OS2World in the forum (preferred, so everybody can participate in the discussion). You may also be lucky to catch me at ICQ as 220314462. You can also visit the LPWS server on http://83.72.102.163 (see addendum), where you can find a listing over files on the boot disk, and try the webchat CGI. Kim Foder Addendum : Since 15. July 2006 LPWS has been off line because of a fire in my house, of all my electronics, only the LPWS 5V power supply was damaged, it has been replaced, and LPWS has been on line again since sometime in April 2007. There are some changes though :
There are some comments to this article in the old forum and it can be found here - but for new comments, please use the new comment feature. (7) Comments |
|||||||||||||||
| < Prev | Next > |
|---|
Main Menu
| Home |
| Annual Awards |
| Bounty System |
| Hosted pages |
| OS2 Forums |
| OS2 Petition |
| OS2 Library |
| OS2 Wiki |
| Sponsors |
| News Sections |
| FAQs |
User login
PayPal Donations
Copyright 2000-2008 OS2 World.Com














