Building the kernel
About this task
To build the kernel:
Procedure
- From the Windows Start
menu, invoke the ADAMULTI IDE.
- Select , navigate
to the mbx800 BSP directory under your Green Hills
installation (for example, <GreenDir>\mbx800),
select the project default.bld, and open it.
- Navigate to the project Kernel.bld and double-click
it. You see a global_table.c file. You must modify
this file according to your board specifications. Make the following
changes:
- Uncomment the following statement:
#define
HARD_CODE_NETWORK_CONFIGURATION
- Define the Ethernet address for your
board. For example:
#define ETHERADDR
0x00, 0x01, 0xAF, 0x01, 0x10, 0xCC
- Define the IP address of the board. For
example:
#define IP1 194
#define IP2 90
#define IP3 28
#define IP4
151
- Define the gateway for the board. For
example:
#define GW1 194
#define GW2 90
#define GW3 28
#define GW4
1
- Set the netmask. For example:
#define
NM1 255
#define NM2 255
#define NM3 252
#define NM4 0
- Make sure the target board using TCP/IP
is on the same subnet as any system with which it communicates.
- Select for Kernel.bld.
Set the libraries option as follows:
- Remove the log library.
- Add the tcpip library.
- Select . This command rebuilds
your kernel.