Ubuntu virtual machine and Petalinux development platform installation

Source: Internet
Author: User

First part Ubuntu virtual machine installation

Resource requirements:

1, Vmware-workstation_full_12.1.1.6932.exe

2, Ubuntu-14.04.3-desktop-amd64.iso

3. Internet


Recommended for desktop computers with CPU, 8G memory, and more than 100GB free partitions above i5


First, install the virtual machine software

Slightly


Second, new virtual machine

FILE-New virtual machine-custom (Advanced)

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8F/B2/wKiom1jqJ6Xi_W7rAAGsuwUSYmI575.png "style=" float : none; "title=" 1.png "alt=" Wkiom1jqj6xi_w7raagsuwusymi575.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M00/8F/B0/wKioL1jqJ6fA_hwMAAFs07VAIWw980.png "style=" float : none; "title=" 2.png "alt=" Wkiol1jqj6fa_hwmaafs07vaiww980.png "/>

The intermediate step is omitted and the final configuration is as follows

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/8F/B2/wKiom1jqJ6eTnbRoAAFqfZ7VB8g043.png "style=" float : none; "title=" 3.png "alt=" Wkiom1jqj6etnbroaafqfz7vb8g043.png "/>

"Custom Hardware"-"New CD/DVD", Loading Ubuntu image

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8F/B2/wKiom1jqJ6mR87mEAAFkd_r0XG8815.png "style=" float : none; "title=" 4.png "alt=" Wkiom1jqj6mr87meaafkd_r0xg8815.png "/>

Start the virtual machine, cannot change to Chinese (petalinux not supported), start the installation

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8F/B0/wKioL1jqJ6vAeMokAAHMtwuaHXY435.png "style=" float : none; "title=" 5.png "alt=" Wkiol1jqj6vaemokaahmtwuahxy435.png "/>

The middle step is omitted, and the default setting is maintained

Set user name, password, turn on automatic login. At this point the "Continue" button is displayed outside the screen, you need to use the "tab" key to switch to the "Back" button and press "→" key and then enter

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/B0/wKioL1jqJ6vRiK9-AAGhewf4m84658.png "style=" float : none; "title=" 6.png "alt=" Wkiol1jqj6vrik9-aaghewf4m84658.png "/>

Installation Complete reboot, enter OK

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8F/B2/wKiom1jqJ62C603CAAEpbeQM9h8602.png "style=" float : none; "title=" 7.png "alt=" Wkiom1jqj62c603caaepbeqm9h8602.png "/>


Third, optimize Ubuntu settings

"System Settings"-"displays", modify the resolution to 1440x900

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/8F/B0/wKioL1jqJ66BwQDYAAJ-1ESdahE673.png "style=" float : none; "title=" 8.png "alt=" Wkiol1jqj66bwqdyaaj-1esdahe673.png "/>

"System Settings"-"Brightness & Lock"

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/B2/wKiom1jqJ7Dws1xLAAKILAm5sUI742.png "style=" float : none; "title=" 9.png "alt=" Wkiom1jqj7dws1xlaakilam5sui742.png "/>

"Virtual Machine"-"Settings"-"Add"-"Network adapter"-"NAT mode"

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/8F/B0/wKioL1jqJ7GBRdfQAADk74NqI5w768.png "style=" float : none; "title=" 10.png "alt=" Wkiol1jqj7gbrdfqaadk74nqi5w768.png "/>

"System Settings"-"Software & Updates"-download from-"Other ..."-"China"-aliyun.com

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8F/B2/wKiom1jqJ7ODW6lCAAKDLw2FaOk246.png "style=" float : none; "title=" 11.png "alt=" Wkiom1jqj7odw6lcaakdlw2faok246.png "/>


Iv. Open Shared Folders

"Virtual Machines"-"Installing VMware Tools"

sudo su–mount/dev/cdrom/mntcp/mnt/vmwaretools-....... tar.gz. tar–xf vmwaretools-....... tar.gzcd vmware-tools-distrib/./ vmware-install.pl

Virtual machines-Settings-options-shared folders. If error, reload VMware Tools after restarting virtual machine

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M00/8F/B0/wKioL1jqJ7Pwod30AAELKUBoyrw374.png "style=" float : none; "title=" 12.png "alt=" Wkiol1jqj7pwod30aaelkuboyrw374.png "/>

Ln-s/mnt/hgfs/share ~/winshare


Five, VIM installation

Apt-get Install VIM-GTKVIM/ETC/VIM/VIMRC

Add at the end of the file:

Set Nuset Tabstop=4set autoindent

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8F/B2/wKiom1jqJ7bxzyk-AAK5SI1L6K8636.png "style=" float : none; "title=" 13.png "alt=" Wkiom1jqj7bxzyk-aak5si1l6k8636.png "/>


VI. TFTP server Setup

Apt-get Install tftp-hpa tftpd-hpaapt-get Install XINETDVIM/ETC/DEFAULT/TFTPD-HPA

Modify the following two items:

tftp_directory= "/tftpboot" tftp_options= "-s-c-L"

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/8F/B0/wKioL1jqJ7eQ2y8SAAJ2O7wCmMs692.png "style=" float : none; "title=" 14.png "alt=" Wkiol1jqj7eq2y8saaj2o7wcmms692.png "/>

Cd/mkdir tftpbootchmod 777 Tftpboot/service xinetd stopservice tftpd-hpa restartservice xinetd start

Test for success: (Pre-/tftpboot touch AAA, Local touch 111)

TFTP localhosttftp> put 111tftp> get aaatftp> q


Vii. NFS Server Setup

Apt-get Install Nfs-kernel-serverapt-get Install Nfs-commonvi/etc/exports

Add at the end of the file

/root/rootfs * (Rw,sync,no_root_squash,no_subtree_check)

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/B2/wKiom1jqJ7nSYTUQAAKjAfhG00A169.png "style=" float : none; "title=" 15.png "alt=" Wkiom1jqj7nsytuqaakjafhg00a169.png "/>

mkdir rootfschmod 777 Rootfs/exportfs-r/etc/init.d/nfs-kernel-server Restartshowmount localhost–e

Whether the test was successful:

Mount-t Nfs-o nolock localhost:/root/rootfs/mnt


Part II Petalinux development platform installation

Resource requirements:

1, Petalinux-v2016.1-final-installer.run

2. Internet


First, rely on tool installation

Using Dpkg–l | grep ' xxx ' checks whether the following dependencies are installed

Apt-get Install tofrodosapt-get Install iproute2apt-get install gawkapt-get install gitapt-get install makeapt-get instal L net-toolsapt-get Install Libncurses5-dev zlib1g-dev libssl-devapt-get Install flex bisonapt-get Install Libselinux1apt-get Install lib32z1 lib32ncurses5 lib32bz2-1.0 lib32stdc++6


Ii. Modification of/bin/sh

Dpkg-reconfigure Dash

Select <No>

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M00/8F/B2/wKiom1jqJ7zDy3I8AAPg6mDtV-k937.png "style=" float : none; "title=" 16.png "alt=" Wkiom1jqj7zdy3i8aapg6mdtv-k937.png "/>


Third, Petalinux installation

Mkdir/opt/pkg./petalinux-v2016.1-final-installer.run/opt/pkg

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/8F/B0/wKioL1jqJ8DwqTc-AAQUvojIgiM797.png "style=" float : none; "title=" 17.png "alt=" Wkiol1jqj8dwqtc-aaquvojigim797.png "/>

Source/opt/pkg/petalinux-v2016.1-final/settings.shpetalinux-util--webtalk Offcd/opt/pkg/chown Root:root petalinux-v2016.1-final/-R


Iv. Optimization of Petalinux settings

VI ~/.BASHRC

Add at the end:

source/opt/pkg/petalinux-v2016.1-final/settings.sh

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/8F/B2/wKiom1jqJ8Pw0OR0AAP6tlX8gNA309.png "style=" float : none; "title=" 18.png "alt=" Wkiom1jqj8pw0or0aap6tlx8gna309.png "/>

CD PKG/PETALINUX-V2016.1-FINAL/TOOLS/LINUX-I386/GCC-ARM-LINUX-GNUEABI/BINCP ~/winshare/ln.sh. /ln.sh

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M02/8F/B0/wKioL1jqJ8SzwvJaAAKmigzAha0147.png "style=" float : none; "title=" 19.png "alt=" Wkiol1jqj8szwvjaaakmigzaha0147.png "/>


This article from "Hello_world" blog, reproduced please contact the author!

Ubuntu virtual machine and Petalinux development platform installation

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.