Engineering Technology Canada logo

LBOX

November 09, 2004

FAQ - My laptop doesn't have a serial port, can I still communicate with the LBOX?

"My laptop doesn't have a serial DB9 so it can't talk to the LBOX serially. I've used my main box for that. However, I just got a USB-to-serial adaptor which allows me to use the laptop serially with the LBOX. I should mention that in the article series because lots of folks have such laptops nowadays.
For my laptop I have a Belkin F5U409 USB-to-serial DB9. Linux has the needed driver (mct_u232). "
(Courtesy R. Sevenich, Eastern Washington University.)
---

The LBOX has a serial port on board that comes out to a 2x5 pin header. An adapter cable can be used to convert this to a "normal" DB9 serial port connector. When the LBOX powers up, you can watch it booting, and eventually you will get a command prompt, and can control the operation this way.

It should be noted however, that it is not ENTIRELY necessary to have a serial connection to the LBOX. If it is configured properly, it will either get an IP address through DHCP, or you can assign a specific one.

For example:
ifconfig eth0 192.168.1.150
- will assign that specific IP address to "eth0" the ethernet port on the Coldfire processor.

If no address is already assigned to eth0, use DHCP:
dhcpcd
- will request dhcp address from a DHCP server attached somewhere on your network.

Either of these commands can be added to the "rc" file in order to have this happen on boot. In this case you just have to wait long enough for the boot sequence to be ready, and then you can telnet into the board. to get a console prompt.
To telnet on to the board:
telnet 192.168.1.150

Finally, in case you are on the LBOX, and want to get to the "outside world" you may need the following line:
Add a default gateway route:
route default gw 192.168.1.1

Posted by Iain at November 9, 2004 10:11 AM

TrackBack URL for this entry: