Boa5200 HOWTO: Difference between revisions
| Line 28: | Line 28: | ||
subnet 147.32.0.0 netmask 255.255.0.0 { | subnet 147.32.0.0 netmask 255.255.0.0 { | ||
} | } | ||
# private subnetwork | # private subnetwork | ||
subnet 192.168.10.0 netmask 255.255.255.0 { | subnet 192.168.10.0 netmask 255.255.255.0 { | ||
Revision as of 08:31, 9 February 2007
Introduction
This document describes how to install and setup Linux and development environment for BOA5200 board. Assume that you have a development machine (your PC) that you use for development and building your applications which you consequently want to get running and test on BOA5200.
Serial line setting
The easiest way to communicate with the board ,when there is no OS and remote shell running on it, is over serial line. Recommended serial communication program is minicom. Setup minicom as follows:
Baud Rate – 38400
Bits - 8
Parity – N
Stop Bits - 1
Hardware Flow Control:- No
Software Flow Control:- No
After the setup you will see Redboot> command prompt. Here you can enter Redboot`s commands. Redboot is a simple boot manager bulit upon eCos real-time OS. For more details , see http://ecos.sourceware.org/ecos/docs-latest/redboot/redboot-guide.html.
DHCP server setup
Redboot supports BOOTP protocol which means that it is able to get network information(IP,netmask,gateway IP address,etc.) from DHCP server(provides BOOTP besides DHCP protocol). Install dhcp server (on debian: apt-get install dhcpd) on your development machine. Example of my dhcp configuration file /etc/dhcpd.conf:
# I have two ethernet interfaces:
# eth0 - Internet
# eth1 - connection to BOA5200 (IP= 192.168.10.1)
# I do not want to progate infos to 147.32.0.0 subnetwork
subnet 147.32.0.0 netmask 255.255.0.0 {
}
# private subnetwork
subnet 192.168.10.0 netmask 255.255.255.0 {
option broadcast-address 192.168.10.255;
option routers 192.168.10.1;
option subnet-mask 255.255.255.0;
default-lease-time 600;
max-lease-time 7200;
}
# settings for BOA5200
host BOA5200 {
hardware ethernet 00:08:f1:11:22:33;
fixed-address 192.168.10.2;
}
Start dhcp server and reboot the board. After booting it has assigned IP, netmask and gateway address:
+PHY0: AMD AM79C874 FEC eth0: 100Mb/Full Duplex Ethernet eth0: MAC address 00:08:f1:11:22:33 IP: 192.168.10.2/255.255.255.0, Gateway: 192.168.10.1 Default server: 192.168.10.1