Spring on ARM: Difference between revisions
From Spring
Jump to navigationJump to search
cleanup |
|||
| Line 6: | Line 6: | ||
Grab an image: http://cdimage.ubuntu.com/releases/11.10/release/ | Grab an image: http://cdimage.ubuntu.com/releases/11.10/release/ | ||
wget http://cdimage.ubuntu.com/releases/11.10/release/ubuntu-11.10-preinstalled- | wget http://cdimage.ubuntu.com/releases/11.10/release/ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz | ||
gzip -d ubuntu-11.10-preinstalled-server-armel+omap.img.gz | gzip -d ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz | ||
mv ubuntu-11.10-preinstalled-server-armel+omap.img.gz arm.img | |||
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: | extract kernel: | ||
mkdir tmp | mkdir tmp | ||
sudo mount -o loop,ro,offset= | sudo mount -o loop,ro,offset=75497472 -t vfat arm.img tmp | ||
cp tmp/ | sudo cp tmp/boot/vmlinuz-3.0.0-12-omap tmp/boot/initrd.img-3.0.0-12-omap . | ||
umount tmp | sudo umount tmp | ||
sudo chmod 644 vmlinuz-3.0.0-12-omap initrd.img-3.0.0-12-omap | |||
qemu-system-arm -hda | qemu-system-arm -hda arm.img | ||
Revision as of 10:45, 27 January 2012
Setting up a virtualized environment for arm
sudo apt-get install qemu-system
Grab an image: http://cdimage.ubuntu.com/releases/11.10/release/
wget http://cdimage.ubuntu.com/releases/11.10/release/ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz gzip -d ubuntu-11.10-preinstalled-desktop-armel+omap.img.gz mv ubuntu-11.10-preinstalled-server-armel+omap.img.gz arm.img
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