| Red Hat Documentation |
Using the Red Hat EDK
As mentioned in Getting Started, the Red Hat Embedded DevKit is a toolkit that helps you develop programs for embedded systems. Once working, the application can then be downloaded to a target board or other embedded system. This toolkit provides a quicker way to progress through the edit-compile-download-debug cycle. After the configuration and project files are set up, you can repeat the cycle as many times as necessary, without having to recreate the configuration file. NoteThe DHCP, TFTP, and NFS servers must be configured, your target board set up, and the embedded kernel and target filesystem template built before setting your EDK Preferences. See "Installing Red Hat Embedded DevKit" in Getting Started for more information. Working With the Red Hat EDKThere are five steps to using the Red Hat EDK: EDK Preferences WindowUse the EDK Preferences window to specify the Red Hat EDK-specific parameters. From the Symbol Browser, in the File menu, select EDK Preferences. After setting your project parameters, click OK to update the project with the current settings.
Target tabThe Target tab lets you input information specific to the target board.
Hostname
Boot Image Select the type of IP address assignment your target board will use. You can choose between either dynamic IP assignment or a static IP address. With dynamic IP assignment, you have a choice between kernel-based (built-in BOOTP) or DHCP IP resolution. If you choose dynamic IP assignment, you must have a DHCP server running. Do not use a Microsoft Windows NT® DHCP server if you want to use the kernel-based option, as it does not support the BOOTP protocol. See "Setting Up Servers on the Host" in Getting Started for instructions on installing the Linux DHCP server (dhcpd).
Kernel
DHCP
Static
IP Address
Mask
Broadcast
Gateway Filesystem tabThe Filesystem tab lets you select what type of filesystem will be used by your application.
Some applications do not require permanent storage; these systems use a RAM Disk, or virtual disk, filesystem. Other systems do require permanent storage, these systems use an NFS Root filesystem, which accesses files stored on a file server via a network. RAM DiskRAM Disk is a virtual disk, such as an emulated disk drive, on the target board. Use RAM Disk as your filesystem only if you have sufficient RAM to hold the kernel, the running application, and the RAM Disk. If you choose this option, the target board must be rebooted each time the program is rebuilt. Since all data resides in memory, it should not be necessary to create temporary files. For this reason, a read-only filesystem, RAM Disk/ROMfs, is ideal for RAM Disk usage. However, if you need to create temporary files on the filesystem, such as for exchanging data between applications, you can use a read-write filesystem (RAM Disk/Minix) instead. The default RAM Disk/Minix setting allows an additional 10% for files and disk space in the image. It is possible to change this allocated size through the Extra Space (Percentage) field. This option is selected by default.
Template Directory You can do this by either typing the directory path or clicking the "..." button. If you click the "..." button, the Open dialog appears. Select the template directory location.
Template Directory You can do this by either typing the directory path or clicking the "..." button. If you click the "..." button, the Open dialog appears. Select the template directory location.
Extra Space (Percentage)
Absolute Size
Blocks
Inodes NFS RootNFS Root allows access to files stored on the network. Use NFS Root as your filesystem if you have a large application, limited RAM, or require data persistence. If you choose this option, the target board must be rebooted each time the program is downloaded. For information on setting up NFS Root, see "Setting Up Servers on the Host" in Getting Started.
Root Directory You can do this by either typing the directory path or clicking the "..." button. If you click the "..." button, the Open dialog appears. Select the directory where the NFS Root is located. Click OK to select the directory and close the dialog. Mount Points tabThe Mount Points tab allows you to configure mount point information. See man fstab for syntax and description information.
Mount Points
none /proc proc Kernel tabThe Kernel tab allows you to specify paths and options for the kernel.
NoteSee "Creating a Target Filesystem Image" in Getting Started for information on building the kernel.
Arguments NoteIt is not necessary to add arguments when using the default EDK Preferences configuration.
Source Path To specify the directory, either enter the name of the directory or click the "..." button. If you click the "..." button, the Open dialog appears. Select the top-level directory of the kernel sources. Click OK to select the directory and close the dialog. The directory appears in the Source Path field. This section allows you to specify module information.
Monolithic
All Modules NoteWhen this option is selected, make modules_install is invoked in the kernel directory. This make rule fails if the kernel has not been configured with module support (as is the case with the PowerPC configuration). If this happens, select the Monolithic option instead.
Named Modules
Module Options For more information on module options, refer to your driver sources documentation. If All Modules is selected, you should list only modules requiring options to be passed to them. If Named Modules is used, only the modules listed in this field are installed on the target board's filesystem. Debugging tabThe Debugging tab allows you to set up your debugging process.
Ethernet
Port Number
Serial
Target Port
Host Port
Speed (bps) Editing the Project FilesAfter configuring the EDK Preferences, you may need to edit your source code. From the Symbol Browser, double-click the name of the file to edit.
The Editor window opens. After editing the file, save your changes (from the File menu select Save). For more information on the Editor, see Editor.
After entering the EDK Preferences and editing any source files, you must create a build target before creating an executable application. Build targets specify how the final binary is to be created. You can create, execute, download and debug build targets for either native or embedded targets. See Building Programs for information on creating build targets.
|
|||||||||
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |