Redhatter (VK4MSL)

HP Wireless Gateway hn200w opened

Just recently, my old access point (D-Link DWL900 AP) decided to stop communicating with the 2.4GHz world (although ap-utils still talks to it via wired ethernet). So for the moment, we’re using a wireless router, HP’s hn200w.

As an AP, it isn’t too bad, but as a router, it’s overkill for what I need — or is it? For my wireless network, an old P166 box running Gentoo Hardened acts as a DHCP server and OpenVPN endpoint, allowing my wireless clients to access the main network (at layer 2) through an AES256-encrypted tunnel.

The question is … can I get the wireless router to do this? The old PC is doing a good job, but it’s noisy, and a bit hungrier on the power than your typical wireless router. Then again, it has more storage capacity — but there’s nothing stopping me mounting more via NFS from the webserver — so this isn’t a big issue.

A look around revealed there was practically nothing known about this router. I knew from my nmap-probes, and this post that Linksys made the wireless interface — it in-fact uses a 16-bit PCMCIA Linksys WPC11. But what CPU did this thing run? What OS? The firmware had a few more references to “Linksys” in it, but didn’t reveal much else. It doesn’t run Linux — but rather some proprietary RTOS.

If you crack the box open, you’re greeted by a rather uninviting metal box. The PCB is covered by a metal earth shield that’s soldered to the motherboard — at the top, only two ~4mm antenna connectors poke out — these are the connectors on the wireless card.

hn200w wireless card antenna sockets

Remove the cover however, and you’re greeted by a far more interesting mainboard. The critical chips such as the CPU (seen under the wireless card) have heatsinks on them — since I wanted this thing to continue working, I decided it was better to leave the heatsinks alone. The following show the mainboard with, and without the wireless card.

hn200w mainboard without shield hn200w mainboard without wireless card

I’m nonethewiser about the CPU and other components. I realise some of these shots will need to be re-done since not everything came out clearly. The ethernet device seems to be a Realtek RTL8019AS device — very common on NE2000-compatible ISA network controllers. So whatever it is, it seems it has a 16-bit bus. All of these devices are supported by Linux, but something tells me the unit may lack the RAM or flash to run/store Linux. But nonetheless, it was fun cracking the box open and having a peek. If there’s any interest, I may investigate taking better shots of some of the ICs — although the main chips will still keep their heatsinks, since I’m not sure they’re easily re-attached.

mail.dsrw.org: The time-warped mail server

Received: (qmail 4980 invoked from network); 6 Nov 2007 03:19:25 -0000
Received: from mail.dsrw.org (65.103.82.82)
    by www.longlandclan.hopto.org with SMTP; 6 Nov 2007 03:19:25 -0000
Received: by mail.dsrw.org (Postfix)
    id A5E1A13230; Mon,  5 Nov 2007 21:20:05 -0600 (CST)
Date: Mon,  5 Nov 2007 21:20:05 -0600 (CST)
From: MAILER-DAEMON@mail.dsrw.org (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: me @longlandclan.hopto.org
Auto-Submitted: auto-replied
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
    boundary="3756B13A92.1194319205/mail.dsrw.org"
Content-Transfer-Encoding: 8bit
Message-Id: <20071106032005.A5E1A13230@mail.dsrw.org>

This is a MIME-encapsulated message.

--3756B13A92.1194319205/mail.dsrw.org
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii

This is the mail system at host mail.dsrw.org.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The mail system

< someone @gmail.com>: User unknown in virtual alias table

--3756B13A92.1194319205/mail.dsrw.org
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; mail.dsrw.org
X-Postfix-Queue-ID: 3756B13A92
X-Postfix-Sender: rfc822; me @longlandclan.hopto.org
Arrival-Date: Mon,  5 Nov 2007 20:53:33 -0600 (CST)

Final-Recipient: rfc822; someone @gmail.com
Original-Recipient: rfc822; someone @gmail.com
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; User unknown in virtual alias table

--3756B13A92.1194319205/mail.dsrw.org
Content-Description: Undelivered Message
Content-Type: message/rfc822
Content-Transfer-Encoding: 8bit

Received: from spam.dsrw.org (spam.dsrw.org [172.20.6.6])
    by mail.dsrw.org (Postfix) with ESMTP id 3756B13A92
    for < someone @gmail.com>; Mon,  5 Nov 2007 20:53:33 -0600 (CST)
X-Scanned-By: amavisd-new at dsrw.org
Received: from mail.dsrw.org ([65.103.82.82])
    by spam.dsrw.org (spam.dsrw.org [172.20.6.6]) (amavisd-new, port 10024)
    with ESMTP id gPXXmSrEI3v7 for < someone @gmail.com>;
    Mon,  5 Nov 2007 20:52:54 -0600 (CST)
Received: from [10.211.55.3] (elektra.vpn.dsrw.org [172.20.1.30])
    by mail.dsrw.org (Postfix) with ESMTP id A9C9013B49
    for < someone @gmail.com>; Mon,  5 Nov 2007 20:53:17 -0600 (CST)
Received: from pop-7.iastate.edu (pop-7.iastate.edu [129.186.1.67])
    by pop-2.iastate.edu (8.12.0/8.12.0) with ESMTP id h4JENZ87005617
    for < someone @pop-2.iastate.edu>; Mon, 19 May 2003 09:23:35 -0500
Received: from devirus-1.iastate.edu (devirus-1.iastate.edu [129.186.1.101])
    by pop-7.iastate.edu (8.12.0/8.12.0) with SMTP id h4JENaDN012327
    for < someone @iastate.edu>; Mon, 19 May 2003 09:23:36 -0500
Received: from despam-1.iastate.edu(129.186.140.6) by devirus-1.iastate.edu via csmap
    id 8818; Mon, 19 May 2003 09:23:54 -0500 (CDT)
Received: from murphy.debian.org (murphy.debian.org [146.82.138.6])
    by despam-1.iastate.edu (8.12.4/8.12.4) with ESMTP id h4JENWtX016165
    for < someone @iastate.edu>; Mon, 19 May 2003 09:23:33 -0500
Received: from localhost (localhost [127.0.0.1])
    by murphy.debian.org (Postfix) with QMQP
    id 89F821FAB4; Mon, 19 May 2003 09:20:37 -0500 (CDT)
Old-Return-Path: < me @longlandclan.hopto.org>
Received: from longlandclan.hopto.org (unknown [202.47.55.78])
    by murphy.debian.org (Postfix) with SMTP id 410B01F581
    for <debian>; Mon, 19 May 2003 09:02:01 -0500 (CDT)
Received: (qmail 975 invoked from network); 19 May 2003 14:01:58 -0000
Received: from unknown (HELO longlandclan.hopto.org) (192.168.0.1)
    by 192.168.5.1 with SMTP; 19 May 2003 14:01:58 -0000
Message-ID: <3EC8E3D5.6000304@longlandclan.hopto.org>
Date: Tue, 20 May 2003 00:01:57 +1000
From: Stuart Longland < me @longlandclan.hopto.org>

Yaay for timely bounce messages. Let’s see now… sent 20th May 2003, received 6th November, 2007… That is over 4 years and 5 months, for a bounce message. What are they using for an internet connection, RFC1149??  This is back in the days when I ran Debian/MIPS on my Indy, prior to me trying Gentoo.  And back in the days when my internal network used the 192.168.0.0/24 CIDR (I now use 10.0.0.0/24 for my boxes).

Gah!

Okay… a quick notice to those who probably saw my political post on Gentoo Universe.

A few months ago, I put in a forced redirect so that the “all posts” feed on my blog redirects to the Public Syndication category, a special category containing posts that I deem appropriate for distribution for other websites. My political post was deliberately not placed in this category.

It seems that redirect broke, and thus my little semi-private post wound up on Gentoo Universe. I’ve pulled it from my site for now, but I’d greatly appreciate if the correct feed URL be used for my site. For those syndicating general posts on my site, the correct URL is below:

https://vk4msl.com/category/public/feed/

To those who saw this post on the Gentoo Universe site, and to my fellow developers, I appologise for this slip-up.  I’ve now marked the post private, so it’ll hopefully disappear from the feed soon.  I realise that Gentoo Universe is not the place for such discussions (definitely a case of pot-kettle here) and that my post did not belong there.  I will put my post back online once the feed URL gets changed and I’ll be making sure it doesn’t feature in the public syndication feed.

Gentoo/MIPS Cobalt: 2007.1 Builds start soon

Hi All…

I’ve started building the seed stages that will eventually become release 2007.1, once the release engineering release their snapshot. Not sure exactly when that will occur, but I expect some time in the next fortnight or so, the builds will start in earnest.

This is the first release where I’ve used the Loongsons to do much of the compiling work. My Qube2 is in bad need of a rebuild, so it may get one this year. My experimental box, zhenghe has already compiled the stage1 and stage2 pre-release tarballs in the last day — a task that would’ve normally taken me several days on the Qube2.

The MIPS4 builds will still need to be done on the Qube2 (since the Loongsons only implement MIPS3), so I anticipate I’ll have MIPS1 builds available ahead of the MIPS4 builds, but hopefully builds for both CPU types will be available for testing by the end of the month.

At the moment I’m off-line as far as IRC and IM contact is concerned — this is because I really need to concentrate on my studies. I’m repeating one telecommunications subject that I failed last year, and things are looking really bad this year — in short, I cannot afford another 3 mark or fail if I’m to continue at uni. (If I drop out, I shall have to discontinue my work with Gentoo … a bit difficult to power a PC when you don’t have a house to call home.) So my priority is definitely with my exam studies for now.

After my exams are over, I’ll certainly be back into the swing of things… I’ve got some preliminary crude images that could form the basis of a LiveUSB image to boot a Lemote Fulong PC, and I’m starting to piece together a newer µClibc-based environment for newer netboot images on Cobalt systems. Since these require much more direct intervention (I build them by hand presently) they have to wait until then.

But for now, things are plodding along nicely, Gentoo-wise. As always, if you need to get in touch, I can be reached via email for now… and I’ll let you all know as things progress. See the front page of my devspace for a progress summary.

OpenGL on Loongson: so close… yet so far

Hi All…

Lately I’ve been having some fun with the Fulongs… The other day, I managed to port Quake II to Gentoo/MIPS, and whilst I’m yet to test it on big-endian MIPS… it works great on the Fulong minicomputers.

Frame rate isn’t spectacular, it can only handle 400×300 when using software mode… but it’s playable. This would have to be one of the first commercial games to be ported to Gentoo/MIPS.

Now comes the fun bit of getting OpenGL going. Thanks to Lemote, I’ve got some patches that almost get things working correctly. I have hardware-accelerated 3D for about 5 seconds, before the following message is emitted by the kernel:

[code]Oct 9 00:21:17 [kernel] [drm:drm_lock_take] *ERROR* 3 holds heavyweight lock[/code]

After that, it’s game over… X freezes up, and I have to reboot the computer (via SSH) before I get local control back. But it’s a start. The full details are on the Lemote forums where I’m working on solving the problems… but certainly things are looking up. 🙂

find /var/spool/internet -type f -exec sed -i -e s/longlandclan.hopto.org/longlandclan.yi.org/ {} \;

Hi All..

I finally got fed up with the lack of flexibility with my former hopto.org address, thus I’ve started moving towards deprecating it. I’ll keep it around for email, but all my websites and other facilities will now move over to a new domain. I’ll be putting in Redirect directives in my webserver’s config, so it’ll all be completely transparent. My blog is already moved across now, and I’ve updated to WordPress 2.3 in the meantime. The feeds are now:

  • Gentoo Planet content: https://vk4msl.com/category/linux-development/gentoo-development/feed/
  • Publically Syndicated content: https://vk4msl.com/category/public/feed/

The change in domain means I’ve got much greater flexibility over the DNS entries, such as the ability to add AAAA records and such. So if you see a URL referencing the longlandclan.hopto.org domain, change that to longlandclan.yi.org.

The decline in legacy interfaces

There’s been a rather disturbing trend lately.

In recent times, we’ve all seen a very high increase in the number of players in the portable computing market, and a significant reduction in the cost of laptops. People are demanding more features packed in, higher performance, etc. This is fine… however it seems laptop manufacturers overlook those of us who still use dated interfaces such as PCMCIA/Cardbus, Parallel ports, and RS232.

Now okay, I can see that there’s a need to cut costs, and that there’s limited space… but surely somewhere in these laptops, there’s room for a lowly MAX232 and a DB9 male socket? Most of the manufacturers cater for the “average user”, who probably has no idea what to use these ports for and thus never use them. There are, however, numerous places where one finds themselves needing a proper RS232 port. What on earth for?

  • Serial consoles — a very convenient way to run servers that normally are accessed remotely.
  • Programming various embedded devices — such as PLCs and microcontrollers.
  • Driving simple logic devices — why complicate things with USB when parallel or serial port interfaces will suffice?

In my experience, USB<->RS232 serial converters aren’t what they’re cracked up to be. We bought one (an ATEN one based on the PL2303 IC) to use with a Lego Mindstorms RCX kit we have (the IR transceiver connects via RS232). It works for hooking up to a serial console quite well… but it demonstrates all kinds of quirks when using it with the Mindstorms kit — the faults being intermittent in nature.

The same device, also acts up when I use it at university to program some Rabbit Semiconductor RCM4000-series microcontrollers. I tell the programming environment to use COM4: (the assigned device name under Windows XP) and that it’s a USB device. Things seem fine, until I try loading my compiled program onto the microcontroller… the loader fails to detect it. Switch back to COM1:, plug the microcontroller into that port, voila… everything works.

At the moment, I’m keen to keep my present laptop (Toshiba TE2100) going as long as possible. It has a few quirks (e.g. no OpenGL under Linux, issues with USB on resuming from suspend under both Linux and Windows XP, and a LCD backlight that started acting up recently), but largely works okay, and comes complete with all the legacy ports I require. The only thing I miss is a Line-In socket for ripping my vinyl records. However I realise that I may need to upgrade in the next few years.

My needs as a customer are unusual … a lot of people seem to want über gaming rigs or multimedia systems… for me, I’m after a workstation that’ll work well with Linux. So high-end OpenGL isn’t a priority, I’d sooner get a laptop with Intel graphics, and put up with somewhat lesser 3D performance under Win32, than deal with the pain that is proprietary drivers under Linux. Heck… even just good accelerated 2D is acceptable — I rarely use 3D.

Cardbus/PCMCIA is important, since I have a lot of legacy PCMCIA devices such as network cards that I’d like to continue to use — sometimes multiple network cards is useful. I sometimes do use my laptop as a router, and would sooner use one of the spare Xircom PCMCIA cards I have lying around, than fork out for a USB ethernet device (I have one… but they’re more expensive than PCMCIA cards).

A proper RS232 port is important for my needs as outlined above.

Presently, I’m holding off for as long as I can. I know I’m going to have fun getting a laptop with no OS (or failing that, Windows XP… I don’t like Vista, and refuse to buy it) from the usual suppliers. Looking around though, everyone seems to be keen on inflicting USB on me — sorry guys, not good enough! I’m watching what Lemote is doing with keen interest. Having used the Fulong PCs for a while, I’m really quite impressed by them.

Lemote do make a laptop version of the Fulong, with very similar hardware. I have no idea how much they cost (the Fulong PCs are about AU$260 depending on exchange rates) but I’ve found the Fulongs do almost everything I need to do. The upcomming Loongson 2F processor in a laptop would be awesome.

The Loongson 2E used in these Fulongs implements a subset of the MIPS3 ISA. runs at up to 800MHz, and draws 20W of power. The Loongson 2F apparently will fully implement MIPS64r2, exceed 1GHz clock speed, and draw just 5W. Some good power management, and I could see a laptop based on one of these, lasting several hours on a charge. And of course, it’d likely run Linux flawlessly. Gentoo already runs extremely well on the Fulong. The only downside being unable to run many proprietary apps.

I only hope that some of the major companies (Yes, Apple, Dell, Lenovo, Asus, Toshiba, Acer… anyone else…) could reconsider their desire to drop these still-needed interfaces. While the general population might find them useless, that’s still no reason to take them away from those who do use them!

Gentoo/MIPS for Loongson: LiveUSB images coming soon

Hi All…

Some good news on the Loongson front. I’ve managed to figure out unionfs, and udev enough to construct a kernel and minimal userland that’s capable of mounting a SquashFS volume from a USB HDD, then lay a tmpfs volume over the top of it, making it writable.

The LiveUSB images will likely come in two forms:

  • A minimal image, that’ll just provide a basic system capable of performing an installation of Gentoo
  • A complete desktop image, with KDE, Firefox, Thunderbird and all the usual conveniences.

The boot procedure will go something like this:

  1. Download the LiveUSB kernel and your chosen OS image to a USB HDD, or burn them on a CD (if you have a USB CD-ROM drive) naming the files ‘kernel’ and ‘gentoo-mipsel-root.sqfs’ respectively in the root directory of the disk.
  2. Plug the USB HDD or CD-ROM into the Lemote Fulong computer and power it up
  3. Hit ESC to break into the PROM, then type (substituting vfat with the appropriate driver… I might have the vfat wrong too):
    PMON> load /dev/fs/vfat@usb0/kernel
    PMON> g console=tty

Gentoo will then start automatically booting from the USB HDD. Ultimately I want to construct something equivalent to the Gentoo 2007.0 x86 Installer CDs which have the Gentoo Linux Installer, but I figure even there, it’ll be a similar procedure to boot them — first though, the installer needs some MIPS love.

On my TODO list, is to figure out how the livecd target in catalyst works … at present I’m doing everything by hand. I’d also like to try and fix µClibc so it doesn’t die when the kernel page size is bigger than 4KB (on Loongson, one needs to use a page size of 16KB).  Time will tell here, at the moment I’m a bit busy to go delving into the depths of the µClibc dynamic linker to fix things, so I’m just using the rather bloaty glibc library.

In short though… we’ll soon have the very first install images for Gentoo/MIPS on this platform available.

binutils-config issues and possible hiatus warning

Hi all… Two issues to raise here:

binutils-config and the missing ldscripts/elf64btsmip.xr reference

It seems this problem seems to be happening to quite a few people. If you follow the Gentoo/MIPS handbook to-the-letter with the present version of binutils-config, you wind up with this:

moosehead linux-2.6.22.6-20070902 # make vmlinux.32 modules CROSS_COMPILE=mips64-unknown-linux-gnu-
CHK include/linux/version.h
CHK include/linux/utsrelease.h
Checking missing-syscalls for N32
CALL scripts/checksyscalls.sh
Checking missing-syscalls for O32
CALL scripts/checksyscalls.sh
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
LD init/mounts.o
mips64-unknown-linux-gnu-ld: cannot open linker script file ldscripts/elf64btsmip.xr: No such file or directory

The fix… update to binutils-config-1.9-r4 or newer, then run binutils-config –mips && . /etc/profile before trying your kernel build again. For further details, see bug #171486. Gentoo 2007.1 (next release) will fix this issue.

Heads Up

As some of you may know, I’m nearing the end of my double degree (Bachelor of IT/Bachelor of Electronic Engineering), and part of that involves getting 60 days industrial experience. I’ve applied to a number of companies — some of these positions will take me to rural locations where I may not have a permanent internet connection (or even reliable dialup).

Thus, during this upcoming summer break (between mid November through to late February), I may wind up going on a temporary hiatus from Gentoo. None of this is definite at this stage, nobody that I’ve contacted has gotten in touch to line up an interview however I figure I may as well post this here now so that the me disappearing doesn’t come out-of-the-blue.

The plan if I do wind up temporarily moving: I’ll try and get 2007.1 pushed out the door before I leave. This will focus on newer stages for MIPS1 and MIPS4 little-endian targets. I’ll set up both Lemote boxes here so that other Gentoo devs can gain access to them whilst I’m away. If I can get any internet service at all, I’ll be around to answer queries, and maybe do some limited work via SSH, but testing X or audio apps are out of the question.

As I say, none of this is definite, and I may wind up getting my experience somewhere here in Brisbane (ideal case). That said… given my stress levels lately, they say a change is as good as a holiday… maybe a few months living in a country town is just what I need.