You are on page 1of 4

30th April 2013 How to set up a QEMU to run Arago without a real am335x EVM

board
Here I am going to talk about how to set up a QEMU [http://wiki.qemu.org/Download] to run Arago [http://arago-
project.org/wiki/index.php/Main_Page] . With this ARM Linux running on QEMU, you can develop, test and debug your
code without a real am335x EVM board [http://www.ti.com/tool/tmdxevm3358] .

1. download AM335x SDK [http://downloads.ti.com/dsps/dsps_public_sw/am_bu/sdk/AM335xSDK/latest/exports/ti-sdk-am335x-


evm-05.07.00.00-Linux-x86-Install]

2. install it by following the steps showing below


$ chmod +x ti-sdk-am335x-evm-05.07.00.00-Linux-x86-Install
$ ./ti-sdk-am335x-evm-05.07.00.00-Linux-x86-Install
select all default settings except Install Code Composer
cd ~/ti-sdk-am335x-evm-05.07.00.00
$ ./setup.sh
follow the scripts to install the required packages
the NFS and TFTP boot folders on my Ubuntu 10.04 are set as below.
/home/aragosim/am335x/targetNFS
/home/aragosim/am335x/tftpboot
3. download the pre-build Kernel [https://drive.google.com/uc?export=download&id=0B4BUCy2hv0GyejBKekFiajhSMGc] to
~/am335x/tftpboot/

4. install OpenVPN
sudo apt-get install openvpn bridge-utils
5. download the script arago [https://docs.google.com/file/d/0B4BUCy2hv0GyZU5sWWdlRU9XU0U/edit?usp=sharing] into
~/am335x/

6. download qemu-ifup [https://docs.google.com/file/d/0B4BUCy2hv0GyZmFCdXBwaG01S0k/edit?usp=sharing] and qemu-ifdown


[https://docs.google.com/file/d/0B4BUCy2hv0GyRFowM2JvZm9XTlk/edit?usp=sharing] into /etc/ [ref
[http://en.wikibooks.org/wiki/QEMU/Networking] ]

7. copy ~/ti-sdk-am335x-evm-05.07.00.00/arago-base-tisdk-image-am335x-evm.tar.gz into ~/am335x/targetNFS/, and


then untar it as below.
$ sudo tar xvf arago-base-tisdk-image-am335x-evm.tar.gz
8. check your networking settings
In my case: I have two Ethernet ports: eth0 connect to Internet, eth1 is used for internal testing. So, I use eth1 to test the
Arago on QEMU.

9. test Arago on QEMU


$ sudo ./arago eth1 192.168.100.138
VNC server running on `127.0.0.1:5900'
Uncompressing Linux... done, booting the kernel.

10. Now, Go to Applications -> Internet -> Remote Desktop Viewer, click Connect, enter 127.0.0.1:5900 and select
VNC, then click Connect. You should be able to log into the Kernel as root without password.

11. You can also telnet into the Kernel by

$ telnet 192.168.100.138
Trying 192.168.100.138...
Connected to 192.168.100.138.
Escape character is '^]'.

_____ _____ _ _
| _ |___ ___ ___ ___ | _ |___ ___ |_|___ ___| |_
| | _| .'| . | . | | __| _| . | | | -_| _| _|
|__|__|_| |__,|_ |___| |__| |_| |___|_| |___|___|_|
|___| |___|

Arago Project http://arago-project.org am335x-evm

Arago 2013.02 am335x-evm

am335x-evm login: root

Posted 30th April 2013 by iDrawOne

4 View comments

Ebrahim Talaq 11 April 2014 at 06:51


Hi .. Thanks for the information. I tried it with TI-SDK6 and worked fine.
For some reason, when I installed TI-SDK7 and did the same steps, the loading stops with around 10% loading of the
initial loading screen of TI.
Is there is anything that might be changed?
Thanks.
Reply

Ebrahim Talaq 11 April 2014 at 14:44


I figured to start that by compiling a new kernel for this. Can you please share the steps you used for the pre-build
kernel?
Thanks.
Reply

iDrawOne 22 April 2014 at 13:34


Hi, I think the issue is more likely on the rootfs side, especially during the init process. Anyway, I will post a short
message regarding how to build the Kernel for running on QEMU.
Reply

Fergal Goggin 23 March 2015 at 04:42


Hi, I wonder could you explain two issues for me?

1) your qemu start script refers to a cortex-A9 on a ARM vexpress board which probably uses all primecell peripherals.
The AM335x contains a Cortex-A8 and appears to use OMAP peripherals (at least UART, SPI and I2C). I don't see
how a AM335x kernel can run on a vexpress-a9 qemu machine.

2) which version of qemu are you using? is it mainline qemu, qemu linaro or is there a version bundled with the TI
SDK?

thanks,
Fergal.
Reply
Enter your comment...

Comment as: Rimas Vaicius ( Sign out

Publish Preview Notify me

You might also like