Spring on ARM: Difference between revisions

From Spring
Jump to navigationJump to search
Abma (talk | contribs)
cleanup
Abma (talk | contribs)
Line 2: Line 2:
==Setting up a virtualized environment for arm==
==Setting up a virtualized environment for arm==


   sudo apt-get install qemu-system
   sudo apt-get install qemu-system rootstock
 
  sudo rootstock \
Grab an image: http://cdimage.ubuntu.com/releases/11.10/release/
        --fqdn ubuntu \
 
        --login ubuntu \
  wget http://cdimage.ubuntu.com/releases/11.10/release/ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz
         --password ubuntu \
  gzip -d ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz
        --imagesize 3G \
  mv ubuntu-11.10-preinstalled-server-armel+omap.img.gz arm.img
        --seed ubuntu-desktop-minimal,build-essential,openssh-server
 
get offset:
 
  fdisk -l arm.img
                                          Device Boot      Start        End      Blocks  Id  System
arm.img1  *          32      147455      73712    c  W95 FAT32 (LBA)
arm.img2         147456    3076095    1464320  83  Linux
 
offset is 512*1464320=75497472
   
 
extract kernel:
  mkdir tmp
  sudo mount -o loop,ro,offset=75497472 -t vfat arm.img tmp
  sudo cp tmp/boot/vmlinuz-3.0.0-12-omap tmp/boot/initrd.img-3.0.0-12-omap .
  sudo umount tmp
  sudo chmod 644 vmlinuz-3.0.0-12-omap initrd.img-3.0.0-12-omap
 
  qemu-system-arm -hda arm.img

Revision as of 20:56, 2 March 2012

Setting up a virtualized environment for arm

  sudo apt-get install qemu-system rootstock
  sudo rootstock \
        --fqdn ubuntu \
        --login ubuntu \
        --password ubuntu \
        --imagesize 3G \
        --seed ubuntu-desktop-minimal,build-essential,openssh-server