f.zz.de
archives / 2008 /

09

AlphaServer Booting etc

Posted Fri 05 Sep 2008 10:44:51 AM CEST in

Just to memorize again for reinstalling next year ...

The AlphaServer DS25 RMCs can be invoked via esc-esc-rmc from the serial console. Booting from the network is either

boot eia0 -flags console=ttyS0

or

boot ega0 -flags console=ttyS0

need to update the debian manual as it says only ewa0 is an ethernet ... For the record: lima.lab.rfc822.org had a broken root disk and needs a new install.

HP J9141A config restore

Posted Wed 10 Sep 2008 10:46:49 AM CEST in

The HP J9141A is a 802.11a/b/g Access point with Power-over-Ethernet. It runs an OpenWRT native to which HP up to now did not release the source. I mailed them - no answer. Now i tried restoring a config on one of those beasts and guess what? It fails - there is no way to restore the config from linux - you need a windows. HP tried to very clever and parses the config backups filename in javascript and trys to detect whether its linux or windows:

var win_file_name=filestr.substr(filestr.lastIndexOf("\\\\\")+1); var unix_file_name=filestr.substr(filestr.lastIndexOf("/")+1); if(win_file_name == filestr && unix_file_name != filestr) file_name=unix_file_name; else if( win_file_name != filestr && unix_file_name == filestr) file_name=win_file_name; else { alert(invalid_filename); return false; }

Now i hacked around and did it with curl as neither firefox 3 nor epiphany was getting around this. Dont try to be clever when you have no clue ...

curl -u admin:password http://192.168.1.14/cgi-bin/upg_restore.cgi?/reboot_wait.html -F "filename=@AP1.cfg;restore=Restore"

HP J9141A #1

Posted Sat 13 Sep 2008 04:13:32 PM CEST in

Its a while ago since i hacked on that machine but it fell into my hands today and i thought of reflashing it into the original state as my OpenWRT trys did not succeed (atheros driver in the openwrt repository does not support that chip).

Here is the Serial Pinout of the J9141A Access Point for the curious:

PIN 1 GND
PIN 2 TX (UART 1)
PIN 3 RX (UART 1)
PIN 4 GND
PIN 5 TX (UART 2)
PIN 6 RX (UART 2)

But be careful - its 5v TTL not normal serial so build a converter before frying your AP.