Difference between revisions of "Getting started with Linux on CM-iGLX"

From Compulab Mediawiki
Jump to: navigation, search
(New page: == Installation == === Installation by EtherLink === # Obtain a standard PC with Windows XP/2000. It will be referred to as 'host PC' in this document. # Connect a host PC serial port to ...)
(No difference)

Revision as of 11:20, 10 March 2008

Installation

Installation by EtherLink

  1. Obtain a standard PC with Windows XP/2000. It will be referred to as 'host PC' in this document.
  2. Connect a host PC serial port to the COM1 port on the ATX baseboard via a null modem cable, such as the one provided with the Eval Kit.
  3. Connect the module's Ethernet port (P10 on ATX baseboards) to the LAN (switch/hub) via a standard network cable, such as the one provided with the Eval Kit.
  4. Copy the contents of this Linux package’s ZIP file to the C:\LIN_INST\ folder on your PC. Unzip the gentoo.img.gz file, to extract {filename|gentoo.img}}.
  5. Download and carefully read the Etherlink.doc document available following [Developer] >> [CM-iGLX] >> [BIOS & Etherlink image]. Instal and setup a TFTPD32 server (provided with this package) on the host and an Etherlink TFTP client on the target as instructed. Set c:\lin_inst\ as the TFTP server base directory. For Windows tftpd32, choose Settings and browse for Base directory. Choose standard TFTP security.
  6. On the Host PC, open a Terminal Emulation program, such as HyperTerminal. Ensure that 'flow control' is set to NONE.
  7. Enter the BIOS setup on the CM-iGLX by pressing Ctrl-C on HyperTerminal and momentarily pressing the Reset button on the baseboard.
  8. Select “Basic CMOS Configuration”.
  9. In “DRIVE ASSIGNMENT ORDER”, select [Drive C:] as [Nand Flash]. Ensure that there are no external USB mass storage devices connected to the USB ports, as those may interfere with the on-board Flash Disk.
  10. Select “Write to CMOS and exit”.
  11. Again, enter the BIOS setup on the CM-iGLX by pressing Ctrl-C on HyperTerminal and momentarily pressing the Reset button on the baseboard.
  12. In the terminal window on the host, use [TAB] to select [Start EtherLink] from the main BIOS menu.
  13. Using the Etherlink menu, set the NAND image name to “gentoo.img”.
  14. Run “Download NAND image”. Do not interrupt the host PC and CM-iGLX until the process is complete!
  15. Wait for process completion, which takes several minutes. You can see the progress status by the state of the LED’s on the module:
    Operation in progress – two LED’s are flashing
    Operation completed successfully – one LED is on and other is off
  16. Return to the main menu by pressing any key. Press 0 to save the EtherLink configuration for future operations.
  17. Reboot and enjoy Linux on the CM-iGLX.

After Installation

Connection and Logging In

Use the following username and password to login: Account with administrative privileges:

User: root
Password: 111111

To login into the Linux system, you may use a serial console at 38400 bps (ttyS0, ttyS1), connect through the network (ssh protocol) or use a keyboard and VGA display.

IP Address

The IP addresses for both network interfaces are obtained automatically using DHCP. To configure networking, edit /etc/conf.d/net, /etc/resolv.conf and /etc/conf.d/hostname. For more information about Gentoo Linux network configuration, read: Gentoo Network Configuration guide. Default settings assume that Ethernet controller of CM-iGLX is "eth1" and Ethernet controller of ATX is "eth0".

BIOS

Don’t forget to update BIOS time to avoid warning messages on booting.

Samba

Samba – server and client for a Microsoft Windows compatible network. Use commands: smbmount, smbumount. In order to configure a Samba server, edit the configuration file /etc/samba/smb.conf or use SWAT tool. More information about the Samba configuration can be obtained from Samba documentation.

Frequently Used Kernel Command Line Parameters

The following describes several Linux kernel command line parameters.

Root Device and Root File System

To specify the device containing the root file system:

root=<block device>

Example block devices:

Device type Linux block device name
NAND flash /dev/sda2
IDE Compact flash /dev/hda1
Ramdisk /dev/ram0

To specify a root file system type, for example ext3:

rootfstype=ext3

To allow Linux kernel to detect USB device containing root file system specify rootdelay:

rootdelay=10

Serial Consoles

To enable a console on the serial port:

console=<tty>,<baud rate>

The following is COM-tty mapping for different Linux versions:

Device Linux tty
COM 1 (UART) ttyS0
COM 2 (UART) ttyS1

See also