VMware + Ubuntu-install the Cross Compiler

Source: Internet
Author: User
Tags ssh access

Personal installation and configuration process:
1. Download vmware workstation 6.0.3 in Windows XP
2. Software Download

1. http://developer.lupaworld.com/ubuntu/releases/hardy/ubuntu-8.04.1-desktop-i386.isodownload Ubuntu 8.04 lts

The iso of the x86 desktop version.
2. Download Vandyke securecrt v6.0.3 build 311 in http://www.tuola.net/soft/view-1441.html

Cracked release.
3. Download ftp://ftp.denx.de/pub/eldk/4.1/arm-linux-x86/iso/ in arm-2007-01-21.iso

Ftp://ftp.denx.de/pub/eldk/4.1/arm-linux-x86/iso/arm-2007-01-21.iso
3. Install vmware workstation 6.0.3, and then install the VM ubuntu8.04. Select Nat for the VMware network connection, and set the remaining default settings. The hard disk space is reserved for 25 GB. 4. Use DHCP to automatically allocate network configurations in ipvto8.04 (I use DHCP to automatically obtain IP addresses when I access the Internet under XP ).
1. Start the root user and configure the network
A. after entering the system, choose "application"> "attachment"> "terminal" from the Startup menu to the desktop, and pull "computer" from the "location" of the Startup menu to the desktop;

Double-click Terminal on the desktop to open the command line terminal
B. Enable the root user and change the password.
:~ $ Sudo passwd Root
C. Enter the root user
:~ $ Su

D. Log On As the root user. Go to system-Logon window-security-Allow Logon As administrator-logout-and log on as the root user.
2. Install VMware Tools
A. after entering the Ubuntu system, click "Install VMware Tools" in the VM menu "VM" and a folder with CD-ROM content will pop up on the desktop. There are two
Rpmand tar.gz compressed file packages;
B. Double-click the desktop terminal to open the command line terminal and install the virtual driver in command mode:
Create a folder
# Mkdir VM-Tools
Modify folder Permissions
# Chmod 777 VM-tools/
Go to the folder
# Cd VM-tools/

Copy a virtual driver package
# Cp/Media/cdrom0/VMwareTools-6.0.3. *** .tar.gz.
Decompress the Virtual Drive package
# Tar xzvf VMwareTools-6.0.3-*** .tar.gz
Enter the Virtual Drive folder
# Cd vmware-tools-distrib/
Run the virtual driver installation script
#./Vmware-install.pl
C. Press the Enter key all the way, and the mouse can freely enter between the VM and XP.

3. Enable the shared folder function between XP and virtual machine systems
A. Go to the VM menu "VM"> "Settings", switch to the "options" Page, select "Shared Folders", and select

"Always enabled"; click "Add" in "folders" to go to "add shared folder wizard"; then click Next and select

"Host path" and "name"; click "Next" to configure the shared folder attributes, and click "finish". Exit the wizard and click "OK" to exit the settings;
B, but the shared folder with Windows cannot be seen, because the vmhgfs module is not installed properly (using the LS command cannot see anything in the/mnt/HGFS/path)
C. There is no way to install ultraiso, compress all the required files into. ISO, and load them using the Drive drive of the virtual machine. Loading Method: Right-click the VM drive,

Select disconnect, right-click it, select edit, and select the. ISO file compressed by yourself to connect the VM Optical Drive.

Ubuntu will automatically load the optical drive. The path is/CDROM.

4. Update the software package Server Source, update the system, and install the SSH and zmodem protocols.
A. Switch to the root user and run the following command to update the system:
Network update system
# Apt-Get update
Network upgrade System
# Apt-Get upgrade (local network speed is slow, time is too long, not executed)
B. Install the SSH client and server on the network
# Apt-Get Install SSH OpenSSH-Server
The securecrt remote terminal can be used for SSH access to the system only when this is installed.
C. Run the following command to find and install the zmmodem protocol support software package:
Search for software packages related to rzsz
# Apt-cache search rzsz
Show lrzsz Software Package details
# Apt-Cache show lrzsz
Install zmodem transmission protocol on the network
# Apt-Get install lrzsz
View the directory where package packages are stored
# Ll/var/Cache/APT/archives/
D. install necessary software packages for development.
# Apt-Get Install patch libncurses5-dev make rpm
5. Install securecrt Remote Terminal SSH to access the VM and enable SFTP file transfer.
A. Double-click scrt603.exe in securecrt.v6.0.3.rarand click "Next". Select "Accept protocol" and click "Next". Use the default configuration file, click "Next", and select "complete "; click "Next" to generate a shortcut by default. Click "Install" to install it, and click "finish" to complete the installation;
B. Extract scrt603-tbe.exe from securecrt.v6.0.3.rarto the installation directory and run it. Click "patch ",

Then, the attacker securecrt.exe crack the 30-day permission restriction;
C. Use the securecrt Wizard to create an SSH session to the virtual machine. "Next", enter the Virtual Machine IP address and login user name, and then double-click the session SSH

Log on to Linux and configure the terminal type, Font, number of scrolling lines, character encoding, XMODEM, and sftp default paths in session properties;
D. After an SSH session is established to Linux, the corresponding Linux SFTP can be started from the menu "file"> "Connect SFTP tab" on the version 6.0.3 interface.

Connection. Enter "help" in the SFTP tag to view related SFTP commands (configuration failed, skip)
5. Install the Cross Compiler (the main file source below: the CD of the Hengfeng ruike Development Board)
1. Create the hfrk folder under the Home directory, and create the S3C2410 directory under the hfrk directory.
2. Copy the disk4/cross-2.95.3.tar.bz2 (compressed to. ISO) file to hfrk,
# Create a directory using mkdir-P/usr/local/ARM
# Tar jxvf cross-2.95.3.tar.bz2 Decompression
# Move the MV 2.95.3/usr/local/ARM folder to the target path
# Export Path = $ path:/usr/local/arm2.95.3/bin
3. Copy the disk4/cross-3.3.2.tar.bz2 file to hfrk,
# Tar jxvf cross-3.3.2.tar.bz2 Decompression
# Mv 3.3.2/usr/local/ARM
4、 linux2.4.18.tar.gz to hfrk/S3C2410/
# Tar zxvf linux2.4.18.tar.gz
# Cd 2.4.18-rmk7,
5. Configure the kernel, enter the make menuconfig command to enter the configuration interface, and select load an alternate configuration file. Enter the configuration file name.

Kernel_2410.cfg: Select exit to exit the configuration page. The system prompts whether to save the configuration. Select Yes.
6. Return to the command status, start to compile the kernel, and enter the command
# Make Dep
# Make zimage
7. There is no error message indicating that the file has been compiled successfully. The final program is named zimage in the directory 2.418-rm7/ARCH/ARM/boot.

We can burn the file to our flash, and write it to the 1st partition by default.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.