How to Transfer files between the Host and Qemu via SSH and NFS

Last week, I wrote a blog post explaining how to copy files to a qemu image by mounting the qemu image in the host. This is only useful if emulated platform does not support networking. If networking is enabled, using SSH (Secure Shell) or NFS (Network File System) is more convenient. Using SSH with Qemu To initiate the SSH connection from qemu, there is actually nothing extra to do as long as you have sshd installed and running on the host. If it is not installed simply run  sudo apt-get install openssh-shell on the host. This will install and automatically sshd. To initiate the SSH connection from the host, you’ll have to redirect the ssh port to an unknown port and start qemu as follow (for overo):

Please refer to Beagleboard Emulator in Ubuntu with Qemu for the detailed instructions on how to setup qemu to emulate beagleboard or […]

Beagleboard Emulator in Ubuntu with Qemu

If you just want to try a program on Beagleboard, but do not want (or have the means) to purchase a board, you may be able to use qemu to emulate the Beagleboard or BeableBoard-xM. I’ll details the instructions to run the Nano build (minimal kernel) and the ARM Linux Internet Platform (ALIP) distribution for Beagleboard on qemu. Please read the full post before starting the installation before there are currently some issues such as no Ethernet support. First, install or update linaro-media-create: sudo add-apt-repository ppa:linaro-maintainers/tools sudo apt-get update sudo apt-get install linaro-image-tools Then download the nano image and omap3 hardware pack: wget http://releases.linaro.org/platform/linaro-n/nano/11.08/nano-n-tar-20110823-1.tar.gz wget http://releases.linaro.org/platform/linaro-n/nano/11.08/hwpack_linaro-omap3_20110823-0_armel_supported.tar.gz Generate the image for qemu: sudo linaro-media-create –image_file beagle_sd.img –dev beagle –binary nano-n-tar-20110823-1.tar.gz –hwpack hwpack_linaro-omap3_20110823-0_armel_supported.tar.gz If you don’t have it already, get the latest qemu-linaro package from Linaro Maintainers PPA: sudo apt-get install qemu-system Check the version is correct: qemu-system-arm -version QEMU emulator version […]

How-to Convert a Command Line Result into an Image in Linux

Here’s a technique to convert a command line result into an image in Linux using ImageMagick. You could also do a screenshot (with PrtSrc key) and use Gimp to trim the image, but this method is faster and does not require a graphical interface. The simplest command to convert the result of ifconfig into an image: ifconfig | convert label:@- cmd.png This will give an image with a white background and black text, but If you want to have a black background with white text you can use the following: ifconfig | convert -background black -fill white \ label:@- cmd.png If you want to change the font and the font size: ifconfig | convert -background black -fill white \ -font Helvetica -pointsize 14 \ label:@- cmd.png You can retrieve the list of fonts with this command: convert -list font | grep Font: Finally, use this command to add an extra […]

Setting Up a Git Server on Ubuntu

Git is a version control system used by many projects such as Linaro, the Linux kernel, Android, Eclipse, Qt and more. For projects that can not afford their own servers and still need to collaborate, hosted git is available from github and as today there are a total of 2,769,642 repositories (private and public) hosted on github. For software developed internally, you can start to setup you own Git server by following some simple steps (in Ubuntu). Installing the Git Server Update Ubuntu and install git-core: sudo apt-get update sudo apt-get install git-core That’s it. Installing Gitolite Gitolite allows you to setup git hosting on a central server, with fine-grained access control and many more powerful features. First get gitolite with git: git clone git://github.com/sitaramc/gitolite.git Obtain a public key based access to your server, so that you can log in from your workstation to the server without getting a password […]

Installing and running Xibo Linux Python Client in Acer Aspire One D255E

I have tried Xibo Linux Python Client 1.3.0 on my Acer Aspire One D255E netbook, here are the steps I followed. Install Ubuntu 10.04 LTS Since the client is only officially supported in Ubuntu 10.04 LTS, I had to install it first. After installation the network (ethernet and wifi) does not work,  please visit Installing Ubuntu 10.04 LTS in Acer Aspire One D255E for the instructions to resolve the networking issues as well as make the SD card reader work properly. Upgrade Xibo Server to version 1.3.0 The next step I did was to update the Windows XP server to version 1.3.0. I followed parts of the server installation instructions I previously wrote for version 1.2.0. Download xibo-server-1.3.0.zip Extract its content to c:\xampp\htdocs\xibo Run XAMPP Control Panel and start Apache and Mysql. Go to http://localhost/xibo Enter the admin username and password, it will ask you if you want to do […]

Linaro 11.08 Release with Linux Kernel 3.0.3

Linaro has just released version 11.08 based on Linux Kernel 3.0.3 with support or TI Beagleboard, BeagleBoard-xM & Pandaboard,  ST Ericsson Snowball, Freescale i.MX53 development board and Samsung Origen board. Here are the highlights of the release: Android The Linaro 11.08 toolchain release of GCC 4.6 has compiled the Origen, BeagleBoard, BeagleBoard-xM, PandaBoard and Snowball builds, and are running Android 2.3.5 with a 3.0 Linux kernel. Together with the mainline kernel focused builds for BeagleBoard and PandaBoard and a preliminary i.MX53 build, the Android Platform Team ships 6 builds this month. A first! Android Platform code aliasing violations have been fixed allowing the use of strict-aliasing for better optimizations with gcc 4.6 based toolchains. The Android toolchain 11.08 has been released and has received numerous updates, including updated binutils and current gmp/mpfr/mpc. Benchmarks are available here. libjpeg-turbo 1.1.1 and ffmpeg with support for H.264 and WebM build are available on […]

Bootloader to OS with Unified Extensible Firmware Interface (UEFI)

Unified Extensible Firmware Interface (UEFI) is a specification detailing an interface that helps hand off control of the system for the pre-boot environment (i.e.: after the system is powered on, but before the operating system starts) to an operating system, such as Windows or Linux. UEFI aims to provides a clean interface between operating systems and platform firmware at boot time, and supports an architecture-independent mechanism for initializing add-in cards. UEFI will overtime replace vendor-specific BIOS. It also allows for fast boot and support for large hard drives (> 2.2 TB). There are several documents fully defining the UEFI Specification, API and testing requirements: The UEFI Specification (version 2.3.1) describes an interface between the operating system (OS) and the platform firmware. It describes the requirements for the following components, services and protocols: Boot Manager Protocols – Compression Algorithm Specification EFI System Table Protocols – ACPI Protocols GUID Partition Table (GPT) […]

Installing Ubuntu 10.04 LTS in Acer Aspire One D255E

Since I’d like to try Xibo Python Linux client, I’ve decided to install Ubuntu 10.04 LTS in my netbook Acer Aspire One D255. The bad news is that it did not go so smoothly, the good news is that since the wired & wireless network and SD card did not work I can blog the solution about it. Installing Ubuntu 10.04 from a USB thumb drive. First, I went to Ubuntu Download page, change the version to Ubuntu 10.04 LTS – Long Term Support and downloaded the ISO file (ubuntu-10.04.3-desktop-i386.iso). Then I downloaded the Universal USB Installer (For Windows XP) to install the ISO in my USB thumb drive. Finally, I inserted the USB thumb drive in my netbook and performed the default installation, except for partitioning, where I used the 3rd partition in my hard disk and an extra swap partition to install Ubuntu. After installation, everything seems to […]

Exit mobile version