Watchguard Firebox II

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> X86 based Hardware
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9
Author Message
localit
DD-WRT Novice


Joined: 20 Jun 2009
Posts: 3

PostPosted: Sat Jun 20, 2009 1:33 am    Post subject: Firebox 700 LED Triangle Reply with quote
Anyone been able to get the LED triangle working?

Just as a quick note getting the Watchguard 700 to work was easy, just set jumper on board to slave, jumper on compact flash to Master, booted right up.

Hardest part was finding a compact flash adapter, ordered one from ebay (hong kong) for $2.66 shipped to Arizona in 13 days, no customs issues...just too funny at a ridiculas price!
Sponsor
nedge2k
DD-WRT Novice


Joined: 03 Aug 2006
Posts: 27

PostPosted: Sat Jun 27, 2009 2:33 am    Post subject: Reply with quote
@spy alelo

I tried running your sample led code on my FBIII but I got "Segmentation Error". After re-compiling on my DSL install - I had to add the following to make it compile by the way:

Code:

#include <stdlib.h>
#include <unistd.h>


...I'm still getting the error.

I'm a total n00b when it comes to C, GCC and GDB but this is what I got:

Code:

Starting program: /opt/lampp/htdocs/led-test

Program received signal SIGSEGV, Segmentation fault.
0x08048d49 in outb (value=122 'z', port=11) at io.h:99
99        __asm__ __volatile__ ("outb %b0,%w1": :"a" (value), "Nd" (port));
(gdb) backtrace
#0  0x08048d49 in outb (value=122 'z', port=11) at io.h:99
#1  0x08048c82 in port_out (port=890, val=11 '\v') at led.c:92
#2  0x080488fd in set_logical_control (ctrl=0) at led.c:461
#3  0x0804894d in update_all () at led.c:486
#4  0x08048b40 in init () at led.c:571
#5  0x08048bd3 in light_disarm () at led.c:621
#6  0x08048c1f in main () at led.c:642
(gdb) frame 1
#1  0x08048c82 in port_out (port=890, val=11 '\v') at led.c:92
92              outb(port, val);
(gdb) frame 2
#2  0x080488fd in set_logical_control (ctrl=0) at led.c:461
461       port_out(0x37a, ctrl^0x0b);
(gdb) frame 3
#3  0x0804894d in update_all () at led.c:486
486       set_logical_control(0x00);
(gdb) frame 4
#4  0x08048b40 in init () at led.c:571
571       update_all();
(gdb) frame 5
#5  0x08048bd3 in light_disarm () at led.c:621
621       init();
(gdb) frame 6
#6  0x08048c1f in main () at led.c:642
642         light_disarm();


Any ideas?

TIA!

EDIT: If it helps...

Code:

 cat /proc/ioports
0000-001f : dma1
0020-003f : pic1
0040-005f : timer
0060-006f : keyboard
0070-007f : rtc
0080-008f : dma page reg
00a0-00bf : pic2
00c0-00df : dma2
00f0-00ff : fpu
01f0-01f7 : ide0
02f8-02ff : serial(auto)
03b0-03bf : ega
03f6-03f6 : ide0
03f8-03ff : serial(auto)
0cf8-0cff : PCI conf1
e800-e8ff : Macronix, Inc. [MXIC] MX987x5 (#3)
  e800-e8ff : tulip
ec00-ecff : Macronix, Inc. [MXIC] MX987x5 (#2)
  ec00-ecff : tulip
f000-f0ff : Macronix, Inc. [MXIC] MX987x5
  f000-f0ff : tulip
f400-f40f : ALi Corporation M5229 IDE
  f400-f407 : ide0
  f408-f40f : ide1

_________________
I love my WRT!
teh
DD-WRT Novice


Joined: 18 Oct 2006
Posts: 14

PostPosted: Wed Aug 12, 2009 8:14 pm    Post subject: Reply with quote
Hmm first of all, I've just got one of these off of ebay for £20 so i'm chuffed.

Few beginner questions I'd like answered...

One, how do I upgrade to a AMD K6-2 400mhz? I think I have one laying around somewhere.

Two, i'm planning to install a hard disk. What are the advisories against this (other than they will eventually fail).

Three, anyone tried PCMCIA usb cards, bluetooth, and usb flash drives?

I'm hoping to turn this into more than just a DD-WRT box. I might try and figure out how to put ubuntu server or fedora on it.
Spy Alelo
DD-WRT User


Joined: 29 Jun 2007
Posts: 139

PostPosted: Wed Aug 19, 2009 4:25 am    Post subject: Reply with quote
Jumper settings:
http://blindnet.dontexist.net/WGF2_Jumpers.pdf

Only reasons against a HDD:

1. Mechanical failure- Consumer drives are not designed for 24x7 service. Unless you have a server class HDD, I dont recommend it.

2. Power use is higher

3. Noisy

4. Not enough physical space in the box

Thats about it. If you are just playing and testing, I dont see a reason not to use a HDD. Just not recommended as a permanent setup.

Also, don't bother trying the PCMCIA slots, it will not work period. There is an IRQ conflict that the latest kernel of Linux and our boards have issues with. I venture to guess that the IRQ from the PCMCIA chipset cannot be shared.

You will have the same issue with anything USB, even if you add a PCI card with USB ports. Again, is related to the limited ammount of usable IRQs with this board.

_________________
Firebox II with DD-WRT, 1 Atheros PCI card, 400MHz AMD K-6 2 CPU, 128RAM, 256MB CF Flash
teh
DD-WRT Novice


Joined: 18 Oct 2006
Posts: 14

PostPosted: Wed Aug 19, 2009 9:00 am    Post subject: Reply with quote
Spy Alelo wrote:
Jumper settings:
http://blindnet.dontexist.net/WGF2_Jumpers.pdf

Only reasons against a HDD:

1. Mechanical failure- Consumer drives are not designed for 24x7 service. Unless you have a server class HDD, I dont recommend it.

2. Power use is higher

3. Noisy

4. Not enough physical space in the box

Thats about it. If you are just playing and testing, I dont see a reason not to use a HDD. Just not recommended as a permanent setup.

Also, don't bother trying the PCMCIA slots, it will not work period. There is an IRQ conflict that the latest kernel of Linux and our boards have issues with. I venture to guess that the IRQ from the PCMCIA chipset cannot be shared.

You will have the same issue with anything USB, even if you add a PCI card with USB ports. Again, is related to the limited ammount of usable IRQs with this board.


Cheers for that! I shall certainly look into getting a cf card then.

I've been attempting to load debian on it to it as well to no avail. Might have to get an old old pre-atx machine out with a pentium in it!
ktd85
DD-WRT Novice


Joined: 10 Aug 2008
Posts: 1

PostPosted: Sun Sep 13, 2009 1:37 pm    Post subject: Fixed for successful work with Firebox II Reply with quote
After 14 hours of testing i've worked out the correct update-direction for the control port.
Additionally the following function needs to be customized to work with gcc-version of ubuntu (else you'll get a segfault!):
Code:

static inline void port_out (unsigned short port, unsigned char val)
{
        outb(val,port);
}


Changend the function to get the data of the leds correctly updated between the control-port state-changes. In the original version the data was set before setting the control port state. In the original code was some strange behavior which caused some leds to blink as they don't should.

Code:
void update_all(void)
{
  set_logical_control(0x02);
  set_led_data(ledarray[0]);
  set_logical_control(0x03);

  set_logical_control(0x00);
  set_led_data(ledarray[1]);
  set_logical_control(0x01);

  set_logical_control(0x04);
  set_led_data(ledarray[4]);
  set_logical_control(0x05);

  set_logical_control(0x08);
  set_led_data(ledarray[2]);
  set_logical_control(0x09);

  set_logical_control(0x0c);
  set_led_data(ledarray[3]);
  set_logical_control(0x0d);

}


By the way if anybody is interested, the FireBox II onBoard connector to the display is a normal LPT-Port only. The Pins are connected in normal thier normal direction. (1->1, 2->2 ... 25->25) From the onBoard connector to the 25pin SUB-D.

Replies would be greatly appreciated.
jjgoessens
DD-WRT Novice


Joined: 07 Nov 2009
Posts: 1

PostPosted: Sat Nov 07, 2009 12:16 pm    Post subject: sdeclcd - firebox x series Reply with quote
please have a look here, i released a new version of the original driver (i am not the original author) by adding keyboard support and a backlight timer function

http://forum.pfsense.org/index.php/topic,7920.0.html

Soures are also avalliable on my web site for compiling.

Jean Jacques
Spy Alelo
DD-WRT User


Joined: 29 Jun 2007
Posts: 139

PostPosted: Sat Nov 07, 2009 2:42 pm    Post subject: Reply with quote
Thank you so much! Too bad that my Firebox II only has an LED status display and not a full LCD, but I am sure other people may find it useful.
_________________
Firebox II with DD-WRT, 1 Atheros PCI card, 400MHz AMD K-6 2 CPU, 128RAM, 256MB CF Flash
sakurahime
DD-WRT Novice


Joined: 17 Nov 2009
Posts: 2

PostPosted: Tue Nov 17, 2009 1:36 am    Post subject: LED Driver for linux Reply with quote
Here is my improvised solution. Leddrive is a bash script that scrapes the network and load statistics the uses led to populate the LED's. I will continue to refine the code with the ending goal of having the led program read the stats directly without the need of a bash script.

Of note, I am using the traffic bar graph for download and the load bar graph for upload. I used the triangle for load since I have no idea how to track a packet with out killing the internet speed.

Details for led:
-a Arm light only
-d disarm light only
-n [UP] [DOWN] [LOAD]

Detail for how leddrive updates the display:
scale(Speed in Mbps):
UP
8 6
7 5

6 4
5 3
4 2

3 1
2 .1
1 .01

Down
8 25
7 20

6 15
5 10
4 5

3 1
2 .1
1 .01

The load triangle goes in steps of 0.2 starting from the rightmost green led on the bottom.
For load averages below 0.2, the 0.2 led blinks.
For load averages above 3, all the led's in the triangle blink.
Code:

          2
       1.8 2.2
     1.6     2.4
   1.4         2.6
 1.2             2.8
1  0.8 0.6 0.4 0.2  3



Sorry, I can not do preformated text Sad
Spy Alelo
DD-WRT User


Joined: 29 Jun 2007
Posts: 139

PostPosted: Tue Nov 17, 2009 2:15 am    Post subject: Reply with quote
That's great! Keep us posted!

Of note, I tried to run the script and shell points to an error in line 120, it stays "bc: not found". Pardon my ignorance here, but is this a program that is not included with the standard distro of DD-WRT?

_________________
Firebox II with DD-WRT, 1 Atheros PCI card, 400MHz AMD K-6 2 CPU, 128RAM, 256MB CF Flash
sakurahime
DD-WRT Novice


Joined: 17 Nov 2009
Posts: 2

PostPosted: Tue Nov 17, 2009 3:33 am    Post subject: Led support Reply with quote
Probably isn't. I am using a gentoo box to develop on. I will definatly work on getting the equations moved into the c program so that it will work on a stock dd-wrt.

Edit:
Here is a script without bc. Should help while I learn about File I/O and string operations.

Edit 2:
With Spy Alelo's help I have been able to clear up some annoying bugs in the led c code.
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9 Display posts from previous:    Page 9 of 9
Post new topic   Reply to topic    DD-WRT Forum Forum Index -> X86 based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum