Building the kernel

About this task

To build the kernel:

Procedure

  1. From the Windows Start menu, invoke the ADAMULTI IDE.
  2. Select File > Open Project in Builder, navigate to the mbx800 BSP directory under your Green Hills installation (for example, <GreenDir>\mbx800), select the project default.bld, and open it.
  3. 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:
    1. Uncomment the following statement:

      #define HARD_CODE_NETWORK_CONFIGURATION
    2. Define the Ethernet address for your board. For example:

      #define ETHERADDR 0x00, 0x01, 0xAF, 0x01, 0x10, 0xCC
    3. Define the IP address of the board. For example:

      #define IP1 194
      #define IP2 90
      #define IP3 28
      #define IP4 151
    4. Define the gateway for the board. For example:

      #define GW1 194
      #define GW2 90
      #define GW3 28
      #define GW4 1
    5. Set the netmask. For example:

      #define NM1 255
      #define NM2 255
      #define NM3 252
      #define NM4 0
    6. Make sure the target board using TCP/IP is on the same subnet as any system with which it communicates.
  4. Select Project > FileOptions for Kernel.bld. Set the libraries option as follows:
    1. Remove the log library.
    2. Add the tcpip library.
  5. Select Build > Rebuild all. This command rebuilds your kernel.

Feedback