Jump to content
  • entries
    657
  • comments
    2,692
  • views
    897,854

DPC+ARM - Part 1, Virtual Machine and Linux


SpiceWare

1,391 views

NOTE: This blog series is obsolete.  Head on over to the Harmony/Melody Club where you'll find information on the new Linaro compiler and the new CDFJ coprocessor/bankswitch scheme that has many improvements over DPC+.

 

If you're running Linux, you can skip Part 1.

 

First off, head over to VirtualBox and download the version for your OS. Install it.

 

 

 

download VirtualBox

blogentry-3056-0-54047200-1423265305_thumb.png

Download the Ubuntu ISO image (an ISO image is basically a CD/DVD/Blu-ray in file form). While you're free to use any Linux Distribution you wish, if you don't use Ubuntu then some of the steps will probably be different. Also note that because the compiler is 32 bit software, it's easier to get running if you install the 32-bit version of Ubuntu. The download defaults to 64-bit, so be sure to use the dropdown to change that:

 

 

 

download 32-bit Ubuntu

blogentry-3056-0-24075600-1423265617_thumb.png

Run VirtualBox and click on the New button.

 

 

 

Welcome to VirtualBox!

blogentry-3056-0-66555800-1423266835_thumb.png

Fill in the Name, Type and Version.

 

 

 

Name and operating system

blogentry-3056-0-52570500-1423266900_thumb.png

Set memory size. The default is 512 MB. That's probably plenty, but my Mac Pro has 16 GB, so I went ahead and increased it to 2048 MB (2 GB).

 

 

 

Memory size

blogentry-3056-0-57614700-1423267279_thumb.png

Create the Hard Drive. Take the defaults on the next 4 forms.

 

 

 

Hard drive

blogentry-3056-0-42931600-1423267508_thumb.png

 

Hard drive file type

blogentry-3056-0-88933700-1423267522_thumb.png

 

Storage on physical hard drive

blogentry-3056-0-82504500-1423267534_thumb.png

 

File location and size

blogentry-3056-0-38526900-1423267546_thumb.png

At this point your VM (Virtual Machine) has been created, along with a VDI file. Just like the ISO is a CD/DVD in a file, you can consider the VDI as a Hard Drive in a file.

 

Your VM is currently powered off, hit Start to power it on.

 

 

 

hit start

blogentry-3056-0-55416400-1423268087_thumb.png

VirtualBox knows it's a new VM, so it displays a dialog that's basically asking you to "Insert CD".

 

 

 

"insert CD"

blogentry-3056-0-18231100-1423272883_thumb.png

Select the ISO image for Ubuntu that you downloaded, if you downloaded what I did then the filename will be ubuntu-14.04.1-desktop-i386.iso

 

 

 

select ISO

blogentry-3056-0-40898800-1423272890_thumb.png

NOTE: If you accidentally canceled the dialog you'll end up seeing a message FATAL: No bootable medium found! System halted. If that happens, do the following steps to get back on track:

  1. Select the Devices menu
  2. Select the CD/DVD Devices menu option
  3. Select the Choose a virtual CD/DVD disk file... submenu option
    blogentry-3056-0-84205100-1423273622_thumb.png
  4. Select the ISO image
  5. Select the Machine menu
  6. Select the Reset menu option
    blogentry-3056-0-27221800-1423273630.png

After a little bit, you VM will finish booting from the ISO and you'll see the Try/Install screen. Click Install.

 

 

 

Welcome

blogentry-3056-0-22696600-1423274184_thumb.png

Take the defaults on the Preparing to install Ubuntu form

 

 

 

Preparing to install Ubuntu

blogentry-3056-0-78881100-1423274808_thumb.png

Take the defaults on the Installation type form

 

 

 

Installation type

blogentry-3056-0-64195700-1423274819_thumb.png

There will be a short delay while your VDI file is formatted. After that you'll set where you are. It's really just setting your time zone, so it's OK that it auto-detected Chicago even though I'm in Houston.

 

 

 

Where are you?

blogentry-3056-0-00952400-1423274830_thumb.png

Next you'll select your keyboard layout.

 

 

 

Keyboard layout

blogentry-3056-0-52883500-1423274838_thumb.png

Then you'll need to fill in your name and create a password

 

 

 

Who are you?

blogentry-3056-0-61021200-1423274859_thumb.png

Ubuntu will now install

 

 

 

Welcome to Ubuntu 14.04

blogentry-3056-0-81419500-1423274849_thumb.png

After awhile it'll finish. Click Restart Now.

 

 

 

Installation Complete

blogentry-3056-0-23809600-1423276043_thumb.png

Eventually you'll see the following. VirtualBox will automatically "eject the CD" so just hit ENTER to restart the VM.

 

 

 

press ENTER

blogentry-3056-0-43236800-1423276456_thumb.png

Login to your VM

 

 

 

Logon screen

blogentry-3056-0-83093200-1423276464_thumb.png

Have you noticed the messages at the top of the VM? You can click on them to show more detail.

 

 

 

expand message

blogentry-3056-0-92476900-1423277183_thumb.png

There's also two buttons on the right side of each message that will dismiss them. The left button closes it for now, but the message will show back up again later. The right button will permanently dismiss the message.

 

 

 

dismiss message buttons

blogentry-3056-0-43604700-1423276562_thumb.png

After you've logged on, you'll see the following. That's it for today though, so click on the gear like icon in the top-right:

 

 

 

blogentry-3056-0-41707300-1423277630_thumb.png

Select the Shut Down... menu option

 

 

 

blogentry-3056-0-90904400-1423277637_thumb.png

Then select the right icon to shut down. The left icon will do a reboot.

 

 

 

blogentry-3056-0-47529700-1423277665_thumb.png

In part 2 we'll cover:

  • Installing Guest Additions - this will let you resize the VM window and have Ubuntu automatically resize it's screen.
  • turn on clipboard sharing
  • share a folder/directory between your OS and Ubuntu

1 Comment


Recommended Comments

If you're running Linux, you might like to install the Linux version of VirtualBox anyway. There's a few versions of the C compiler and each one optimizes the code different, which can result in the compiled ARM code being smaller when using one version vs another. Having a different version installed in each VM makes it easier to quickly compare the results.

 

As an example, these games used these versions of the compiler:

  • Stay Frosty 2 - 2011.03-42
  • Space Rocks - 2012.09-63
Link to comment
Guest
Add a comment...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...