Embedded Linux Basic Development environment construction

Source: Internet
Author: User

    1. 1. Update to the latest package

open up System-administration Update Manager

click on Settings

set ' Release upgrade ' to ' never '. That makes the option of upgrade to Karmic go away.

close the Settings dialog box.

click on ' check ' to check for upgraded packages. It'll look for packages, that's upgraded from the version, that's installed on your box.

choose to install the upgrades. This would take a while on a freshly installed box.

    1. 2. Installing the Code editing Tool

sudo apt-get install VIM-GTK

    1. 3. Installing Network Tools

TFTP Server

  1. Install TFTP server and client (TFTP-HPA is client, TFTPD-HPA is server side)

sudo apt-get install TFTP-HPA TFTPD-HPA

  1. Prepare the TFTP server, edit the/ETC/DEFAULT/TFTPD-HPA, and modify the contents as follows:

#/ETC/DEFAULT/TFTPD-HPA

Tftp_username= "TFTP"

tftp_directory= "/tftpboot"

Tftp_address= "0.0.0.0:69"

Tftp_options= "-l-c-S"

  1. Create a TFTP directory and restart the TFTP service

sudo mkdir/tftpboot

sudo chmod 777/tftpboot

sudo service tftpd-hpa restart

  1. Test

$TFTP TFTP server address

>get filename (fetch file)

>put file name (send file)

>quit (Exit)

  1. U-boot parameters
    Set Bootcmd tftpboot $loadkernaddr image_dir/zimage\; Bootm loadkernaddr

Example: Set Bootcmd tftpboot c0008000 192.168.1.10:kernel.img\; Bootm c0008000

Server for NFS

  1. Install Server for NFS
    sudo apt-get install nfs-kernel-server
  2. Compounding/etc/exports
    /rootfs * (rw,sync,no_root_squash)
  3. restarting NFS services
    Sudo/etc/init.d/portmap Restart
    Sudo/etc/ini.d/nfs-kernel-server Restart
  4. display NFS shared directory
    Showmount–e
    mount and uninstall NFS directory
    sudo mount-t NFS Server for NFS Address:/rootfs/mnt
    sudo umount/mnt
  5. u-boot parameter
    Example:
 
 

SAMBA Server

1: Install SAMBA Server and client
sudo apt-get install Samba
sudo apt-get install Smbfs
sudo apt-get install System-config-samba

2: Modify the configuration file
sudo cp/etc/samba/smb.conf/etc/samba/smb.conf.bck
sudo vim/etc/samba/smb.conf
Leave only [global]

3: Open the Compounding tool
sudo system-config-samba

Preparing Samba users and shared directories

4: Restart Samba

SUDO/ETC/INIT.D/SMBD restart

5:windows under \\samba server address

Ssh

sudo apt-get install openssh-server openssh-client

Modify Host Name

sudo vim/etc/hostname

Embedded Linux Basic Development environment construction

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.