The previous section has introduced the installation and use of the Ubuntu physical machine, which I mainly introduced under Win7 and installed the virtual machine under Ubuntu physical machine, importing the Ubuntu image provided by OpenRISC. But it has to be said that OpenRISC above the environment of the file structure is very messy, but for beginners can save the trouble of installing the compilation chain. If you want to install the cross-compilation chain yourself and build your own SOC platform, please refer to the next section.
One, virtual machine installation and image import
1, the preparation of the file (where the openrisc_ubuntu_2011-12-15.vdi.bz2 image on the Opencore has been unable to download.) )
Import the virtual machine installation and mirroring
Virtual Box can also choose VMware,
Choose the installation directory, generally do not recommend the choice of C-drive Ah! I'm just here to demonstrate, casually choose.
Then all the way next until the installation is complete.
When the installation is complete, open vbox and we can create a new virtual machine system
Select System name (optional), System type (Linux), version (Ubuntu)
allocating memory, it is recommended to allocate about 1G of memory, because it takes a lot of memory space to run Ise or Modelsim later.
Add a virtual hard disk (the. vdi file that we downloaded earlier), create, wait for completion
Virtual machine installation Complete, mirroring complete import
3, Linux use, open Linux, we can see the following interface, and can see the cross-compiler tool chain has been installed, the environment to build the necessary hardware and software files have been placed, but at this time did not install Ise and Modelsim. For the use of Linux here is the same as in the previous chapter, but the network configuration is set on the virtual machine, here is no longer said, you can see what is said on the Internet, the following main talk about the host and virtual machine file sharing . If you are installing VMware, you can simply drag the file to complete the file copy.
File share: Settings-shared folder-Add and specify file path (Win7)
Create a folder under Ubuntu
Cd/home/openrisc
mkdir Share
Mount folder
sudo mount–t vboxsf vbox_share share
Prompt to enter root password: OpenRISC
Mount successfully, you can complete Win7 and Ubuntu file sharing, but note that each time after the shutdown needs to be re-mounted. Enjoy!!!!
Because the small series installed is a dual system, above I have introduced, in Win7 under the installation of OPENRISC simulation environment, the following I introduced under Ubuntu installed OPENRISC simulation environment.
Reboot, enter Ubuntu system, install VirtualBox
sudo apt-get install VirtualBox
The next steps follow the installation under Win7
1. Installation of EDA tools (Xilinx ise, Modelsim)
Xilinx ise Installation
File preparation: Xilinx 14.1 Linux CD or USB flash drive
1, find the Software directory: if the CD-ROM installation is located in/media/liuxin/xilinx_ise ....
2. Run./xsetup into the installed GUI interface, select the installation directory assuming:/home/liuxin/eda_tool/xilinx
After a long wait, you are prompted to add license
3. Modify Environment variables:
To modify the/HOME/LIUXIN/.BASHRC file:
Vim/home/liuxin/.bashrc
To add a statement at the end of a file:
source/home/user_name/eda_tool/xilinx/i14.1/ise_ds/settings32.sh
Path= $PATH:/home/user_name/eda_tool/xilinx/14.1/ise_ds/ise/bin/lin/
After saving exits, execute SOURCE/HOME.OPENRISC/.BASHRC to make the newly added content Direct Input command: ISE can launch Ise
Modelsim Installation: Modelsim 10.0c installation is unsuccessful so use Modelsim se 6.5e
File preparation: 1, Modelsim installation files: Install.linux modelsim-base.mis modelsim-docs.msi modelsom-gcc-linux.mis modelsim-linux.mis
2. crak file MentorKG.exe
1, enter the Modelsim installation file directory, if the Install.linux is not executable:
CHOMD +x Install.linux
2./install.linux into the GUI interface of the installation, can complete the installation quickly
3, crack: Because need to run MentorKG.exe file needs to install wine:
sudo apt-get install wine
Wine MentorKG.exe
Wait for the build license.txt to be saved as Modelsim installation directory, such as:/home/liuxin/eda_tool/modelsim/modeltech
3. Modify the environment variables and verify the license:/home/liuxin:
Vim. BASHRC
Added at the end:
#modelsim
Export Lm_license_file=/home/liuxin/eda_tool/modelsim/modeltech/license.txt
Export path= $PATH:/home/liuxin/eda_tool/modelsim/modeltech/linux
Alias lmli= "Lmgrd-c/home/liuxin/eda_tool/modelsim/modeltech/license.txt–l ~/syn_lic_modelsim.log"
Save exit, update environment variables:
source. BASHRC
Verify the installation is successful: Lmli
Vsim then we can see the Modelsim start screen
All of this virtual machine-based simulation and compilation environment has been set up, then you can run down the OpenRISC provided in the several SOC design lab. The next section will introduce the simulation build environment on the Ubuntu physics machine.
All the installation files have been uploaded to my Baidu network disk:
Account Number: lx324310
Password: liuxin324310
Based on OPENRISC learning Environment Building two: Win7 or Ubuntu install virtual machine-based OPENRISC simulation and compilation environment