Friday, November 20, 2009

Long Day

Been a long day today... I've managed to svn checkout the latest trunk, configure the image for flashing, compile the binaries, flash the new firmware via TFTP, configure the basic network options, set up a pivot_root so I can have more space (uses 32MB flash drive), re-configured network stuff, installed lighttpd, vsftpd, python, python-twitter.

The damn init scripts wont work! For some reason the /etc/init.d/lifghttpd and /etc/init.d/vsftpd scripts will not activate on boot. They have been enabled and made executable.

The only work around I have left is to lower the serial port baud rate, and use a microcontroller to start them. A higher power type deal. The micro waits for a particular string (I'm thinking a long pause might be easier...) and then sends a linefeed. This will acitvate the console over the serial port. The microcontroller will have to send a few commands to the router. Then there will be a python program running in the FOREGROUND. Instead of using pyserial, I will just have the python wait at a raw_input() command. The microconroller will talk directly to the python program.

I don't like this solution. It seems like a stupid idea to have a microcontroller take the place of a person when it shouldn't need to. The router should be able to run the processes on its own.

No comments:

Post a Comment